@media screen{:root{--brand:#0b5cad;--primary:var(--brand);--primary-strong:color-mix(in srgb,var(--brand) 78%,#10243f);--primary-soft:color-mix(in srgb,var(--brand) 17%,white);--button-bg:var(--brand);--button-hover:color-mix(in srgb,var(--brand) 80%,black);--background:#f4f8fc;--surface:#fff;--surface-alt:#f1f5f9;--surface-blue:color-mix(in srgb,var(--brand) 6%,white);--surface-hover:color-mix(in srgb,var(--brand) 12%,white);--surface-strong:#293b50;--field-surface:#fbfdff;--foreground:#14253b;--muted:#52677e;--border:#c3d2e1;--focus:var(--primary);--on-strong:#fff;--on-sidebar:#dfedfc;--sidebar-base:color-mix(in srgb,var(--brand) 46%,#081524);--sidebar-mid:color-mix(in srgb,var(--brand) 78%,#081524);--sidebar-deep:color-mix(in srgb,var(--brand) 22%,#081524);--modal-backdrop:rgb(8 18 36/65%);--danger-text:#a32631;--danger-soft:#fff0f1;--danger-solid:#a32631;--danger-border:#cf8891;--warning-text:#805009;--warning-soft:#fff7df;--warning-solid:#805009;--warning-border:#ae8a35;--success-text:#166534;--success-soft:#eaf7ef;--success-solid:#1f6a3c;--success-border:#68a67d;--info-text:#155891;--info-soft:#eaf3ff;--info-solid:#165e9c;--info-border:#78a5cd;--chart-incoming:#0b5cad;--chart-outgoing:#0d9488;--shadow:0 24px 70px rgb(8 18 36/12%);color-scheme:light}:root[data-palette=green]{--brand:#147454}:root[data-palette=burgundy]{--brand:#a12f50}:root[data-palette=graphite]{--brand:#525d70}:root[data-palette=purple]{--brand:#7045b0}:root[data-mode=dark]{color-scheme:dark;--primary:color-mix(in srgb,var(--brand) 40%,#e9f2ff);--primary-strong:color-mix(in srgb,var(--brand) 28%,#f1f6ff);--primary-soft:color-mix(in srgb,var(--brand) 26%,#172333);--background:#0d1520;--surface:#172333;--surface-alt:#1d2c3f;--surface-blue:color-mix(in srgb,var(--brand) 15%,#172333);--surface-hover:color-mix(in srgb,var(--brand) 25%,#172333);--surface-strong:#293b50;--field-surface:#101b29;--foreground:#e6edf7;--muted:#b1c0d3;--border:#65778e;--danger-text:#ffb4b4;--danger-soft:#40232a;--danger-border:#c37e89;--warning-text:#ffda8a;--warning-soft:#3d321b;--warning-border:#b5954d;--success-text:#9be6b5;--success-soft:#173929;--success-border:#75ac88;--info-text:#b1d7ff;--info-soft:#1b3550;--info-border:#7dadd7;--chart-incoming:#78b7f4;--chart-outgoing:#58d2c2;--shadow:0 24px 70px rgb(0 0 0/28%)}body{background:radial-gradient(circle at 18% 15%,color-mix(in srgb,var(--brand) 13%,transparent),transparent 40%),linear-gradient(135deg,var(--background),var(--surface-blue) 70%,var(--background))}a{color:var(--primary-strong)}input,select,textarea{accent-color:var(--primary)}select option{background:var(--surface);color:var(--foreground)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}:root[data-mode=dark] .client-balance-panel{--chart-color:#a2ceff;--chart-light:var(--surface-blue)}:root[data-mode=dark] .client-balance-panel.suppliers{--chart-color:#91ddce;--chart-light:#173832}.user-context{display:flex;align-items:center;gap:16px}.theme-user-identity{display:grid;grid-gap:3px;gap:3px}.admin-theme-toolbar,.theme-user-group{display:flex;align-items:center;gap:12px}.admin-theme-toolbar{justify-content:flex-end;margin-bottom:12px;color:var(--muted)}.theme-control{display:inline-flex;flex:0 0 auto}.theme-close,.theme-trigger{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0;width:36px;height:36px;min-height:36px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--primary-strong);cursor:pointer}.theme-close:hover,.theme-trigger:hover{background:var(--surface-hover)}.theme-popover{position:fixed;inset:90px 20px auto auto;margin:0;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 110px);overflow:auto;padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--foreground);box-shadow:var(--shadow)}.theme-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.theme-popover h2{margin:0;font-size:19px;line-height:1.3;color:var(--foreground)}.theme-popover h3{margin:20px 0 12px;font-size:14px;color:var(--foreground)}.theme-popover p{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.theme-popover .theme-close{flex-shrink:0;width:28px;height:28px;min-height:28px;font-size:23px}.theme-palettes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:5px;gap:5px}.theme-palettes button{display:grid;justify-items:center;grid-gap:7px;gap:7px;margin:0;padding:8px 2px;border:1px solid transparent;border-radius:9px;color:var(--foreground);background:transparent;font:inherit;cursor:pointer}.theme-palettes button[aria-pressed=true]{background:var(--surface-blue);border-color:var(--primary)}.theme-palettes button i{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#fff;font-size:18px;font-style:normal}.theme-popover .theme-palettes span{color:var(--foreground);font-size:10px;font-weight:600;text-transform:none}.theme-modes{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.theme-modes button{min-height:40px;margin:0;border:1px solid var(--border);border-radius:8px;color:var(--foreground);background:var(--surface);font:inherit;font-size:14px;cursor:pointer}.theme-modes button[aria-pressed=true]{border-color:var(--primary);background:var(--surface-blue);color:var(--primary-strong)}.theme-popover button:disabled{cursor:wait;opacity:.7}.theme-control button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.theme-popover p.theme-save-error{color:var(--danger-text)}.theme-popover p.theme-save-status{min-height:20px}}@media print{.admin-theme-toolbar,.theme-control{display:none!important}}@media screen and (max-width:640px){.theme-popover{top:72px;right:12px;max-height:calc(100dvh - 90px)}}@media screen{.print-button{background:var(--button-bg);color:var(--on-strong)}.print-back-button{background:var(--surface);color:var(--primary-strong)}.admin-form .m4-manual-payment-button{background:var(--surface-blue);color:var(--primary-strong)}.admin-form .m4-manual-payment-button:hover{background:var(--surface-hover)}}@media screen and (max-width:640px){.journal-header-form{grid-template-columns:minmax(0,1fr)}.journal-header-form .form-wide{grid-column:auto}.journal-balance-summary{grid-template-columns:minmax(0,1fr)}}@media screen{.employment-print,.pn-travel,.pos-receipt-page,.print-page,.tax-print{color-scheme:light;--brand:#0b5cad;--foreground:#10243f;--muted:#5d7188;--primary:#0b5cad;--primary-strong:#073f7a;--primary-soft:#cfe8ff;--button-bg:#0b5cad;--button-hover:#073f7a;--surface:#fff;--field-surface:#fbfdff;--surface-blue:#e8f4ff;--surface-alt:#f1f5f9;--surface-hover:#e8f4ff;--border:#d5e6f6;color:#10243f}}