:root {
    color-scheme: light;
    --ink: #132033;
    --muted: #667085;
    --line: #d9e3ee;
    --bg: #f3f7fb;
    --panel: #ffffff;
    --accent: #078a22;
    --accent-dark: #046319;
    --blue: #0757b8;
    --orange: #f59e0b;
    --danger: #b42318;
    --shadow: 0 14px 34px rgba(14, 31, 53, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, rgba(7, 87, 184, .06), rgba(7, 138, 34, .04)), var(--bg);
    color: var(--ink);
}

a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 278px;
    background: #0c1726;
    color: #fff;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-right: 5px solid var(--orange);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--accent);
    border-bottom: 5px solid var(--orange);
    border-right: 5px solid var(--blue);
    border-radius: 8px;
    font-weight: 900;
    color: #fff;
}

.brand small {
    display: block;
    color: #b6c2d1;
    margin-top: 4px;
}

nav {
    display: grid;
    gap: 6px;
}

nav a,
.ghost {
    color: #eef3f7;
    padding: 11px 12px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

nav a:hover,
.ghost:hover {
    background: rgba(255, 255, 255, .09);
}

.content {
    flex: 1;
    padding: 28px;
    overflow-x: auto;
}

.page-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}
.stock-variance {
    display: inline-flex;
    min-width: 70px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-weight: 900;
}

.variance-positive {
    background: #dcfce7;
    color: #087f23;
}

.variance-negative {
    background: #fee2e2;
    color: #b42318;
}

.variance-zero {
    background: #eef6ff;
    color: #0057b8;
}
h1 {
    margin: 0;
    font-size: 28px;
    color: var(--ink);
}

h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--ink);
}

p {
    color: var(--muted);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metrics article,
.grid > div,
.form,
.login-panel,
.receipt {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.metrics article {
    border-top: 4px solid var(--accent);
}

.metrics article:nth-child(2) {
    border-top-color: var(--orange);
}

.metrics article:nth-child(3) {
    border-top-color: var(--blue);
}

.metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.metrics strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    color: var(--blue);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    background: #eef6ff;
    font-size: 13px;
    color: #25476f;
}

.form {
    display: grid;
    gap: 13px;
}

.form.wide {
    max-width: 980px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 9px 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

input:focus,
select:focus {
    outline: 3px solid rgba(7, 87, 184, .14);
    border-color: var(--blue);
}

button,
.button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover,
.button:hover {
    background: var(--accent-dark);
    color: #fff;
}

.page-head .button {
    background: var(--blue);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    background: #fff0ed;
    color: var(--danger);
    margin-bottom: 14px;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 99px;
    background: #ecfdf3;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.line-item {
    display: grid;
    grid-template-columns: 1fr 120px 160px;
    gap: 10px;
    margin-bottom: 10px;
}

.login-panel {
    max-width: 420px;
    margin: 8vh auto;
    border-top: 5px solid var(--orange);
}

.receipt {
    max-width: 760px;
    margin: 0 auto;
}

.totals {
    text-align: right;
    margin: 18px 0;
}

@media (max-width: 900px) {
    .shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 5px solid var(--orange);
    }

    .content {
        padding: 16px;
    }

    .metrics,
    .grid.two,
    .grid.three,
    .line-item {
        grid-template-columns: 1fr;
    }
}

@media print {
    .sidebar,
    .page-head a,
    button {
        display: none;
    }

    .content {
        padding: 0;
    }

    body {
        background: #fff;
    }

    .receipt {
        border: 0;
        box-shadow: none;
    }
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.login-brand h1 {
    font-size: 24px;
    margin: 0;
}

.login-brand p {
    margin: 6px 0 0;
    font-size: 13px;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.metrics small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
    gap: 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}

.panel-head p {
    margin: 6px 0 0;
    font-size: 13px;
}

.pill {
    display: inline-flex;
    min-width: 42px;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.pill.warning {
    background: #fff7ed;
    color: #b45309;
}

.pill.success {
    background: #ecfdf3;
    color: #047857;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 24px;
}

@media (max-width: 1100px) {
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
    align-items: start;
}

.side-panel {
    position: sticky;
    top: 20px;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.form-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 1100px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 700px) {
    .form-pair {
        grid-template-columns: 1fr;
    }
}
.status.paid {
    background: #ecfdf3;
    color: #047857;
}

.status.partial,
.status.unpaid {
    background: #fff7ed;
    color: #b45309;
}

.status.quote {
    background: #eef6ff;
    color: var(--blue);
}

.status.refunded {
    background: #fff0ed;
    color: var(--danger);
}
.sale-workspace {
    display: grid;
    gap: 18px;
    max-width: 1180px;
}

.sale-lines {
    display: grid;
    gap: 10px;
}

.sale-line {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 140px 180px;
    gap: 10px;
    align-items: center;
}

.sale-line-head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.button.secondary {
    background: #eef6ff;
    color: var(--blue);
}

.button.secondary:hover {
    background: #dbeafe;
    color: var(--blue);
}

@media (max-width: 850px) {
    .sale-line,
    .sale-line-head {
        grid-template-columns: 1fr;
    }

    .sale-line-head {
        display: none;
    }

    .action-bar {
        justify-content: stretch;
        flex-direction: column;
    }

    .action-bar .button,
    .action-bar button {
        width: 100%;
    }
}
.receipt {
    max-width: 850px;
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.receipt-head h1 {
    margin-top: 4px;
}

.receipt-brand {
    text-align: right;
    display: grid;
    gap: 5px;
}

.receipt-brand strong {
    color: var(--blue);
    font-size: 18px;
}

.receipt-brand span {
    color: var(--muted);
    font-size: 13px;
}

.receipt-customer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.receipt-customer div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
}

.receipt-customer span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.receipt-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.receipt-summary p {
    margin: 0 0 8px;
}

.receipt-totals {
    min-width: 280px;
}

.receipt-totals p {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.receipt-totals .grand {
    color: var(--blue);
    font-size: 18px;
}

.receipt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 700px) {
    .receipt-head,
    .receipt-summary,
    .receipt-actions {
        flex-direction: column;
    }

    .receipt-brand {
        text-align: left;
    }

    .receipt-customer {
        grid-template-columns: 1fr;
    }

    .receipt-actions .button,
    .receipt-actions button {
        width: 100%;
    }
}

@media print {
    .receipt-actions {
        display: none;
    }

    .receipt {
        max-width: none;
    }
}
.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.report-wide {
    grid-column: 1 / -1;
}

@media (max-width: 1000px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
}
.sale-line-four {
    grid-template-columns: minmax(260px, 1fr) 120px 150px 150px;
}

.line-total {
    background: #f8fbff;
    font-weight: 900;
    color: var(--blue);
}

.sale-summary-panel {
    max-width: 760px;
    margin-left: auto;
}

.summary-grid {
    display: grid;
    grid-template-columns: 160px 140px minmax(280px, 1fr);
    gap: 14px;
    align-items: start;
}

.summary-box {
    display: grid;
    gap: 8px;
}

.summary-box p {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.summary-box .grand {
    color: var(--blue);
    font-size: 18px;
}

@media (max-width: 850px) {
    .sale-line-four,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .sale-summary-panel {
        max-width: none;
    }
}
.dynamic-sale-line {
    grid-template-columns: minmax(280px, 1fr) 90px 130px 130px 140px 90px;
}

.remove-line {
    background: #fff0ed;
    color: var(--danger);
}

.remove-line:hover {
    background: #fee4df;
    color: var(--danger);
}

.payment-panel {
    border-top: 4px solid var(--blue);
}

@media (max-width: 1000px) {
    .dynamic-sale-line {
        grid-template-columns: 1fr;
    }
}
.summary-box p {
    gap: 18px;
}

.summary-box span {
    min-width: 120px;
}

.summary-box strong {
    text-align: right;
}

.summary-box .grand {
    align-items: center;
}

.summary-box .grand strong {
    font-size: 20px;
}
.balance-payment-form {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.balance-payment-form button {
    margin-top: 12px;
}
.customer-section {
    margin-top: 18px;
}
.settings-panel {
    max-width: 980px;
}
.flash {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.flash.success {
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
}
.receipt-footer-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid var(--line);
}

.receipt-footer-note p {
    margin: 0 0 6px;
}
.settings-block {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.settings-block h2 {
    margin: 0;
}

.check-row {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.check-row input {
    width: 18px;
    min-height: 18px;
}
.receipt-footer-note h2 {
    margin-bottom: 10px;
    color: var(--blue);
}

.receipt-policy {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}
.permission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.permission-tags span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.permissions-box {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}
.topbar {
    min-height: 58px;
    margin-bottom: 22px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar strong {
    color: var(--ink);
}

.topbar span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.logout-btn {
    background: #b42318;
    color: #ffffff;
}

.logout-btn:hover {
    background: #8f1d14;
}

@media (max-width: 700px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-user {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }
}
.topbar {
    justify-content: center;
    position: relative;
}

.topbar > div:first-child {
    text-align: center;
}

.topbar > div:first-child strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #071a2f;
}

.topbar > div:first-child span {
    font-size: 14px;
    font-weight: 800;
    color: #0757b8;
}

.topbar-user {
    position: absolute;
    right: 16px;
}
.side-nav {
    display: grid;
    gap: 18px;
}

.nav-group {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-group:last-child {
    border-bottom: 0;
}

.nav-label {
    color: #f59e0b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 3px;
}

.side-nav a {
    color: #eef3f7;
    padding: 10px 11px;
    border-radius: 8px;
    font-weight: 800;
    display: block;
}

.side-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.side-nav .nav-main {
    background: #078a22;
    color: #ffffff;
    box-shadow: inset 4px 0 0 #f59e0b;
}

.side-nav .nav-main:hover {
    background: #046319;
}
.sidebar {
    background: linear-gradient(180deg, #071525 0%, #0b1b2e 55%, #071525 100%);
    border-right: 5px solid #f59e0b;
    box-shadow: 18px 0 40px rgba(7, 21, 37, .18);
}

.sidebar .brand {
    padding: 12px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, #078a22 0%, #009b35 70%);
    border-right: 4px solid #0757b8;
    border-bottom: 4px solid #f59e0b;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.sidebar .brand strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
}

.sidebar .brand small {
    color: #9fb2c8;
    font-weight: 700;
}

.sidebar .nav-label {
    color: #f59e0b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-left: 8px;
}

.sidebar .side-nav a {
    padding: 12px 12px;
    border-radius: 8px;
    color: #eef6ff;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.sidebar .side-nav a:hover {
    background: rgba(255, 255, 255, .09);
    transform: translateX(2px);
}

.sidebar .side-nav .nav-main {
    background: linear-gradient(135deg, #078a22, #039329);
    border-left: 4px solid #f59e0b;
    box-shadow: 0 10px 20px rgba(7, 138, 34, .25);
}

.sidebar .nav-group {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.sidebar-toggle {
    margin-left: auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 18px;
    box-shadow: none;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, .16);
}

.sidebar .brand {
    gap: 10px;
}

.sidebar .brand-text {
    min-width: 0;
}

.sidebar .brand-text strong,
.sidebar .brand-text small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sidebar-collapsed .sidebar {
    width: 82px;
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .side-nav a {
    display: none !important;
}

body.sidebar-collapsed .sidebar-toggle {
    position: absolute;
    top: 78px;
    left: 24px;
    width: 34px;
}

body.sidebar-collapsed .side-nav {
    margin-top: 46px;
}

body.sidebar-collapsed .nav-group {
    border-bottom: 0;
    padding-bottom: 8px;
}

@media (max-width: 900px) {
    body.sidebar-collapsed .sidebar {
        width: 100%;
    }

    body.sidebar-collapsed .brand-text,
    body.sidebar-collapsed .nav-label,
    body.sidebar-collapsed .side-nav a {
        display: block !important;
    }

    body.sidebar-collapsed .sidebar-toggle {
        position: static;
    }
}
.accordion-nav {
    display: grid !important;
    gap: 12px !important;
}

.accordion-nav .nav-group {
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    padding-bottom: 10px;
}

.accordion-nav summary {
    list-style: none;
    cursor: pointer;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 10px 8px;
    border-radius: 8px;
}

.accordion-nav summary::-webkit-details-marker {
    display: none;
}

.accordion-nav summary::after {
    content: "+";
    float: right;
    color: #ffffff;
    font-weight: 900;
}

.accordion-nav details[open] summary::after {
    content: "-";
}

.accordion-nav summary:hover {
    background: rgba(255, 255, 255, .08);
}

.accordion-nav .nav-links {
    display: grid;
    gap: 6px;
    padding-top: 6px;
}

.accordion-nav .nav-links a {
    display: block !important;
    padding: 11px 12px;
    border-radius: 8px;
    color: #eef6ff;
    font-weight: 800;
}

.accordion-nav .nav-links a:hover {
    background: rgba(255, 255, 255, .10);
}

.accordion-nav .nav-main {
    background: linear-gradient(135deg, #078a22, #039329);
    border-left: 4px solid #f59e0b;
    box-shadow: 0 10px 20px rgba(7, 138, 34, .22);
}
.logo-preview-box {
    min-height: 92px;
    padding: 12px;
    border: 1px solid #d9e3ee;
    border-radius: 8px;
    background: #ffffff;
    display: grid;
    gap: 8px;
    align-content: start;
}

.logo-preview-box span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.logo-preview-box img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #d9e3ee;
    padding: 6px;
}
.logo-upload-field {
    align-self: start;
}

.logo-upload-field input[type="file"] {
    min-height: 42px;
    height: auto;
    padding: 9px 10px;
}
.logo-mark {
    background: #ffffff !important;
    overflow: hidden;
    padding: 4px;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.receipt-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-bottom: 8px;
    border: 1px solid #d9e3ee;
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
}.compact-btn {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
}
@media print {
    .topbar,
    .sidebar,
    .receipt-actions,
    .balance-payment-form {
        display: none !important;
    }

    .shell {
        display: block !important;
        min-height: auto !important;
    }

    .content {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body {
        background: #ffffff !important;
    }

    .receipt {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .receipt-head {
        margin-top: 0 !important;
    }
}
.danger-btn {
    background: #b42318 !important;
    color: #ffffff !important;
}

.danger-btn:hover {
    background: #8f1d14 !important;
}

.void-sale-box {
    margin-top: 18px;
    border-top: 4px solid #b42318;
}
.stock-adjust-panel {
    margin-top: 18px;
    border-top: 4px solid #b42318;
}
.stock-adjust-log {
    margin-top: 18px;
}
.report-hub {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
}

.report-card {
    background: #ffffff;
    border: 1px solid #d9e3ee;
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    border-top: 4px solid #078a22;
}

.report-card:nth-child(2n) {
    border-top-color: #0757b8;
}

.report-card:nth-child(3n) {
    border-top-color: #f59e0b;
}

.report-kicker {
    display: block;
    margin-bottom: 6px;
    color: #078a22;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.report-card h2 {
    margin-bottom: 6px;
}

.report-card p {
    margin: 0;
    font-size: 13px;
}

.report-card > strong {
    color: #0757b8;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .report-hub {
        grid-template-columns: 1fr;
    }

    .report-card {
        grid-template-columns: 1fr;
    }
}
.report-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.report-title {
    margin-bottom: 14px;
}

.report-title h2 {
    margin-bottom: 4px;
}

.report-title p {
    margin: 0;
}

.report-document tfoot th {
    background: #f8fbff;
    font-weight: 900;
}

@media print {
    .no-print,
    .topbar,
    .sidebar,
    .page-head.no-print {
        display: none !important;
    }

    .report-document {
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
    }

    .report-print-head {
        display: block !important;
    }
}
.report-title-with-search {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.report-search-box {
    min-width: 360px;
}

.report-search-box input {
    min-height: 40px;
}

@media (max-width: 800px) {
    .report-title-with-search {
        display: grid;
    }

    .report-search-box {
        min-width: 0;
    }
}
.access-denied {
    max-width: 720px;
    margin: 70px auto;
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 4px solid #b42318;
}

.access-denied-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff0ed;
    color: #b42318;
    font-size: 30px;
    font-weight: 900;
    flex: 0 0 auto;
}

.access-denied p {
    margin-bottom: 18px;
}

.access-denied-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.access-denied {
    max-width: 720px;
    margin: 70px auto;
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 4px solid #b42318;
}

.access-denied-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff0ed;
    color: #b42318;
    font-size: 30px;
    font-weight: 900;
    flex: 0 0 auto;
}

.access-denied p {
    margin-bottom: 18px;
}

.access-denied-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.password-wrap {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.password-wrap input {
    flex: 1;
}

.password-eye {
    min-height: 42px;
    padding: 0 14px;
    background: #eef6ff;
    color: #0757b8;
    border: 1px solid #d9e3ee;
    box-shadow: none;
}

.password-eye:hover {
    background: #dbeafe;
    color: #0757b8;
}
.inline-form {
    display: inline-flex;
    margin-left: 8px;
    vertical-align: middle;
}

.compact-btn {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}
.inline-unlock-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    flex-wrap: wrap;
}

.compact-input {
    width: 190px;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 12px;
}
.password-required-notice {
    border-left: 5px solid #f59e0b;
}
.sale-line-with-image {
    grid-template-columns: minmax(320px, 1fr) 90px 130px 130px 140px 90px;
}

.product-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
    align-items: center;
}

.product-image-preview {
    width: 120px !important;
    height: 92px !important;
    max-width: 120px !important;
    max-height: 92px !important;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    flex: 0 0 120px;
    box-shadow: 0 8px 18px rgba(14, 31, 53, .08);
}

.product-image-preview img,
.sale-line img {
    width: 100% !important;
    height: 100% !important;
    max-width: 120px !important;
    max-height: 92px !important;
    object-fit: contain !important;
    display: block;
    padding: 6px;
}

.sale-line-with-image {
    grid-template-columns: minmax(430px, 1fr) 90px 130px 130px 140px 90px;
    align-items: center;
}

@media (max-width: 1000px) {
    .sale-line-with-image,
    .product-choice {
        grid-template-columns: 1fr;
    }

    .product-image-preview {
        width: 100% !important;
        max-width: none !important;
        height: 150px !important;
        max-height: 150px !important;
    }

    .product-image-preview img,
    .sale-line img {
        max-width: 100% !important;
        max-height: 150px !important;
    }
}
.product-image-preview {
    position: relative;
}

.image-view-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(7, 87, 184, .92);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    z-index: 2;
}

.image-view-btn:hover {
    background: #0757b8;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 21, 37, .72);
    place-items: center;
    padding: 24px;
}

.image-modal-box {
    width: min(760px, 94vw);
    max-height: 88vh;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.image-modal-box img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.image-modal-close {
    justify-self: end;
    background: #b42318;
}
.stock-product-preview {
    position: relative;
    width: 100%;
    height: 135px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 8px 18px rgba(14, 31, 53, .08);
}

.stock-product-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.hardware-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.hardware-control-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(14, 31, 53, .07);
}

.hardware-control-card h2 {
    margin: 0;
}

.hardware-control-card .panel-head {
    margin-bottom: 0;
}

.mini-control-form {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.mini-control-form input {
    min-height: 36px;
}

@media (max-width: 1000px) {
    .hardware-control-grid {
        grid-template-columns: 1fr;
    }
}
.warning-alert {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid #fed7aa;
}

.quick-renew-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.quick-renew-row form {
    margin: 0;
}

.quick-renew-row button {
    width: 100%;
}
.lease-warning-banner {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #92400e;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.lease-warning-banner strong {
    display: block;
    margin-bottom: 4px;
    color: #b45309;
}
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.summary-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.summary-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.summary-card strong {
    color: var(--blue);
    font-size: 20px;
    font-weight: 900;
}

.summary-card small {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 1200px) {
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 700px) {
    .report-summary-grid {
        grid-template-columns: 1fr;
    }
}
.daily-session-banner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 700;
}

.daily-session-banner.closed {
    border-color: #b91c1c;
    background: #fef2f2;
    color: #7f1d1d;
}

.daily-session-banner a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 900;
}
.login-scene {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 40px 18px;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 111, 191, 0.16), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(0, 145, 45, 0.14), transparent 30%),
        linear-gradient(135deg, #edf5fb 0%, #dfeaf3 48%, #eef6f2 100%);
}

.login-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(0, 85, 170, 0.15);
    animation: floatLogin 8s ease-in-out infinite;
}

.login-orbit-one {
    width: 220px;
    height: 220px;
    top: 9%;
    left: 8%;
}

.login-orbit-two {
    width: 320px;
    height: 320px;
    right: -90px;
    top: 18%;
    animation-delay: -2s;
}

.login-orbit-three {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 18%;
    animation-delay: -4s;
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 42px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
    animation: loginCardIn 600ms ease both;
}

.login-logo-wrap {
    position: relative;
    width: 106px;
    height: 78px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}

.login-logo-mark {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(0, 145, 45, 0.22);
}

.login-logo-ring {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(0, 111, 191, 0.8);
    border-left-color: transparent;
    border-bottom-color: transparent;
    animation: ringPulse 2.8s ease-in-out infinite;
}

.login-title {
    text-align: center;
    margin-bottom: 26px;
}

.login-title span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.login-title h1 {
    margin: 8px 0;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.1;
}

.login-title p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.login-form label strong {
    color: #c02626;
}

.login-form input {
    min-height: 54px;
    border-radius: 10px;
    font-size: 15px;
}

.login-submit {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    border-radius: 10px;
    font-size: 17px;
    box-shadow: 0 14px 28px rgba(0, 111, 191, 0.22);
}

.password-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-wrap input {
    flex: 1;
}

.password-eye {
    min-height: 54px;
    border-radius: 10px;
    background: #eef6ff;
    color: var(--blue);
}

.login-help {
    margin-top: 26px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.login-help strong {
    color: var(--blue);
}

.login-footer {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    color: #64748b;
    font-weight: 700;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatLogin {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -18px, 0);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: rotate(4deg) scale(1.05);
        opacity: 0.55;
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 30px 22px;
    }

    .login-title h1 {
        font-size: 28px;
    }

    .login-footer {
        position: relative;
        bottom: auto;
        margin-top: 22px;
    }
}
.soft-divider {
    width: 100%;
    margin: 18px 0;
    border: 0;
    border-top: 1px solid var(--line);
}
.category-mini-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.category-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.category-mini-row strong {
    color: var(--ink);
}

.category-mini-row small {
    color: var(--muted);
}
.content {
    animation: pageEnter 360ms ease both;
}

.panel,
.summary-card,
.report-card,
.hardware-control-card,
.receipt {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.panel:hover,
.summary-card:hover,
.report-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

button,
.button,
.compact-btn,
.logout-btn {
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

button:hover,
.button:hover,
.compact-btn:hover {
    transform: translateY(-1px);
}

button:active,
.button:active,
.compact-btn:active {
    transform: translateY(0);
}

table tbody tr {
    transition: background 150ms ease;
}

table tbody tr:hover {
    background: #f8fbff;
}

.nav-links a {
    position: relative;
    transition: background 150ms ease, color 150ms ease, padding-left 150ms ease;
}

.nav-links a:hover {
    padding-left: 14px;
}

.nav-links a.is-active {
    background: rgba(0, 145, 45, 0.18);
    color: #ffffff;
    font-weight: 900;
}

.form button[disabled],
button.is-loading {
    opacity: 0.76;
    cursor: wait;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .content,
    .panel,
    .summary-card,
    .report-card,
    button,
    .button,
    .compact-btn,
    table tbody tr,
    .nav-links a {
        animation: none;
        transition: none;
    }
}
.page-help-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 87, 184, 0.28);
}

.page-help-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.36);
}

.page-help-box {
    width: min(560px, 100%);
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.page-help-content {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--ink);
    line-height: 1.6;
}
.alert-feed {
    display: grid;
    gap: 12px;
}

.smart-alert {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    background: #ffffff;
}

.smart-alert span {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    background: #eef6ff;
    color: var(--blue);
}

.smart-alert h2 {
    margin: 0 0 5px;
    font-size: 16px;
}

.smart-alert p {
    margin: 0;
    color: var(--muted);
}

.smart-alert.critical {
    border-left-color: #b91c1c;
}

.smart-alert.critical span {
    background: #fef2f2;
    color: #b91c1c;
}

.smart-alert.warning {
    border-left-color: #f59e0b;
}

.smart-alert.warning span {
    background: #fff7ed;
    color: #b45309;
}

.smart-alert.info {
    border-left-color: var(--blue);
}
.alert-bell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--blue);
    text-decoration: none;
    font-weight: 900;
}

.alert-bell strong {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    font-size: 12px;
}

.alert-bell:hover {
    background: #dbeafe;
}
.smart-alert-toast {
    position: fixed;
    right: 22px;
    bottom: 78px;
    z-index: 70;
    width: min(380px, calc(100vw - 36px));
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--blue);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    animation: toastSlideIn 420ms ease both;
}

.smart-alert-toast strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.smart-alert-toast span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.smart-alert-toast a {
    justify-self: start;
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.smart-alert-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    min-height: 28px;
    width: 28px;
    padding: 0;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--blue);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.sidebar {
    --nav-green: #00912d;
    --nav-blue: #0057b8;
    --nav-cyan: #0891b2;
    --nav-orange: #f59e0b;
    --nav-red: #dc2626;
}

.nav-group summary {
    transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-group:nth-of-type(1) summary {
    color: #fbbf24;
}

.nav-group:nth-of-type(2) summary {
    color: #ff9f1c;
}

.nav-group:nth-of-type(3) summary {
    color: #22c55e;
}

.nav-group:nth-of-type(4) summary {
    color: #38bdf8;
}

.nav-group:nth-of-type(5) summary {
    color: #f97316;
}

.nav-group:nth-of-type(6) summary {
    color: #a78bfa;
}

.nav-links a {
    border-left: 3px solid transparent;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
    animation: navGlowPulse 1.15s ease-in-out infinite;
}

.nav-group:nth-of-type(1) .nav-links a:hover,
.nav-group:nth-of-type(1) .nav-links a.is-active {
    border-left-color: #fbbf24;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.34), rgba(0, 87, 184, 0.18));
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.28);
}

.nav-group:nth-of-type(2) .nav-links a:hover,
.nav-group:nth-of-type(2) .nav-links a.is-active {
    border-left-color: var(--nav-green);
    background: linear-gradient(90deg, rgba(0, 145, 45, 0.36), rgba(8, 145, 178, 0.18));
    box-shadow: 0 0 16px rgba(0, 145, 45, 0.28);
}

.nav-group:nth-of-type(3) .nav-links a:hover,
.nav-group:nth-of-type(3) .nav-links a.is-active {
    border-left-color: #38bdf8;
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.35), rgba(0, 87, 184, 0.2));
    box-shadow: 0 0 16px rgba(8, 145, 178, 0.28);
}

.nav-group:nth-of-type(4) .nav-links a:hover,
.nav-group:nth-of-type(4) .nav-links a.is-active {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.34), rgba(34, 197, 94, 0.16));
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.28);
}

.nav-group:nth-of-type(5) .nav-links a:hover,
.nav-group:nth-of-type(5) .nav-links a.is-active {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.32), rgba(245, 158, 11, 0.16));
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.24);
}

.nav-group:nth-of-type(6) .nav-links a:hover,
.nav-group:nth-of-type(6) .nav-links a.is-active {
    border-left-color: #a78bfa;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.34), rgba(0, 87, 184, 0.18));
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.24);
}

@keyframes navGlowPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.035);
        filter: brightness(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-links a:hover,
    .nav-links a.is-active {
        animation: none;
    }
}
.mobile-menu-btn {
    display: none;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef6ff;
    color: var(--blue);
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 900px) {
    .shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(290px, 86vw);
        z-index: 100;
        transform: translateX(-105%);
        transition: transform 220ms ease;
        box-shadow: 20px 0 50px rgba(15, 23, 42, 0.28);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: none;
        background: rgba(15, 23, 42, 0.42);
    }

    .sidebar-backdrop.is-open {
        display: block;
    }

    .content {
        min-width: 0;
        padding: 12px;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        align-items: center;
        text-align: left;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-user {
        grid-column: 1 / -1;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .page-head {
        align-items: flex-start;
    }

    .page-head h1 {
        font-size: 24px;
    }

    .split-layout,
    .grid.two,
    .grid.three,
    .grid.four,
    .summary-grid,
    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .side-panel,
    .settings-panel,
    .receipt {
        width: 100%;
        overflow-x: auto;
    }

    table {
        min-width: 760px;
    }

    .action-bar {
        flex-wrap: wrap;
    }

    .daily-session-banner,
    .lease-warning-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .smart-alert-toast,
    .page-help-button {
        right: 14px;
    }

    .smart-alert-toast {
        bottom: 76px;
    }

    .page-help-button {
        bottom: 18px;
    }
}

@media (max-width: 520px) {
    .topbar {
        border-radius: 8px;
    }

    .topbar strong {
        font-size: 14px;
    }

    .topbar span {
        font-size: 11px;
    }

    .summary-card strong {
        font-size: 18px;
    }

    .smart-alert {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-card {
        width: 100%;
    }
}
@media (max-width: 900px) {
    .panel:has(table)::after {
        display: block;
        margin-top: 8px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
    }

    .panel table {
        white-space: nowrap;
    }

    .panel table td,
    .panel table th {
        padding: 10px 12px;
    }

    .form-pair {
        grid-template-columns: 1fr;
    }

    .sale-line.dynamic-sale-line {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sale-line-head {
        display: none;
    }

    .sale-line.dynamic-sale-line select,
    .sale-line.dynamic-sale-line input,
    .sale-line.dynamic-sale-line button {
        width: 100%;
    }

    .receipt-head,
    .receipt-customer,
    .receipt-summary {
        grid-template-columns: 1fr;
    }

    .receipt-brand {
        align-items: flex-start;
        text-align: left;
    }
}
@media (max-width: 900px) {
    .topbar {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 12px;
    }

    .mobile-menu-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        font-size: 0;
        border-radius: 10px;
    }

    .mobile-menu-btn::before {
        content: "☰";
        font-size: 20px;
        font-weight: 900;
    }

    .topbar > div:first-of-type {
        min-width: 0;
    }

    .topbar > div:first-of-type strong,
    .topbar > div:first-of-type span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-user {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    .topbar-user > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
        font-size: 12px;
    }

    .alert-bell {
        min-height: 34px;
        padding: 7px 9px;
        border-radius: 10px;
    }

    .alert-bell strong {
        min-width: 22px;
        height: 22px;
    }

    .logout-btn {
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .lease-warning-banner,
    .daily-session-banner {
        font-size: 14px;
        line-height: 1.45;
        padding: 14px;
    }
}

@media (max-width: 520px) {
    .topbar-user {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .topbar-user > span {
        display: none;
    }

    .alert-bell span {
        display: inline;
    }

    .page-head h1 {
        font-size: 23px;
    }

    .page-head p {
        font-size: 14px;
        line-height: 1.45;
    }

    .panel {
        border-radius: 10px;
    }

    .panel-head {
        align-items: flex-start;
        gap: 10px;
    }

    .daily-session-banner a,
    .lease-warning-banner a {
        margin-top: 6px;
    }
}
@media (max-width: 700px) {
    .topbar {
        display: grid !important;
        grid-template-columns: 44px 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 10px !important;
        text-align: left !important;
    }

    .mobile-menu-btn {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .topbar > div:first-of-type {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
    }

    .topbar-user {
        display: contents !important;
    }

    .topbar-user > span {
        display: none !important;
    }

    .topbar-user form {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        margin: 0 !important;
    }

    .logout-btn {
        min-height: 40px !important;
        padding: 8px 12px !important;
        white-space: nowrap !important;
    }

    .alert-bell {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .topbar > div:first-of-type strong {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    .topbar > div:first-of-type span {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
}
.input-warning {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}
.module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.module-tabs a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef6ff;
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.module-tabs a.active {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 148, 45, .18);
}
.module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.module-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 8px;
    background: #eef6ff;
    color: #0057b8 !important;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid #d8e8fb;
}

.module-tabs a:hover {
    transform: translateY(-1px);
    background: #e0f0ff;
}

.module-tabs a.active {
    background: #07942d;
    color: #ffffff !important;
    border-color: #07942d;
    box-shadow: 0 10px 24px rgba(0, 148, 45, .18);
}
.approval-actions {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.approval-actions form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.approval-actions input {
    min-height: 34px;
}
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .sidebar,
    .topbar,
    .lease-warning-banner,
    .daily-session-banner,
    .module-tabs,
    .action-bar,
    .floating-alert,
    .help-fab,
    .count-badge,
    .table-scroll-hint {
        display: none !important;
    }

    .shell {
        display: block !important;
    }

    .content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .page-head {
        margin-bottom: 12px !important;
    }

    .panel {
        box-shadow: none !important;
        border: 1px solid #d7e2ef !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    table {
        width: 100% !important;
        font-size: 11px !important;
        border-collapse: collapse !important;
    }

    th,
    td {
        padding: 6px 8px !important;
        border-bottom: 1px solid #d7e2ef !important;
    }

    .status,
    .stock-variance {
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #d7e2ef !important;
    }

    @page {
        size: A4 portrait;
        margin: 12mm;
    }
}
@media print {
    .table-wrap,
    .table-responsive,
    .responsive-table,
    .panel:has(table) {
        overflow: visible !important;
    }

    .table-scroll-hint,
    .scroll-hint,
    .swipe-hint,
    .mobile-table-hint {
        display: none !important;
    }

    .panel table {
        min-width: 0 !important;
        width: 100% !important;
    }

    .panel {
        max-width: 100% !important;
    }

    main,
    .content,
    .panel {
        overflow: visible !important;
    }
}
.report-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.report-summary {
    margin-bottom: 16px;
}

@media print {
    .report-actions,
    .report-print-all {
        display: none !important;
    }
}
.report-block {
    min-width: 0;
    overflow: hidden;
}

.report-block .panel-head {
    align-items: flex-start;
    gap: 12px;
}

.report-block .panel-head > div:first-child {
    min-width: 0;
}

.report-actions {
    flex-shrink: 0;
    max-width: 100%;
}

.report-actions .button,
.report-actions button {
    min-height: 32px;
    padding: 7px 10px;
    white-space: nowrap;
}

.grid.two {
    min-width: 0;
}

.grid.two > .report-block {
    min-width: 0;
}

@media (max-width: 1100px) {
    .report-block .panel-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-actions {
        justify-content: flex-start;
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
}

.stat-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border-top: 3px solid var(--green);
    box-shadow: 0 18px 45px rgba(15, 37, 64, .08);
}

.stat-card span {
    color: #4b5f7a;
    font-weight: 800;
}

.stat-card strong {
    color: var(--blue);
    font-size: 22px;
}

.stat-card small {
    color: #6b7b90;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.purchase-suggestion-row.is-muted {
    opacity: .45;
}
.signature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.signature-grid div {
    display: grid;
    gap: 18px;
    min-height: 70px;
}

@media print {
    .no-print,
    .module-tabs,
    .action-bar {
        display: none !important;
    }

    .lpo-print-area {
        box-shadow: none !important;
        border: 1px solid #d7e2ef !important;
    }

    .signature-grid {
        page-break-inside: avoid;
    }
}
.document-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.document-head h2 {
    margin: 4px 0;
    font-size: 26px;
}

.document-head p {
    margin: 0;
    color: #4b5f7a;
    font-weight: 800;
}

.document-status {
    display: flex;
    justify-content: flex-end;
}

.document-parties {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.document-parties > div,
.document-note {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.document-parties span,
.document-note span {
    color: #4b5f7a;
    font-weight: 800;
}

.document-parties strong,
.document-note strong {
    color: #07172f;
}

.document-table {
    margin-top: 12px;
}

.document-total-row {
    background: #eef6ff;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.signature-grid div {
    display: grid;
    gap: 18px;
    min-height: 76px;
    padding-top: 8px;
}

@media print {
    .document-parties > div,
    .document-note,
    .lpo-print-area {
        background: #fff !important;
        box-shadow: none !important;
    }

    .no-print,
    .module-tabs,
    .action-bar {
        display: none !important;
    }
}