/* Advanced Deposits Clean/Dark themes. Original Light (no data-swp-ui attribute) is
   untouched. The Appearance control itself (.theme-control/.theme-select) is the one
   piece of chrome that must render in all three themes, so it's styled unscoped below. */
.theme-control{display:inline-flex;align-items:center;gap:.35rem;flex-shrink:0}
.theme-control-icon{width:15px;height:15px;color:var(--cream2,#f0ebe2);flex-shrink:0}
.theme-select{
  padding:.3rem 1.5rem .3rem .5rem;border-radius:20px;font:600 12px "Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif;
  cursor:pointer;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25);color:var(--cream2,#f0ebe2);
}
.theme-select:focus{outline:2px solid rgba(255,255,255,.5);outline-offset:1px}
html[data-swp-ui="v1"]{
 color-scheme:light;--swp-page:#f1f5f9;--swp-surface:#fff;--swp-soft:#f8fafc;--swp-glass:rgba(255,255,255,.78);--swp-text:#1e293b;--swp-muted:#64748b;--swp-border:#e2e8f0;--swp-border2:#cbd5e1;--swp-action:#2563eb;--swp-action-hover:#1d4ed8;--swp-action-soft:#dbeafe;--swp-success:#15803d;--swp-success-soft:#dcfce7;--swp-warning:#456f9d;--swp-warning-soft:#e7f0fa;--swp-danger:#b91c1c;--swp-danger-soft:#fee2e2;--swp-info:#0369a1;--swp-info-soft:#e0f2fe;--swp-shadow:0 12px 32px rgba(15,23,42,.09);
 --cream:var(--swp-page);--cream2:var(--swp-soft);--cream3:var(--swp-soft);--warm-white:var(--swp-surface);--brown-dk:var(--swp-text);--brown-md:var(--swp-muted);--brown-lt:var(--swp-action);--brown-pale:var(--swp-muted);--text:var(--swp-text);--text2:var(--swp-muted);--text3:var(--swp-muted);--border:var(--swp-border);--border2:var(--swp-border2);--green:var(--swp-success);--red:var(--swp-danger);--blue:var(--swp-action);--amber:var(--swp-warning);
 font-family:"Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif;background:var(--swp-page)
}
html[data-swp-ui="v1"][data-theme="dark"]{color-scheme:dark;--swp-page:#22262b;--swp-surface:#373d44;--swp-soft:#454c54;--swp-glass:rgba(43,48,54,.94);--swp-text:#e1e4e8;--swp-muted:#b4bbc3;--swp-border:#59636e;--swp-border2:#6b7682;--swp-action:#91afd2;--swp-action-hover:#a3bdd9;--swp-action-soft:rgba(145,175,210,.18);--swp-success:#93b99f;--swp-success-soft:rgba(105,155,120,.21);--swp-warning:#9db9d6;--swp-warning-soft:rgba(109,145,183,.2);--swp-danger:#d29595;--swp-danger-soft:rgba(174,96,96,.2);--swp-info:#93bdc5;--swp-info-soft:rgba(98,154,165,.21);--swp-shadow:0 16px 36px rgba(7,9,11,.3)}
html[data-swp-ui="v1"] body{background:var(--swp-page);color:var(--swp-text);font-family:inherit;letter-spacing:0}
html[data-swp-ui="v1"] .header{height:72px;padding:0 28px;background:var(--swp-glass);border-bottom:1px solid var(--swp-border);box-shadow:0 8px 24px rgba(15,23,42,.06);color:var(--swp-text);backdrop-filter:blur(16px) saturate(145%);-webkit-backdrop-filter:blur(16px) saturate(145%)}
html[data-swp-ui="v1"] .brand-mark{width:44px;height:44px;border-radius:10px;background:#285f9f;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 4px 12px rgba(22,58,101,.2)}html[data-swp-ui="v1"] .brand-mark .swp-pilot-icon{width:26px;height:26px}html[data-swp-ui="v1"] .brand-name{color:var(--swp-text);font-size:15px;font-weight:700}html[data-swp-ui="v1"] .brand-sub{color:var(--swp-muted);font-size:11px;letter-spacing:.08em}html[data-swp-ui="v1"] .live-dot{box-shadow:0 0 0 4px var(--swp-success-soft)}
html[data-swp-ui="v1"] .btn{border-radius:8px;font-family:inherit;font-weight:650;letter-spacing:0;text-transform:none;gap:7px;transition:background-color .16s,border-color .16s,color .16s,transform .16s}html[data-swp-ui="v1"] .btn:hover{transform:translateY(-1px)}html[data-swp-ui="v1"] .btn-primary{background:var(--swp-action);border-color:var(--swp-action);color:#fff}html[data-swp-ui="v1"] .btn-primary:hover{background:var(--swp-action-hover)}html[data-swp-ui="v1"] .btn-ghost-lt{background:var(--swp-soft);border-color:var(--swp-border);color:var(--swp-text)}
html[data-swp-ui="v1"] .swp-pilot-icon{width:16px;height:16px;flex:0 0 auto}
html[data-swp-ui="v1"] .theme-control-icon{color:var(--swp-muted)}html[data-swp-ui="v1"] .theme-select{background:var(--swp-surface);border-color:var(--swp-border2);color:var(--swp-text)}html[data-swp-ui="v1"] .theme-select:focus{outline-color:var(--swp-action)}
html[data-swp-ui="v1"] .tabs{background:var(--swp-surface);border-bottom-color:var(--swp-border)}html[data-swp-ui="v1"] .tab{color:var(--swp-muted);font-family:inherit;letter-spacing:0;text-transform:none}html[data-swp-ui="v1"] .tab:hover{color:var(--swp-text);background:var(--swp-soft)}html[data-swp-ui="v1"] .tab.active{color:var(--swp-action);border-bottom-color:var(--swp-action)}
html[data-swp-ui="v1"] .card,html[data-swp-ui="v1"] .stat-card,html[data-swp-ui="v1"] .table-wrap,html[data-swp-ui="v1"] .sage-card,html[data-swp-ui="v1"] .modal{background:var(--swp-surface);border-color:var(--swp-border);border-radius:12px;box-shadow:var(--swp-shadow)}
html[data-swp-ui="v1"] .toolbar,html[data-swp-ui="v1"] .table-toolbar,html[data-swp-ui="v1"] .modal-header{background:var(--swp-soft);border-color:var(--swp-border)}html[data-swp-ui="v1"] .modal-overlay{background:rgba(2,6,23,.58);backdrop-filter:blur(4px)}
html[data-swp-ui="v1"] input,html[data-swp-ui="v1"] select,html[data-swp-ui="v1"] textarea{background:var(--swp-surface);border-color:var(--swp-border2);border-radius:8px;color:var(--swp-text);font-family:inherit}html[data-swp-ui="v1"] input:focus,html[data-swp-ui="v1"] select:focus,html[data-swp-ui="v1"] textarea:focus{border-color:var(--swp-action);box-shadow:0 0 0 3px var(--swp-action-soft);outline:none}
/* Table geometry is intentionally preserved: no width, height, padding, wrapping, or density changes. */
html[data-swp-ui="v1"] table{background:var(--swp-surface);color:var(--swp-text)}html[data-swp-ui="v1"] th{background:var(--swp-soft);color:var(--swp-muted);border-color:var(--swp-border)}html[data-swp-ui="v1"] td{border-color:var(--swp-border)}html[data-swp-ui="v1"] tbody tr:hover td{background:var(--swp-action-soft)}html[data-swp-ui="v1"] .row-fin td{background:var(--swp-success-soft)}html[data-swp-ui="v1"] .row-tops td{background:var(--swp-info-soft)}html[data-swp-ui="v1"] .row-stacked td,html[data-swp-ui="v1"] .row-stacked:hover td{background:transparent}html[data-swp-ui="v1"] .badge,html[data-swp-ui="v1"] .status-badge{border-radius:999px;letter-spacing:0;text-transform:none}
html[data-swp-ui="v1"]{--green-lt:var(--swp-success-soft);--green-dk:var(--swp-success);--red-lt:var(--swp-danger-soft);--blue-lt:var(--swp-info-soft);--amber-lt:var(--swp-warning-soft);--stacked-bg:transparent}
html[data-swp-ui="v1"] .legend-item:has(.legend-swatch.stacked){display:none}
html[data-swp-ui="v1"] .stack-badge{background:var(--swp-soft);color:var(--swp-text);border-color:var(--swp-border2)}
html[data-swp-ui="v1"][data-theme="dark"] .badge,html[data-swp-ui="v1"][data-theme="dark"] .stack-badge,html[data-swp-ui="v1"][data-theme="dark"] .prod-badge,html[data-swp-ui="v1"][data-theme="dark"] .sage-status{border-color:var(--swp-border2)}
html[data-swp-ui="v1"][data-theme="dark"] tbody tr:hover td{background:rgba(255,255,255,.035)}
html[data-swp-ui="v1"][data-theme="dark"] .pending-queue{background:var(--swp-surface);border-color:var(--swp-border2)}
html[data-swp-ui="v1"][data-theme="dark"] .pending-queue-head,html[data-swp-ui="v1"][data-theme="dark"] .legend-swatch.pending{background:var(--swp-warning-soft);border-color:var(--swp-border2)}
html[data-swp-ui="v1"][data-theme="dark"] .pending-queue-title,html[data-swp-ui="v1"][data-theme="dark"] .pending-queue-total{color:var(--swp-warning)}
html[data-swp-ui="v1"][data-theme="dark"] .prod-badge{background:var(--swp-success-soft);color:var(--swp-success)}
html[data-swp-ui="v1"][data-theme="dark"] .credits-table thead th{background:var(--swp-danger-soft);color:var(--swp-danger)}
html[data-swp-ui="v1"][data-theme="dark"] .credits-table tbody tr:hover,html[data-swp-ui="v1"][data-theme="dark"] .credits-table tbody tr:hover td{background:var(--swp-danger-soft)}
html[data-swp-ui="v1"][data-theme="dark"] .badge-unarchive{background:var(--swp-action-soft);color:var(--swp-action)}
html[data-swp-ui="v1"][data-theme="dark"] .btn-scan:hover,html[data-swp-ui="v1"][data-theme="dark"] .btn-payment:hover{background:var(--swp-action-soft)}
html[data-swp-ui="v1"][data-theme="dark"] .edit-input:focus{background:var(--swp-surface)}
html[data-swp-ui="v1"][data-theme="dark"] .pending-vendor{background:#806836!important;color:#eee3ca!important;border-color:#806836!important}
html[data-swp-ui="v1"][data-theme="dark"] .table-wrap{border-color:var(--swp-border2);box-shadow:0 16px 36px rgba(7,9,11,.34)}
html[data-swp-ui="v1"][data-theme="dark"] tbody tr{background:var(--swp-surface);border-bottom-color:var(--swp-border2)}
html[data-swp-ui="v1"][data-theme="dark"] tbody tr:nth-child(even):not(.row-fin):not(.row-tops):not(.row-stacked) td{background:rgba(255,255,255,.025)}
html[data-swp-ui="v1"][data-theme="dark"] thead th{background:var(--swp-soft);color:#c7cdd4;border-bottom-color:var(--swp-border2)}
html[data-swp-ui="v1"][data-theme="dark"] .row-fin td{background:var(--swp-success-soft)}
html[data-swp-ui="v1"][data-theme="dark"] .row-tops td{background:var(--swp-info-soft)}
html[data-swp-ui="v1"][data-theme="dark"] td{color:var(--swp-text)}
html[data-swp-ui="v1"] .pending-queue{border-color:#a9bfd8}
html[data-swp-ui="v1"] .pending-queue-head,html[data-swp-ui="v1"] .legend-swatch.pending{background:var(--swp-warning-soft);border-color:#a9bfd8}
html[data-swp-ui="v1"] .pending-queue-title,html[data-swp-ui="v1"] .pending-queue-total{color:var(--swp-warning)}
html[data-swp-ui="v1"] .pending-vendor{background:#557da8!important;color:#fff!important;border-color:#557da8!important}
html[data-swp-ui="v1"] .btn-payment:hover{background:var(--swp-warning-soft)}
html[data-swp-ui="v1"] .badge-invoice,html[data-swp-ui="v1"] .badge-edit,html[data-swp-ui="v1"] .btn-payment{border-color:#a9bfd8}
/* Dark table row contrast calibration: approximately 10% lighter than pass 3. */
html[data-swp-ui="v1"][data-theme="dark"] tbody tr{background:#3d434b}
html[data-swp-ui="v1"][data-theme="dark"] tbody tr:nth-child(even):not(.row-fin):not(.row-tops):not(.row-stacked) td{background:#424951}
html[data-swp-ui="v1"][data-theme="dark"] tbody tr:hover td{background:#48505a}
html[data-swp-ui="v1"][data-theme="dark"] .row-fin td{background:rgba(121,172,137,.26)}
html[data-swp-ui="v1"][data-theme="dark"] .row-tops td{background:rgba(112,170,181,.26)}
html[data-swp-ui="v1"][data-theme="dark"] .row-stacked td{background:#3d434b}
@media print{html[data-swp-ui="v1"],html[data-swp-ui="v1"] body{color-scheme:light;background:#fff;color:#111827}html[data-swp-ui="v1"] .header{height:auto;padding:6px 0;background:#fff;box-shadow:none;backdrop-filter:none}html[data-swp-ui="v1"] .brand-mark{width:30px;height:30px;border-radius:4px;box-shadow:none}html[data-swp-ui="v1"] .brand-mark .swp-pilot-icon{width:18px;height:18px}}
