/* =========================================================
   AquaStock theme
   Ink sidebar, lagoon primary, crate-yellow for pack counts.
   ========================================================= */
:root {
    --ink: #0f2233;
    --ink-2: #172f45;
    --ink-line: rgba(255, 255, 255, .09);
    --lagoon: #0a8ea6;
    --lagoon-dark: #076d80;
    --lagoon-soft: #dff1f5;
    --crate: #e9a820;
    --crate-soft: #fdf1d3;
    --mist: #edf2f5;
    --foam: #ffffff;
    --text: #22313f;
    --muted: #6a7b88;
    --line: #dce4ea;
    --danger: #c2453b;
    --danger-soft: #fbe6e3;
    --ok: #2f8f6b;
    --ok-soft: #dcf2e8;
    --radius: 10px;
    --sidebar-w: 248px;
    --font-head: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
}

html, body { height: 100%; }
body {
    font-family: var(--font-body);
    font-size: .875rem;
    color: var(--text);
    background: var(--mist);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--lagoon-dark); }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #cfdbe5; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .65rem; padding: 1.25rem 1.25rem 1rem; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; background: var(--lagoon); color: #fff;
    display: grid; place-items: center; font-size: 1.15rem;
}
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.side-nav { padding: .25rem .75rem; flex: 1; }
.nav-group { margin: 1.1rem .6rem .35rem; font-size: .75rem; color: #7f94a6; font-weight: 600; letter-spacing: .02em; }
.side-nav .nav-link {
    display: flex; align-items: center; gap: .7rem; color: #cfdbe5; padding: .55rem .75rem;
    border-radius: 8px; border-left: 3px solid transparent; margin-bottom: 2px;
}
.side-nav .nav-link i { font-size: 1.05rem; opacity: .85; }
.side-nav .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav .nav-link.active { background: rgba(10, 142, 166, .22); color: #fff; border-left-color: var(--crate); }
.side-foot { padding: 1rem 1.1rem 1.25rem; border-top: 1px solid var(--ink-line); }
.who { display: flex; align-items: center; gap: .65rem; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--crate); color: var(--ink);
    display: grid; place-items: center; font-weight: 700;
}
.who-text { display: flex; flex-direction: column; line-height: 1.15; color: #fff; }
.who-text small { color: #93a8b9; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; gap: .9rem; padding: .9rem 1.6rem; background: var(--foam);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.page-title { font-size: 1.35rem; margin: 0; flex: 1; }
.content { padding: 1.4rem 1.6rem 2.5rem; }

/* ---------- panels ---------- */
.panel {
    background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; margin-bottom: 1.1rem;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.toolbar .form-label { margin-bottom: .2rem; }

.form-label { font-weight: 600; font-size: .82rem; color: #405464; }
.form-control, .form-select, .ts-control { border-color: #cbd6de; border-radius: 8px; }
.form-control:focus, .form-select:focus, .ts-wrapper.focus .ts-control {
    border-color: var(--lagoon); box-shadow: 0 0 0 .2rem rgba(10, 142, 166, .16);
}
.form-control[readonly] { background: #f3f7f9; }

.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { background: var(--lagoon); border-color: var(--lagoon); }
.btn-primary:hover, .btn-primary:focus { background: var(--lagoon-dark); border-color: var(--lagoon-dark); }
.btn-outline-primary { color: var(--lagoon-dark); border-color: var(--lagoon); }
.btn-outline-primary:hover { background: var(--lagoon); border-color: var(--lagoon); }
.btn-crate { background: var(--lagoon); border-color: var(--lagoon); color: #ffffff !important; }
.btn-crate:hover, .btn-crate:focus { background: var(--lagoon-dark); border-color: var(--lagoon-dark); color: #ffffff !important; }

/* ---------- KPI strip ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.kpi {
    background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.1rem; border-top: 3px solid var(--lagoon);
}
.kpi.crate { border-top-color: var(--crate); }
.kpi.alert { border-top-color: var(--danger); }
.kpi .label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi .value { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--muted); font-size: .78rem; }

/* ---------- chips & badges ---------- */
.chip { display: inline-block; padding: .12rem .55rem; border-radius: 6px; font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; }
.chip-pack { background: var(--crate-soft); color: #7a5300; }
.chip-loose { background: var(--lagoon-soft); color: var(--lagoon-dark); }
.chip-zero { background: #eef1f3; color: #8a98a3; }
.chip-due { background: var(--danger-soft); color: var(--danger); }
.chip-clear { background: var(--ok-soft); color: var(--ok); }
.chip-role { background: #e8edf5; color: #34506f; }

/* ---------- Tabulator skin & table controls ---------- */
.table-search-box {
    position: relative;
    width: 240px;
    max-width: 100%;
}
.table-search-box i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.78rem;
    pointer-events: none;
}
.table-search-box input.form-control {
    padding-left: 2rem !important;
    padding-right: 0.65rem;
    height: 31px;
    font-size: 0.8rem;
    border-radius: 7px;
    background: #fff;
    border-color: #cbd5e1;
}
.table-search-box input.form-control:focus {
    border-color: var(--lagoon);
    box-shadow: 0 0 0 2px rgba(10, 142, 166, 0.15);
}

.btn-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 6px;
    font-size: 0.78rem !important;
    line-height: 1;
}

/* Action buttons matching reference UI - Icon only */
.btn-action-edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid #60a5fa !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.btn-action-edit:hover, .btn-action-edit:focus {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #2563eb !important;
}

.btn-action-del {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #ef4444 !important;
    border: 1px solid #fca5a5 !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
}
.btn-action-del:hover, .btn-action-del:focus {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #ef4444 !important;
}

.btn-action-view {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
}
.btn-action-view:hover, .btn-action-view:focus {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}

.table-id-link {
    color: var(--text) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: default !important;
}

/* Editable cell badge indicator */
.cell-editable-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 3px 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.cell-editable-pill:hover {
    background: #eff6ff;
    border-color: #2563eb;
    border-style: solid;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.cell-editable-pill.not-set {
    background: #fef2f2;
    border-color: #fca5a5;
    border-style: dashed;
    color: #dc2626;
    font-weight: 500;
}
.cell-editable-pill.not-set:hover {
    background: #fee2e2;
    border-color: #ef4444;
    border-style: solid;
    color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}
.tabulator-cell.tabulator-editing input {
    border: 1px solid #2563eb !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    background: #ffffff !important;
    font-size: 0.8125rem !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

/* ---------- Tabulator skin matching reference UI ---------- */
.tabulator {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 0.8125rem;
    color: #1e293b;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.tabulator .tabulator-header {
    background: #ffffff !important;
    border-bottom: 1px solid #edf2f7 !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
.tabulator .tabulator-header .tabulator-col {
    background: transparent !important;
    border-right: none !important;
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 0.65rem 0.55rem;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
    background: #f8fafc !important;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
    padding-right: 4px;
}
.tabulator .tabulator-col-sorter {
    right: 4px;
}
.tabulator-row {
    border-bottom: 1px solid #f1f5f9 !important;
    min-height: 48px !important;
    background: #ffffff !important;
    transition: background-color 0.1s ease;
}
.tabulator-row.tabulator-row-even {
    background: #ffffff !important;
}
.tabulator-row:hover {
    background: #f8fafc !important;
}
.tabulator-row .tabulator-cell {
    border-right: none !important;
    padding: 0.6rem 0.55rem;
    vertical-align: middle;
    color: #334155;
}
.tabulator-row .tabulator-cell:last-child {
    padding-left: 0.25rem !important;
    padding-right: 0.55rem !important;
    overflow: visible !important;
}
.tabulator .tabulator-cell[tabulator-field="Id"],
.tabulator .tabulator-cell[tabulator-field="CustomerId"],
.tabulator .tabulator-cell[tabulator-field="RouteId"],
.tabulator .tabulator-cell[tabulator-field="MonthlyInvoiceId"] {
    white-space: nowrap !important;
    overflow: visible !important;
}
.tabulator-row .tabulator-cell a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.tabulator-row .tabulator-cell a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.tabulator .tabulator-footer {
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    color: #64748b;
    padding: 0.55rem 0.85rem;
    font-size: 0.77rem;
}
.tabulator .tabulator-footer .tabulator-page {
    border-radius: 6px;
    padding: 3px 8px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    margin: 0 2px;
    transition: all 0.15s;
}
.tabulator .tabulator-footer .tabulator-page:hover:not(.disabled) {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}
.tabulator .tabulator-footer .tabulator-page.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}
.tabulator .tabulator-footer .tabulator-page-size {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 2px 6px;
    font-size: 0.78rem;
    height: 28px;
    background: #fff;
}
.tabulator-row.tabulator-calcs {
    background: #f8fafc !important;
    font-weight: 700;
    border-top: 1px solid #e2e8f0 !important;
}
.tabulator-row.tabulator-group {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    padding: 0.5rem 0.85rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
}
.tabulator-row.tabulator-group:hover {
    background: #f1f5f9 !important;
}
.tabulator-row.tabulator-group span {
    color: #64748b;
    font-weight: 500;
}
.tabulator-row.tabulator-group .grp-out {
    float: right;
    color: #ef4444;
    font-weight: 700;
}

/* ---------- route stop cards (customer -> item lines) ---------- */
.stop-card { background: #fafcfd; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .8rem; overflow: hidden; }
.stop-card-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: #f4f8fa; border-bottom: 1px solid var(--line); }
.stop-card-head .drag-handle { cursor: grab; color: var(--muted); font-size: 1.1rem; }
.stop-card-head .sr { width: 24px; text-align: center; color: var(--muted); font-weight: 600; }
.stop-card-head .custSel-wrap { flex: 1; min-width: 220px; }
.stop-items { padding: .6rem .8rem .7rem; }
.stop-items-table { width: 100%; border-collapse: collapse; }
.stop-items-table th { font-size: .76rem; color: var(--muted); font-weight: 600; text-align: left; padding: 0 .4rem .3rem; }
.stop-items-table td { padding: .25rem .4rem; vertical-align: middle; }
.stop-card .btn-add-item { margin-top: .3rem; }
.stop-card.stop-card-locked { background: #fbfcfd; border-color: #cbd5e1; }
.stop-card.stop-card-locked .stop-card-head { background: #f1f5f9; }
.stop-card-head .lock-handle { color: #64748b; font-size: 1.05rem; width: 20px; text-align: center; }
.stop-card.stop-card-locked .ts-wrapper.disabled { opacity: 0.9; }
.stop-card.stop-card-locked .ts-wrapper.disabled .ts-control { background-color: #f1f5f9; border-color: #cbd5e1; color: #334155; cursor: not-allowed; }
.stop-card.stop-card-locked input.pack:disabled { background-color: #f1f5f9; border-color: #cbd5e1; color: #1e293b; font-weight: 600; cursor: not-allowed; }

/* ---------- route confirmation (master-detail layout) ---------- */
.run-split-container {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 991.98px) {
    .run-split-container {
        flex-direction: column;
    }
}
.run-cust-panel {
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
}
.run-cust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.run-cust-list {
    flex: 1;
    overflow-y: auto;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-right: 0.2rem;
}
.run-cust-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafcfd;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.run-cust-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.run-cust-item.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 2px 4px rgba(59, 130, 246, 0.08);
}
.run-cust-item .drag-handle {
    cursor: grab;
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1;
    padding: 2px 2px;
}
.run-cust-item .seq-badge {
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.run-cust-item.active .seq-badge {
    background: #2563eb;
    color: #ffffff;
}
.run-cust-item .cust-details {
    flex: 1;
    min-width: 0;
}
.run-cust-item .cust-name {
    font-weight: 600;
    font-size: 0.86rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.run-cust-item .cust-meta {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.run-cust-item .del-stop-btn {
    opacity: 0.4;
    transition: opacity 0.15s;
    color: #ef4444;
    padding: 2px 5px;
    background: none;
    border: none;
    font-size: 0.95rem;
    border-radius: 4px;
    line-height: 1;
}
.run-cust-item:hover .del-stop-btn {
    opacity: 1;
}
.run-cust-item .del-stop-btn:hover {
    background: #fee2e2;
}
.run-cust-item.run-cust-locked {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.run-cust-item .lock-icon {
    color: #64748b;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}
.run-editor-panel {
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    height: 100%;
}
.run-editor-top {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line, #e2e8f0);
    margin-bottom: 1rem;
}
.run-editor-body {
    flex: 1;
}
.run-editor-footer {
    padding-top: 0.85rem;
    border-top: 1px solid var(--line, #e2e8f0);
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- entry grids (inward / payment) ---------- */
.entry-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.entry-table th {
    background: #f4f8fa; font-size: .8rem; color: #405464; padding: .55rem .6rem;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.entry-table td { padding: .45rem .5rem; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.entry-table .sr { width: 42px; color: var(--muted); text-align: center; }
.entry-table input.form-control { min-width: 96px; }
.entry-wrap { overflow-x: auto; border-radius: var(--radius); }
.total-bar {
    display: flex; justify-content: flex-end; gap: 2.2rem; padding: .9rem 1rem; background: #f4f8fa;
    border: 1px solid var(--line); border-radius: var(--radius); margin-top: .9rem; flex-wrap: wrap;
}
.total-bar .t-label { color: var(--muted); font-size: .8rem; display: block; }
.total-bar .t-value { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- searchable dropdowns (Tom Select) ---------- */
.ts-dropdown { z-index: 1080; border-radius: 8px; border-color: #cbd6de; box-shadow: 0 10px 28px rgba(15, 34, 51, .18); }
.ts-dropdown .dropdown-input { border-radius: 6px; margin: .4rem; width: calc(100% - .8rem); }
.ts-dropdown .ts-dropdown-content { max-height: 260px; }
.ts-dropdown .active { background: var(--lagoon-soft); color: var(--ink); }

/* ---------- modal ---------- */
.modal-content { border: 0; border-radius: 14px; }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--font-head); font-weight: 700; }
.modal-footer { border-top: 1px solid var(--line); }

/* ---------- login ---------- */
.login-body {
    min-height: 100vh; display: grid; place-items: center; padding: 1.2rem;
    background:
        radial-gradient(1200px 500px at 15% -10%, rgba(10, 142, 166, .35), transparent 60%),
        radial-gradient(900px 500px at 100% 110%, rgba(233, 168, 32, .22), transparent 60%),
        var(--ink);
}
.login-card {
    width: 100%; max-width: 380px; background: var(--foam); border-radius: 18px; padding: 2rem 1.8rem 1.6rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.login-card .brand { padding: 0 0 1.2rem; }
.login-card .brand-name { color: var(--ink); }
.pin-dots { display: flex; justify-content: center; gap: .9rem; margin: .6rem 0 1.2rem; }
.pin-dots span { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #b8c7d2; background: transparent; transition: background .12s, border-color .12s; }
.pin-dots span.on { background: var(--lagoon); border-color: var(--lagoon); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pin-key {
    border: 1px solid var(--line); background: #f6f9fb; border-radius: 12px; padding: .85rem 0;
    font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--ink);
}
.pin-key:hover { background: var(--lagoon-soft); border-color: var(--lagoon); }
.pin-key:active { background: var(--lagoon); color: #fff; }
.pin-key.util { font-size: 1rem; color: var(--muted); }
.login-error { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: .5rem .75rem; margin-bottom: .9rem; font-size: .85rem; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
    .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    .content { padding: 1rem; }
    .topbar { padding: .7rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
