/* Escritorio ≥768px — estilo PresuDesk. No altera reglas móviles de styles.css */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

@media (min-width: 768px) {
  .mobile-only,
  .shell-mobile {
    display: none !important;
  }

  .desktop-only,
  .shell-desktop {
    display: block;
  }

  body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background: #f0f4f8;
    color: #0f172a;
  }

  .shell-desktop .layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
  }

  .sidebar {
    background: #eef2ff;
    color: #1e293b;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid #c7d2fe;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 240px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .sidebar .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding-bottom: 0.25rem;
  }

  .sidebar .brand-text h1 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
  }

  .sidebar .brand-text span {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
  }

  .sidebar .brand-logo-slot {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-logo-slot__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.5rem;
  }

  .sidebar .nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
  }

  .sidebar .nav a:hover,
  .sidebar .nav a.active {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
  }

  .sidebar-foot {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #c7d2fe;
  }

  .sidebar-logout {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
  }

  .sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.08);
  }

  .main-area {
    padding: 1.75rem 2rem 3rem;
    min-width: 0;
    background: #f0f4f8;
  }

  .page-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .page-topbar h2 {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .page-topbar p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
  }

  .page-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
  }

  .filter-bar {
    margin-bottom: 0.6rem;
  }

  .filter-form {
    padding: 0.4rem 0.65rem;
  }

  .filter-toolbar {
    flex-wrap: nowrap;
    gap: 0.45rem 0.55rem;
  }

  .filter-grid {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .filter-grid--clients .filter-field--grow {
    flex: 1 1 auto;
  }

  .filter-field {
    flex: 1 1 0;
    min-width: 0;
  }

  .filter-field--grow {
    flex: 1.6 1 0;
    min-width: 10rem;
  }

  .filter-field:has(.filter-input--date) {
    flex: 0 0 9.5rem;
  }

  .filter-field:has(.filter-input--select) {
    flex: 0 0 9.5rem;
  }

  .filter-input {
    font-size: 0.85rem;
    padding: 0.38rem 0.55rem;
    border-radius: 8px;
  }

  .filter-preset {
    font-size: 0.78rem;
    padding: 0.38rem 0.5rem;
  }

  .filter-bar-actions {
    gap: 0.4rem;
  }

  .filter-results {
    font-size: 0.75rem;
  }

  .filter-btn {
    padding: 0.38rem 0.75rem;
    font-size: 0.8rem;
  }

  .filter-btn--apply {
    background: #2563eb;
    box-shadow: none;
  }

  .filter-btn--apply:hover {
    background: #1d4ed8;
  }

  .filter-btn--clear:hover {
    background: #e2e8f0;
  }

  .view-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
  }

  .view-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
  }

  .view-toggle-btn.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  }

  .d-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    font-family: inherit;
  }

  .d-btn-primary {
    background: #2563eb;
    color: #fff;
  }

  .d-btn-outline {
    background: #fff;
    color: #2563eb;
    border: 1px solid #e2e8f0;
  }

  .d-btn-success {
    background: #059669;
    color: #fff;
  }

  .d-btn-danger {
    background: #dc2626;
    color: #fff;
  }

  .d-btn-secondary {
    background: #64748b;
    color: #fff;
  }

  .d-btn-whatsapp {
    background: #16a34a;
    color: #fff;
  }

  .kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .kpi {
    background: #fff;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 10px 24px -4px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
  }

  .kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.35rem;
    letter-spacing: -0.02em;
    color: #0f172a;
  }

  .kpi-value.money {
    color: #2563eb;
  }

  .kpi-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .kpi-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.18);
    border-color: #c7d2fe;
  }

  .dash-home {
    max-width: 900px;
  }

  .dash-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  }

  .dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .dash-panel-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
  }

  .dash-panel-head .dash-panel-title {
    margin-bottom: 0;
  }

  .dash-panel-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #64748b;
  }

  .dash-panel-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
  }

  .dash-panel-link:hover {
    text-decoration: underline;
  }

  .dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .dash-recent {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dash-recent li {
    border-bottom: 1px solid #f1f5f9;
  }

  .dash-recent li:last-child {
    border-bottom: none;
  }

  .dash-recent a {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0.25rem;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.15s;
  }

  .dash-recent a:hover {
    background: #f8fafc;
  }

  .dash-recent-num {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
  }

  .dash-recent-client {
    color: #64748b;
    font-size: 0.9rem;
  }

  .dash-recent-total {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.9rem;
    text-align: right;
  }

  .dash-empty {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
  }

  .dash-empty a {
    color: #2563eb;
    font-weight: 600;
  }

  .pres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .pres-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 10px 24px -4px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .pres-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .pres-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid #f1f5f9;
  }

  .pres-card-edit {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .pres-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #818cf8);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .pres-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.15);
  }

  .pres-card:hover::before,
  .pres-card:has(.pres-card-link:hover)::before {
    opacity: 1;
  }

  .pres-card--borrador::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 1;
  }

  .pres-card--aceptado::before,
  .pres-card--generado::before,
  .pres-card--enviado::before {
    opacity: 1;
  }

  .pres-card--from-fabrica {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 2.5rem);
  }

  .pres-card--facturado {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 3.25rem);
  }

  .pres-card--facturado::before {
    background: linear-gradient(90deg, #10b981, #34d399);
    opacity: 1;
  }

  .pres-card-date {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
  }

  .quotes-view--list .quotes-view-grid {
    display: none;
  }

  .quotes-view--grid .quotes-view-list {
    display: none;
  }

  .pres-list-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .pres-list {
    width: 100%;
    border-collapse: collapse;
  }

  .pres-list th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
  }

  .pres-list td {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }

  .pres-list tbody tr:hover {
    background: #f8fafc;
  }

  .pres-list-row--facturado {
    background: #f0fdf4;
  }

  .pres-list-row--facturado:hover {
    background: #ecfdf5;
  }

  .pres-list tbody tr:last-child td {
    border-bottom: none;
  }

  .pres-list-date {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
  }

  .pres-list-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
  }

  .pres-list-link:hover {
    color: #2563eb;
  }

  .pres-list-muted {
    color: #cbd5e1;
  }

  .pres-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .pres-list-actions .d-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .from-fabrica-inline {
    margin-left: 0.35rem;
    font-size: 0.9rem;
  }

  .pres-card .from-fabrica-badge {
    top: 12px;
    right: 12px;
  }

  .sheet-head--from-fabrica {
    position: relative;
  }

  .sheet-head--from-fabrica .from-fabrica-badge {
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
  }

  .sheet-head--from-fabrica .from-fabrica-badge::after {
    background: #0f172a;
  }

  .card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
  }

  .pres-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
  }

  .badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
  }

  .badge-borrador {
    background: #fef3c7;
    color: #b45309;
  }

  .badge-generado,
  .badge-enviado {
    background: #d1fae5;
    color: #047857;
  }

  .badge-aceptado {
    background: #d1fae5;
    color: #047857;
  }

  .badge-facturado,
  .badge-emitida {
    background: #e0e7ff;
    color: #3730a3;
  }

  .badge-cancelado,
  .badge-cancelada {
    background: #f1f5f9;
    color: #64748b;
  }

  .badge-enviada,
  .badge-pagada {
    background: #d1fae5;
    color: #047857;
  }

  .client-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }

  .card-meta {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px dashed #e2e8f0;
  }

  .total-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
  }

  .total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.02em;
  }

  .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 14px;
    border: 2px dashed #e2e8f0;
    color: #64748b;
  }

  .dash-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .dash-tile {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .dash-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.12);
    color: #2563eb;
  }

  /* Detalle tipo sheet (PresuDesk) */
  .sheet-page {
    max-width: 820px;
  }

  .sheet-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .sheet {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 12px 28px -4px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 1.25rem;
  }

  .sheet-head {
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
  }

  .sheet-head h1 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
  }

  .sheet-head p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
  }

  .sheet-body {
    padding: 1.75rem 2rem;
  }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .info-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
  }

  .info-box label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
  }

  .lineas {
    width: 100%;
    border-collapse: collapse;
  }

  .lineas th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.6rem 0;
    border-bottom: 2px solid #e2e8f0;
  }

  .lineas td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    vertical-align: top;
  }

  .lineas tr:last-child td {
    border-bottom: none;
  }

  .lineas .line-thumb {
    width: 72px;
    height: 54px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
  }

  .total-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .total-row strong {
    font-size: 1.35rem;
    color: #2563eb;
  }

  .sheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }

  .sheet-actions form {
    margin: 0;
  }

  .form-panel {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 640px;
  }

  .form-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
  }

  .form-panel input,
  .form-panel select,
  .form-panel textarea {
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
  }

  .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f0f4f8;
  }

  .auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.15);
    border: 1px solid #e2e8f0;
  }

  .auth-card h1 {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
  }

  .mobile-auth-logo-wrap {
    margin: 0 auto 1rem;
  }

  .mobile-auth-logo {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
  }

  .auth-card .card {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .auth-card .card label {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
  }

  .auth-card .card input {
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
  }

  .auth-card .btn {
    width: 100%;
    margin-top: 0.25rem;
    background: #2563eb;
    font-family: inherit;
  }

  .desktop-flash {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .desktop-flash.success {
    background: #dcfce7;
    color: #166534;
  }

  .desktop-flash.danger {
    background: #fee2e2;
    color: #991b1b;
  }

  .desktop-flash.warning,
  .desktop-flash.info {
    background: #fef3c7;
    color: #92400e;
  }

  .form-panel--wide {
    max-width: 900px;
  }

  .form-panel--compact {
    max-width: 720px;
    padding: 1.1rem 1.35rem;
  }

  .form-panel--compact label {
    margin-bottom: 0;
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  .form-panel--compact input,
  .form-panel--compact select,
  .form-panel--compact textarea {
    font-size: 0.88rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
  }

  .form-panel--compact textarea {
    min-height: 3.5rem;
    resize: vertical;
  }

  .form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
  }

  .settings-form .settings-form-row {
    margin-bottom: 0.75rem;
  }

  .settings-form .settings-form-span-2 {
    grid-column: 1 / -1;
  }

  .settings-form .form-actions {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
  }

  .form-section-title {
    margin: 1.5rem 0 0.75rem;
    font-size: 0.95rem;
    color: #334155;
  }

  .form-section-title:first-child {
    margin-top: 0;
  }

  .client-list-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .client-list {
    width: 100%;
    border-collapse: collapse;
  }

  .client-list th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
  }

  .client-list td {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }

  .client-list tbody tr:hover {
    background: #f8fafc;
  }

  .client-list tbody tr:last-child td {
    border-bottom: none;
  }

  .client-list-name strong {
    font-weight: 600;
    color: #0f172a;
  }

  .client-list-name small {
    color: #64748b;
    font-size: 0.8rem;
  }

  .client-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .client-list-actions form {
    margin: 0;
  }

  .line-editor .item-row--desktop {
    display: grid;
    grid-template-columns: 2fr 1fr 0.6fr 0.8fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .quote-lines-head {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.8fr 0.2fr;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
  }

  .quote-totals-desktop {
    margin-top: 1.25rem;
    max-width: 360px;
    margin-left: auto;
  }

  .quote-totals-desktop .total-row strong {
    color: #2563eb;
  }

  .line-editor .item-row--desktop input {
    font-size: 0.9rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
  }
}

@media (max-width: 767px) {
  .desktop-only,
  .shell-desktop {
    display: none !important;
  }
}
