/* APPROVED BROWSER PROTOTYPE THEME - SOURCE OF TRUTH */
:root{--bg:#071521;--panel:#0c2030;--panel2:#102b3f;--line:#1f4b63;--gold:#f5b642;--green:#30d980;--red:#ff6868;--blue:#61a8ff;--text:#f3fbff;--muted:#9cb8c9;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:radial-gradient(circle at 15% 10%,#1c526f,transparent 32%),linear-gradient(135deg,#06121c,#0b2130 55%,#07131f);color:var(--text);min-height:100vh}.login{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(1040px,100%);display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.hero,.box,.card{background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));border:1px solid rgba(255,255,255,.13);box-shadow:0 25px 60px rgba(0,0,0,.35);border-radius:28px}.hero{padding:42px}.hero h1{font-size:44px;margin:12px 0}.hero p{color:#cce0ea;font-size:17px;line-height:1.55}.logo{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;overflow:hidden;padding:6px;background:linear-gradient(135deg,#f5b642,#ffe7a3);color:#10202d;font-weight:900;font-size:30px}.logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}.box{padding:30px}.field{margin:12px 0}.field label{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:7px}.input,select,textarea{width:100%;border:1px solid #2b5b76;background:#071722;color:var(--text);border-radius:14px;padding:13px 14px;outline:none}.btn{border:0;border-radius:14px;padding:12px 16px;font-weight:800;cursor:pointer;color:#071521;background:#d9edf7;transition:.15s}.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.btn-primary{background:linear-gradient(135deg,#f5b642,#ffe7a3)}.btn-green{background:linear-gradient(135deg,#30d980,#adffd3)}.btn-red{background:linear-gradient(135deg,#ff6868,#ffc5c5)}.btn-blue{background:linear-gradient(135deg,#61a8ff,#c0dcff)}.btn-ghost{background:#143246;color:var(--text);border:1px solid #2d6680}.hint{color:var(--muted);font-size:13px;line-height:1.5}.app{display:none;grid-template-columns:276px 1fr;min-height:100vh}.side{background:rgba(3,15,24,.88);border-right:1px solid rgba(255,255,255,.09);padding:22px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;margin-bottom:24px}.brand h2{font-size:18px;line-height:1.1;margin:0}.navbtn{width:100%;text-align:left;margin:5px 0;padding:13px 14px;border-radius:15px;color:#d6effa;background:transparent;border:1px solid transparent;cursor:pointer;font-weight:700}.navbtn:hover,.navbtn.active{background:#102d42;border-color:#23536c;color:#fff}.main{padding:24px 26px 60px}.top{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.top h1{margin:0;font-size:30px}.pill{background:#113247;border:1px solid #2b5c74;border-radius:999px;padding:10px 14px;color:#dff6ff}.grid{display:grid;gap:16px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.card{padding:20px}.metric{font-size:32px;font-weight:900}.muted{color:var(--muted)}.tabbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.tab{padding:10px 14px;border-radius:999px;border:1px solid #2d5c74;background:#0c2538;color:#d9f4ff;cursor:pointer;font-weight:800}.tab.active{background:var(--gold);color:#081621}.panel{display:none}.panel.active{display:block}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.table{width:100%;border-collapse:separate;border-spacing:0 8px}.table th{font-size:12px;text-transform:uppercase;color:#9bb7c9;text-align:left;padding:8px}.table td{background:#0b2638;border-top:1px solid #1e4c63;border-bottom:1px solid #1e4c63;padding:12px}.table td:first-child{border-radius:14px 0 0 14px;border-left:1px solid #1e4c63}.table td:last-child{border-radius:0 14px 14px 0;border-right:1px solid #1e4c63}.status{font-weight:900;border-radius:999px;padding:6px 10px;display:inline-block;font-size:12px}.pending{background:#493a13;color:#ffe9ad}.approved{background:#123d2a;color:#9dffc9}.returned{background:#452727;color:#ffc0c0}.rejected{background:#4b1d1d;color:#ffc0c0}.draft{background:#26364b;color:#c8ddff}.toast{position:fixed;right:22px;bottom:22px;background:#0d2b3f;border:1px solid #347390;border-radius:18px;padding:16px 18px;box-shadow:0 20px 45px rgba(0,0,0,.4);display:none;z-index:20}.amount{font-size:24px;font-weight:900;color:#ffe2a0}.two{grid-template-columns:1fr 1fr}.actions{display:flex;gap:8px;flex-wrap:wrap}.lock{opacity:.75}.mini{font-size:12px;color:#acc7d6}.hide{display:none!important}.receiptModal{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:15;display:none;align-items:flex-start;justify-content:center;padding:30px;overflow:auto}.receipt{width:min(980px,100%);background:#fff;color:#112;border-radius:28px;overflow:hidden;box-shadow:0 40px 100px rgba(0,0,0,.5)}.receiptHead{background:linear-gradient(135deg,#071521,#0b4a6b,#0b7a58);color:white;padding:22px}.receiptHeadTop{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.receiptHeadCopy{min-width:0}.receiptHead h2{margin:0 0 8px}.receiptLraLogoFrame{width:88px;height:88px;min-width:88px;border-radius:18px;display:grid;place-items:center;overflow:hidden;padding:7px;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.72)}.receiptLraLogo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}.receiptHead .actions{margin-top:16px;justify-content:flex-end}.receiptBody{padding:22px}.receiptGrid{display:grid;grid-template-columns:1fr 220px;gap:20px}.receipt .table td{background:#f6fbff;color:#112;border-color:#dce9f3}.receipt .table th{color:#536}.qrbox{border:1px solid #dce9f3;background:#f6fbff;border-radius:20px;text-align:center;padding:14px}.qrbox img{width:180px;height:180px}.receiptModal.min .receiptBody{display:none}.receiptModal.min{inset:auto;right:20px;bottom:20px;background:transparent;padding:0}.receiptModal.min .receipt{width:360px}.receiptModal.min .receiptHead h2{font-size:16px}@media(max-width:920px){.login-card,.app{grid-template-columns:1fr}.side{height:auto;position:relative}.kpis,.formgrid,.two,.receiptGrid{grid-template-columns:1fr}.hero h1{font-size:32px}.receiptLraLogoFrame{width:72px;height:72px;min-width:72px}.receiptHead .actions{justify-content:flex-start}}@media print{body *{visibility:hidden}.receipt,.receipt *{visibility:visible}.receipt{position:absolute;left:0;top:0;width:100%;box-shadow:none}.receiptHead .actions{display:none}}

/* =====================================================================
   ASP.NET WEB FORMS COMPATIBILITY LAYER
   The visual foundation above is copied from the approved browser
   prototype. These rules only map the existing server-control markup to
   that same appearance; they do not change workflow or application logic.
   ===================================================================== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a.btn, a.navbtn { text-decoration: none; }

/* The browser prototype reveals .app through JavaScript after login.
   Authenticated Web Forms pages are separate requests, so they must render
   the same grid immediately. */
.app { display: grid; }
.side { overflow-y: auto; overflow-x: hidden; }
.side hr {
    border-color: #1e4052;
    border-width: 0 0 1px;
    border-style: solid;
    margin: 18px 0;
}

/* Exact prototype sidebar brand using the approved Customs logo. */
.sidebar-brand-card {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.sidebar-logo-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6px;
    background: linear-gradient(135deg,#f5b642,#ffe7a3);
}
.sidebar-customs-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
.sidebar-brand-copy h2 {
    font-size: 18px;
    line-height: 1.1;
    margin: 0;
}
.sidebar-brand-copy span { display: none; }

/* Existing login markup, where present, maps to the prototype's logo frame. */
.login-logo-header { margin: 0 0 12px; }
.login-logo-group { display: block; }
.login-logo-card { display: block; }
.login-logo-box {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6px;
    background: linear-gradient(135deg,#f5b642,#ffe7a3);
}
.login-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
.login-logo-name,
.login-sidebar-logo-header,
.hero-label,
.signin-label { display: none; }
.hero-content { display: block; }
.signin-text { color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-note { margin-top: 18px; }

/* Server controls and application-only utility classes. */
.msg-error { display: block; color: #ffc0c0; margin: 10px 0; }
.msg-ok { display: block; color: #9dffc9; margin: 10px 0; }
.msg-error:empty, .msg-ok:empty { display: none; }
.field-wide { grid-column: span 2; }
.whole-number-input { font-variant-numeric: tabular-nums; }
.btn, button, input[type="submit"], input[type="button"] {
    touch-action: manipulation;
    text-decoration: none;
}
.btn:disabled, button:disabled, input:disabled {
    cursor: wait;
    opacity: .72;
}
.input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245,182,66,.10);
}

/* Preserve smart dashboard content while rendering it in prototype cards. */
.smart-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 20px;
    margin-bottom: 18px;
    background: linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    border-radius: 28px;
}
.smart-hero h2 { margin: 6px 0; }
.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.health-ring {
    width: 106px;
    height: 106px;
    min-width: 106px;
    border: 10px solid var(--green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 900;
}
.smart-card { position: relative; overflow: hidden; }
.dashboard-panels { margin-top: 18px; }
.signal {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    margin: 10px 0;
}
.signal.ok { border-color: rgba(48,217,128,.50); }

/* Existing workflow extensions inherit the prototype card/table language. */
.cashier-queue-card { border-color: rgba(97,168,255,.42); }
.queue-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}
.clickable-queue tr:not(:first-child) { cursor: pointer; }
.clickable-queue tr:not(:first-child):hover td {
    background: #123b55;
    border-color: #4e8db0;
}
.transaction-number-link {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 10px;
    background: rgba(97,168,255,.16);
    border: 1px solid rgba(97,168,255,.45);
    color: #dff1ff;
    font-weight: 900;
    text-decoration: none;
}
.transaction-number-link:hover,
.transaction-number-link:focus {
    background: #8fc4ff;
    color: #071521;
    outline: none;
    box-shadow: 0 0 0 3px rgba(97,168,255,.18);
}
.correction-active {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(245,182,66,.10),0 25px 60px rgba(0,0,0,.28);
}

/* The real receipt panel is server-rendered instead of prototype JS-rendered. */
.receiptOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.72);
    padding: 30px;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.receiptOverlay .receipt { margin: 0 auto; }

/* Fast-postback overlay retained without changing prototype page styling. */
.global-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3,15,25,.52);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, visibility .16s ease;
}
.global-busy-overlay.show { opacity: 1; visibility: visible; }
.global-busy-card {
    min-width: 230px;
    max-width: 360px;
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 23px 26px;
    border-radius: 18px;
    background: #fff;
    color: #10212d;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
    text-align: center;
}
.global-busy-card small { color: #526775; line-height: 1.4; }
.global-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #dce8ef;
    border-top-color: #087858;
    border-radius: 50%;
    animation: globalSpin .72s linear infinite;
}
@keyframes globalSpin { to { transform: rotate(360deg); } }
.is-processing { opacity: .78; cursor: wait !important; }

/* Prototype responsive behavior plus safe table scrolling for GridView. */
@media (max-width: 920px) {
    .field-wide { grid-column: span 1; }
    .smart-hero { align-items: flex-start; }
    .health-ring { width: 86px; height: 86px; min-width: 86px; font-size: 20px; }
    .queue-title-row { align-items: flex-start; flex-direction: column; }
    .card { overflow-x: auto; }
}
@media (max-width: 520px) {
    .main { padding: 12px; }
    .top { display: block; }
    .top > .pill { margin-top: 10px; }
    .smart-hero { display: block; }
    .health-ring { margin-top: 14px; }
    .actions .btn,
    .actions input[type="submit"],
    .actions input[type="button"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@media print {
    .side, .top .pill, .actions, .no-print, .global-busy-overlay { display: none !important; }
    .app { display: block; }
    .main { padding: 0; }
}


/* =====================================================================
   CUSTOMS PATCH: approved round Customs image in sidebars and login right
   panel, plus refined sidebar navigation alignment. Functional behavior and
   structure remain unchanged.
   ===================================================================== */
.login-panel-corner {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin: -4px 0 12px;
}
.login-panel-logo-frame {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 8px;
    background: linear-gradient(135deg,#f5b642,#ffe7a3);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.login-panel-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.side {
    padding: 22px 18px;
}
.sidebar-brand-card {
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}
.sidebar-logo-box {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
}
.sidebar-customs-logo {
    object-fit: contain;
    object-position: center;
}
.sidebar-brand-copy h2 {
    font-size: 19px;
    line-height: 1.12;
}
.pill {
    display: block;
    text-align: center;
    font-weight: 800;
}
.navbtn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin: 0 0 8px;
    padding: 13px 16px;
    border-radius: 16px;
    line-height: 1.2;
}
.navbtn:last-child {
    margin-bottom: 0;
}
.navbtn:hover,
.navbtn.active {
    transform: translateX(2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
@media (max-width: 920px) {
    .login-panel-corner {
        justify-content: center;
        margin: 0 0 14px;
    }
    .sidebar-logo-box {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }
}

/* =====================================================================
   REFERENCE SIDEBAR UPGRADE - 2026-07-13
   Reproduces the attached Smart Statistics sidebar while preserving all
   ASP.NET controls, control IDs, postbacks, roles, navigation URLs and
   server-side workflow logic.
   ===================================================================== */

/* Desktop shell and deep-teal sidebar seen in the reference image. */
.app {
    grid-template-columns: 290px minmax(0, 1fr);
}

.side {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 100vh;
    padding: 20px 18px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(47, 151, 137, .22), transparent 31%),
        linear-gradient(180deg, rgba(9, 43, 58, .99) 0%, rgba(5, 30, 43, .99) 58%, rgba(4, 23, 35, .99) 100%);
    border-right: 1px solid rgba(137, 206, 222, .16);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.025), 14px 0 38px rgba(0,0,0,.13);
}

/* Large rounded LRA-LPRC brand card. */
.side .sidebar-brand-card {
    position: relative;
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    padding: 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(166, 221, 231, .19);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(42, 185, 132, .23), transparent 42%),
        linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
    box-shadow: 0 14px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.045);
}

.side .sidebar-brand-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.045), transparent 37%);
}

.side .sidebar-logo-box {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    min-width: 60px;
    padding: 6px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 15px;
    background: #f7fbfc;
    box-shadow: 0 9px 22px rgba(0,0,0,.23);
}

.side .sidebar-customs-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

.side .sidebar-brand-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.side .sidebar-brand-copy h2 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: .005em;
    text-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.side .sidebar-brand-copy span {
    display: block;
    color: #b7ccd7;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: .02em;
}

/* Role/status pill with the green live-status dot. */
.side > .pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    width: 100%;
    margin: 0 0 24px;
    padding: 10px 14px 10px 32px;
    color: #dcebf1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    text-transform: uppercase;
    border: 1px solid rgba(102, 174, 198, .25);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18,58,78,.88), rgba(12,43,61,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.side > .pill::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #2fdb87;
    box-shadow: 0 0 0 4px rgba(47,219,135,.10), 0 0 13px rgba(47,219,135,.68);
}

/* The reference layout uses spacing instead of a visible divider. */
.side > hr {
    display: none;
}

.side .nav-group {
    display: grid;
    gap: 8px;
    width: 100%;
}

.side .navbtn {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 42px 13px 17px;
    overflow: hidden;
    color: #e2edf2;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    border: 1px solid rgba(85, 151, 177, .23);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(14,52,72,.88), rgba(9,39,57,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}

.side .navbtn::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #2fdb87;
    opacity: 0;
    transform: scaleY(.45);
    transition: opacity .15s ease, transform .15s ease;
}

.side .navbtn::after {
    content: "›";
    position: absolute;
    right: 15px;
    top: 50%;
    color: #0d5a4a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: translate(-4px, -52%);
    transition: opacity .15s ease, transform .15s ease;
}

.side .navbtn:hover,
.side .navbtn:focus {
    color: #ffffff;
    border-color: rgba(104, 188, 211, .43);
    background: linear-gradient(180deg, rgba(19,66,88,.96), rgba(12,47,67,.96));
    box-shadow: 0 9px 22px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.03);
    transform: translateX(2px);
    outline: none;
}

.side .navbtn.active,
.side .navbtn.active:hover,
.side .navbtn.active:focus {
    color: #081a23;
    border-color: rgba(220, 245, 248, .88);
    background: linear-gradient(110deg, #ffffff 0%, #eef8fa 67%, #dff2f4 100%);
    box-shadow: 0 12px 26px rgba(0,0,0,.21), inset 0 1px 0 rgba(255,255,255,.95);
    transform: none;
}

.side .navbtn.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.side .navbtn.active::after {
    opacity: 1;
    transform: translate(0, -52%);
}

/* Logout remains a normal navigation card without an active-page chevron. */
.side .navbtn:last-child::after {
    display: none;
}

/* Scrollbar kept slim and consistent with the dark sidebar. */
.side {
    scrollbar-width: thin;
    scrollbar-color: rgba(122,180,199,.34) transparent;
}
.side::-webkit-scrollbar { width: 7px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side::-webkit-scrollbar-thumb {
    background: rgba(122,180,199,.28);
    border-radius: 999px;
}

/* Responsive preservation: the sidebar becomes a full-width header stack. */
@media (max-width: 920px) {
    .app {
        grid-template-columns: 1fr;
    }
    .side {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(137,206,222,.16);
        box-shadow: 0 12px 34px rgba(0,0,0,.16);
    }
    .side .sidebar-brand-card {
        min-height: 92px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
    .side > .pill {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 14px;
    }
    .side .nav-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .side .sidebar-brand-card {
        padding: 12px;
    }
    .side .sidebar-logo-box {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    .side .sidebar-brand-copy h2 {
        font-size: 16px;
    }
    .side .nav-group {
        grid-template-columns: 1fr;
    }
    .side .navbtn {
        min-height: 49px;
    }
}

/* =====================================================================
   COMPACT WORLD-CLASS OFFICIAL BILL / RECEIPT POPUP
   Reduced header height, smaller typography/logo, assessor approval
   identity, and deterministic page-numbered QR verification on every page.
   ===================================================================== */
.receipt{width:min(1240px,100%);margin:0 auto;background:#f3f7fa;color:#16232d;border:1px solid rgba(255,255,255,.18);border-radius:28px;overflow:hidden;box-shadow:0 42px 110px rgba(0,0,0,.55)}
.receiptHead{position:relative;overflow:hidden;padding:15px 20px 14px;background:linear-gradient(135deg,#061724 0%,#0a3d59 48%,#087251 100%);color:#fff}.receiptHead:before{content:'';position:absolute;width:260px;height:260px;right:-95px;top:-170px;border-radius:50%;background:rgba(255,255,255,.085)}.receiptHead:after{content:'';position:absolute;width:190px;height:190px;left:38%;bottom:-175px;border-radius:50%;border:40px solid rgba(255,255,255,.045)}
.receiptHeadTop,.receiptHero,.receiptActions{position:relative;z-index:1}.receiptHeadTop{display:flex;align-items:center;justify-content:space-between;gap:14px}.receiptBrand{display:flex;align-items:center;gap:11px;min-width:0}.receiptLraLogoFrame{width:56px;height:56px;min-width:56px;padding:5px;border-radius:16px;display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.78);box-shadow:0 10px 24px rgba(0,0,0,.24)}.receiptLraLogo{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.receiptBrandCopy{min-width:0}.receiptBrandKicker{display:block;margin-bottom:3px;color:#bfe8d6;font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.receiptBrandCopy h2{margin:0;font-size:20px;line-height:1.08;letter-spacing:-.018em}.receiptBrandCopy p{margin:4px 0 0;color:#d8ecf5;font-size:10.5px}.receiptApprovalPill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(173,255,211,.5);border-radius:999px;background:rgba(7,36,28,.46);color:#c8ffe0;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}.receiptApprovalDot{width:7px;height:7px;border-radius:50%;background:#48ec97;box-shadow:0 0 0 4px rgba(72,236,151,.14)}
.receiptHero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;margin-top:13px}.receiptIdentityLabel,.receiptAmountCard>span{display:block;color:#a9ccda;font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.receiptSadNumber{margin-top:3px;font-size:29px;font-weight:950;line-height:1;letter-spacing:-.03em;overflow-wrap:anywhere}.receiptImporterName{margin-top:7px;color:#fff;font-size:15.5px;font-weight:800;overflow-wrap:anywhere}.receiptTinLine{display:inline-flex;gap:6px;align-items:center;margin-top:5px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.10);color:#cce1eb;font-size:10px}.receiptTinLine strong{color:#fff;font-variant-numeric:tabular-nums}.receiptAmountCard{min-width:260px;padding:12px 15px;border:1px solid rgba(255,255,255,.20);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.06));box-shadow:inset 0 1px rgba(255,255,255,.18),0 12px 28px rgba(0,0,0,.14)}.receiptAmountCard>strong{display:block;margin-top:3px;color:#ffe4a3;font-size:29px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.receiptAmountMeta{display:flex;align-items:center;gap:7px;margin-top:7px;color:#d8ecf5;font-size:10px}.receiptAmountMeta i{width:4px;height:4px;border-radius:50%;background:#69d9aa}
.receiptActions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.13)}.receiptActions .btn{padding:8px 12px;border-radius:10px;font-size:11px;box-shadow:none}.receiptActions .btn-ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}
.receiptBody{padding:20px;background:linear-gradient(180deg,#f6f9fb,#edf3f7)}.receiptOverview{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:16px;align-items:stretch}.receiptFacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.receiptFact{min-height:100%;padding:17px;border:1px solid #dce7ed;border-radius:19px;background:#fff;box-shadow:0 10px 26px rgba(19,45,61,.055)}.receiptFactPrimary{background:linear-gradient(145deg,#fff,#f4fbf8);border-color:#cae3d7}.receiptFactIntegrity{grid-column:1/-1}.receiptFact>span{display:block;color:#6c7f8b;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.receiptFact>strong{display:block;margin-top:7px;color:#172a35;font-size:16px;line-height:1.35}.receiptFact>strong em{padding:0 4px;color:#8a9ba5;font-size:11px;font-style:normal;font-weight:700}.receiptFact>small{display:block;margin-top:7px;color:#6d7e89;font-size:11px;line-height:1.45}.receiptApprovalFact{background:linear-gradient(145deg,#fff,#f2f8ff);border-color:#cbdfe9}.receiptApprovalIdentity{display:flex;align-items:center;gap:11px;margin-top:9px}.receiptApprovalSeal{display:grid;place-items:center;width:38px;height:38px;min-width:38px;border-radius:12px;background:linear-gradient(145deg,#087251,#15a776);color:#fff;font-size:17px;font-weight:950;box-shadow:0 8px 18px rgba(8,114,81,.2)}.receiptApprovalIdentity div{min-width:0}.receiptApprovalIdentity strong{display:block;color:#172a35;font-size:14px;line-height:1.25;overflow-wrap:anywhere}.receiptApprovalIdentity small{display:block;margin-top:4px;color:#657b88;font-size:10.5px;line-height:1.35}.receiptApprovalTime{font-variant-numeric:tabular-nums}
.receiptVerification{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:14px;border:1px solid #cfe0e8;border-radius:20px;background:linear-gradient(160deg,#fff,#eff8fb);text-align:center;box-shadow:0 10px 26px rgba(19,45,61,.055)}.receiptQrHalo{display:grid;place-items:center;width:140px;height:140px;padding:7px;border-radius:22px;background:#fff;border:1px solid #dce7ed;box-shadow:0 10px 24px rgba(16,61,80,.1)}.receiptQrHalo img{display:block;width:124px;height:124px}.receiptVerification>strong{margin-top:10px;color:#173242;font-size:15px}.receiptVerification p{margin:5px 0 9px;color:#6c7f8b;font-size:10.5px;line-height:1.4}.receiptVerificationTag{padding:5px 9px;border-radius:999px;background:#e6f7ef;color:#087251;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.receiptPanel{margin-top:16px;padding:18px;border:1px solid #d8e4eb;border-radius:21px;background:#fff;box-shadow:0 12px 30px rgba(19,45,61,.065)}.receiptDutyPanel{background:linear-gradient(150deg,#fff,#f3faf7);border-color:#cce2d7}.receiptSectionHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.receiptSectionTitle h3{margin:3px 0 4px;color:#172a35;font-size:19px;letter-spacing:-.012em}.receiptSectionTitle p{max-width:760px;margin:0;color:#6d7e89;font-size:11px;line-height:1.45}.receiptSectionKicker{display:block;color:#087251;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.receiptCountBadge{white-space:nowrap;padding:7px 10px;border:1px solid #cbdce5;border-radius:999px;background:#f0f7fa;color:#285064;font-size:10px;font-weight:900}.receiptDutyBadge{border-color:#b9dbc9;background:#e8f8ef;color:#087251}
.receiptTableWrap{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.receipt .table{width:100%;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed}.receipt .table th{padding:9px 11px;border-top:1px solid #d8e4eb;border-bottom:1px solid #d8e4eb;background:#edf4f7;color:#536b79;font-size:9px;font-weight:900;letter-spacing:.075em;text-align:left;text-transform:uppercase}.receipt .table th:first-child{border-left:1px solid #d8e4eb;border-radius:11px 0 0 11px}.receipt .table th:last-child{border-right:1px solid #d8e4eb;border-radius:0 11px 11px 0}.receipt .table td{padding:11px;border:0;border-bottom:1px solid #e3ebef;border-radius:0!important;background:transparent;color:#21333e;font-size:11.5px;vertical-align:middle}.receipt .table tbody tr:last-child td{border-bottom:0}.receipt .table tbody tr:hover td{background:#f8fbfc}.receiptTransactionTable{min-width:760px}.receiptTransactionTable .txnColNo{width:8%}.receiptTransactionTable .txnColProduct{width:27%}.receiptTransactionTable .txnColQty{width:16%}.receiptTransactionTable .txnColDuty{width:29%}.receiptTransactionTable .txnColTotal{width:20%}.receiptDutyTable{min-width:700px}.receiptDutyTable .dutyColTransaction{width:23%}.receiptDutyTable .dutyColTax{width:47%}.receiptDutyTable .dutyColRate{width:13%}.receiptDutyTable .dutyColAmount{width:17%}.receiptCellCenter{text-align:center}.receiptCellNumeric{text-align:right;font-variant-numeric:tabular-nums}.receiptLineNumber{display:inline-grid;place-items:center;min-width:29px;height:29px;padding:0 7px;border-radius:9px;background:#eaf3f7;color:#184c65;font-weight:900}.receiptProductCell strong,.receiptDutyTransaction strong{display:block;color:#172a35;font-size:12px}.receiptProductCell small{display:block;margin-top:3px;color:#71838e;font-size:9.5px}.receiptLineAmount,.receiptDutyAmount{color:#087251!important;font-weight:900}.receiptDutyTransaction{display:flex;align-items:center;gap:8px}.receiptDutyTransaction span{display:inline-grid;place-items:center;min-width:30px;height:26px;padding:0 7px;border-radius:8px;background:#e8f8ef;color:#087251;font-size:9px;font-weight:900}.receiptTaxName{font-weight:750}.receiptEmptyCell{text-align:center!important;color:#71838e!important;padding:24px!important}.receiptReconcileBar{display:flex;align-items:center;gap:11px;margin-top:11px;padding:11px 13px;border:1px solid #c5e2d4;border-radius:14px;background:#edf9f3;color:#21483a}.receiptReconcileIcon{display:grid;place-items:center;width:31px;height:31px;min-width:31px;border-radius:10px;background:#087251;color:#fff;font-size:15px;font-weight:900}.receiptReconcileBar strong,.receiptReconcileBar small{display:block}.receiptReconcileBar strong{font-size:11px}.receiptReconcileBar small{margin-top:3px;color:#567267;font-size:10.5px}
.receiptPrintNotice{display:flex;align-items:center;gap:11px;margin-top:16px;padding:11px 14px;border:1px solid #b9dbc9;border-radius:16px;background:linear-gradient(135deg,#effcf5,#edf7fb);color:#173c31}.receiptPrintNoticeIcon{display:grid;place-items:center;width:38px;height:38px;min-width:38px;border-radius:12px;background:#087251;color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em}.receiptPrintNotice strong,.receiptPrintNotice small{display:block}.receiptPrintNotice strong{font-size:11.5px}.receiptPrintNotice small{margin-top:3px;color:#567267;font-size:10.5px}.receiptPrintPacket{display:none}
@media(max-width:920px){.receiptHead{padding:14px 16px 13px}.receiptHero{grid-template-columns:1fr}.receiptAmountCard{min-width:0}.receiptOverview{grid-template-columns:1fr}.receiptFacts{grid-template-columns:repeat(2,minmax(0,1fr))}.receiptVerification{min-height:0}.receiptSectionHeader{flex-direction:column}.receiptCountBadge{align-self:flex-start}}
@media(max-width:620px){body{padding:8px}.receipt{border-radius:21px}.receiptHeadTop{align-items:center}.receiptBrand{align-items:center}.receiptLraLogoFrame{width:46px;height:46px;min-width:46px;padding:4px;border-radius:13px}.receiptBrandKicker{font-size:8px}.receiptBrandCopy h2{font-size:17px}.receiptBrandCopy p{display:none}.receiptApprovalPill{padding:6px 8px;font-size:9px}.receiptHero{margin-top:11px}.receiptSadNumber{font-size:24px}.receiptImporterName{font-size:14px}.receiptAmountCard>strong{font-size:25px}.receiptActions{justify-content:flex-start}.receiptActions .btn{flex:1 1 calc(50% - 7px);padding:8px 9px}.receiptBody{padding:12px}.receiptFacts{grid-template-columns:1fr}.receiptFactIntegrity{grid-column:auto}.receiptFact,.receiptPanel{padding:14px}.receiptQrHalo{width:130px;height:130px}.receiptQrHalo img{width:114px;height:114px}.receiptOverlay{padding:8px}.receipt .receiptTableWrap{overflow:visible}.receipt .table{display:block;min-width:0!important;table-layout:auto}.receipt .table thead{display:none}.receipt .table tbody{display:block}.receipt .table tbody tr{display:block;width:100%;margin-bottom:10px;padding:4px 11px;border:1px solid #dce7ed;border-radius:14px;background:#fff;box-shadow:0 6px 16px rgba(19,45,61,.05)}.receipt .table td{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:9px;width:100%;padding:9px 0;border-bottom:1px solid #e5edf1!important;text-align:left!important}.receipt .table td:last-child{border-bottom:0!important}.receipt .table tbody tr:last-child{margin-bottom:0}.receipt .table td:before{content:attr(data-label);color:#6b7f8b;font-size:8.5px;font-weight:900;letter-spacing:.075em;text-transform:uppercase}.receipt .table tbody tr:hover td{background:transparent}.receipt .receiptEmptyCell{display:block!important}.receipt .receiptEmptyCell:before{display:none}.receiptLineNumber{justify-self:start}.receiptDutyTransaction{justify-content:flex-start}}

/* Page-numbered QR print packet: every physical page receives its own QR. */
@media print{@page{size:A4 portrait;margin:9mm}html,body{background:#fff!important}body{padding:0!important}.receipt{position:static!important;width:100%!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}.receiptHead,.receiptOverview,.receiptPanel,.receiptPrintNotice{display:none!important}.receiptBody{padding:0!important;background:#fff!important}.receiptPrintPacket{display:block!important}.receiptPrintPage{display:flex;flex-direction:column;height:277mm;min-height:277mm;background:#fff;color:#172631;break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid;box-sizing:border-box}.receiptPrintPage:last-child{break-after:auto;page-break-after:auto}.receiptPrintHeader{display:flex;flex:none;align-items:flex-start;justify-content:space-between;gap:8mm;min-height:34mm;padding:5mm 5.5mm;border-radius:4mm;background:linear-gradient(135deg,#061724,#0a3d59 60%,#087251);color:#fff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.receiptPrintBrand{display:flex;align-items:center;gap:4mm;min-width:0}.receiptPrintLogoFrame{width:19mm;height:19mm;min-width:19mm;padding:1.7mm;border-radius:3.5mm;background:#fff}.receiptPrintLogoFrame img{width:100%;height:100%;object-fit:contain}.receiptPrintBrandCopy{min-width:0}.receiptPrintKicker{display:block;margin-bottom:1mm;color:#bfe8d6;font-size:6.7pt;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.receiptPrintBrand h1{margin:0;font-size:14.5pt;line-height:1.08}.receiptPrintDocLine{display:flex;align-items:center;gap:1.8mm;margin-top:1.5mm}.receiptPrintDocLine p{margin:0;color:#d7edf7;font-size:7.5pt}.receiptPrintApproved{padding:.8mm 1.7mm;border:.3mm solid rgba(173,255,211,.5);border-radius:20mm;background:rgba(7,36,28,.38);color:#c8ffe0;font-size:6.2pt;font-weight:900;text-transform:uppercase}.receiptPrintApprovalMeta{margin:1.3mm 0 0;color:#e7f5fb;font-size:6.9pt;line-height:1.3}.receiptPrintApprovalMeta strong{color:#fff}.receiptPrintQr{width:27mm;min-width:27mm;text-align:center}.receiptPrintQr img{display:block;width:21mm;height:21mm;margin:1mm auto .6mm;padding:.8mm;border-radius:1.8mm;background:#fff}.receiptPrintPageBadge{padding:.8mm 1.6mm;border:.3mm solid rgba(255,255,255,.45);border-radius:20mm;color:#fff;font-size:6.8pt;font-weight:900;white-space:nowrap}.receiptPrintQr small{display:block;color:#d7edf7;font-size:6pt}.receiptPrintPayload{display:none}.receiptPrintContent{flex:1;min-height:0;padding:4mm .5mm 2.5mm}.receiptPrintSummary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.4mm;margin-bottom:4mm}.receiptPrintSummaryItem{padding:2.5mm 3mm;border:.3mm solid #d7e5ee;border-radius:2.5mm;background:#f6fbff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.receiptPrintSummaryItem span{display:block;color:#687e8c;font-size:6.5pt;font-weight:900;text-transform:uppercase}.receiptPrintSummaryItem strong{display:block;margin-top:.8mm;color:#172631;font-size:8.2pt;line-height:1.25;overflow-wrap:anywhere}.receiptPrintTableTitle{display:flex;align-items:flex-end;justify-content:space-between;gap:5mm;margin:0 0 1.8mm}.receiptPrintTableTitle span{color:#087251;font-size:6.7pt;font-weight:900;letter-spacing:.085em;text-transform:uppercase}.receiptPrintTableTitle strong{color:#172631;font-size:12pt}.receiptPrintTable{width:100%;border-collapse:collapse;table-layout:fixed;font-size:7.4pt}.receiptPrintTable tr{break-inside:avoid;page-break-inside:avoid}.receiptPrintTable th{padding:1.8mm 1.7mm;border:.3mm solid #b9cfdd;background:#153447;color:#fff;text-align:left;text-transform:uppercase;print-color-adjust:exact;-webkit-print-color-adjust:exact}.receiptPrintTable td{padding:2mm 1.7mm;border:.3mm solid #d7e5ee;color:#172631;vertical-align:top;overflow-wrap:anywhere}.receiptPrintTable td small{display:block;margin-top:.6mm;color:#6a7d89;font-size:6.5pt}.receiptPrintTable tbody tr:nth-child(even) td{background:#f6fbff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.receiptPrintTable .center{text-align:center}.receiptPrintTable .numeric{text-align:right;font-variant-numeric:tabular-nums}.receiptPrintTable .strong{font-weight:800}.receiptPrintEmpty{padding:10mm!important;text-align:center!important;color:#687e8c!important}.receiptPrintTransactionTable th:nth-child(1){width:8%}.receiptPrintTransactionTable th:nth-child(2){width:28%}.receiptPrintTransactionTable th:nth-child(3){width:15%}.receiptPrintTransactionTable th:nth-child(4){width:31%}.receiptPrintTransactionTable th:nth-child(5){width:18%}.receiptPrintDutyTable th:nth-child(1){width:27%}.receiptPrintDutyTable th:nth-child(2){width:43%}.receiptPrintDutyTable th:nth-child(3){width:13%}.receiptPrintDutyTable th:nth-child(4){width:17%}.receiptPrintTotal{display:flex;align-items:center;justify-content:space-between;gap:7mm;margin-top:3mm;padding:2.5mm 3.5mm;border-radius:2.5mm;background:#153447;color:#d9edf7;print-color-adjust:exact;-webkit-print-color-adjust:exact}.receiptPrintTotal span{font-size:7.8pt;font-weight:700}.receiptPrintTotal strong{color:#ffe4a3;font-size:13pt;font-variant-numeric:tabular-nums}.receiptPrintFooter{display:flex;flex:none;align-items:center;justify-content:space-between;gap:7mm;padding:2.5mm .5mm 0;border-top:.4mm solid #c8dae5;color:#5c7180;font-size:7pt}.receiptPrintFooter strong{color:#087251;font-size:8pt}}
