/* A quiet workspace: clear actions, generous spacing and touch-friendly controls. */
:root[data-theme=blue] { --screen:#f4f6f8; --surface:#fff; --surface-alt:#f7f9fb; --field:#fff; --line:#dde4eb; --ink:#202e3c; --muted:#58697a; --highlight:#176a72; --focus:#3b828b; --button:#176a72; --button-text:#254655; --shadow:none; }
[data-theme=blue] .admin-sidebar { background:#18313c; border-color:#294650; }
[data-theme=blue] .sidebar-link[aria-current=page] { background:#ffffff14; box-shadow:inset 3px 0 #75c2b4; }
[data-theme=blue] .btn.primary,[data-theme=blue] .topbar .btn.primary { background:#176a72; border-color:#176a72; color:#fff; box-shadow:none; }
[data-theme=blue] .btn.primary:hover,[data-theme=blue] .topbar .btn.primary:hover { background:#105760; border-color:#105760; color:#fff; }
[data-theme=blue] .metric-card:nth-child(n) { background:#fff; border-color:var(--line); box-shadow:none; --metric-ink:var(--ink); --metric-tint:#edf5f3; }
[data-theme=blue] .metric-card>strong { background:none; padding:0; box-shadow:none; border-radius:0; }
[data-theme=blue] .metric-card .metric-top,[data-theme=blue] .metric-card .metric-foot { color:var(--muted); }
.workspace-topbar { box-shadow:none; }
.sidebar-brand .brand-mark { width:48px; height:48px; object-fit:contain; background:#fff; border-radius:10px; }
.panel,.insight-card,.metric-card { border-radius:12px; }
.page-heading h1,.overview-heading h1 { letter-spacing:-.6px; }
.btn { transition:background-color .15s,border-color .15s; }
.btn[aria-pressed=true] { outline:2px solid var(--focus); outline-offset:1px; }
.filter-bar { padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--surface-alt); }
.filter-bar>label { min-width:130px; }
.filter-bar label { font-size:12px; }
.filter-bar .search-field { flex-basis:260px; }
.table-wrap td,.table-scroll td { line-height:1.5; }
.status-badge { line-height:1.4; }
.actions { min-width:0; }
.actions .btn { max-width:100%; }
.print-actions.actions { max-width:none; justify-content:flex-start; gap:8px; }
.print-actions.actions .btn { font-size:12px; }
.workspace-context { margin-bottom:18px; }
.section-tabs { max-width:100%; }
@media(max-width:760px) {
    input,select,textarea,.workspace-search input,.theme-picker select { font-size:16px; }
    .btn,.responsive-list .btn,.pagination .btn,.section-tabs a { min-height:44px; }
    .workspace-topbar { padding:10px 12px; flex-wrap:wrap; }
    .topbar-actions { gap:6px; }
    .workspace-search .btn { font-size:0; width:40px; padding:8px; }
    .workspace-search .btn::after { content:'↵'; font-size:20px; }
    .theme-picker { width:80px; }
    .theme-picker select { min-height:44px; font-size:13px; }
    .wrap,body:has(.admin-sidebar)>.wrap { padding:16px 12px 32px; min-width:0; }
    .panel,.insight-card { padding:14px; }
    .filter-bar { padding:12px; gap:12px; }
    .filter-bar>label:not(.search-field):not(.page-size) { flex:1 1 120px; min-width:0; }
    .filter-bar>.search-field { flex:1 1 100%; }
    .filter-bar>.btn { flex:1; }
    .responsive-list tbody tr { padding:4px 12px; background:var(--surface); }
    .responsive-list tbody td { padding:8px 0; }
    .responsive-list td:last-child { padding-top:12px; padding-bottom:12px; }
    .responsive-list td:last-child>.btn { flex:1 1 110px; }
    .responsive-list td:last-child>form .btn { width:100%; }
    .payment-card .responsive-list tbody tr { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
    .payment-card .responsive-list tbody td:first-child,.payment-card .responsive-list tbody td:last-child { grid-column:1 / -1; }
    .print-actions.actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .print-actions.actions .btn,.print-actions.actions form { width:100%; }
    .print-actions.actions .btn { height:100%; }
    .document-toolbar { align-items:flex-start; }
    .document-toolbar p { line-height:1.6; }
    .metric-top { align-items:flex-start; line-height:1.4; }
    .metric-card>strong { font-variant-numeric:tabular-nums; }
    .section-tabs a { display:flex; align-items:center; }
}
@media(max-width:360px) {
    .metric-grid,.product-stats { grid-template-columns:1fr; }
    .theme-picker { width:68px; }
    .workspace-search input { padding-left:8px; }
}
