/* Warehouse — Apple-style look: system font, quiet greys, rounded cards, one blue accent.
   Light and dark follow the device setting. */
:root {
    --bg: #F5F5F7;
    --card: #FFFFFF;
    --card-2: #FBFBFD;
    --fill: rgba(118, 118, 128, .12);
    --fill-2: rgba(118, 118, 128, .08);
    --line: rgba(0, 0, 0, .08);
    --line-strong: rgba(0, 0, 0, .16);
    --text: #1D1D1F;
    --muted: #6E6E73;
    --faint: #A1A1A6;
    --blue: #0071E3;
    --blue-hover: #0077ED;
    --blue-text: #0066CC;
    --blue-tint: rgba(0, 113, 227, .1);
    --green: #248A3D;
    --green-tint: rgba(52, 199, 89, .14);
    --orange: #C93400;
    --orange-tint: rgba(255, 149, 0, .16);
    --red: #D70015;
    --red-tint: rgba(255, 59, 48, .12);
    --glass: rgba(251, 251, 253, .8);
    --sidebar-bg: rgba(242, 242, 247, .85);
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .08);
    --radius: 18px;
    --radius-sm: 12px;
    --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    --sidebar: 252px;
    --ease: cubic-bezier(.25, .1, .25, 1);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #000000;
        --card: #1C1C1E;
        --card-2: #161617;
        --fill: rgba(118, 118, 128, .24);
        --fill-2: rgba(118, 118, 128, .16);
        --line: rgba(255, 255, 255, .1);
        --line-strong: rgba(255, 255, 255, .2);
        --text: #F5F5F7;
        --muted: #98989D;
        --faint: #6E6E73;
        --blue: #0A84FF;
        --blue-hover: #409CFF;
        --blue-text: #2997FF;
        --blue-tint: rgba(10, 132, 255, .18);
        --green: #30D158;
        --green-tint: rgba(48, 209, 88, .16);
        --orange: #FF9F0A;
        --orange-tint: rgba(255, 159, 10, .16);
        --red: #FF453A;
        --red-tint: rgba(255, 69, 58, .16);
        --glass: rgba(22, 22, 23, .8);
        --sidebar-bg: rgba(28, 28, 30, .85);
        --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
        --shadow-hover: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 32px rgba(0, 0, 0, .5);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--sans); font-size: 15px; line-height: 1.47; letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue-tint); outline-offset: 1px; box-shadow: 0 0 0 1px var(--blue); border-radius: 6px; }
::selection { background: var(--blue-tint); }
code { font-family: var(--mono); font-size: .92em; background: var(--fill-2); padding: 1px 6px; border-radius: 6px; }

/* ── Sidebar (like the macOS / Settings sidebar) ───────── */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30;
    background: var(--sidebar-bg); border-right: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    display: flex; flex-direction: column; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 14px; }
.brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(160deg, #3A3A3C, #1D1D1F); color: #fff;
    font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .02em;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2), 0 1px 3px rgba(0, 0, 0, .2);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.brand-text span { font-size: 12px; color: var(--muted); }
.sidebar nav { flex: 1; padding: 4px 10px 16px; }
.nav-group { margin-top: 16px; }
.nav-group-title { font-size: 12px; font-weight: 600; color: var(--faint); padding: 0 10px 4px; }
.nav-link {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0;
    color: var(--text); font-size: 14px; border-radius: 8px;
    transition: background-color .15s var(--ease);
}
.nav-link:hover { background: var(--fill-2); text-decoration: none; }
.nav-link svg { width: 18px; height: 18px; fill: var(--blue); flex-shrink: 0; }
.nav-link svg + span { flex: 1; }
.nav-link.active { background: var(--blue); color: #fff; font-weight: 500; }
.nav-link.active svg { fill: #fff; }
/* Process steps: numbered circles joined by a line, top to bottom. */
.nav-group.steps .nav-link { position: relative; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.nav-link .nav-step {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; margin-top: 1px;
    border: 1.5px solid var(--blue); color: var(--blue); background: var(--card);
    font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.nav-group.steps .nav-link:not(:last-of-type)::after {
    content: ''; position: absolute; left: 20.25px; top: 31px; bottom: -11px; width: 1.5px; background: var(--line-strong);
}
.nav-step-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.nav-step-text small { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.nav-link.active .nav-step { background: #fff; border-color: #fff; color: var(--blue); }
.nav-link.active .nav-step-text small { color: rgba(255, 255, 255, .8); }
.nav-group.steps .nav-badge { margin-top: 1px; background: var(--blue-tint); color: var(--blue-text); }
.nav-group.steps .nav-link.active .nav-badge { background: rgba(255, 255, 255, .25); color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-badge {
    font-size: 12px; font-weight: 600; min-width: 20px; height: 20px; line-height: 20px; text-align: center;
    padding: 0 6px; border-radius: 10px; background: var(--fill); color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.nav-badge.warn { background: var(--red); color: #fff; }
.nav-link.active .nav-badge { background: rgba(255, 255, 255, .25); color: #fff; }
.sidebar-foot { margin: 0 10px 12px; padding: 12px 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sidebar-foot .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sidebar-foot .who::before {
    content: attr(data-initial); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(160deg, #8E8E93, #636366); color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.sidebar-foot .who div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sidebar-foot .who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .who span { color: var(--muted); font-size: 12px; }
.sidebar-foot a { color: var(--blue-text); padding: 3px 0; }

.with-sidebar .page { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.no-sidebar .page { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: none; }
.nav-toggle, .nav-scrim { display: none; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); background: var(--card); }
    .nav-toggle:checked ~ .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .25); }
    .nav-toggle:checked ~ .nav-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .3); }
    .with-sidebar .page { margin-left: 0; }
    .topbar {
        display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; height: 52px; padding: 0 16px;
        background: var(--glass); border-bottom: 1px solid var(--line);
        -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    }
    .nav-open { display: flex; cursor: pointer; padding: 6px; margin-left: -6px; border-radius: 8px; }
    .nav-open svg { width: 22px; height: 22px; fill: var(--blue); }
    .topbar-title { font-weight: 600; flex: 1; text-align: center; }
    .topbar-date { font-size: 12px; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }

/* ── Page ──────────────────────────────────────────────── */
/* Fills the space beside the sidebar; only very wide screens get side margins, kept even on both sides. */
.app-main { width: 100%; max-width: 1760px; margin: 0 auto; padding: 44px 48px 64px; flex: 1; animation: rise .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.app-footer { font-size: 12px; color: var(--faint); width: calc(100% - 96px); max-width: 1664px; margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
    .app-main { padding: 24px 16px 48px; }
    .app-footer { width: calc(100% - 32px); }
}

h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; margin: 0 0 8px; }
h2 { font-family: var(--display); font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 10px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 0 0 8px; }
.subtitle { color: var(--muted); margin: 0 0 32px; font-size: 19px; line-height: 1.4; letter-spacing: -.015em; max-width: 860px; }
@media (max-width: 900px) {
    h1 { font-size: 30px; }
    .subtitle { font-size: 16px; margin-bottom: 24px; }
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head .subtitle { margin-bottom: 0; }
.panel {
    background: var(--card); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px;
    box-shadow: var(--shadow);
}
@media (max-width: 900px) { .panel { padding: 20px 18px; border-radius: 16px; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2 { flex: 1; margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.grid-2 > * { min-width: 0; }
.grid-2 > .panel { margin-bottom: 0; }
@media (max-width: 1180px) { .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Process steps on the dashboard */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.flow a {
    display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: var(--radius);
    background: var(--card); color: var(--text); box-shadow: var(--shadow); position: relative;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.flow a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.flow a::after { content: '›'; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--faint); }
.flow .step { font-size: 12px; font-weight: 600; color: var(--muted); }
.flow .n { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; }
.flow .n.zero { color: var(--faint); }
.flow .lbl { font-size: 13px; color: var(--muted); }
.flow a.hot .n { color: var(--blue); }

/* ── Forms ─────────────────────────────────────────────── */
input, select, textarea, button { font: inherit; letter-spacing: inherit; }
.scan-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-bar input[type="text"], .scan-bar input[type="search"] {
    flex: 1; min-width: 200px; font-family: var(--mono); font-size: 18px; padding: 14px 18px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); color: var(--text);
}
.scan-bar input[type="number"] { width: 96px; font-size: 18px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); color: var(--text); font-variant-numeric: tabular-nums; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
    outline: none; border-color: var(--blue) !important; box-shadow: 0 0 0 4px var(--blue-tint);
}

button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 15px; font-weight: 400; line-height: 1.2; padding: 11px 22px; border: none; border-radius: 980px;
    background: var(--blue); color: #fff; cursor: pointer; white-space: nowrap;
    transition: background-color .2s var(--ease), transform .1s var(--ease), opacity .2s;
}
button:hover, .btn:hover { background: var(--blue-hover); text-decoration: none; }
button:active, .btn:active { transform: scale(.98); }
button.secondary, .btn.secondary { background: var(--fill); color: var(--blue-text); }
button.secondary:hover, .btn.secondary:hover { background: var(--fill); filter: brightness(.96); }
button.danger, .btn.danger { background: var(--red-tint); color: var(--red); }
button.danger:hover, .btn.danger:hover { background: var(--red); color: #fff; }
button.small, .btn.small { padding: 6px 14px; font-size: 13px; }
button:disabled, button:disabled:hover { background: var(--fill); color: var(--faint); cursor: not-allowed; transform: none; }
.inline { display: inline; }

/* Fields in a row line up along their inputs, even when one label is longer. */
.stock-form .form-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; align-items: flex-end; }
.stock-form label, .field { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.stock-form .req { color: var(--red); }
.stock-form input:not([type="checkbox"]):not([type="radio"]), .stock-form select, .stock-form textarea,
.filter-row input, .filter-row select, .field input, .field select, .date-field input[type="date"] {
    font-size: 15px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background-color: var(--card); color: var(--text); min-height: 44px;
}
.stock-form textarea { min-height: 88px; resize: vertical; }
select {
    -webkit-appearance: none; appearance: none; padding-right: 36px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238E8E93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.checks { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 18px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; color: var(--text); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--blue); }

.filter-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: flex-end; }
.filter-row input[type="text"], .filter-row input[type="search"] { flex: 1; min-width: 180px; background-color: var(--fill-2); border-color: transparent; }
.date-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.date-field input[type="date"] { font-variant-numeric: tabular-nums; height: 44px; line-height: 20px; padding-top: 0; padding-bottom: 0; }
.filter-row select, .filter-row input { height: 44px; }
.filter-row button, .filter-row .btn { min-height: 44px; }

/* ── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
    text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background-color .15s var(--ease); }
tbody tr:hover td { background: var(--fill-2); }
tbody tr:last-child td { border-bottom: none; }
th:first-child, td:first-child { padding-left: 4px; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: none; background: none !important; }
td.mono, .mono { font-family: var(--mono); font-size: .92em; }
tr.done td { color: var(--muted); }
tr.low td:first-child { box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }

.status-pill {
    display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 10px;
    border-radius: 980px; white-space: nowrap; background: var(--fill); color: var(--muted);
}
.status-pending { color: var(--muted); }
.status-bound, .status-ok { color: var(--green); }
.status-pill.status-bound, .status-pill.status-ok { background: var(--green-tint); }
.status-packed { color: var(--blue-text); }
.status-pill.status-packed { background: var(--blue-tint); }
.status-awaiting { color: var(--orange); }
.status-pill.status-awaiting { background: var(--orange-tint); }
.status-dispatched { color: var(--muted); }
.status-low { color: var(--red); }
.status-pill.status-low { background: var(--red-tint); }
/* A free gift line: packed in the same box, no packing fee. */
.status-pill.status-gift { color: #A0307F; background: rgba(160, 48, 127, .12); margin-left: 6px; vertical-align: 1px; font-size: 11px; padding: 4px 8px; }
.gift-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; padding: 0 6px; cursor: pointer; }
.gift-toggle input { width: 18px; height: 18px; }

.flash {
    display: block; padding: 14px 18px 14px 46px; margin-bottom: 24px; font-size: 14px; border-radius: var(--radius-sm);
    position: relative; animation: rise .35s var(--ease);
}
.flash::before {
    position: absolute; left: 16px; top: 14px; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.flash-success { background: var(--green-tint); color: var(--text); }
.flash-success::before { content: '✓'; background: var(--green); }
.flash-error { background: var(--red-tint); color: var(--text); }
.flash-error::before { content: '!'; background: var(--red); }
.temp-pass { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.temp-pass code { font-size: 20px; background: var(--card); padding: 6px 14px; border-radius: 10px; letter-spacing: .04em; }

.awb-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.awb-header .awb-no { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.meta strong { color: var(--text); font-weight: 600; }
.progress { height: 6px; background: var(--fill); border-radius: 3px; margin: 10px 0 18px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .4s var(--ease); }
.total-charge { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; font-size: 15px; }
.total-charge strong { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.empty-state { color: var(--muted); padding: 32px 0; font-size: 15px; text-align: center; }

/* Segmented control, like Apple's */
.sub-tabs {
    display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 24px; border-radius: 10px;
    background: var(--fill); flex-wrap: wrap; max-width: 100%;
}
.sub-tabs a {
    color: var(--text); font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 8px;
    transition: background-color .2s var(--ease);
}
.sub-tabs a:hover { text-decoration: none; background: var(--fill-2); }
.sub-tabs a.active { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }

/* ── KPIs ──────────────────────────────────────────────── */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 4px 0 28px; }
.kpi-card { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.panel .kpi-card { background: var(--fill-2); box-shadow: none; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.025em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.kpi-sub { font-size: 12px; color: var(--muted); }

/* ── Sign-in ───────────────────────────────────────────── */
.auth-wrap { width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.no-sidebar .app-main { display: flex; align-items: center; justify-content: center; }
.no-sidebar .app-footer { border: none; text-align: center; }
.auth-card {
    background: var(--card); width: 100%; max-width: 420px; padding: 40px 36px 32px; border-radius: 22px;
    box-shadow: var(--shadow-hover); margin: 0 auto;
}
.auth-card .brand { flex-direction: column; text-align: center; padding: 0 0 24px; gap: 14px; }
.auth-card .brand-mark { width: 64px; height: 64px; border-radius: 15px; font-size: 20px; }
.auth-card .brand-text strong { font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.auth-card .brand-text span { font-size: 15px; margin-top: 4px; }
.auth-card .stock-form label { min-width: 0; }
.auth-card button { width: 100%; margin-top: 8px; padding: 14px 22px; font-size: 17px; }
@media (max-width: 480px) { .auth-card { padding: 32px 20px 24px; box-shadow: none; background: transparent; } }

@media print {
    body { background: #fff; color: #000; }
    .sidebar, .topbar, .nav-scrim, .app-footer, .no-print, .filter-row, button { display: none !important; }
    .with-sidebar .page { margin-left: 0; }
    .app-main { padding: 0; animation: none; }
    .panel { box-shadow: none; padding: 0; }
    tbody tr:hover td { background: none; }
}
[hidden] { display: none !important; }
