/* VertexIQ ERP design system. One stylesheet restyles every screen because all pages use Bootstrap classes.
   Fonts are the operating system's (no external font files, so the strict Content-Security-Policy stays "self" only). */

:root {
  --ink: #0f2137;            /* headings, dark surfaces */
  --ink-2: #1b3556;
  --text: #2b3a4d;
  --muted: #6b7a90;
  --line: #e4e9f1;
  --surface: #ffffff;
  --canvas: #f3f6fb;
  --brand: #2f6fdb;          /* primary action blue */
  --brand-600: #2559b8;
  --brand-50: #eaf1fe;
  --frost: #5ec8e5;          /* cold-chain accent */
  --gold: #f4b63f;
  --ok: #1f9d68;   --ok-50: #e5f6ee;
  --warn: #c98100; --warn-50: #fff3da;
  --bad: #d64545;  --bad-50: #fdeaea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 33, 55, .06), 0 1px 3px rgba(15, 33, 55, .05);
  --shadow: 0 4px 14px rgba(15, 33, 55, .08), 0 1px 3px rgba(15, 33, 55, .06);
  --shadow-lg: 0 18px 48px rgba(15, 33, 55, .22);

  /* Bootstrap variables */
  --bs-primary: var(--brand);
  --bs-primary-rgb: 47, 111, 219;
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-600);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--canvas);
  --bs-body-font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: .94rem;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
  --bs-heading-color: var(--ink);
}

html { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.01em; font-weight: 650; }
a { text-decoration: none; }
::selection { background: var(--brand-50); }
:focus-visible { outline: 3px solid rgba(47, 111, 219, .35); outline-offset: 2px; }

/* ---------------------------------------------------------------- brand */
.brand { font-weight: 750; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .55rem; }
.brand span { color: var(--brand); font-weight: 500; }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 10px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--frost), var(--brand)); box-shadow: 0 2px 10px rgba(47, 111, 219, .5); }
.brand-mark svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- application shell: dark sidebar + light work area (the familiar accounting-suite layout) */
.shell { display: flex; min-height: 100vh; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 24px 28px 48px; flex: 1; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 1.45rem; font-weight: 750; margin: 0; }

.sidebar { flex: none; width: 252px; background: linear-gradient(180deg, #14233a 0%, #0f1b2e 100%); color: #c9d4e6; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #2c3f5e transparent; z-index: 1040; display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; gap: .7rem; padding: 18px 18px 16px; font-weight: 750; font-size: 1.15rem; color: #fff; letter-spacing: -.01em; border-bottom: 1px solid rgba(255, 255, 255, .07); position: sticky; top: 0; background: #14233a; z-index: 2; }
.side-brand small { color: var(--frost); font-weight: 600; font-size: .95rem; margin-left: .1rem; }
#menu { padding: 8px 12px 28px; }
.sidebar { transition: margin-left .28s cubic-bezier(.2, .8, .2, 1), transform .28s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 992px) { body.nav-collapsed .sidebar { margin-left: -252px; box-shadow: none; } }
.icon-btn { cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.icon-btn:hover { background: var(--brand-50); border-color: #b9cdf3; color: var(--brand-600); }
.sidebar .nav-heading { display: flex; align-items: center; gap: .55rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #7b8fb0; margin: 20px 10px 6px; }
.sidebar .nav-heading svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar .nav-link { position: relative; display: block; color: #c9d4e6; border-radius: 9px; padding: 8px 12px 8px 36px; margin: 1px 0; cursor: pointer; font-weight: 500; font-size: .88rem; transition: background .15s, color .15s; }
.sidebar .nav-link::after { content: ""; position: absolute; left: 17px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #3b5278; transition: background .15s, transform .15s; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .nav-link:hover::after { background: var(--frost); }
.sidebar .nav-link.active { background: linear-gradient(90deg, rgba(47, 111, 219, .55), rgba(47, 111, 219, .22)); color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--frost); }
.sidebar .nav-link.active::after { background: #fff; transform: scale(1.3); }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 1030; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; display: grid; place-items: center; color: var(--ink); }
.icon-btn svg, .search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: .6rem; background: var(--canvas); border: 1px solid transparent; border-radius: 12px; padding: 0 12px; height: 42px; color: var(--muted); cursor: text; transition: border-color .15s, background .15s, box-shadow .15s; }
.search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 111, 219, .12); color: var(--brand); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .92rem; min-width: 0; }
.search input::placeholder { color: #8a98ad; }
.search-hint { font-size: .68rem; color: #9aa7ba; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.search:focus-within .search-hint { opacity: 1; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .25rem .9rem .25rem .3rem; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); }
.user-chip .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--frost)); }
.user-chip .who-text { line-height: 1.15; }
.user-chip .who-name { font-weight: 650; font-size: .82rem; color: var(--ink); }
.user-chip .who-role { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.top-actions .btn { border-radius: 999px; font-size: .8rem; padding: .38rem 1rem; }

/* ---------------------------------------------------------------- cards and panels */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card-body { padding: 1.15rem 1.25rem; }
.card h2.h6, .card h2.h5 { font-weight: 700; }
#customPane > .card, #customPane > .row > * > .card { transition: box-shadow .2s; }
#customPane > .card:hover { box-shadow: var(--shadow); }
.nav-tabs { border-bottom: 1px solid var(--line); gap: 4px; }
.nav-tabs .nav-link { border: 0; border-radius: 9px 9px 0 0; color: var(--muted); font-weight: 600; padding: .55rem 1rem; }
.nav-tabs .nav-link:hover { color: var(--ink); background: var(--canvas); }
.nav-tabs .nav-link.active { color: var(--brand-600); background: var(--surface); box-shadow: inset 0 -3px 0 var(--brand); }
.nav-pills .nav-link { border-radius: 999px; font-weight: 600; color: var(--muted); }
.nav-pills .nav-link.active { background: var(--brand); }

/* ---------------------------------------------------------------- tables */
.table-responsive { border-radius: var(--radius); }
.card > .table-responsive { border-radius: var(--radius); overflow: auto; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th { background: #f6f8fc; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  border-bottom: 1px solid var(--line); padding: .8rem .9rem; position: sticky; top: 0; }
.table td { vertical-align: middle; font-size: .9rem; padding: .72rem .9rem; border-color: var(--line); }
.table > :not(caption) > * > * { box-shadow: none; }
.table-hover > tbody > tr { transition: background .12s; }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: #f5f8fe; background: #f5f8fe; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .text-end { font-variant-numeric: tabular-nums; }
.table tfoot td, .table tfoot th { background: #f6f8fc; font-weight: 700; }
.table-sm td, .table-sm th { padding: .5rem .7rem; }

/* ---------------------------------------------------------------- forms */
.form-label { font-size: .78rem; font-weight: 650; color: var(--ink-2); margin-bottom: .3rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 1px solid #d3dbe8; background-color: #fff; padding: .55rem .8rem; transition: border-color .15s, box-shadow .15s; }
.form-control-sm, .form-select-sm { padding: .35rem .6rem; border-radius: 7px; }
.form-control:hover, .form-select:hover { border-color: #b7c4d8; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 111, 219, .14); }
.form-control::placeholder { color: #9aa7ba; }
.form-control[readonly], .form-control:disabled, .form-select:disabled { background: #f3f6fb; color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-group-text { background: var(--canvas); border-color: #d3dbe8; }
textarea.form-control { min-height: 84px; }

/* ---------------------------------------------------------------- buttons */
.btn { --bs-btn-border-radius: var(--radius-sm); font-weight: 600; letter-spacing: .005em; transition: transform .08s, box-shadow .15s, background-color .15s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: #1f4b9c; --bs-btn-active-border-color: #1f4b9c; --bs-btn-focus-shadow-rgb: 47, 111, 219; box-shadow: 0 1px 2px rgba(47, 111, 219, .35); }
.btn-primary:hover { box-shadow: 0 4px 12px rgba(47, 111, 219, .35); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #b9cdf3; --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-600); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-50); --bs-btn-active-color: var(--brand-600); --bs-btn-active-border-color: var(--brand); }
.btn-outline-secondary { --bs-btn-color: var(--text); --bs-btn-border-color: #cfd8e6; --bs-btn-hover-bg: var(--canvas); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #b7c4d8; }
.btn-outline-danger { --bs-btn-color: var(--bad); --bs-btn-border-color: #f0bcbc; --bs-btn-hover-bg: var(--bad); --bs-btn-hover-border-color: var(--bad); }
.btn-light { --bs-btn-bg: var(--canvas); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #e9eef6; --bs-btn-hover-border-color: #d3dbe8; }
.btn-success { --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-bg: #178657; --bs-btn-hover-border-color: #178657; }
.btn-warning { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-color: var(--ink); --bs-btn-hover-bg: #ffc85c; --bs-btn-hover-border-color: #ffc85c; --bs-btn-hover-color: var(--ink); }
.btn-danger { --bs-btn-bg: var(--bad); --bs-btn-border-color: var(--bad); --bs-btn-hover-bg: #b93636; --bs-btn-hover-border-color: #b93636; }
.btn-sm { --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .8rem; }
#addBtn { border-radius: 999px; padding: .5rem 1.2rem; box-shadow: 0 4px 12px rgba(47, 111, 219, .3); }

/* ---------------------------------------------------------------- badges and alerts */
.badge { font-weight: 650; letter-spacing: .02em; padding: .38em .7em; border-radius: 999px; font-size: .72rem; }
.badge.text-bg-success { background: var(--ok-50) !important; color: #11704a !important; }
.badge.text-bg-warning { background: var(--warn-50) !important; color: #8a5a00 !important; }
.badge.text-bg-danger { background: var(--bad-50) !important; color: #a52a2a !important; }
.badge.text-bg-secondary { background: #eceff5 !important; color: #55627a !important; }
.badge.text-bg-primary, .badge.text-bg-info { background: var(--brand-50) !important; color: var(--brand-600) !important; }
.badge-off { background: #9aa5b5; }
.alert { border: 0; border-left: 4px solid; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); font-size: .9rem; }
.alert-success { background: var(--ok-50); border-color: var(--ok); color: #11704a; }
.alert-danger { background: var(--bad-50); border-color: var(--bad); color: #8f2424; }
.alert-warning { background: var(--warn-50); border-color: var(--gold); color: #7a5200; }
.alert-info { background: var(--brand-50); border-color: var(--brand); color: #1f4b9c; }
#alert { position: sticky; top: 72px; z-index: 5; animation: slide-in .25s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- modals */
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--line); padding: 1.1rem 1.4rem; background: linear-gradient(180deg, #fbfcfe, #fff); }
.modal-title { font-weight: 700; color: var(--ink); }
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--line); background: #fbfcfe; padding: .9rem 1.4rem; }
.modal-backdrop.show { opacity: .5; background: var(--ink); }
.btn-close:focus { box-shadow: 0 0 0 4px rgba(47, 111, 219, .18); }

/* ---------------------------------------------------------------- misc components */
.text-muted { color: var(--muted) !important; }
.border-success { border-color: var(--ok) !important; } .border-warning { border-color: var(--gold) !important; } .border-danger { border-color: var(--bad) !important; }
hr { border-color: var(--line); opacity: 1; }
.list-group-item { border-color: var(--line); }
code { color: #a23b72; background: #f7eef3; padding: .1em .4em; border-radius: 5px; font-size: .85em; }
.progress { height: .6rem; border-radius: 999px; background: #e9eef6; }
.progress-bar { background: linear-gradient(90deg, var(--frost), var(--brand)); }
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.accordion-button:not(.collapsed) { background: var(--brand-50); color: var(--brand-600); }
.page-fade { animation: fade-in .25s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#customPane > *, #listCard { animation: fade-in .25s ease-out; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9d3e3; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aab8cf; background-clip: content-box; border: 2px solid transparent; }

/* ---------------------------------------------------------------- dashboard */
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; padding: 22px 26px; border-radius: 16px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 220px at 90% -20%, rgba(94, 200, 229, .5), transparent 70%), linear-gradient(120deg, #14233a 0%, #1f4b86 100%); box-shadow: var(--shadow); }
.dash-hero::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.dash-hello { color: #fff; font-size: 1.5rem; font-weight: 750; margin: 0 0 2px; }
.dash-date { color: rgba(255, 255, 255, .72); font-size: .88rem; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.dash-actions .btn { border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; }
.dash-actions .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dash-actions .btn-outline-primary { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
.dash-actions .btn-outline-primary:hover { background: rgba(255, 255, 255, .22); color: #fff; border-color: #fff; }
.dash-actions .btn-light { background: transparent; color: rgba(255, 255, 255, .8); border-color: transparent; }
.dash-actions .btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dash-actions .btn-primary { background: #fff; color: var(--brand-600); border-color: #fff; box-shadow: none; }
.dash-actions .btn-primary:hover { background: #eaf1fe; color: var(--brand-600); }

.kpi { --tone: var(--brand); --tone-bg: var(--brand-50); display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; height: 100%;
  box-shadow: var(--shadow-sm); color: inherit; transition: transform .15s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.kpi-link { cursor: pointer; }
.kpi-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfdaee; color: inherit; }
.kpi-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); }
.kpi-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi-body { min-width: 0; }
.kpi-label { font-size: .74rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { font-size: 1.6rem; font-weight: 750; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.kpi-blue { --tone: #2f6fdb; --tone-bg: #eaf1fe; } .kpi-teal { --tone: #12a5c4; --tone-bg: #e2f6fb; } .kpi-amber { --tone: #d99100; --tone-bg: #fff3da; }
.kpi-green { --tone: #1f9d68; --tone-bg: #e5f6ee; } .kpi-red { --tone: #d64545; --tone-bg: #fdeaea; } .kpi-slate { --tone: #6b7a90; --tone-bg: #eef1f6; }
.delta { font-weight: 700; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.text-bad { color: var(--bad); }

.dash-card .card-body { padding: 18px 20px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-card-head h2 { font-size: .98rem; font-weight: 700; margin: 0; }
.dash-link { font-size: .78rem; font-weight: 650; cursor: pointer; color: var(--brand); }
.dash-link:hover { color: var(--brand-600); text-decoration: underline; }
.chart { width: 100%; height: auto; display: block; }
.chart-note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.donut { width: 150px; height: 150px; flex: none; }
.legend { list-style: none; padding: 0; margin: 0; width: 100%; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .82rem; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: #ccc; }
.legend .lg-name { flex: 1; color: var(--text); } .legend .lg-val { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hbar-top { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: 5px; }
.hbar-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; }
.hbar-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar-track { height: 9px; border-radius: 999px; background: #edf1f8; overflow: hidden; }
.hbar-fill { height: 100%; width: 0; border-radius: 999px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-main { font-weight: 600; color: var(--ink); font-size: .88rem; } .mini-sub { font-size: .76rem; color: var(--muted); }
.dash-card .table thead th { position: static; }

/* ---------------------------------------------------------------- responsive */
.scrim { display: none; }
@media (min-width: 1400px) { .donut-wrap { flex-direction: row; align-items: center; } .legend { min-width: 0; } }
@media (max-width: 991px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 33, 55, .5); z-index: 1035; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 40px; }
  .user-chip .who-text, .search-hint { display: none; }
  .user-chip { padding-right: .3rem; }
}
@media (max-width: 575px) {
  #pwBtn { display: none; }
  .dash-hero { padding: 18px; } .dash-hello { font-size: 1.25rem; }
  .kpi-value { font-size: 1.3rem; } .kpi { padding: 14px; gap: 10px; } .kpi-icon { width: 38px; height: 38px; }
  .page-head h1 { font-size: 1.25rem; }
}
@media print { .topbar, .sidebar, #addBtn { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
