/* AuriInventory visual refresh — warm neutral + emerald */
.app-body {
    --auri-ink: #1b2721;
    --auri-muted: #6c7871;
    --auri-line: #e0e5e1;
    --auri-canvas: #f4f5f2;
    --auri-surface: #ffffff;
    --auri-brand: #0b7955;
    --auri-brand-dark: #086342;
    --auri-brand-soft: #e8f3ed;
    --auri-radius: 1.1rem;
    --auri-shadow: 0 12px 34px rgba(27, 39, 33, 0.065);
    color: var(--auri-ink);
    background: var(--auri-canvas);
    font-family: "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: color 180ms ease, background-color 180ms ease;
}

html[data-theme="dark"] .app-body {
    --auri-ink: #edf6f0;
    --auri-muted: #9dafa3;
    --auri-line: #293a31;
    --auri-canvas: #0b120e;
    --auri-surface: #121d17;
    --auri-brand: #68cfa7;
    --auri-brand-dark: #8ce1bf;
    --auri-brand-soft: #173a2b;
    --auri-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.app-body h1,
.app-body h2,
.app-body h3,
.brand strong,
.drill-row > strong {
    font-family: "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;
}

.topbar {
    border-bottom: 1px solid rgba(224, 229, 225, 0.78);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(27, 39, 33, 0.035);
}

.topbar-inner { min-height: 4.15rem; }

.brand { gap: 0.7rem; }
.brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    background: var(--auri-brand);
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.brand strong {
    color: var(--auri-ink);
    font-size: 0.98rem;
    font-weight: 680;
    letter-spacing: -0.025em;
}

.brand small { color: #829087; }

.btn-quiet {
    min-height: 2.45rem;
    padding-inline: 0.9rem;
    border-color: var(--auri-line);
    border-radius: 0.75rem;
    color: #4d5a53;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.btn-quiet:hover {
    border-color: #c6cec8;
    color: var(--auri-brand-dark);
    background: #f8faf8;
}

.theme-toggle {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    place-items: center;
    padding: 0;
    border: 1px solid var(--auri-line);
    border-radius: 0.75rem;
    color: #526158;
    background: var(--auri-surface);
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: #abc0b4;
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
    outline: 0;
}

.theme-toggle:active { transform: scale(0.94); }
.theme-icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

.hierarchy-page {
    width: min(100% - 1.15rem, 60rem);
    padding-block: clamp(1.4rem, 3vw, 2.25rem) 2.5rem;
}

.hierarchy-heading {
    margin-bottom: 1.2rem;
    padding: 0.15rem 0.2rem;
}

.eyebrow,
.hierarchy-heading .eyebrow,
.result-caption .eyebrow {
    margin-bottom: 0.42rem;
    color: var(--auri-brand);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.095em;
}

.hierarchy-heading h1,
.result-caption h1,
.history-heading h1,
.page-hero h1,
.detail-hero h1,
.barcode-hero h1 {
    color: var(--auri-ink);
    font-size: clamp(1.85rem, 4.5vw, 2.55rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.048em;
}

.hierarchy-heading > p:last-child,
.history-heading p,
.page-hero > div > p:last-child {
    margin-top: 0.55rem;
    color: var(--auri-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.surface {
    border-color: var(--auri-line);
    border-radius: var(--auri-radius);
    box-shadow: none;
}

.hierarchy-filter {
    gap: 0.65rem;
    padding: 0.72rem;
    border: 1px solid var(--auri-line);
    border-radius: 1.2rem;
    background: var(--auri-surface);
    box-shadow: var(--auri-shadow);
}

.filter-launch {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    border: 1px solid var(--auri-line);
    background: var(--auri-surface);
    box-shadow: var(--auri-shadow);
}

.filter-launch small,
.filter-launch strong { display: block; }
.filter-launch small { color: var(--auri-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.filter-launch strong { margin-top: 0.22rem; color: var(--auri-ink); font-size: 0.9rem; font-weight: 650; }

.filter-launch-button {
    min-height: 2.75rem;
    flex: 0 0 auto;
    padding-inline: 1rem;
    border: 1px solid var(--auri-line);
    border-radius: 0.78rem;
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.filter-launch-button:hover,
.filter-launch-button:focus-visible { border-color: var(--auri-brand); color: var(--auri-brand-dark); background: var(--auri-brand-soft); }

.stock-filter-dialog {
    width: min(calc(100% - 1.5rem), 34rem);
    max-width: none;
    max-height: min(90vh, 46rem);
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
    color: var(--auri-ink);
    background: transparent;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.stock-filter-dialog::backdrop { background: rgba(7, 14, 10, 0.62); backdrop-filter: blur(3px); }
.filter-dialog-card { display: flex; max-height: min(90vh, 46rem); flex-direction: column; border: 1px solid var(--auri-line); border-radius: inherit; background: var(--auri-surface); overflow: hidden; }
.filter-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.15rem 1rem; border-bottom: 1px solid var(--auri-line); }
.filter-dialog-header .eyebrow { margin-bottom: 0.28rem; }
.filter-dialog-header h2 { margin: 0; color: var(--auri-ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.035em; }
.filter-dialog-header p:last-child { margin: 0.35rem 0 0; color: var(--auri-muted); font-size: 0.82rem; }
.filter-dialog-close { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 2.35rem; place-items: center; padding: 0; border: 1px solid var(--auri-line); border-radius: 0.72rem; color: var(--auri-muted); background: transparent; font-size: 1.4rem; line-height: 1; }
.filter-dialog-close:hover,
.filter-dialog-close:focus-visible { color: var(--auri-brand-dark); background: var(--auri-brand-soft); }

.dialog-filter-form { display: grid; min-height: 0; gap: 0.85rem; padding: 1rem; overflow-y: auto; }
.dialog-filter-group { border: 1px solid var(--auri-line); border-radius: 0.95rem; background: var(--auri-canvas); overflow: hidden; }
.dialog-filter-label { display: flex; min-height: 3.25rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--auri-line); }
.dialog-filter-label span { color: var(--auri-ink); font-size: 0.86rem; font-weight: 700; }
.dialog-filter-label strong { color: var(--auri-brand-dark); font-size: 0.75rem; font-weight: 700; }
.dialog-filter-group fieldset { display: grid; max-height: 12rem; gap: 0.3rem; margin: 0; padding: 0.55rem; border: 0; overflow-y: auto; }
.dialog-filter-form .hierarchy-submit { width: 100%; }

.filter-summary-form { gap: 0.9rem; }
.filter-choice-list { display: grid; gap: 0.65rem; }

.filter-choice-card {
    display: grid;
    width: 100%;
    min-height: 4.75rem;
    grid-template-columns: 2.45rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--auri-line);
    border-radius: 0.95rem;
    color: var(--auri-ink);
    background: var(--auri-canvas);
    text-align: left;
}

.filter-choice-card:hover,
.filter-choice-card:focus-visible { border-color: var(--auri-brand); background: var(--auri-brand-soft); }
.filter-choice-icon { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: 0.75rem; color: var(--auri-brand-dark); background: var(--auri-brand-soft); }
.filter-choice-icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.filter-choice-copy { display: grid; min-width: 0; gap: 0.1rem; }
.filter-choice-copy small { color: var(--auri-muted); font-size: 0.68rem; font-weight: 720; letter-spacing: 0.04em; text-transform: uppercase; }
.filter-choice-copy strong { color: var(--auri-ink); font-size: 0.9rem; font-weight: 720; }
.filter-choice-copy > span { overflow: hidden; color: var(--auri-muted); font-size: 0.73rem; text-overflow: ellipsis; white-space: nowrap; }
.filter-choice-card > i { color: var(--auri-muted); font-size: 1.4rem; font-style: normal; }

.filter-dialog-actions { position: sticky; z-index: 2; bottom: 0; padding-top: 0.3rem; background: var(--auri-surface); }
.selection-subdialog { width: min(calc(100% - 1.5rem), 31rem); }
.selection-subdialog .filter-dialog-card { height: min(86vh, 43rem); }

.selection-dialog-tools { display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--auri-line); }
.selection-search { display: flex; min-width: 0; min-height: 2.65rem; flex: 1; align-items: center; gap: 0.55rem; padding: 0 0.7rem; border: 1px solid var(--auri-line); border-radius: 0.75rem; background: var(--auri-canvas); }
.selection-search svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: var(--auri-muted); stroke-width: 1.8; stroke-linecap: round; }
.selection-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--auri-ink); background: transparent; font-size: 0.82rem; }
.selection-dialog-tools > div { display: flex; gap: 0.25rem; }
.selection-dialog-tools button { min-height: 2.35rem; padding: 0.35rem 0.5rem; border: 0; border-radius: 0.6rem; color: var(--auri-brand-dark); background: transparent; font-size: 0.7rem; font-weight: 720; white-space: nowrap; }
.selection-dialog-tools button:hover,
.selection-dialog-tools button:focus-visible { background: var(--auri-brand-soft); }

.selection-dialog-list { display: grid; min-height: 0; flex: 1; align-content: start; gap: 0.3rem; margin: 0; padding: 0.7rem 0.85rem; border: 0; overflow-y: auto; }
.selection-dialog-list [hidden] { display: none; }
.selection-dialog-footer { padding: 0.75rem 0.9rem max(0.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--auri-line); background: var(--auri-surface); }
.selection-dialog-footer .btn { width: 100%; min-height: 3.15rem; }

.multi-picker {
    border: 0;
    border-radius: 0.85rem;
    background: #f5f7f5;
}

.multi-picker summary {
    min-height: 4.05rem;
    padding: 0.72rem 0.9rem;
}

.multi-picker summary small {
    color: #76827b;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.multi-picker summary strong {
    margin-top: 0.18rem;
    color: var(--auri-ink);
    font-size: 0.9rem;
    font-weight: 650;
}

.picker-chevron {
    color: var(--auri-brand);
    font-size: 1.15rem;
}

.multi-picker fieldset {
    gap: 0.3rem;
    border-top-color: var(--auri-line);
    background: #fff;
}

.compact-option {
    min-height: 2.75rem;
    border-radius: 0.7rem;
    font-weight: 550;
}

.compact-option:hover,
.compact-option:has(input:checked) { background: var(--auri-brand-soft); }

.stock-status-filter fieldset {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
}

.stock-status-filter .compact-option {
    min-width: 0;
    justify-content: center;
    padding-inline: 0.55rem;
}

.compact-option-radio > span { border-radius: 50%; }

.compact-option-radio input:checked + span::after {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #fff;
}

.stock-status-filter .compact-option b {
    min-width: 0;
    white-space: nowrap;
}

.hierarchy-submit,
.btn-brand {
    min-height: 3.25rem;
    border: 0;
    border-radius: 0.85rem;
    color: #fff;
    background: var(--auri-brand);
    box-shadow: 0 8px 20px rgba(11, 121, 85, 0.14);
    font-size: 0.9rem;
    font-weight: 680;
}

.hierarchy-submit:hover,
.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    background: var(--auri-brand-dark);
    box-shadow: 0 10px 24px rgba(11, 121, 85, 0.2);
}

.hierarchy-empty {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.65);
}

.hierarchy-results { margin-top: 1.55rem; }
.detail-level { margin-top: 0; }

.result-caption {
    margin-bottom: 0.78rem;
    padding-inline: 0.18rem;
}

.result-caption h2 {
    color: var(--auri-ink);
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.result-caption > span,
.page-indicator {
    padding: 0;
    color: var(--auri-muted);
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
}

.drill-panel.surface {
    display: block;
    padding: 0;
    border: 1px solid var(--auri-line);
    border-radius: var(--auri-radius);
    background: var(--auri-surface);
    box-shadow: none;
    overflow: hidden;
}

.drill-row {
    min-height: 4.25rem;
    grid-template-columns: minmax(0, 1fr) auto 1rem;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--auri-line);
    border-radius: 0;
    color: var(--auri-ink);
    background: transparent;
    box-shadow: none;
    transition: color 150ms ease, background-color 150ms ease;
}

.drill-row:last-child { border-bottom: 0; }
.drill-row:hover,
.drill-row:focus-visible {
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
    box-shadow: none;
    transform: none;
}

.drill-row > span {
    font-size: 0.93rem;
    font-weight: 600;
}

.drill-row > .barcode-row-main {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem 0.5rem;
    overflow-wrap: anywhere;
}

.barcode-reserved-badge {
    display: inline-flex;
    min-height: 1.35rem;
    align-items: center;
    padding: 0.16rem 0.45rem;
    border: 1px solid #f3c66c;
    border-radius: 999px;
    color: #7b4308;
    background: #fff3d3;
    font-size: 0.62rem;
    font-weight: 780;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.barcode-result-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 0.55rem; }
.barcode-result-actions > span { padding: 0.35rem 0.6rem; border-radius: 999px; color: var(--auri-muted); background: #eaf0ec; font-size: 0.72rem; font-weight: 750; }
.bulk-action-trigger { min-height: 2.3rem; padding: 0.4rem 0.7rem; border: 1px solid var(--auri-brand); border-radius: 0.7rem; color: var(--auri-brand-dark); background: var(--auri-brand-soft); font-size: 0.72rem; font-weight: 760; }
.bulk-action-trigger:hover,
.bulk-action-trigger:focus-visible { color: #fff; background: var(--auri-brand); }

.bulk-reservation-form { display: none; }
.bulk-selection-active .drill-panel[data-bulk-normal-panel] { display: none; }
.bulk-selection-active .bulk-reservation-form { display: block; }
.bulk-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; padding-inline: 0.2rem; }
.bulk-selection-heading .eyebrow { margin-bottom: 0.12rem; }
.bulk-selection-heading h2 { margin: 0; font-size: 1.15rem; font-weight: 720; letter-spacing: -0.025em; }
.bulk-selection-heading button { min-height: 2.3rem; padding: 0.4rem 0.7rem; border: 1px solid var(--auri-line); border-radius: 0.7rem; color: var(--auri-muted); background: var(--auri-surface); font-size: 0.72rem; font-weight: 720; }

.bulk-selection-panel { padding-inline: 0; }
.bulk-select-row { position: relative; grid-template-columns: 1.2rem minmax(0, 1fr) auto; cursor: pointer; }
.bulk-select-row[hidden] { display: none; }
.bulk-select-row > input { position: absolute; opacity: 0; pointer-events: none; }
.bulk-checkbox-mark { display: grid; width: 1.2rem; height: 1.2rem; place-items: center; border: 2px solid #8ca397; border-radius: 0.35rem; background: var(--auri-surface); }
.bulk-select-row > input:checked + .bulk-checkbox-mark { border-color: var(--auri-brand); background: var(--auri-brand); }
.bulk-select-row > input:checked + .bulk-checkbox-mark::after { content: "✓"; color: #fff; font-size: 0.72rem; font-weight: 900; }
.bulk-select-row:has(input:focus-visible) { outline: 2px solid var(--auri-brand); outline-offset: -2px; }
.bulk-select-row > strong { color: var(--auri-ink); font-size: 0.93rem; }

.bulk-selection-bar { position: fixed; z-index: 45; right: 0.75rem; bottom: calc(4.8rem + env(safe-area-inset-bottom)); left: 0.75rem; display: grid; max-width: 34rem; min-height: 4.4rem; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.55rem; margin-inline: auto; padding: 0.65rem; border: 1px solid var(--auri-line); border-radius: 1rem; background: color-mix(in srgb, var(--auri-surface) 94%, transparent); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2); backdrop-filter: blur(12px); }
.bulk-selection-bar > div { display: grid; min-width: 0; }
.bulk-selection-bar > div strong { color: var(--auri-ink); font-size: 0.78rem; }
.bulk-selection-bar > div span { color: var(--auri-muted); font-size: 0.68rem; }
.bulk-select-all { min-height: 2.7rem; padding: 0.45rem 0.55rem; border: 0; border-radius: 0.7rem; color: var(--auri-brand-dark); background: var(--auri-brand-soft); font-size: 0.68rem; font-weight: 740; }
.bulk-review-button { min-height: 2.7rem; padding-inline: 0.75rem; font-size: 0.75rem; }

.bulk-action-options { display: grid; gap: 0.65rem; padding: 0.9rem; }
.bulk-action-options > button { display: grid; min-height: 4.7rem; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--auri-line); border-radius: 0.9rem; color: var(--auri-ink); background: var(--auri-canvas); text-align: left; }
.bulk-action-options > button:not(:disabled):hover,
.bulk-action-options > button:not(:disabled):focus-visible { border-color: var(--auri-brand); background: var(--auri-brand-soft); }
.bulk-action-options > button:disabled { opacity: 0.45; cursor: not-allowed; }
.bulk-action-options > button > span:nth-child(2) { display: grid; gap: 0.12rem; }
.bulk-action-options strong { font-size: 0.88rem; }
.bulk-action-options small { color: var(--auri-muted); font-size: 0.7rem; }
.bulk-action-options i { color: var(--auri-muted); font-size: 1.3rem; font-style: normal; }
.bulk-action-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 0.75rem; color: #fff; background: var(--auri-brand); font-size: 1.25rem; }
.bulk-action-icon-release { color: #7b4308; background: #fff3d3; }

.bulk-confirm-summary { display: grid; gap: 0.2rem; margin: 0.9rem; padding: 0.9rem; border: 1px solid var(--auri-line); border-radius: 0.85rem; background: var(--auri-canvas); }
.bulk-confirm-summary span { color: var(--auri-muted); font-size: 0.74rem; }
.bulk-confirm-summary strong { font-size: 1rem; }
.bulk-confirm-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0.6rem; padding: 0 0.9rem 0.9rem; }
.bulk-confirm-actions .btn { min-height: 3rem; }
.bulk-confirm-cancel { border: 1px solid var(--auri-line); color: var(--auri-muted); background: var(--auri-surface); }

.drill-row > strong {
    color: #27342d;
    font-size: 0.96rem;
    font-weight: 680;
}

.drill-row > i {
    color: #93a099;
    font-size: 1.25rem;
}

.hierarchy-back {
    display: inline-flex;
    width: auto;
    min-height: 2.65rem;
    margin-bottom: 0.9rem;
    padding: 0.55rem 0.82rem 0.55rem 0.68rem;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid var(--auri-line);
    border-radius: 0.82rem;
    color: var(--auri-brand-dark);
    background: var(--auri-surface);
    font-size: 0.8rem;
    font-weight: 720;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(27, 39, 33, 0.04);
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hierarchy-back svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hierarchy-back:hover,
.hierarchy-back:focus-visible {
    border-color: #9fd8be;
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
    box-shadow: 0 5px 14px rgba(17, 91, 59, 0.1);
    transform: translateX(-2px);
}

.hierarchy-back:active {
    transform: scale(0.97);
}

.app-bottom-nav {
    padding: 0 max(0.4rem, env(safe-area-inset-right)) max(0.25rem, env(safe-area-inset-bottom));
    border-top-color: var(--auri-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 30px rgba(27, 39, 33, 0.055);
}

.bottom-nav-inner a {
    position: relative;
    min-height: 4.5rem;
    gap: 0.22rem;
    border-right-color: #edf0ed;
    color: #78847d;
    font-size: 0.69rem;
    font-weight: 600;
}

.bottom-nav-inner a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 22%;
    left: 22%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: transparent;
}

.bottom-nav-inner a.active { color: var(--auri-brand); }
.bottom-nav-inner a.active::before { background: var(--auri-brand); }
.bottom-nav-inner svg { width: 1.35rem; height: 1.35rem; stroke-width: 1.7; }

.detail-hero,
.barcode-hero,
.history-heading {
    border-color: var(--auri-line);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--auri-shadow);
}

.detail-hero::after,
.barcode-hero::after { display: none; }

.barcode-code {
    border-color: #cbd4ce;
    border-radius: 0.72rem;
    color: #3c4a42;
    background: #f5f7f5;
    font-weight: 650;
}

.hero-meta { color: var(--auri-muted); }
.status-success { color: #0a6a48; background: #e3f4eb; }

.weight-grid { gap: 0.7rem; }
.weight-card {
    border-color: var(--auri-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: none;
}

.weight-card span { color: var(--auri-muted); }
.weight-card strong { color: var(--auri-ink); font-size: 1.8rem; font-weight: 720; }
.weight-primary { border-color: var(--auri-brand); color: #fff; background: var(--auri-brand); }
.weight-primary span,
.weight-primary strong,
.weight-primary small { color: #fff; }

.spec-grid {
    border-radius: 1rem;
    box-shadow: none;
}

.spec-grid > div { border-color: #edf0ed; }
.spec-grid dt { color: var(--auri-muted); }
.spec-grid dd { color: var(--auri-ink); font-weight: 600; }

.spec-grid > .spec-measure { background: #f8fbf9; }
.spec-grid > .spec-measure-primary { background: var(--auri-brand-soft); }
.spec-measure dd {
    display: flex;
    align-items: baseline;
    gap: 0.32rem;
}
.spec-measure dd span { font-size: 1.08rem; font-weight: 720; }
.spec-measure dd small { color: var(--auri-muted); font-size: 0.7rem; font-weight: 550; }

.history-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
}

.history-heading .eyebrow { margin: 0 0 0.32rem; }
.history-heading h1 { font-size: clamp(1.55rem, 4.5vw, 2.15rem); }
.history-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.48rem;
    margin-top: 0.68rem;
    color: var(--auri-muted);
    font-size: 0.78rem;
}

.history-current {
    min-width: 7.3rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid #cce5d8;
    border-radius: 0.9rem;
    color: var(--auri-ink);
    background: var(--auri-brand-soft);
    text-align: left;
}

.history-current span,
.history-current strong,
.history-current small { display: block; }
.history-current span { color: var(--auri-muted); font-size: 0.68rem; font-weight: 650; }
.history-current strong { margin-top: 0.14rem; color: var(--auri-brand-dark); font-size: 1.5rem; line-height: 1; }
.history-current small { margin-top: 0.25rem; color: var(--auri-muted); font-size: 0.68rem; }

.barcode-heading { display: grid; }
.barcode-heading-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.48rem;
    margin-top: 0.72rem;
}

.barcode-heading .barcode-code {
    margin: 0;
    padding: 0.38rem 0.58rem;
    font-size: 0.78rem;
    line-height: 1;
}

.barcode-heading .warehouse-chip,
.barcode-heading .status-badge { min-height: 1.9rem; display: inline-flex; align-items: center; }

.reservation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding: 0.8rem 0.9rem;
}
.reservation-copy { display: flex; min-width: 0; align-items: center; gap: 0.72rem; }
.reservation-copy .eyebrow { margin-bottom: 0.16rem; font-size: 0.62rem; }
.reservation-copy strong,
.reservation-copy small { display: block; }
.reservation-copy strong { color: var(--auri-ink); font-size: 0.9rem; }
.reservation-copy small { margin-top: 0.16rem; color: var(--auri-muted); font-size: 0.7rem; }
.reservation-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    place-items: center;
    border-radius: 0.78rem;
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
}
.reservation-icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reservation-form { margin: 0; }
.reservation-button {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.82rem;
    font-size: 0.8rem;
    font-weight: 720;
    white-space: nowrap;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.reservation-button:hover:not(:disabled),
.reservation-button:focus-visible:not(:disabled) { transform: translateY(-1px); }
.reservation-button:disabled { cursor: not-allowed; opacity: 0.5; }
.reservation-button-reserve { color: #fff; background: var(--auri-brand); }
.reservation-button-reserve:hover:not(:disabled),
.reservation-button-reserve:focus-visible:not(:disabled) { background: #086342; }
.reservation-button-release { border-color: #d5a95e; color: #80510b; background: #fff8e8; }
.reservation-button-release:hover:not(:disabled),
.reservation-button-release:focus-visible:not(:disabled) { border-color: #bc812a; background: #ffefcb; }

.detail-history-action { margin-top: 1rem; }
.history-action-card {
    display: grid;
    min-height: 4.5rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid #bfe2d2;
    border-radius: 1rem;
    color: var(--auri-ink);
    background: linear-gradient(135deg, var(--auri-brand-soft), var(--auri-surface));
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(17, 91, 59, 0.08);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.history-action-card:hover,
.history-action-card:focus-visible { border-color: var(--auri-brand); color: var(--auri-ink); transform: translateY(-1px); box-shadow: 0 11px 28px rgba(17, 91, 59, 0.13); }
.history-action-icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 0.82rem;
    color: #fff;
    background: var(--auri-brand);
}
.history-action-icon svg,
.history-filter-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.history-action-copy strong,
.history-action-copy small { display: block; }
.history-action-copy strong { font-size: 0.92rem; font-weight: 720; }
.history-action-copy small { margin-top: 0.18rem; color: var(--auri-muted); font-size: 0.72rem; }
.history-action-chevron { color: var(--auri-brand-dark); font-size: 1.45rem; line-height: 1; }

.history-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 1.45rem 0 0.7rem;
    padding-inline: 0.15rem;
}
.history-section-heading .eyebrow { margin-bottom: 0.2rem; }
.history-section-heading h2 { margin: 0; color: var(--auri-ink); font-size: 1.28rem; font-weight: 720; letter-spacing: -0.035em; }
.history-count-badge {
    padding: 0.38rem 0.58rem;
    border-radius: 999px;
    color: var(--auri-muted);
    background: var(--auri-brand-soft);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.history-filter-launch {
    display: flex;
    min-height: 4.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.72rem 0.75rem;
    border-color: var(--auri-line);
    border-radius: 1rem;
    background: var(--auri-surface);
}
.history-filter-summary { display: flex; min-width: 0; align-items: center; gap: 0.65rem; }
.history-filter-summary > div { min-width: 0; }
.history-filter-summary small,
.history-filter-summary strong { display: block; }
.history-filter-summary small { color: var(--auri-muted); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.055em; text-transform: uppercase; }
.history-filter-summary strong { margin-top: 0.16rem; overflow: hidden; color: var(--auri-ink); font-size: 0.78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.history-filter-icon { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border-radius: 0.7rem; color: var(--auri-brand-dark); background: var(--auri-brand-soft); }
.history-dialog-fields { display: grid; gap: 0.75rem; }
.history-dialog-form .filter-note { margin: 0; }
.history-dialog-form .hierarchy-submit { width: 100%; min-height: 3.2rem; }

.stock-movement-list { display: grid; gap: 0.72rem; margin-top: 0.85rem; }
.stock-movement-card {
    padding: 0.9rem;
    border-color: var(--auri-line);
    border-radius: 1rem;
    background: var(--auri-surface);
    box-shadow: 0 5px 18px rgba(27, 39, 33, 0.045);
}
.movement-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.65rem; }
.movement-card-header strong,
.movement-card-header div > span { display: block; }
.movement-card-header strong { color: var(--auri-ink); font-size: 0.86rem; font-weight: 720; }
.movement-card-header div > span { margin-top: 0.18rem; color: var(--auri-muted); font-size: 0.7rem; }
.movement-description { margin: 0.72rem 0 0; color: var(--auri-ink); font-size: 0.84rem; font-weight: 620; overflow-wrap: anywhere; }
.movement-card-meta { display: flex; margin-top: 0.55rem; }
.movement-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.75rem; }
.movement-amount { padding: 0.65rem 0.7rem; border: 1px solid transparent; border-radius: 0.75rem; }
.movement-amount span,
.movement-amount strong { display: block; }
.movement-amount span { font-size: 0.66rem; font-weight: 650; }
.movement-amount strong { margin-top: 0.15rem; font-size: 1rem; font-weight: 760; }
.movement-amount b { font: inherit; }
.movement-in { border-color: #cce9db; color: #08734e; background: #edf8f2; }
.movement-out { border-color: #f0d2ce; color: #a43b31; background: #fff4f2; }

.pagination-bar { margin-top: 0.9rem; }

.search-filter-launch > div { min-width: 0; }
.search-filter-launch > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-dialog-field { padding: 0.7rem; }
.search-dialog-field .form-control,
.search-dialog-field .form-select { border-color: var(--auri-line); border-radius: 0.78rem; background-color: var(--auri-surface); font-size: 0.9rem; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; z-index: 1; top: 50%; left: 0.85rem; width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--auri-muted); stroke-width: 1.8; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.search-input-wrap .form-control { padding-left: 2.55rem; }
.search-empty-state { margin-top: 1rem; }
.search-results { margin-top: 1.55rem; }
.search-result-row { grid-template-columns: minmax(0, 1fr) auto 1rem; }
.drill-row > .search-result-main { min-width: 0; font-size: inherit; font-weight: inherit; }
.search-result-main > strong,
.search-result-main > small { display: block; }
.search-result-main > strong { overflow-wrap: anywhere; color: var(--auri-ink); font-size: 0.9rem; font-weight: 680; line-height: 1.28; }
.search-result-main > small { margin-top: 0.3rem; overflow-wrap: anywhere; color: var(--auri-muted); font-size: 0.67rem; font-weight: 520; line-height: 1.35; }
.search-result-main > small b { color: var(--auri-muted); font-weight: 680; }
.drill-row > .search-result-stock { display: block; color: var(--auri-ink); font-size: inherit; font-weight: inherit; text-align: right; }
.search-result-stock > strong,
.search-result-stock > small { display: block; }
.search-result-stock > strong { font-size: 0.94rem; font-weight: 730; font-variant-numeric: tabular-nums; }
.search-result-stock > small { margin-top: 0.2rem; color: var(--auri-muted); font-size: 0.65rem; font-weight: 600; }
.search-result-warning { background: #fff8f6; }

.item-summary-heading { align-items: stretch; }
.item-summary-heading > div:first-child { min-width: 0; }
.item-summary-description {
    margin: 0.48rem 0 0;
    overflow-wrap: anywhere;
    color: var(--auri-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}
.item-summary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.72rem;
}
.item-code-pill {
    display: inline-flex;
    min-height: 1.9rem;
    align-items: center;
    max-width: 100%;
    padding: 0.38rem 0.58rem;
    overflow-wrap: anywhere;
    border: 1px solid #cbd4ce;
    border-radius: 0.68rem;
    color: #3c4a42;
    background: #f5f7f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 680;
    line-height: 1;
}
.item-barcode-section { margin-top: 0; }
.item-filter-launch { margin-bottom: 0.8rem; }
.item-barcode-panel { margin-top: 0; }
.item-barcode-row { min-height: 4.7rem; }
.item-empty-state { margin-top: 0.8rem; }

.history-row {
    border-color: var(--auri-line);
    border-radius: 1rem;
    background: #fff;
}

.filter-surface {
    border-color: var(--auri-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: none;
}

.field .form-control,
.field .form-select {
    border-color: var(--auri-line);
    border-radius: 0.8rem;
    background-color: #f7f8f6;
}

html[data-theme="dark"] .topbar {
    border-bottom-color: rgba(50, 71, 59, 0.9);
    background: rgba(16, 26, 20, 0.95);
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .filter-launch,
html[data-theme="dark"] .history-filter-launch,
html[data-theme="dark"] .filter-dialog-card { border-color: var(--auri-line); background: var(--auri-surface); }
html[data-theme="dark"] .item-code-pill { border-color: #355142; color: #c5d4ca; background: #0e1812; }
html[data-theme="dark"] .filter-launch-button { border-color: #355142; color: var(--auri-brand-dark); background: var(--auri-brand-soft); }
html[data-theme="dark"] .filter-dialog-close { border-color: var(--auri-line); color: #b4c4ba; }
html[data-theme="dark"] .dialog-filter-group { border-color: var(--auri-line); background: #0e1812; }
html[data-theme="dark"] .dialog-filter-label { border-bottom-color: var(--auri-line); }

html[data-theme="dark"] .brand small { color: #899b90; }

html[data-theme="dark"] .btn-quiet,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .hierarchy-back {
    border-color: var(--auri-line);
    color: #c2d1c7;
    background: #15221a;
}

html[data-theme="dark"] .btn-quiet:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
    border-color: #456453;
    color: var(--auri-brand-dark);
    background: #1a2c21;
}

html[data-theme="dark"] .hierarchy-back:hover,
html[data-theme="dark"] .hierarchy-back:focus-visible {
    border-color: #456453;
    color: var(--auri-brand-dark);
    background: #1a2c21;
}

html[data-theme="dark"] .user-pill,
html[data-theme="dark"] .warehouse-chip,
html[data-theme="dark"] .page-indicator {
    color: #c7d5cc;
    background: #1a2a21;
}

html[data-theme="dark"] .hierarchy-filter,
html[data-theme="dark"] .multi-picker fieldset,
html[data-theme="dark"] .detail-hero,
html[data-theme="dark"] .barcode-hero,
html[data-theme="dark"] .history-heading,
html[data-theme="dark"] .weight-card,
html[data-theme="dark"] .spec-grid,
html[data-theme="dark"] .history-row,
html[data-theme="dark"] .filter-surface,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .warehouse-option,
html[data-theme="dark"] .item-card,
html[data-theme="dark"] .barcode-card,
html[data-theme="dark"] .movement-card,
html[data-theme="dark"] .position-card,
html[data-theme="dark"] .quick-search-intro,
html[data-theme="dark"] .empty-state {
    border-color: var(--auri-line);
    background: var(--auri-surface);
}

html[data-theme="dark"] .multi-picker,
html[data-theme="dark"] .field .form-control,
html[data-theme="dark"] .field .form-select,
html[data-theme="dark"] .barcode-code,
html[data-theme="dark"] .item-stock-line > div,
html[data-theme="dark"] .movement-values span {
    border-color: var(--auri-line);
    color: var(--auri-ink);
    background-color: #0e1812;
}

html[data-theme="dark"] .multi-picker fieldset { background: #101b15; }
html[data-theme="dark"] .filter-choice-card,
html[data-theme="dark"] .selection-search { border-color: var(--auri-line); background: #0e1812; }
html[data-theme="dark"] .filter-choice-card:hover,
html[data-theme="dark"] .filter-choice-card:focus-visible { border-color: var(--auri-brand); background: var(--auri-brand-soft); }
html[data-theme="dark"] .compact-option > span,
html[data-theme="dark"] .warehouse-option-mark { border-color: #5c7466; background: #0e1812; }

html[data-theme="dark"] .compact-option:hover,
html[data-theme="dark"] .compact-option:has(input:checked),
html[data-theme="dark"] .warehouse-option:has(input:checked) { background: var(--auri-brand-soft); }

html[data-theme="dark"] .hierarchy-empty { background: rgba(18, 29, 23, 0.75); }

html[data-theme="dark"] .drill-row {
    color: var(--auri-ink);
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .drill-row:last-child { border-bottom: 0; }
html[data-theme="dark"] .drill-row:hover,
html[data-theme="dark"] .drill-row:focus-visible {
    color: var(--auri-brand-dark);
    background: #17261d;
    box-shadow: none;
}

html[data-theme="dark"] .drill-row > strong { color: #f4faf6; }
html[data-theme="dark"] .drill-row > i { color: #819489; }
html[data-theme="dark"] .barcode-reserved-badge {
    border-color: #805c22;
    color: #ffd58a;
    background: #3b2a0d;
}
html[data-theme="dark"] .barcode-result-actions > span,
html[data-theme="dark"] .bulk-selection-heading button,
html[data-theme="dark"] .bulk-checkbox-mark,
html[data-theme="dark"] .bulk-selection-bar,
html[data-theme="dark"] .bulk-confirm-cancel { border-color: var(--auri-line); color: var(--auri-ink); background: #101b15; }
html[data-theme="dark"] .bulk-action-options > button,
html[data-theme="dark"] .bulk-confirm-summary { border-color: var(--auri-line); background: #0e1812; }
html[data-theme="dark"] .bulk-action-icon-release { color: #ffd58a; background: #3b2a0d; }
html[data-theme="dark"] .spec-grid > .spec-measure { background: #101b15; }
html[data-theme="dark"] .spec-grid > .spec-measure-primary { background: var(--auri-brand-soft); }
html[data-theme="dark"] .history-current { border-color: #355142; background: var(--auri-brand-soft); }
html[data-theme="dark"] .history-action-card { border-color: #355142; color: var(--auri-ink); background: linear-gradient(135deg, #173a2b, var(--auri-surface)); box-shadow: none; }
html[data-theme="dark"] .history-action-icon { color: #082116; background: var(--auri-brand); }
html[data-theme="dark"] .reservation-panel { border-color: var(--auri-line); background: var(--auri-surface); }
html[data-theme="dark"] .reservation-button-reserve { color: #082116; background: var(--auri-brand); }
html[data-theme="dark"] .reservation-button-release { border-color: #70552a; color: #f4d493; background: #2a2113; }
html[data-theme="dark"] .history-count-badge,
html[data-theme="dark"] .history-filter-icon { color: var(--auri-brand-dark); background: var(--auri-brand-soft); }
html[data-theme="dark"] .stock-movement-card { border-color: var(--auri-line); background: var(--auri-surface); box-shadow: none; }
html[data-theme="dark"] .movement-in { border-color: #28533f; color: #9be7c3; background: #10271b; }
html[data-theme="dark"] .movement-out { border-color: #5a342f; color: #ffbbb2; background: #281917; }
html[data-theme="dark"] .search-dialog-field .form-control,
html[data-theme="dark"] .search-dialog-field .form-select { border-color: var(--auri-line); color: var(--auri-ink); background-color: #0e1812; }
html[data-theme="dark"] .search-result-warning { background: #271a18; }
html[data-theme="dark"] .app-bottom-nav {
    border-top-color: var(--auri-line);
    background: rgba(16, 26, 20, 0.97);
    box-shadow: 0 -9px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .bottom-nav-inner a { border-right-color: #23352b; color: #91a399; }
html[data-theme="dark"] .bottom-nav-inner a.active { color: var(--auri-brand); }
html[data-theme="dark"] .spec-grid > div { border-color: var(--auri-line); }

html[data-theme="dark"] .data-table th { color: #9fb1a6; background: #101b15; }
html[data-theme="dark"] .data-table td { border-top-color: var(--auri-line); }
html[data-theme="dark"] .data-table tbody tr:hover { background: #17261d; }
html[data-theme="dark"] .data-table .row-warning,
html[data-theme="dark"] .item-card-warning { border-color: #6b3d37; background: #271a18; }
html[data-theme="dark"] .data-table .row-muted { color: #829188; background: #111913; }

html[data-theme="dark"] .btn-outline-brand,
html[data-theme="dark"] .btn-page { border-color: #496456; color: var(--auri-brand-dark); background: transparent; }
html[data-theme="dark"] .btn-outline-brand:hover { color: #092017; background: var(--auri-brand); }

html[data-theme="dark"] .notice-danger { border-color: #76413b; color: #ffc5bd; background: #2a1917; }
html[data-theme="dark"] .notice-warning { border-color: #765b2e; color: #ffdda1; background: #281f12; }
html[data-theme="dark"] .notice-success { border-color: #285e45; color: #a5e8c8; background: #10251a; }

html[data-theme="dark"] .status-success { color: #9be7c3; background: #17402d; }
html[data-theme="dark"] .status-warning { color: #f8d28b; background: #493815; }
html[data-theme="dark"] .status-danger { color: #ffbbb2; background: #4b211d; }
html[data-theme="dark"] .status-muted { color: #b7c3bc; background: #2a3630; }

html[data-theme="dark"] select option { color: var(--auri-ink); background: #101b15; }

.stock-export-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding: 0.9rem;
}

.stock-export-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

.stock-export-heading > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.stock-export-heading small,
.stock-export-button small {
    color: var(--auri-muted);
    font-size: 0.7rem;
}

.stock-export-heading strong {
    font-size: 0.9rem;
    font-weight: 680;
}

.stock-export-symbol {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    place-items: center;
    border-radius: 0.72rem;
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
}

.stock-export-symbol svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stock-export-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.55rem;
}

.stock-export-button {
    display: grid;
    min-width: 10.5rem;
    min-height: 3rem;
    align-content: center;
    gap: 0.05rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--auri-line);
    border-radius: 0.78rem;
    color: var(--auri-ink);
    background: var(--auri-surface);
    text-decoration: none;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.stock-export-button span {
    font-size: 0.8rem;
    font-weight: 700;
}

.stock-export-button:hover,
.stock-export-button:focus-visible {
    border-color: var(--auri-brand);
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
    outline: 0;
}

.stock-export-button:active { transform: scale(0.98); }

.stock-export-button-primary {
    border-color: var(--auri-brand);
    color: #fff;
    background: var(--auri-brand);
}

.stock-export-button-primary small { color: rgba(255, 255, 255, 0.75); }
.stock-export-button-primary:hover,
.stock-export-button-primary:focus-visible {
    border-color: var(--auri-brand-dark);
    color: #fff;
    background: var(--auri-brand-dark);
}

html[data-theme="dark"] .stock-export-panel,
html[data-theme="dark"] .stock-export-button {
    border-color: var(--auri-line);
    background: var(--auri-surface);
}

html[data-theme="dark"] .stock-export-symbol {
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
}

html[data-theme="dark"] .stock-export-button-primary {
    border-color: var(--auri-brand);
    color: #082116;
    background: var(--auri-brand);
}

html[data-theme="dark"] .stock-export-button-primary small { color: rgba(8, 33, 22, 0.7); }

@media (max-width: 767.98px) {
    .stock-export-panel {
        display: grid;
        align-items: stretch;
    }

    .stock-export-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-export-button { min-width: 0; }
}

@media (max-width: 420px) {
    .stock-export-actions { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
    .hierarchy-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        align-items: stretch;
        padding: 0.75rem;
    }
    .hierarchy-submit { min-width: 10.5rem; }
    .drill-panel.surface { display: block; }
}

@media (max-width: 575.98px) {
    .app-body { font-size: 14px; }
    .topbar-inner { min-height: 3.9rem; }
    .hierarchy-page { width: min(100% - 1rem, 60rem); padding-top: 1.35rem; }
    .hierarchy-heading h1,
    .result-caption h1,
    .history-heading h1,
    .page-hero h1,
    .detail-hero h1,
    .barcode-hero h1 { font-size: 1.82rem; }
    .hierarchy-filter { padding: 0.65rem; }
    .filter-launch { min-height: 4.15rem; padding: 0.72rem 0.72rem 0.72rem 0.85rem; }
    .filter-launch-button { min-height: 2.55rem; padding-inline: 0.8rem; }
    .stock-filter-dialog { width: 100%; max-height: min(92vh, 46rem); margin: auto 0 0; border-radius: 1.2rem 1.2rem 0 0; }
    .filter-dialog-card { max-height: min(92vh, 46rem); border-right: 0; border-bottom: 0; border-left: 0; }
    .filter-dialog-header { padding: 1rem; }
    .dialog-filter-form { padding: 0.85rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
    .multi-picker summary { min-height: 3.85rem; }
    .drill-row { min-height: 4rem; padding: 0.82rem 0.9rem; }
    .detail-hero,
    .barcode-hero { padding: 3.1rem 1.05rem 1.25rem; }
    .weight-card { padding: 1rem; }
    .history-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .history-current { min-width: 6.7rem; }
    .reservation-panel { grid-template-columns: 1fr; }
    .reservation-form,
    .reservation-button { width: 100%; }
    .result-caption:has(.barcode-result-actions) { align-items: flex-start; flex-direction: column; }
    .barcode-result-actions { width: 100%; justify-content: space-between; }
    .bulk-selection-bar { right: 0.45rem; left: 0.45rem; gap: 0.4rem; padding: 0.55rem; }
    .bulk-select-all { padding-inline: 0.45rem; }
}

/* Login — focused, mobile-first entry screen */
body.app-body.login-body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: var(--auri-canvas);
}
.login-theme-toggle {
    position: fixed;
    z-index: 10;
    top: 1rem;
    right: 1rem;
    border-color: rgba(224, 229, 225, 0.7);
    box-shadow: 0 7px 22px rgba(15, 31, 22, 0.1);
}
.login-stage {
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(22rem, 0.85fr) minmax(30rem, 1.15fr);
}
.login-story {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(2rem, 5vw, 4.25rem);
    overflow: hidden;
    background: radial-gradient(circle at 88% 17%, rgba(104, 207, 167, 0.25), transparent 24rem), radial-gradient(circle at 20% 90%, rgba(104, 207, 167, 0.09), transparent 22rem), #101b15;
}
.login-story::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -8rem;
    bottom: -8rem;
    width: 23rem;
    height: 23rem;
    border: 1px solid rgba(104, 207, 167, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 3.5rem rgba(104, 207, 167, 0.025), 0 0 0 7rem rgba(104, 207, 167, 0.018);
}
.login-story .login-brand strong { color: #f1f8f4; }
.login-story .login-brand small { color: #93a99c; }
.login-story .brand-mark { color: #0d2a1d; background: #72d3ad; }
.login-story-copy { margin-block: auto; padding-block: 3rem; }
.login-story-copy .eyebrow { color: #72d3ad; }
.login-story-copy h1 {
    max-width: 11ch;
    margin: 0;
    color: #f2f8f4;
    font-size: clamp(2.6rem, 4.4vw, 4.25rem);
    font-weight: 720;
    line-height: 0.98;
    letter-spacing: -0.06em;
}
.login-story-copy > p:last-child {
    max-width: 34rem;
    margin: 1.45rem 0 0;
    color: #a9bbb0;
    font-size: 1rem;
    line-height: 1.65;
}
.login-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 1.1rem;
    border-top-color: rgba(255, 255, 255, 0.1);
}
.login-points span {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    align-items: center;
    gap: 0 0.65rem;
    color: #eef7f1;
}
.login-points svg {
    width: 2.15rem;
    height: 2.15rem;
    grid-row: 1 / 3;
    padding: 0.48rem;
    border-radius: 0.65rem;
    fill: none;
    stroke: #72d3ad;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: rgba(104, 207, 167, 0.1);
}
.login-points b { margin: 0; color: #eef7f1; font-size: 0.78rem; font-weight: 680; }
.login-points small { color: #8fa399; font-size: 0.66rem; }
.login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(2rem, 7vw, 5rem);
    background: var(--auri-canvas);
}
.login-form-wrap {
    width: min(100%, 30rem);
    padding: clamp(1.35rem, 4vw, 2.15rem);
    border: 1px solid var(--auri-line);
    border-radius: 1.35rem;
    background: var(--auri-surface);
    box-shadow: 0 20px 55px rgba(23, 43, 32, 0.09);
}
.login-mobile-brand { display: none; }
.login-form-header { margin-bottom: 1.35rem; }
.login-form-header .eyebrow { margin-bottom: 0.34rem; }
.login-form-wrap h2 { color: var(--auri-ink); font-size: clamp(1.75rem, 4vw, 2.3rem); font-weight: 720; letter-spacing: -0.045em; }
.login-copy { margin: 0.48rem 0 0; font-size: 0.88rem; line-height: 1.5; }
.login-form-wrap .notice { margin-bottom: 1rem; border-radius: 0.85rem; }
.login-form-wrap .notice strong { font-size: 0.8rem; }
.login-form-wrap .notice span { font-size: 0.74rem; }
.login-form { gap: 0.9rem; }
.login-field label { margin-bottom: 0.4rem; color: var(--auri-ink); font-size: 0.76rem; font-weight: 680; }
.login-input-wrap { position: relative; }
.login-input-wrap > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0.9rem;
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: var(--auri-muted);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    pointer-events: none;
}
.login-field .form-control {
    min-height: 3.25rem;
    padding: 0.72rem 0.9rem 0.72rem 2.75rem;
    border: 1px solid var(--auri-line);
    border-radius: 0.82rem;
    color: var(--auri-ink);
    background: var(--auri-canvas);
    font-size: 0.9rem;
    box-shadow: none;
}
.login-password-wrap .form-control { padding-right: 3rem; }
.login-field .form-control::placeholder { color: #95a099; opacity: 1; }
.login-field .form-control:focus { border-color: var(--auri-brand); background: var(--auri-surface); box-shadow: 0 0 0 3px rgba(11, 121, 85, 0.11); }
.password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0.55rem;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.62rem;
    color: var(--auri-muted);
    background: transparent;
    transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle:focus-visible { color: var(--auri-brand-dark); background: var(--auri-brand-soft); outline: 0; }
.password-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-open { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-closed { display: block; }
.login-submit {
    display: flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.3rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
}
.login-submit svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.login-footnote { justify-content: center; margin-top: 1.05rem; color: var(--auri-muted); font-size: 0.7rem; text-align: center; }
.login-footnote svg { width: 0.9rem; height: 0.9rem; flex: 0 0 auto; fill: none; stroke: var(--auri-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .login-theme-toggle { border-color: var(--auri-line); box-shadow: 0 7px 22px rgba(0, 0, 0, 0.24); }
html[data-theme="dark"] .login-panel { background: var(--auri-canvas); }
html[data-theme="dark"] .login-form-wrap { border-color: var(--auri-line); background: var(--auri-surface); box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32); }
html[data-theme="dark"] .login-field .form-control { color: var(--auri-ink); background: #0e1812; }
html[data-theme="dark"] .login-field .form-control:focus { border-color: var(--auri-brand); background: #101b15; box-shadow: 0 0 0 3px rgba(104, 207, 167, 0.13); }
html[data-theme="dark"] .login-field .form-control::placeholder { color: #718177; }

@media (max-width: 899.98px) {
    .login-stage { display: block; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; min-height: 100dvh; align-items: center; padding: 5.25rem 1rem 2rem; }
    .login-form-wrap { padding: 1.35rem; border-radius: 1.2rem; }
    .login-mobile-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.7rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--auri-line); }
    .login-mobile-brand > span:last-child { min-width: 0; }
    .login-mobile-brand strong,
    .login-mobile-brand small { display: block; }
    .login-mobile-brand strong { color: var(--auri-ink); font-size: 0.94rem; font-weight: 700; }
    .login-mobile-brand small { margin-top: 0.1rem; color: var(--auri-muted); font-size: 0.67rem; }
}

@media (max-width: 380px) {
    .login-theme-toggle { top: 0.75rem; right: 0.75rem; }
    .login-panel { padding-inline: 0.7rem; }
    .login-form-wrap { padding: 1.1rem; }
}

/* Dashboard stok */
.dashboard-page {
    display: grid;
    gap: 1.05rem;
    padding-bottom: 6.5rem;
}

.dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-heading h1 {
    margin: 0.12rem 0 0.25rem;
    font-size: clamp(1.8rem, 5vw, 2.35rem);
    font-weight: 760;
    letter-spacing: -0.045em;
}

.dashboard-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--auri-muted);
    font-size: 0.88rem;
}

.dashboard-updated {
    flex: 0 0 auto;
    color: var(--auri-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.dashboard-filter-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.dashboard-filter-launch > div {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.dashboard-filter-launch small {
    color: var(--auri-muted);
    font-size: 0.64rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-filter-launch strong {
    font-size: 0.88rem;
    font-weight: 720;
}

.dashboard-filter-launch span {
    overflow: hidden;
    color: var(--auri-muted);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.dashboard-kpi-card {
    display: grid;
    min-width: 0;
    min-height: 9.2rem;
    align-content: start;
    padding: 1rem;
    color: var(--auri-ink);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-kpi-card:hover {
    color: var(--auri-ink);
    border-color: rgba(11, 121, 85, 0.28);
    box-shadow: 0 15px 38px rgba(27, 39, 33, 0.1);
    transform: translateY(-2px);
}

.dashboard-kpi-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    margin-bottom: 0.72rem;
    border-radius: 0.65rem;
    color: #966619;
    background: #fff2d9;
}

.dashboard-kpi-icon svg {
    width: 1.08rem;
    height: 1.08rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dashboard-kpi-icon-stock,
.dashboard-kpi-icon-barcode {
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
}

.dashboard-kpi-card > small {
    color: var(--auri-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.dashboard-kpi-card > strong {
    margin-top: 0.12rem;
    font-size: 1.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 780;
    letter-spacing: -0.04em;
}

.dashboard-kpi-primary {
    display: flex;
    align-items: baseline;
    gap: 0.32rem;
}

.dashboard-kpi-primary em {
    color: var(--auri-muted);
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 680;
    letter-spacing: 0;
}

.dashboard-kpi-weight b {
    color: var(--auri-ink);
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    font-weight: 760;
}

.dashboard-kpi-card > span:last-child {
    margin-top: auto;
    color: var(--auri-muted);
    font-size: 0.68rem;
}

.dashboard-kpi-attention .dashboard-kpi-icon {
    color: #b23b31;
    background: #feebe8;
}

.dashboard-kpi-attention:not(.is-clear) {
    border-color: #f0cbc5;
}

.dashboard-kpi-attention.is-clear .dashboard-kpi-icon {
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
}

.dashboard-section {
    display: grid;
    gap: 0.65rem;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-section-heading .eyebrow { margin-bottom: 0.08rem; }
.dashboard-section-heading h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 730;
    letter-spacing: -0.025em;
}

.dashboard-section-heading > span {
    color: var(--auri-muted);
    font-size: 0.72rem;
}

.dashboard-status-card {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.dashboard-category-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-category-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
}

.dashboard-category-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-category-header > div:first-child,
.dashboard-category-total {
    display: grid;
    gap: 0.12rem;
}

.dashboard-category-header > div:first-child > strong {
    font-size: 0.88rem;
    font-weight: 760;
}

.dashboard-category-header small,
.dashboard-category-total span {
    color: var(--auri-muted);
    font-size: 0.64rem;
}

.dashboard-category-total { text-align: right; }
.dashboard-category-total strong {
    font-size: 0.83rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-category-status-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--auri-line);
    border-radius: 0.8rem;
}

.dashboard-category-status-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border-right: 1px solid var(--auri-line);
}

.dashboard-category-status-list > div:last-child { border-right: 0; }
.dashboard-category-status-list i {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
}

.dashboard-category-status-list span {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.dashboard-category-status-list span:last-child { text-align: right; }
.dashboard-category-status-list strong {
    overflow: hidden;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    font-weight: 730;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-category-status-list small {
    color: var(--auri-muted);
    font-size: 0.58rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-status-bar {
    display: flex;
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--auri-line);
}

.dashboard-status-bar > span { min-width: 0; transition: width 240ms ease; }
.status-free { background: #32a77a; }
.status-reserved { background: #e5a73c; }
.status-nonbarcode { background: #7b8e84; }

.dashboard-status-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.dashboard-status-legend > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
}

.dashboard-status-legend i {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
}

.dashboard-status-legend span {
    overflow: hidden;
    color: var(--auri-muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-status-legend strong {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-warehouse-list,
.dashboard-attention-list { overflow: hidden; }

.dashboard-warehouse-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.6rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--auri-line);
    color: var(--auri-ink);
    text-decoration: none;
}

.dashboard-warehouse-row:last-child { border-bottom: 0; }
.dashboard-warehouse-row:hover { color: var(--auri-ink); background: var(--auri-brand-soft); }

.dashboard-warehouse-mark {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 0.68rem;
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
    font-size: 0.78rem;
    font-weight: 780;
}

.dashboard-warehouse-copy {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.dashboard-warehouse-copy strong { font-size: 0.82rem; }
.dashboard-warehouse-copy small { color: var(--auri-muted); font-size: 0.68rem; }
.dashboard-warehouse-copy .dashboard-warehouse-weight {
    display: flex;
    flex-wrap: wrap;
    gap: 0.08rem;
    margin-top: 0.08rem;
    color: var(--auri-brand-dark);
}
.dashboard-warehouse-weight b { font-weight: 730; }

.dashboard-warehouse-meta {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.45rem;
}

.dashboard-warehouse-meta b,
.dashboard-warehouse-meta em {
    padding: 0.24rem 0.42rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 730;
}

.dashboard-warehouse-meta b { color: #8a5b11; background: #fff2d9; }
.dashboard-warehouse-meta em { color: #a43b31; background: #feebe8; }
.dashboard-warehouse-meta i { color: var(--auri-muted); font-style: normal; }

.dashboard-attention-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 5.2rem;
    padding: 0.82rem 1rem;
    border-bottom: 1px solid var(--auri-line);
    color: var(--auri-ink);
    text-decoration: none;
}

.dashboard-attention-row:last-child { border-bottom: 0; }
.dashboard-attention-row:hover { color: var(--auri-ink); background: rgba(254, 235, 232, 0.55); }

.dashboard-attention-copy {
    display: grid;
    min-width: 0;
    gap: 0.16rem;
}

.dashboard-attention-copy > strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-attention-copy > small {
    overflow: hidden;
    color: var(--auri-muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-issue-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.18rem;
}

.dashboard-issue-badges b {
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    color: #a43b31;
    background: #feebe8;
    font-size: 0.54rem;
    font-weight: 740;
}

.dashboard-attention-stock {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: end;
    column-gap: 0.22rem;
    text-align: right;
}

.dashboard-attention-stock strong { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.dashboard-attention-stock small { color: var(--auri-muted); font-size: 0.6rem; }
.dashboard-attention-stock i { grid-column: 1 / -1; color: var(--auri-muted); font-style: normal; }

.dashboard-all-clear {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
}

.dashboard-all-clear > span {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    color: var(--auri-brand-dark);
    background: var(--auri-brand-soft);
    font-weight: 800;
}

.dashboard-all-clear strong { font-size: 0.82rem; }
.dashboard-all-clear p,
.dashboard-list-note { margin: 0; color: var(--auri-muted); font-size: 0.68rem; }
.dashboard-list-note { text-align: center; }

html[data-theme="dark"] .dashboard-kpi-icon,
html[data-theme="dark"] .dashboard-warehouse-meta b { color: #f1c56f; background: #3a2c13; }
html[data-theme="dark"] .dashboard-kpi-icon-stock,
html[data-theme="dark"] .dashboard-kpi-icon-barcode,
html[data-theme="dark"] .dashboard-kpi-attention.is-clear .dashboard-kpi-icon { color: var(--auri-brand); background: var(--auri-brand-soft); }
html[data-theme="dark"] .dashboard-kpi-attention .dashboard-kpi-icon,
html[data-theme="dark"] .dashboard-warehouse-meta em,
html[data-theme="dark"] .dashboard-issue-badges b { color: #f2a198; background: #3a1d1b; }
html[data-theme="dark"] .dashboard-kpi-attention:not(.is-clear) { border-color: #55312d; }
html[data-theme="dark"] .dashboard-attention-row:hover { background: #1c211b; }

@media (max-width: 767.98px) {
    .dashboard-heading { display: grid; }
    .dashboard-updated { white-space: normal; }
    .dashboard-kpi-grid { grid-template-columns: 1fr; gap: 0.65rem; }
    .dashboard-kpi-card { min-height: 7.5rem; padding: 0.85rem; }
    .dashboard-kpi-card > strong { font-size: 1.55rem; }
    .dashboard-status-legend { grid-template-columns: 1fr; }
    .dashboard-category-status-list { grid-template-columns: 1fr; }
    .dashboard-category-status-list > div { border-right: 0; border-bottom: 1px solid var(--auri-line); }
    .dashboard-category-status-list > div:last-child { border-bottom: 0; }
    .dashboard-warehouse-meta { display: grid; grid-template-columns: auto auto; }
    .dashboard-warehouse-meta i { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 380px) {
    .dashboard-kpi-card > span:last-child { font-size: 0.61rem; }
    .dashboard-warehouse-meta b,
    .dashboard-warehouse-meta em { display: none; }
}
