:root {
    --bg: #eef3f6;
    --surface: #ffffff;
    --surface-soft: #f8fbfc;
    --ink: #16212f;
    --muted: #667584;
    --line: #d7e1e7;
    --brand: #0f766e;
    --brand-strong: #0b5f59;
    --brand-soft: #dff7f4;
    --blue: #2563eb;
    --blue-soft: #eaf1ff;
    --amber: #b45309;
    --amber-soft: #fff4db;
    --red: #dc2626;
    --red-soft: #fff1f2;
    --green: #15803d;
    --green-soft: #e9fbe9;
    --shadow: 0 18px 45px rgba(22, 33, 47, .08);
    --shadow-soft: 0 8px 24px rgba(22, 33, 47, .06);
}

/* System typography standard: compact, calm, and consistent like Data Barang. */
body {
    font-size: 13px !important;
    line-height: 1.45;
    letter-spacing: 0;
}

.main {
    padding: 20px !important;
}

.topbar {
    margin-bottom: 16px !important;
}

.topbar h1 {
    font-size: clamp(22px, 1.55vw, 28px) !important;
    line-height: 1.14 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.eyebrow,
.nav-label,
.nav-section-toggle,
.metric-card span,
.metric span,
.metric-list span,
.filter-strip label,
.stack-form label,
.scan-box label,
.shift-chip span,
.payment-input span,
.finance-code,
th {
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.panel,
.payment-panel,
.cart-panel,
.scan-box,
.pos-card,
.metric-card,
.metric,
.quick-btn,
.shift-chip,
.purchase-step,
.settings-status {
    border-radius: 8px !important;
}

.panel {
    padding: 16px !important;
}

.panel h2,
.payment-panel h2,
.cart-head h2,
.modal-head h2,
.purchase-hero h2,
.opname-hero-main h2,
.settings-hero h2 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 680 !important;
    letter-spacing: 0 !important;
}

.panel-subtitle,
.form-note,
.receipt-note,
.quick-btn span,
.purchase-step span,
td small,
.muted,
.user-pill {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

input,
select,
textarea,
.global-search,
.user-pill {
    min-height: 40px !important;
    font-size: 13px !important;
}

.icon-btn,
.secondary-btn,
.primary-btn,
.ghost-btn,
.method-btn,
.shortcut-grid button,
.quick-btn,
.page-link,
.mini-danger {
    min-height: 38px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.pay-btn {
    min-height: 52px !important;
    font-size: 15px !important;
    font-weight: 680 !important;
}

.data-table,
table {
    font-size: 12.5px !important;
}

th,
td {
    padding: 11px 12px !important;
}

.badge,
.status-pill {
    min-height: 24px !important;
    padding: 4px 9px !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

.metric-card,
.metric {
    padding: 15px !important;
}

.metric-card strong,
.metric strong {
    font-size: clamp(22px, 1.75vw, 28px) !important;
    font-weight: 720 !important;
}

.metric-list strong {
    font-size: 17px !important;
    font-weight: 680 !important;
}

.quick-btn {
    min-height: 68px !important;
    padding: 11px !important;
}

.quick-btn strong,
.shift-chip strong,
.purchase-step strong,
.opname-history-card strong {
    font-size: 13px !important;
    font-weight: 650 !important;
}

.nav a,
.sidebar .nav a {
    font-size: 13px !important;
    font-weight: 620 !important;
}

.mobile-menu-card span:last-child,
.mobile-bottom-item {
    font-size: 10.5px !important;
    font-weight: 650 !important;
}

.settings-hero {
    padding: 18px !important;
}

.payment-top h2 {
    font-size: 16px !important;
}

.total-row.grand strong {
    font-size: clamp(28px, 2.3vw, 36px) !important;
    font-weight: 740 !important;
}

.product-detail-table th,
.product-detail-table td {
    padding: 10px 12px !important;
}

.subpanel {
    margin: 14px 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.subpanel-head,
.package-builder-head,
.package-total-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.subpanel h3,
.package-builder h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 680;
}

.compact-table-wrap {
    margin-top: 12px;
}

.package-table td small {
    display: block;
    margin-top: 3px;
}

.modal-card.wide {
    width: min(880px, 100%);
}

.package-builder {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.package-items {
    display: grid;
    gap: 10px;
}

.package-item-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(120px, 180px) auto;
    gap: 10px;
    align-items: end;
}

.package-total-preview {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.package-total-preview strong {
    color: var(--teal);
    font-size: 18px;
}

@media (max-width: 760px) {
    .subpanel-head,
    .package-builder-head,
    .package-total-preview {
        align-items: stretch;
        flex-direction: column;
    }

    .package-item-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .main {
        padding: 14px 14px 86px !important;
    }

    .topbar h1 {
        font-size: 22px !important;
    }

    .panel h2,
    .payment-panel h2,
    .cart-head h2,
    .modal-head h2 {
        font-size: 15px !important;
    }
}

.app-footer {
    color: #6c7f8f;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 20px 0 4px;
    text-align: center;
}

@media (max-width: 760px) {
    .app-footer {
        padding-bottom: 8px;
    }
}

/* Opname table: sticky header without covering the first row. */
.opname-table-wrap {
    max-height: 620px;
    overflow: auto;
    position: relative;
}

.opname-table {
    border-collapse: separate;
    border-spacing: 0;
}

.opname-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    min-height: 40px;
    padding: 12px 12px !important;
    background: #f5f9fa !important;
    box-shadow: 0 1px 0 #d7e1e7, 0 6px 12px rgba(22, 33, 47, .04);
    line-height: 1.25;
    vertical-align: middle;
}

.opname-table thead th::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: #d7e1e7;
}

.opname-table tbody td {
    padding: 13px 12px !important;
    vertical-align: middle;
}

.opname-table tbody td:first-child,
.opname-table tbody td:nth-child(2) {
    min-width: 260px;
}

/* Mobile app navigation */
.mobile-bottom-nav,
.mobile-menu-backdrop,
.mobile-menu-sheet {
    display: none;
}

@media (max-width: 980px) {
    .sidebar,
    .sidebar-backdrop,
    .mobile-menu-btn {
        display: none !important;
    }

    .main {
        padding-bottom: calc(106px + env(safe-area-inset-bottom));
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .topbar-actions .global-search,
    .topbar-actions .user-pill,
    .topbar-actions form {
        grid-column: auto;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        min-height: 72px;
        padding: 8px 10px calc(9px + env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid rgba(180, 198, 209, .72);
        border-radius: 20px 20px 0 0;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -12px 34px rgba(22, 42, 57, .13);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-item {
        position: relative;
        display: grid;
        place-items: center;
        align-content: center;
        min-width: 0;
        min-height: 54px;
        gap: 4px;
        border: 0;
        border-radius: 18px;
        background: transparent;
        color: #6a7b88;
        text-decoration: none;
        font: inherit;
        font-size: 10.5px;
        font-weight: 900;
        line-height: 1.05;
        cursor: pointer;
    }

    .mobile-bottom-item .nav-icon {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        color: currentColor;
    }

    .mobile-bottom-item .nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-item span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-item.active,
    .mobile-bottom-item.is-selected {
        color: var(--brand);
        background: #edf7fa;
    }

    .mobile-bottom-item.is-primary {
        min-height: 64px;
        margin-top: -22px;
        color: white;
    }

    .mobile-bottom-item.is-primary::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 22px;
        background: linear-gradient(180deg, #38aee8 0%, #1d88c9 100%);
        box-shadow: 0 12px 24px rgba(34, 139, 202, .36);
    }

    .mobile-bottom-item.is-primary > * {
        position: relative;
    }

    .mobile-bottom-item.is-primary.active,
    .mobile-bottom-item.is-primary.is-selected {
        color: white;
        background: transparent;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 72;
        display: block;
        border: 0;
        background: rgba(20, 35, 50, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
        backdrop-filter: blur(3px);
    }

    body.mobile-sheet-open .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-sheet {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        z-index: 95;
        display: grid;
        gap: 14px;
        max-height: min(68vh, 560px);
        padding: 10px 14px 16px;
        border: 1px solid rgba(214, 226, 233, .92);
        border-radius: 26px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 26px 70px rgba(13, 30, 43, .26);
        transform: translateY(116%);
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .18s ease;
        overflow: hidden;
    }

    body.mobile-sheet-open .mobile-menu-sheet {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-sheet-open {
        overflow: hidden;
    }

    .mobile-sheet-handle {
        justify-self: center;
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: #d8e5eb;
    }

    .mobile-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-sheet-head small {
        display: block;
        margin-bottom: 2px;
        color: #738491;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .mobile-sheet-head strong {
        display: block;
        color: #12283a;
        font-size: 20px;
        line-height: 1.1;
    }

    .mobile-sheet-close {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border: 0;
        border-radius: 50%;
        background: #eff6fa;
        color: #6f8391;
        cursor: pointer;
    }

    .mobile-sheet-close svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.5;
        stroke-linecap: round;
    }

    .mobile-sheet-panel {
        display: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 1px 0 2px;
        overflow-y: auto;
    }

    .mobile-sheet-panel.is-active {
        display: grid;
    }

    .mobile-menu-card {
        min-width: 0;
        min-height: 92px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 9px;
        padding: 12px 8px;
        border: 1px solid #dce9f0;
        border-radius: 16px;
        background: #f8fcfe;
        color: #28465c;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 8px 22px rgba(28, 55, 74, .05);
    }

    .mobile-menu-card.active {
        border-color: rgba(47, 118, 150, .42);
        background: #edf8fb;
        color: var(--brand);
    }

    .mobile-menu-card .nav-icon {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        color: #2595dc;
    }

    .mobile-menu-card .nav-icon svg {
        width: 25px;
        height: 25px;
    }

    .mobile-menu-card span:last-child {
        max-width: 100%;
        color: inherit;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .mobile-menu-empty {
        grid-column: 1 / -1;
        margin: 0;
        padding: 18px;
        border: 1px dashed #cfe0e8;
        border-radius: 16px;
        background: #f8fcfe;
        color: var(--muted);
        text-align: center;
        font-weight: 800;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-nav {
        padding-inline: 6px;
    }

    .mobile-bottom-item {
        font-size: 9.8px;
    }

    .mobile-sheet-panel {
        gap: 8px;
    }

    .mobile-menu-card {
        min-height: 88px;
        padding-inline: 6px;
    }
}

* { box-sizing: border-box; }
html { min-height: 100%; }
html, body {
    background-color: #f3f7f8;
}
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: #102332; color: #f8fafc; padding: 20px 14px;
    border-right: 1px solid rgba(255,255,255,.08);
}
.brand {
    display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0 6px 18px;
    padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand small { display: block; color: #a9bdc8; margin-top: 2px; font-size: 12px; }
.brand-mark {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: #ffffff; color: white; overflow: hidden;
    box-shadow: 0 10px 22px rgba(15,118,110,.28);
}
.brand-mark.large { width: 56px; height: 56px; font-size: 20px; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav { display: grid; gap: 10px; }
.nav-section {
    display: grid; gap: 5px; padding: 8px; border-radius: 8px;
    background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.055);
}
.nav-label {
    margin: 0 6px 4px; color: #91adba; font-size: 11px; font-weight: 900;
    letter-spacing: .08em; text-transform: uppercase;
}
.nav a {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 39px;
    padding: 8px 9px; border-radius: 8px; color: #d8e6ea;
    font-size: 14px; font-weight: 750;
}
.nav a span {
    display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px;
    border-radius: 8px; background: rgba(255,255,255,.08); color: #a9e7df;
    font-size: 12px; font-weight: 900;
}
.nav-icon svg { width: 17px; height: 17px; }
.nav a:hover, .nav a.active { background: rgba(15,118,110,.24); color: white; }
.nav a:hover span, .nav a.active span { background: rgba(94,234,212,.18); color: white; }
.nav a.nav-item-primary {
    min-height: 48px; background: rgba(15,118,110,.28); color: white;
    border: 1px solid rgba(94,234,212,.2);
}
.nav a.nav-item-primary span { background: #0f766e; color: white; }
.nav a.active::before {
    content: ""; position: absolute; left: 3px; width: 4px; height: 22px;
    border-radius: 8px; background: #5eead4;
}
.nav { scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

.main { min-width: 0; padding: 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.topbar h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: 0; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.global-search, input, select, textarea {
    width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 12px; background: white; color: var(--ink); outline: none;
}
.global-search { width: min(30vw, 340px); }
input:focus, select:focus, textarea:focus { border-color: rgba(15,118,110,.65); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.user-pill {
    display: inline-flex; align-items: center; min-height: 42px; max-width: 260px;
    border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
    background: white; color: var(--muted); font-size: 13px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

.icon-btn, .secondary-btn, .primary-btn, .ghost-btn, .pay-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 8px; min-height: 42px; padding: 0 14px;
    cursor: pointer; font-weight: 800; letter-spacing: 0;
}
.icon-btn, .secondary-btn { background: #e7eef3; color: #253549; }
.ghost-btn { background: white; border: 1px solid var(--line); color: #253549; }
.primary-btn, .pay-btn { background: var(--brand); color: white; box-shadow: 0 12px 24px rgba(15,118,110,.18); }
.primary-btn:hover, .pay-btn:hover { background: var(--brand-strong); }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.alert.danger { border-color: #fecaca; color: #991b1b; background: var(--red-soft); }
.alert.success { border-color: #bbf7d0; color: #166534; background: var(--green-soft); }

.metric-grid, .content-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.metric-card, .panel, .payment-panel, .cart-panel, .scan-box, .pos-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft);
}
.metric-card, .metric { padding: 18px; }
.metric {
    min-height: 92px; background: linear-gradient(180deg, #fff, #f8fbfc);
    border: 1px solid var(--line); border-radius: 8px;
}
.metric-card span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.metric-card strong, .metric strong {
    display: block; font-size: 28px; line-height: 1.08; overflow-wrap: anywhere;
}
.metric span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.metric-card small, .muted, td small, .form-note { color: var(--muted); }
.work-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 16px; }
.panel { padding: 18px; }
.panel.wide { grid-column: span 2; }
.panel h2, .payment-panel h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.panel-subtitle { margin: 5px 0 0; font-size: 13px; }
.panel-head, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.status-list { display: grid; gap: 12px; }
.status-list > div {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft);
}
.metric-list > div {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft);
}
.metric-list { display: grid; gap: 10px; }
.metric-list span { color: var(--muted); font-size: 13px; font-weight: 800; }
.metric-list strong { font-size: 20px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 8px; vertical-align: middle; }
.dot.ok { background: var(--green); }
.dot.wait { background: #f59e0b; }
.badge, .status-pill {
    display: inline-flex; align-items: center; justify-content: center; min-height: 26px;
    border-radius: 999px; padding: 5px 10px; background: #e8eef6; color: #26364f;
    font-size: 12px; font-weight: 900;
}
.badge.ok, .status-pill.success { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.danger { background: var(--red-soft); color: var(--red); }

.table-wrap, .table-responsive {
    overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: white;
}
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead { background: #f4f8fa; }
th, td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 900; letter-spacing: .03em; }
.number-cell { text-align: right; white-space: nowrap; }
.data-table td:first-child { min-width: 220px; }
.data-table td strong { color: #172433; }
tbody tr:hover { background: #f8fbfc; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
.empty, td[colspan] { text-align: center; color: var(--muted); padding: 36px; }
.inline-search { display: flex; gap: 8px; }
.filter-strip {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #e1ebef;
    border-radius: 14px;
    background: #f9fcfd;
}

.filter-strip label {
    display: grid;
    gap: 6px;
    min-width: 180px;
    color: #5e7181;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.filter-strip select {
    min-height: 40px;
    background-color: #ffffff;
}

.filter-strip .ghost-btn {
    min-height: 40px;
}
.stack-form { display: grid; gap: 12px; }
.stack-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.stack-form button { width: 100%; }
.mt-compact { margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce8ed;
    border-radius: 8px;
    background: #f8fbfc;
}

.form-section h3 {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 680;
}

.form-section .form-note {
    margin: 4px 0 0;
}
.checkbox-line { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; text-transform: none !important; color: var(--ink) !important; }
.checkbox-line input { width: auto; min-height: auto; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.row-actions .secondary-btn, .row-actions .mini-danger { min-height: 34px; padding: 0 10px; }
.pagination-bar {
    display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px;
    margin-top: 14px; padding-top: 2px; color: var(--muted); font-size: 13px; font-weight: 800;
}
.page-info { margin-right: auto; }
.pagination-links { display: inline-flex; align-items: center; gap: 8px; }
.per-page-form label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.per-page-form select { width: auto; min-width: 74px; min-height: 36px; padding: 6px 30px 6px 10px; }
.page-link, .page-current {
    display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
    border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: white; color: #253549;
}
.page-link { font-weight: 900; }
.page-link:hover { border-color: rgba(15,118,110,.42); background: #f4fbfa; color: var(--brand-strong); }
.page-link.disabled { pointer-events: none; opacity: .45; }
.page-current { background: var(--surface-soft); color: var(--muted); }
.modal-layer {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
    padding: 20px; background: rgba(15, 35, 50, .42);
}
.modal-layer[hidden] { display: none; }
.modal-card {
    width: min(760px, 100%); max-height: min(86vh, 760px); overflow: auto;
    background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
    padding: 18px;
}
.modal-card.small { width: min(520px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 19px; }

.purchase-page {
    display: grid;
    gap: 16px;
}

.purchase-hero {
    background: linear-gradient(180deg, #ffffff, #f6fbfa);
}

.purchase-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.purchase-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.purchase-step {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 104px;
    padding: 13px;
    border: 1px solid #dce8ed;
    border-radius: 8px;
    background: #ffffff;
    color: #24364a;
    box-shadow: var(--shadow-soft);
    cursor: default;
}

.purchase-step strong {
    font-size: 13px;
    line-height: 1.25;
}

.purchase-step span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.purchase-step.active {
    border-color: rgba(15, 118, 110, .36);
    background: #eaf8f5;
    box-shadow: inset 4px 0 0 var(--brand);
}

.purchase-work-panel .toolbar .active {
    border-color: rgba(15, 118, 110, .36);
    background: #dff5f0;
    color: var(--brand-strong);
}

.purchase-action-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #dce8ed;
    border-radius: 8px;
    background: #f8fbfc;
}

.purchase-action-strip span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.purchase-item-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce8ed;
    border-radius: 8px;
    background: #f8fbfc;
}

.purchase-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.purchase-item-head strong {
    color: #223449;
    font-size: 13px;
}

.purchase-item-list {
    display: grid;
    gap: 10px;
}

.purchase-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(110px, .45fr) minmax(130px, .5fr) auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid #e3edf1;
    border-radius: 8px;
    background: #ffffff;
}

.receipt-row {
    grid-template-columns: minmax(220px, 1fr) minmax(100px, .4fr) minmax(130px, .5fr) minmax(140px, .5fr) auto;
}

.purchase-item-row .mini-danger {
    min-height: 42px;
}

.inventory-opname-page {
    display: grid;
    gap: 18px;
}

.opname-hero {
    display: grid;
    gap: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
}

.opname-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.opname-hero-main h2 {
    font-size: clamp(24px, 2.2vw, 34px);
}

.opname-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 520px;
}

.opname-actions .primary-btn,
.opname-actions .secondary-btn {
    min-height: 46px;
    width: auto;
    min-width: 148px;
    padding-inline: 16px;
    white-space: nowrap;
}

.opname-document-card {
    display: grid;
    grid-template-columns: 1.55fr .75fr .75fr;
    gap: 12px;
}

.opname-document-card > div,
.opname-summary-cards > div {
    position: relative;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce8ed;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.opname-document-card > div::before,
.opname-summary-cards > div::before {
    content: "";
    position: absolute;
    inset: 14px auto 14px 0;
    width: 4px;
    border-radius: 999px;
    background: var(--brand);
}

.opname-document-card > div:nth-child(2)::before,
.opname-summary-cards > div:nth-child(2)::before {
    background: var(--accent);
}

.opname-document-card > div:nth-child(3)::before,
.opname-summary-cards > div:nth-child(3)::before {
    background: var(--amber);
}

.opname-summary-cards > div:nth-child(4)::before {
    background: #6f63c7;
}

.opname-document-card span,
.opname-summary-cards span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.opname-document-card strong,
.opname-summary-cards strong {
    display: block;
    min-width: 0;
    color: #10202e;
    font-size: clamp(22px, 2vw, 31px);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
}

.opname-document-card > div:first-child strong {
    font-size: clamp(20px, 1.55vw, 26px);
    white-space: nowrap;
}

.opname-document-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}

.opname-status-text {
    display: inline-flex !important;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber) !important;
    font-size: 18px !important;
}

.opname-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.opname-flow div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid #dce8ed;
    border-radius: 8px;
    background: #f8fbfc;
    color: #597080;
    font-size: 12px;
    font-weight: 900;
}

.opname-flow strong {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e7eff3;
    color: #4d6475;
}

.opname-flow .active {
    border-color: rgba(15, 159, 143, .34);
    background: #eaf8f5;
    color: var(--accent);
}

.opname-flow .active strong {
    background: var(--accent);
    color: #ffffff;
}

.opname-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    gap: 18px;
    align-items: start;
}

.opname-count-panel {
    min-width: 0;
}

.opname-side-stack {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.opname-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.opname-summary-cards strong {
    font-size: clamp(20px, 1.5vw, 26px);
}

.opname-history-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding-right: 2px;
}

.opname-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dfeaf0;
    border-radius: 8px;
    background: #ffffff;
}

.opname-history-card.active {
    border-color: rgba(15, 159, 143, .4);
    background: #eaf8f5;
    box-shadow: inset 4px 0 0 var(--accent);
}

.opname-history-card strong {
    display: block;
    color: #10202e;
    font-size: 14px;
    line-height: 1.25;
}

.opname-history-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.opname-history-card em {
    font-style: normal;
}

.opname-table-wrap {
    max-height: 620px;
}

.opname-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.opname-table .count-input {
    width: 104px;
    min-height: 42px;
    text-align: right;
    font-weight: 850;
}

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #edf6f5; }
.auth-card {
    width: min(980px,100%); display: grid; grid-template-columns: minmax(0,1fr) 420px;
    overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow);
}
.auth-hero { display: flex; flex-direction: column; justify-content: center; background: #102332; color: white; padding: 52px; }
.auth-hero h1 { margin: 18px 0 8px; font-size: 40px; letter-spacing: 0; }
.auth-hero p { max-width: 380px; color: #c8ddda; }
.login-form { display: grid; align-content: center; gap: 16px; padding: 42px; }
.login-form h2 { margin: 0 0 4px; }
.login-form label { display: grid; gap: 7px; font-weight: 800; }
.login-form small { color: var(--red); }

.pos-page { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 16px; align-items: start; }
.pos-left { display: grid; gap: 16px; min-width: 0; }
.pos-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.scan-box { padding: 16px; background: #fbfdfd; }
.scan-box label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; }
.scan-row { display: grid; grid-template-columns: minmax(220px,1fr) 112px; gap: 10px; }
.scan-row input { min-height: 54px; min-width: 0; padding-left: 16px; font-size: 16px; font-weight: 700; }
.product-results {
    display: grid; gap: 8px; margin-top: 12px; max-height: 290px; overflow: auto;
}
.product-result {
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px;
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
    background: white; color: var(--ink); text-align: left; cursor: pointer;
}
.product-result:hover { border-color: rgba(15,118,110,.42); background: #f4fbfa; }
.product-result strong {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.product-result-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-result-unit {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e7f8f5;
    color: #0f766e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}
.product-result span { color: var(--muted); font-size: 12px; }
.product-result em { grid-row: span 2; align-self: center; font-style: normal; font-weight: 900; color: var(--brand-strong); white-space: nowrap; }
.product-result-empty { padding: 12px; border: 1px dashed #bfd1da; border-radius: 8px; color: var(--muted); background: var(--surface-soft); }
.product-identity {
    display: grid;
    gap: 6px;
    min-width: 220px;
}

.product-identity strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 680;
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #d8e7ec;
    border-radius: 999px;
    background: #f8fbfc;
    color: var(--muted);
    font-size: 12px;
}

.product-identity small,
.product-stock-cell small,
.product-stock-cell span {
    color: var(--muted);
    font-size: 12px;
}

.product-stock-cell {
    white-space: nowrap;
}

.product-stock-cell strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 720;
}

.product-stock-cell span {
    display: block;
    max-width: 180px;
    white-space: normal;
}

.unit-price-list {
    display: grid;
    gap: 8px;
    min-width: 420px;
}

.unit-price-item {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid #d8e7ec;
    border-radius: 8px;
    background: #f8fbfc;
}

.unit-price-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.unit-price-main > div {
    display: grid;
    gap: 2px;
}

.unit-chip {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-width: 58px;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #e7f8f5;
    color: #0f766e;
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
}

.unit-price-item strong {
    color: var(--ink);
    font-weight: 650;
}

.unit-price-item small {
    color: var(--muted);
    font-size: 12px;
}

.unit-price-values {
    display: grid;
    justify-items: end;
    gap: 2px;
    white-space: nowrap;
}

.unit-price-values span {
    color: var(--muted);
    font-size: 11px;
}

.unit-price-values strong {
    color: var(--brand-strong);
}

.unit-barcode {
    grid-column: 1 / -1;
    padding-top: 6px;
    border-top: 1px dashed #d8e7ec;
}

.product-detail-table {
    min-width: 2380px;
    font-size: 12px;
}

.product-detail-table th,
.product-detail-table td {
    padding: 10px 12px;
    white-space: nowrap;
    letter-spacing: 0;
}

.product-detail-table th {
    font-size: 10.5px;
    color: #607283;
    background: #f5f9fa;
    text-transform: none;
    letter-spacing: 0;
}

.product-detail-table .table-group-row th {
    padding: 9px 12px;
    background: #eaf3f5;
    color: #355166;
    font-size: 11px;
    text-align: center;
    border-bottom-color: #d9e7ed;
    text-transform: none;
    letter-spacing: 0;
}

.product-detail-table .group-start {
    border-left: 0;
    box-shadow: none;
}

.product-detail-table thead tr:not(.table-group-row) .group-start {
    background: #edf6f7;
}

.product-detail-table td:first-child {
    min-width: 128px;
}

.product-detail-table td:nth-child(2) {
    min-width: 260px;
}

.product-detail-table .badge {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 11px;
}

.product-name-cell {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.product-name-cell strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
}

.product-name-cell small {
    color: var(--muted);
    font-size: 11px;
}

.product-detail-table .row-actions {
    min-width: 238px;
}
.shift-chip {
    display: grid; align-content: center; min-width: 210px; min-height: 86px;
    border: 1px solid var(--line); border-radius: 8px; background: white; padding: 14px; box-shadow: var(--shadow-soft);
}
.shift-chip span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.shift-chip strong { margin-top: 5px; font-size: 18px; }
.shift-chip small { margin-top: 4px; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.dashboard-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pos-actions { grid-template-columns: repeat(4,minmax(0,1fr)); }
.quick-btn {
    display: grid; align-content: center; min-height: 74px; border: 1px solid var(--line);
    border-radius: 8px; background: white; color: #253549; cursor: pointer; padding: 12px; text-align: left; box-shadow: var(--shadow-soft);
}
.quick-btn:hover { border-color: rgba(15,118,110,.38); background: #f4fbfa; }
.quick-btn strong { font-size: 14px; }
.quick-btn span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.cart-panel { overflow: hidden; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 18px; }
.cart-empty {
    display: grid; place-items: center; min-height: 230px; margin: 16px; border: 1px dashed #bfd1da;
    border-radius: 8px; background: var(--surface-soft); color: var(--muted); text-align: center; padding: 28px;
}
.cart-empty strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 18px; }
.cart-table th:nth-child(2), .cart-table td:nth-child(2), .cart-table th:nth-child(3), .cart-table td:nth-child(3) { text-align: right; }
.qty-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 30px; border-radius: 8px; background: #eef4f7; font-weight: 900; }
.qty-control { display: inline-grid; grid-template-columns: 30px 42px 30px; align-items: center; gap: 5px; }
.qty-control button, .mini-danger {
    min-height: 30px; border: 1px solid var(--line); border-radius: 8px; background: white;
    color: #253549; cursor: pointer; font-weight: 900;
}
.qty-control span { display: grid; place-items: center; min-height: 30px; border-radius: 8px; background: #eef4f7; font-weight: 900; }
.mini-danger { padding: 0 9px; color: #991b1b; background: var(--red-soft); border-color: #fecaca; }
.payment-panel { position: sticky; top: 18px; overflow: hidden; }
.payment-top { padding: 18px; background: #102332; color: white; }
.payment-top h2 { color: white; }
.payment-top p { margin: 6px 0 0; color: #bdd1d7; font-size: 13px; }
.payment-body { padding: 18px; }
.total-stack { display: grid; gap: 10px; margin-bottom: 16px; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.total-row.grand { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.total-row.grand strong { font-size: 32px; line-height: 1; }
.pay-btn { width: 100%; min-height: 58px; font-size: 18px; }
.payment-methods { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.method-btn { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #253549; cursor: pointer; font-weight: 900; }
.method-btn.active { border-color: rgba(15,118,110,.45); background: var(--brand-soft); color: var(--brand-strong); }
.payment-input { display: grid; gap: 7px; margin: 10px 0; }
.payment-input span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.shortcut-grid button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #253549; cursor: pointer; font-weight: 800; }
.receipt-note { margin: 14px 0 0; padding: 12px; border-radius: 8px; background: var(--blue-soft); color: #1e3a8a; font-size: 13px; }
.receipt-note.is-error { background: var(--red-soft); color: #991b1b; }
.receipt-note.is-ok { background: var(--green-soft); color: #166534; }
.error-state { max-width: 680px; }
.error-state h2 { margin-bottom: 8px; }

@media (max-width: 1120px) {
    .pos-page { grid-template-columns: 1fr; }
    .payment-panel { position: static; }
}
@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: sticky; z-index: 10; height: auto; max-height: none; padding: 14px; }
    .brand { margin-bottom: 10px; }
    .nav { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
    .nav-section { display: contents; padding: 0; border: 0; background: none; }
    .nav-label { display: none; }
    .nav a { white-space: nowrap; min-width: max-content; padding: 8px 11px; }
    .nav a span { display: none; }
    .main { padding: 18px; }
    .topbar, .topbar-actions { align-items: stretch; flex-direction: column; }
    .global-search, .user-pill { width: 100%; max-width: none; }
    .metric-grid, .content-grid, .work-grid, .auth-card, .pos-toolbar { grid-template-columns: 1fr; }
    .panel.wide { grid-column: auto; }
    .auth-hero { padding: 32px; }
}
@media (max-width: 620px) {
    .main { padding: 14px; }
    .topbar h1 { font-size: 23px; }
    .panel-head, .panel-header { align-items: stretch; flex-direction: column; }
    .toolbar, .inline-search { width: 100%; }
    .scan-row, .inline-search { display: grid; grid-template-columns: 1fr; }
    .scan-row input { font-size: 15px; }
    .quick-grid, .dashboard-actions { grid-template-columns: 1fr 1fr; }
    .payment-methods { grid-template-columns: 1fr; }
    .pagination-bar { align-items: stretch; flex-direction: column; }
    .page-info { margin-right: 0; }
    .per-page-form label { justify-content: space-between; }
    .per-page-form select { flex: 0 0 96px; }
    .pagination-links { display: grid; grid-template-columns: 1fr auto 1fr; }
    .metric-card strong, .total-row.grand strong { font-size: 25px; }
    th, td { padding: 11px 9px; }
}

/* Modern polish layer */
:root {
    --bg: #f3f7f8;
    --surface: #ffffff;
    --surface-soft: #f7fafb;
    --ink: #10202e;
    --muted: #6b7a88;
    --line: #dce6eb;
    --brand: #2f7696;
    --brand-strong: #245f79;
    --brand-soft: #e7f4f8;
    --accent: #0f9f8f;
    --accent-soft: #e4f8f4;
    --blue: #2563eb;
    --blue-soft: #edf4ff;
    --amber: #b7791f;
    --amber-soft: #fff7e6;
    --red: #d72f45;
    --red-soft: #fff0f3;
    --green: #14805d;
    --green-soft: #eaf8f2;
    --shadow: 0 24px 70px rgba(20, 40, 56, .13);
    --shadow-soft: 0 14px 36px rgba(20, 40, 56, .08);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;
}

body {
    background:
        linear-gradient(180deg, #f7fbfc 0%, #edf4f6 44%, #f6f8fa 100%);
    color: var(--ink);
}

.app-shell {
    grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
    background: #173548;
    padding: 18px 14px;
    border-right: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 16px 0 40px rgba(17, 42, 58, .12);
}

.brand {
    margin: 0 4px 16px;
    padding: 8px 8px 18px;
    border-bottom-color: rgba(255, 255, 255, .12);
}

.brand strong {
    display: block;
    font-size: 16px;
    letter-spacing: 0;
}

.brand small {
    color: #b9d3dd;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, .92);
    box-shadow: 0 14px 28px rgba(7, 19, 29, .24);
}

.brand-mark.large {
    width: 70px;
    height: 70px;
}

.nav {
    gap: 12px;
}

.nav-section {
    gap: 4px;
    padding: 9px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
}

.nav-label {
    color: #9fc1cc;
    letter-spacing: .06em;
}

.nav a {
    min-height: 43px;
    border-radius: 11px;
    color: #e4eff3;
    font-weight: 780;
    transition: background-color .12s ease, color .12s ease;
}

.nav a span {
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #bcebe4;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, .13);
    color: #ffffff;
}

body.is-navigating .nav a,
body.is-navigating .mobile-bottom-item,
body.is-navigating .mobile-menu-card {
    transition: none !important;
}

.nav a:hover span,
.nav a.active span {
    background: rgba(15, 159, 143, .24);
    color: #ffffff;
}

.nav a.nav-item-primary {
    min-height: 52px;
    background: #0f9f8f;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 14px 30px rgba(15, 159, 143, .22);
}

.nav a.nav-item-primary span {
    background: rgba(255, 255, 255, .18);
}

.nav a.active::before {
    left: 4px;
    width: 3px;
    height: 24px;
    background: #9ef5e8;
}

.main {
    padding: 24px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 9;
    margin: -24px -24px 20px;
    padding: 18px 24px;
    background: rgba(247, 251, 252, .88);
    border-bottom: 1px solid rgba(220, 230, 235, .9);
    backdrop-filter: blur(14px);
}

.topbar h1 {
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 850;
}

.eyebrow {
    color: #688293;
    letter-spacing: .05em;
}

.global-search,
input,
select,
textarea {
    min-height: 44px;
    border-radius: 12px;
    border-color: #d9e5ea;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.global-search {
    width: min(31vw, 380px);
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(47, 118, 150, .78);
    box-shadow: 0 0 0 4px rgba(47, 118, 150, .13);
}

.user-pill {
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 981px) and (max-width: 1350px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(210px, 1fr) auto;
    }

    .topbar h1 {
        white-space: nowrap;
    }

    .global-search {
        width: min(25vw, 300px);
    }

    .user-pill {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.icon-btn,
.secondary-btn,
.primary-btn,
.ghost-btn,
.pay-btn {
    border-radius: 12px;
    min-height: 44px;
    font-weight: 850;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.icon-btn:hover,
.secondary-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.pay-btn:hover,
.quick-btn:hover,
.method-btn:hover {
    transform: translateY(-1px);
}

.icon-btn,
.secondary-btn {
    background: #edf4f6;
    color: #213548;
    border: 1px solid #dce8ed;
}

.ghost-btn {
    background: #ffffff;
}

.primary-btn,
.pay-btn {
    background: #2f7696;
    box-shadow: 0 16px 28px rgba(47, 118, 150, .2);
}

.primary-btn:hover,
.pay-btn:hover {
    background: #245f79;
    box-shadow: 0 18px 34px rgba(47, 118, 150, .26);
}

.alert,
.metric-card,
.panel,
.payment-panel,
.cart-panel,
.scan-box,
.pos-card {
    border-radius: var(--radius-lg);
    border-color: rgba(215, 228, 234, .95);
    box-shadow: var(--shadow-soft);
}

.panel,
.scan-box,
.cart-panel,
.payment-panel {
    background: rgba(255, 255, 255, .96);
}

.panel {
    padding: 20px;
}

.panel h2,
.payment-panel h2,
.cart-head h2 {
    font-size: 20px;
    font-weight: 850;
    color: #12283a;
}

.panel-head,
.panel-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f5;
}

.metric-grid,
.content-grid {
    gap: 16px;
}

.metric-card,
.metric {
    position: relative;
    min-height: 112px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(215, 228, 234, .95);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.metric-card::before,
.metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #2f7696;
}

.metric-card:nth-child(2)::before,
.metric:nth-child(4n+2)::before {
    background: #0f9f8f;
}

.metric-card:nth-child(3)::before,
.metric:nth-child(4n+3)::before {
    background: #b7791f;
}

.metric-card:nth-child(4)::before,
.metric:nth-child(4n+4)::before {
    background: #6f63c7;
}

.metric-card span,
.metric span {
    color: #728394;
    letter-spacing: .03em;
}

.metric-card strong,
.metric strong {
    margin-top: 4px;
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 880;
    color: #10202e;
}

.metric-card small {
    display: block;
    margin-top: 8px;
}

.metric-list > div,
.status-list > div {
    border-radius: 14px;
    background: #f8fbfc;
    border-color: #e1ebef;
}

.badge,
.status-pill {
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 11px;
    border: 1px solid transparent;
}

.badge.ok,
.status-pill.success {
    background: var(--green-soft);
    border-color: #c9eee0;
}

.badge.warn {
    background: var(--amber-soft);
    border-color: #f5ddb0;
}

.badge.danger {
    background: var(--red-soft);
    border-color: #f6c8d0;
}

.table-wrap,
.table-responsive {
    border-radius: var(--radius);
    border-color: #dce8ed;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

thead {
    background: #f5f9fa;
}

th {
    color: #6c7c89;
    letter-spacing: .06em;
}

th,
td {
    border-bottom-color: #e8eff2;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #f6fbfb;
}

.stack-form label,
.login-form label {
    color: #5e7181;
    letter-spacing: .02em;
}

.checkbox-line {
    border: 1px solid #e1ebef;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fbfc;
}

.modal-layer {
    background: rgba(17, 39, 53, .52);
    backdrop-filter: blur(8px);
}

.modal-card {
    border-radius: 18px;
    border-color: rgba(255, 255, 255, .78);
    box-shadow: 0 30px 90px rgba(10, 27, 40, .28);
}

.auth-page {
    background: linear-gradient(145deg, #eef7f8, #f9fbfb 58%, #eaf2f5);
}

.auth-card {
    border-radius: 24px;
    border-color: rgba(215, 228, 234, .95);
    box-shadow: 0 28px 80px rgba(20, 40, 56, .16);
}

.auth-hero {
    background: #173548;
}

.auth-hero h1 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
}

.pos-page {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 18px;
}

.pos-left {
    gap: 18px;
}

.pos-toolbar {
    grid-template-columns: minmax(0, 1fr) 240px;
}

.scan-box {
    padding: 18px;
    border-color: rgba(47, 118, 150, .2);
}

.scan-box label {
    color: #526a7a;
}

.scan-row {
    grid-template-columns: minmax(240px, 1fr) 126px;
}

.scan-row input {
    min-height: 58px;
    border-radius: 14px;
    font-size: 17px;
}

.product-result {
    border-radius: 14px;
    border-color: #dfe9ee;
    box-shadow: 0 10px 24px rgba(20, 40, 56, .06);
}

.product-result:hover {
    border-color: rgba(47, 118, 150, .42);
    background: #f5fbfc;
}

.shift-chip {
    min-height: 96px;
    border-radius: var(--radius-lg);
    background: #ffffff;
}

.quick-grid {
    gap: 12px;
}

.quick-btn {
    min-height: 82px;
    border-radius: var(--radius);
    border-color: #dfe9ee;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.quick-btn:hover {
    border-color: rgba(47, 118, 150, .38);
    background: #f7fbfc;
    box-shadow: 0 18px 38px rgba(20, 40, 56, .1);
}

.quick-btn strong {
    color: #142b3d;
    font-weight: 880;
}

.cart-head {
    padding: 18px 20px;
    background: #fbfdfd;
}

.cart-empty {
    border-radius: var(--radius);
    background: #f8fbfc;
    border-color: #c7d8df;
}

.qty-control button,
.mini-danger,
.qty-control span,
.qty-pill {
    border-radius: 10px;
}

.payment-panel {
    top: 84px;
}

.payment-top {
    padding: 22px;
    background: #173548;
}

.payment-body {
    padding: 20px;
}

.total-stack {
    gap: 12px;
}

.total-row.grand {
    margin-top: 8px;
    padding: 16px 0 4px;
}

.total-row.grand strong {
    font-size: clamp(34px, 3.5vw, 46px);
    color: #0f9f8f;
}

.payment-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.method-btn {
    min-height: 50px;
    border-radius: 13px;
    border-color: #dce8ed;
    background: #ffffff;
}

.method-btn.active {
    border-color: rgba(15, 159, 143, .55);
    background: #e4f8f4;
    color: #087c70;
    box-shadow: inset 0 0 0 1px rgba(15, 159, 143, .16);
}

.pay-btn {
    min-height: 62px;
    border-radius: 16px;
    background: #0f9f8f;
    box-shadow: 0 18px 38px rgba(15, 159, 143, .26);
}

.pay-btn:hover {
    background: #0b8478;
}

.shortcut-grid button {
    border-radius: 12px;
}

.receipt-note {
    border-radius: 14px;
    border: 1px solid #d6e6ff;
}

@media (max-width: 1120px) {
    .pos-page {
        grid-template-columns: 1fr;
    }

    .payment-panel {
        position: static;
    }
}

/* POS needs a generous scan lane at common desktop widths. */
.pos-toolbar {
    grid-template-columns: minmax(0, 1fr);
}

.shift-chip {
    min-height: 78px;
}

.scan-box label {
    max-width: 100%;
}

.scan-row {
    grid-template-columns: minmax(0, 1fr) 120px;
}

@media (min-width: 1500px) {
    .pos-toolbar {
        grid-template-columns: minmax(0, 1fr) 240px;
    }
}

/* Finance workspace */
.finance-page {
    display: grid;
    gap: 18px;
}

.finance-hero,
.finance-card-panel,
.finance-flow-panel {
    width: 100%;
}

.finance-hero-head {
    align-items: flex-start;
}

.finance-period-form {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.finance-period-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.finance-period-form input {
    min-height: 40px;
    min-width: 150px;
    border: 1px solid #d7e4ea;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.finance-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.finance-owner-grid,
.finance-breakdown-grid {
    display: grid;
    gap: 18px;
}

.finance-owner-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
}

.finance-breakdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-statement-panel {
    min-width: 0;
}

.finance-statement-list,
.finance-breakdown-list,
.finance-action-list {
    display: grid;
    gap: 10px;
}

.finance-statement-list > div,
.finance-breakdown-list > div,
.finance-cashflow-strip > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    border: 1px solid #e0eaf0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f9fcfd;
}

.finance-statement-list span,
.finance-breakdown-list span,
.finance-cashflow-strip span {
    color: #5f7482;
    font-size: 13px;
    font-weight: 650;
}

.finance-statement-list strong,
.finance-breakdown-list strong,
.finance-cashflow-strip strong {
    color: #102234;
    font-size: 16px;
    font-weight: 760;
    text-align: right;
    white-space: nowrap;
}

.finance-statement-list .subtotal {
    background: #eef8f7;
    border-color: #bde7e1;
}

.finance-statement-list .total {
    background: #12384a;
    border-color: #12384a;
}

.finance-statement-list .total span,
.finance-statement-list .total strong {
    color: #fff;
}

.finance-cashflow-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.finance-action-item {
    border: 1px solid #dce8ee;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.finance-action-item strong {
    display: block;
    color: #142b3d;
    font-size: 14px;
    font-weight: 760;
}

.finance-action-item span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.finance-action-item.ok {
    border-color: #bdebdc;
    background: #f1fbf7;
}

.finance-action-item.warn {
    border-color: #f6d79c;
    background: #fff9ed;
}

.finance-action-item.danger {
    border-color: #fecaca;
    background: #fff5f5;
}

.finance-breakdown-list span {
    display: grid;
    gap: 2px;
}

.finance-breakdown-list small {
    color: #7b8d99;
    font-size: 12px;
    font-weight: 600;
}

.text-danger {
    color: var(--red) !important;
}

.finance-lane {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    gap: 18px;
    align-items: start;
}

.finance-lane-single {
    grid-template-columns: minmax(0, 1fr);
}

.finance-account-table table {
    min-width: 860px;
}

.finance-account-table td strong {
    display: block;
    color: #132b3d;
    font-weight: 720;
}

.finance-account-table td small {
    display: block;
    margin-top: 2px;
    color: #6a7d89;
    font-size: 12px;
}

.finance-balance-cell {
    color: #0f9f8f;
    font-weight: 820;
}

.finance-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.finance-debt-panel {
    display: grid;
    gap: 16px;
}

.debt-summary-grid {
    margin-bottom: 0;
}

.finance-debt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mini-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.mini-panel-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 680;
}

.finance-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.finance-account-card,
.finance-method-card {
    min-width: 0;
    border: 1px solid #dfe9ee;
    border-radius: 16px;
    background: #f9fcfd;
    box-shadow: 0 10px 24px rgba(20, 40, 56, .06);
}

.finance-account-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.finance-card-top,
.finance-meta,
.finance-method-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.finance-account-card h3,
.finance-method-card h3 {
    margin: 0;
    color: #142b3d;
    font-size: 16px;
    font-weight: 880;
}

.finance-code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #edf4f6;
    color: #526a7a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
}

.finance-balance {
    display: block;
    color: #0f9f8f;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.finance-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.finance-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #ffffff;
    border: 1px solid #e2ecf0;
}

.finance-card-actions {
    padding-top: 4px;
}

.finance-method-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.finance-method-card {
    padding: 14px;
}

.finance-method-card > div:first-child {
    min-width: 0;
}

.finance-method-card .row-actions {
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .finance-hero-grid,
    .finance-entry-grid,
    .finance-debt-grid,
    .finance-owner-grid,
    .finance-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-lane {
        grid-template-columns: minmax(0, 1fr);
    }

    .purchase-summary-grid,
    .purchase-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .opname-body-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .opname-actions {
        width: 100%;
        min-width: 0;
    }

}

@media (max-width: 920px) {
    .opname-hero-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .opname-actions {
        justify-content: stretch;
        max-width: none;
    }

    .opname-actions .primary-btn,
    .opname-actions .secondary-btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 760px) {
    .finance-hero-grid,
    .finance-entry-grid,
    .finance-debt-grid,
    .finance-account-grid,
    .finance-owner-grid,
    .finance-breakdown-grid,
    .finance-cashflow-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .finance-period-form {
        justify-content: stretch;
        width: 100%;
    }

    .finance-period-form label,
    .finance-period-form input,
    .finance-period-form button {
        width: 100%;
    }

    .settings-method-list > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .finance-method-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .finance-method-card .row-actions,
    .finance-card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .purchase-summary-grid,
    .purchase-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .purchase-item-row,
    .receipt-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .purchase-action-strip,
    .purchase-item-head {
        align-items: stretch;
        flex-direction: column;
    }

    .purchase-action-strip .primary-btn,
    .purchase-action-strip .secondary-btn,
    .purchase-item-head .secondary-btn {
        width: 100%;
    }

    .opname-document-card,
    .opname-flow,
    .opname-summary-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .opname-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .opname-history-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        background: #173548;
    }

    .brand {
        padding-bottom: 12px;
    }

    .nav a:hover {
        transform: none;
    }

    .main {
        padding: 18px;
    }

    .topbar {
        margin: -18px -18px 18px;
        padding: 16px 18px;
        position: static;
    }

    .pos-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .main {
        padding: 14px;
    }

    .topbar {
        margin: -14px -14px 16px;
        padding: 14px;
    }

    .metric-grid,
    .content-grid {
        gap: 12px;
    }

    .metric-card,
    .metric,
    .panel {
        border-radius: 16px;
    }

    .quick-grid,
    .dashboard-actions,
    .pos-actions {
        grid-template-columns: 1fr 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* Responsive guardrail: keep wide desktop surfaces inside the viewport. */
.app-shell,
.main,
.panel,
.metric-card,
.metric,
.pos-page,
.pos-left,
.pos-toolbar,
.scan-box,
.cart-panel,
.payment-panel,
.content-grid,
.metric-grid,
.work-grid {
    min-width: 0;
}

@media (max-width: 980px) {
    .content-grid,
    .metric-grid,
    .work-grid,
    .pos-toolbar,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel.wide {
        grid-column: auto;
    }

    .sidebar {
        overflow-x: hidden;
    }

    .nav {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media (max-width: 620px) {
    .pos-page,
    .pos-left,
    .scan-box,
    .cart-panel,
    .payment-panel,
    .panel,
    .metric-card,
    .metric {
        width: 100%;
        max-width: 100%;
    }

    .scan-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .scan-row input,
    .scan-row button {
        width: 100%;
        min-width: 0;
    }

    .quick-grid,
    .dashboard-actions,
    .pos-actions,
    .payment-methods,
    .shortcut-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Dashboard analytics */
.dashboard-analytics {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
    gap: 16px;
    margin-bottom: 16px;
}

.chart-panel {
    min-width: 0;
}

.sales-trend-panel {
    min-height: 360px;
}

.sales-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 250px;
    padding: 16px 4px 2px;
}

.sales-bar-item {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 8px;
    min-width: 0;
    height: 240px;
    text-align: center;
}

.sales-bar-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 150px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f6fafb, #eef5f7);
    overflow: hidden;
}

.sales-bar {
    width: 72%;
    min-height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #0f9f8f, #2f7696);
    box-shadow: 0 -8px 18px rgba(15, 159, 143, .18);
}

.sales-bar-item strong {
    font-size: 12px;
    color: #526a7a;
}

.sales-bar-item small {
    min-height: 32px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-donut-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    justify-items: center;
    align-items: center;
    min-height: 250px;
}

.payment-donut {
    position: relative;
    display: grid;
    place-items: center;
    width: 170px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(20, 40, 56, .06), 0 16px 34px rgba(20, 40, 56, .08);
}

.payment-donut::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e4eef2;
}

.payment-donut span {
    position: relative;
    z-index: 1;
    color: #12283a;
    font-size: 22px;
    font-weight: 900;
}

.chart-legend {
    display: grid;
    gap: 10px;
    width: 100%;
}

.chart-legend div {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 34px;
}

.chart-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chart-legend span {
    color: #526a7a;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-legend strong {
    color: #12283a;
    font-size: 13px;
}

.product-bar-list,
.risk-list {
    display: grid;
    gap: 12px;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.product-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.product-bar-row strong {
    display: block;
    color: #142b3d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-bar-row small {
    color: var(--muted);
}

.product-bar-row > span {
    display: block;
    height: 11px;
    border-radius: 999px;
    background: #edf4f6;
    overflow: hidden;
}

.product-bar-row > span i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f7696, #0f9f8f);
}

.risk-item {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid #e4edf1;
    border-radius: 14px;
    background: #f9fcfd;
}

.risk-item span {
    color: #526a7a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.risk-item strong {
    color: #142b3d;
}

.risk-item small {
    color: var(--muted);
}

.risk-item.warn {
    border-color: #f3ddb2;
    background: #fffaf0;
}

.risk-item.danger {
    border-color: #f3c9d0;
    background: #fff5f7;
}

.empty.compact {
    padding: 24px;
    border: 1px dashed #c8d7df;
    border-radius: 14px;
    background: #f9fcfd;
}

@media (max-width: 1180px) {
    .dashboard-analytics {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .payment-donut-wrap {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .chart-legend {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .sales-chart {
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .sales-bar-item {
        min-width: 58px;
    }

    .payment-donut {
        width: 150px;
    }
}

/* Dashboard chart refresh */
.trend-card {
    min-height: 360px;
}

.trend-visual {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.trend-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 250px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdfd 0%, #f4fafb 100%);
}

.trend-grid-line {
    fill: none;
    stroke: #dfe9ee;
    stroke-width: 1;
    stroke-dasharray: 5 7;
}

.trend-area {
    fill: url(#salesAreaGradient);
}

.trend-line {
    fill: none;
    stroke: #0f9f8f;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 14px rgba(15, 159, 143, .18));
}

.trend-dot {
    fill: #ffffff;
    stroke: #0f9f8f;
    stroke-width: 4;
}

.trend-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.trend-labels span {
    display: grid;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.trend-labels strong {
    color: #526a7a;
    font-size: 12px;
}

.trend-labels small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-split-list {
    display: grid;
    gap: 16px;
    padding-top: 4px;
}

.payment-split-row {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e1ebef;
    border-radius: 14px;
    background: #f9fcfd;
}

.payment-split-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.payment-split-head span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: #142b3d;
    font-weight: 900;
}

.payment-split-head i {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.payment-split-head strong {
    color: #12283a;
}

.payment-split-track {
    height: 10px;
    border-radius: 999px;
    background: #edf4f6;
    overflow: hidden;
}

.payment-split-track em {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
}

.payment-split-row small {
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 620px) {
    .trend-visual {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .trend-svg,
    .trend-labels {
        min-width: 560px;
    }
}

/* Sidebar accordion and mobile drawer */
.brand {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #173548;
}

.nav-section-toggle {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #9fc1cc;
    padding: 0 6px 4px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-section-toggle i {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .16s ease;
}

.nav-section.is-open .nav-section-toggle i {
    transform: rotate(225deg);
}

.nav-items {
    display: grid;
    gap: 4px;
}

.nav-section:not(.is-open) .nav-items {
    display: none;
}

.mobile-menu-btn,
.sidebar-backdrop {
    display: none;
}

@media (max-width: 980px) {
    .mobile-menu-btn {
        display: inline-flex;
        order: -1;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 80;
        width: min(330px, 88vw);
        height: 100vh;
        max-height: none;
        padding: 16px 14px;
        transform: translateX(-104%);
        transition: transform .22s ease;
        overflow-y: auto;
        box-shadow: 24px 0 60px rgba(7, 19, 29, .32);
    }

    body.mobile-nav-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        border: 0;
        background: rgba(13, 30, 43, .48);
        backdrop-filter: blur(4px);
        padding: 0;
    }

    body.mobile-nav-open .sidebar-backdrop {
        display: block;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .brand {
        margin-bottom: 14px;
        padding: 8px 8px 16px;
        top: -16px;
    }

    .nav {
        display: grid;
        max-width: none;
        gap: 12px;
        overflow: visible;
        padding-bottom: 20px;
    }

    .nav-section {
        display: grid;
        gap: 4px;
        padding: 9px;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, .045);
        border: 1px solid rgba(255, 255, 255, .08);
    }

    .nav-label {
        display: none;
    }

    .nav a {
        white-space: normal;
        min-width: 0;
        padding: 8px 9px;
    }

    .nav a span {
        display: grid;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .topbar-actions .global-search {
        grid-column: 2;
    }

    .topbar-actions .user-pill,
    .topbar-actions form {
        grid-column: 1 / -1;
    }
}

/* Final mobile navigation overrides */
@media (max-width: 980px) {
    .sidebar,
    .sidebar-backdrop,
    .mobile-menu-btn {
        display: none !important;
    }

    .main {
        padding-bottom: calc(106px + env(safe-area-inset-bottom));
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .topbar-actions .global-search,
    .topbar-actions .user-pill,
    .topbar-actions form {
        grid-column: auto;
    }

    .mobile-bottom-nav {
        display: grid;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px 20px 0 0;
    }
}

/* Sidebar brand header should feel anchored, not floating over the menu. */
@media (min-width: 981px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        padding: 0;
    }

    .sidebar .brand {
        position: relative;
        top: auto;
        z-index: 5;
        flex: 0 0 auto;
        margin: 0;
        padding: 16px 18px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        background: #173548;
        box-shadow: 0 12px 22px rgba(8, 24, 36, .14);
    }

    .sidebar .nav {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 10px 12px 18px;
        scrollbar-width: thin;
        scrollbar-color: rgba(177, 212, 223, .68) transparent;
    }

    .sidebar .nav::-webkit-scrollbar {
        display: block;
        width: 6px;
    }

    .sidebar .nav::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(177, 212, 223, .55);
    }
}

/* Payment panel contrast */
.payment-panel .payment-top h2 {
    color: #f8fbfc !important;
}

.payment-panel .payment-top p {
    color: #d7e8ee !important;
}

/* Compact grouped sidebar headings */
@media (min-width: 981px) {
    .sidebar .nav {
        gap: 8px;
        padding: 10px 12px 18px;
        align-content: start;
        align-items: start;
    }

    .sidebar .nav-section {
        gap: 4px;
        padding: 6px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .035);
        border-color: rgba(255, 255, 255, .075);
        align-content: start;
        align-self: start;
    }

    .sidebar .nav-section-toggle {
        min-height: 34px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 7px;
        border-radius: 9px;
        background: rgba(255, 255, 255, .075);
        color: #c8e3eb;
        text-align: left;
        justify-content: flex-start;
        align-self: start;
        cursor: default;
    }

    .sidebar .nav-section-toggle .nav-icon {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: rgba(94, 234, 212, .13);
        color: #9fe9df;
    }

    .sidebar .nav-section-toggle .nav-icon svg {
        width: 15px;
        height: 15px;
    }

    .sidebar .nav-section-toggle span:not(.nav-icon) {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar .nav-section-toggle > i {
        display: none;
    }

    .sidebar .nav-section .nav-items {
        display: grid !important;
        gap: 3px;
    }

    .sidebar .nav a {
        min-height: 38px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .sidebar .nav a span {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }
}

/* Final typography balance: keep hierarchy clear without making every label feel heavy. */
body {
    font-weight: 400;
}

.topbar h1,
.auth-hero h1 {
    font-weight: 780 !important;
}

.panel h2,
.payment-panel h2,
.cart-head h2,
.modal-head h2,
.opname-hero-main h2,
.purchase-hero h2 {
    font-weight: 720 !important;
}

.brand strong,
td strong,
.data-table td strong,
.quick-btn strong,
.shift-chip strong,
.opname-history-card strong,
.purchase-step strong {
    font-weight: 650 !important;
}

.nav a,
.mobile-menu-card span:last-child,
.mobile-bottom-item,
.sidebar .nav a {
    font-weight: 620 !important;
}

.nav-section-toggle,
.nav-label,
.eyebrow,
.metric-card span,
.metric span,
.metric-list span,
.filter-strip label,
.stack-form label,
.scan-box label,
.shift-chip span,
.payment-input span,
.opname-document-card span,
.opname-summary-cards span,
.finance-code,
th {
    font-weight: 650 !important;
    letter-spacing: .035em;
}

.icon-btn,
.secondary-btn,
.primary-btn,
.ghost-btn,
.pay-btn,
.method-btn,
.shortcut-grid button,
.quick-btn,
.page-link,
.mini-danger {
    font-weight: 650 !important;
}

.badge,
.status-pill,
.qty-pill,
.qty-control span {
    font-weight: 650 !important;
}

.metric-card strong,
.metric strong,
.finance-balance,
.opname-document-card strong,
.opname-summary-cards strong,
.total-row.grand strong {
    font-weight: 760 !important;
}

.receipt-note,
.panel-subtitle,
.form-note,
td small,
.muted,
.user-pill {
    font-weight: 400 !important;
}

/* Device settings and receipt printing */
.settings-page {
    display: grid;
    gap: 18px;
}

.settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbfa 58%, #eef7fb 100%);
    box-shadow: var(--shadow);
}

.settings-hero h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.12;
    font-weight: 720;
}

.settings-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
}

.settings-status {
    display: grid;
    gap: 5px;
    min-width: 240px;
    padding: 14px 16px;
    border: 1px solid rgba(20, 184, 166, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
}

.settings-status span,
.settings-control-list label > span,
.settings-two-cols label > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.settings-status strong {
    color: var(--ink);
    font-weight: 650;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-card {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.settings-card-wide {
    grid-column: 1 / -1;
}

.settings-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.settings-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #0f766e;
    background: #e7f8f5;
}

.settings-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 680;
}

.settings-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.settings-control-list,
.settings-two-cols,
.settings-help-list,
.settings-method-list {
    display: grid;
    gap: 12px;
}

.settings-two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-control-list label,
.settings-two-cols label {
    display: grid;
    gap: 7px;
}

.settings-control-list input:not([type="checkbox"]),
.settings-control-list select,
.settings-two-cols input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.settings-switch {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.settings-switch input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
}

.settings-switch span {
    color: var(--ink) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.settings-note {
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.5;
}

.settings-card-toolbar {
    display: flex;
    justify-content: flex-end;
}

.settings-help-list > div,
.settings-method-list > div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.settings-method-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.settings-help-list strong,
.settings-method-list strong {
    color: var(--ink);
    font-weight: 650;
}

.settings-help-list span,
.settings-method-list span {
    color: var(--muted);
    font-size: 13px;
}

.settings-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.settings-actions .receipt-note {
    margin: 0;
}

.receipt-print-area {
    display: none;
}

@media (max-width: 980px) {
    .settings-hero,
    .settings-grid,
    .settings-two-cols {
        grid-template-columns: 1fr;
    }

    .settings-status {
        min-width: 0;
    }

    .settings-actions {
        display: grid;
    }
}

@media print {
    @page {
        size: 80mm auto;
        margin: 4mm;
    }

    body * {
        visibility: hidden !important;
    }

    .receipt-print-area,
    .receipt-print-area * {
        visibility: visible !important;
    }

    .receipt-print-area {
        display: block !important;
        position: absolute;
        inset: 0 auto auto 0;
        width: 80mm;
        color: #000;
        background: #fff;
        font-family: Arial, sans-serif;
    }

    .thermal-receipt {
        width: 80mm;
        padding: 0;
        page-break-after: always;
        font-size: 11px;
        line-height: 1.35;
    }

    .thermal-receipt:last-child {
        page-break-after: auto;
    }

    .thermal-58mm {
        width: 58mm;
    }

    .thermal-A4 {
        width: 190mm;
    }

    .thermal-receipt header,
    .thermal-receipt footer {
        text-align: center;
    }

    .receipt-store {
        display: grid;
        justify-items: center;
        gap: 2px;
    }

    .receipt-logo {
        width: 13mm;
        height: 13mm;
        object-fit: contain;
        margin-bottom: 2px;
    }

    .receipt-store strong {
        display: block;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.15;
        text-transform: uppercase;
    }

    .receipt-store span,
    .receipt-meta,
    .thermal-receipt footer {
        display: block;
        font-size: 10px;
        line-height: 1.25;
    }

    .receipt-meta,
    .receipt-items,
    .receipt-total {
        border-top: 1px dashed #000;
        margin-top: 7px;
        padding-top: 7px;
    }

    .receipt-line,
    .receipt-total {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .receipt-line span {
        display: grid;
    }

    .receipt-line small {
        color: #000;
        font-size: 10px;
    }

    .receipt-total strong {
        font-size: 13px;
    }

    .thermal-receipt footer {
        border-top: 1px dashed #000;
        margin-top: 8px;
        padding-top: 8px;
    }
}

/* Final system typography standard: applied last so every menu follows the same scale. */
body {
    font-size: 13px !important;
    line-height: 1.45;
    letter-spacing: 0;
}

.main {
    padding: 20px !important;
}

.topbar {
    margin-bottom: 16px !important;
}

.topbar h1 {
    font-size: clamp(22px, 1.55vw, 28px) !important;
    line-height: 1.14 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.eyebrow,
.metric-card span,
.metric span,
.metric-list span,
.filter-strip label,
.stack-form label,
.scan-box label,
.shift-chip span,
.payment-input span,
.finance-code,
th {
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.panel,
.payment-panel,
.cart-panel,
.scan-box,
.pos-card,
.metric-card,
.metric,
.quick-btn,
.shift-chip,
.purchase-step,
.settings-status {
    border-radius: 8px !important;
}

.panel {
    padding: 16px !important;
}

.panel h2,
.payment-panel h2,
.cart-head h2,
.modal-head h2,
.purchase-hero h2,
.opname-hero-main h2,
.settings-hero h2 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 680 !important;
    letter-spacing: 0 !important;
}

.panel-subtitle,
.form-note,
.receipt-note,
.quick-btn span,
.purchase-step span,
td small,
.muted,
.user-pill {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

input,
select,
textarea,
.global-search,
.user-pill {
    min-height: 40px !important;
    font-size: 13px !important;
}

.icon-btn,
.secondary-btn,
.primary-btn,
.ghost-btn,
.method-btn,
.shortcut-grid button,
.quick-btn,
.page-link,
.mini-danger {
    min-height: 38px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.pay-btn {
    min-height: 52px !important;
    font-size: 15px !important;
    font-weight: 680 !important;
}

.data-table,
table {
    font-size: 12.5px !important;
}

th,
td {
    padding: 11px 12px !important;
}

.badge,
.status-pill {
    min-height: 24px !important;
    padding: 4px 9px !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

.metric-card,
.metric {
    padding: 15px !important;
}

.metric-card strong,
.metric strong {
    font-size: clamp(22px, 1.75vw, 28px) !important;
    font-weight: 720 !important;
}

.metric-list strong {
    font-size: 17px !important;
    font-weight: 680 !important;
}

.quick-btn {
    min-height: 68px !important;
    padding: 11px !important;
}

.quick-btn strong,
.shift-chip strong,
.purchase-step strong,
.opname-history-card strong {
    font-size: 13px !important;
    font-weight: 650 !important;
}

.nav a,
.sidebar .nav a {
    font-size: 13px !important;
    font-weight: 620 !important;
}

.mobile-menu-card span:last-child,
.mobile-bottom-item {
    font-size: 10.5px !important;
    font-weight: 650 !important;
}

.settings-hero {
    padding: 18px !important;
}

.payment-top h2 {
    font-size: 16px !important;
}

.total-row.grand strong {
    font-size: clamp(28px, 2.3vw, 36px) !important;
    font-weight: 740 !important;
}

.product-detail-table th,
.product-detail-table td {
    padding: 10px 12px !important;
}

@media (max-width: 760px) {
    .main {
        padding: 14px !important;
    }

    .topbar h1 {
        font-size: 22px !important;
    }

    .panel h2,
    .payment-panel h2,
    .cart-head h2,
    .modal-head h2 {
        font-size: 15px !important;
    }
}
