/* ============================================================
   BZStore POS v3.0 — Design System (login + aplikasi kasir)
   ============================================================ */
:root {
        --bz-primary: #ec4899;
        --bz-primary-2: #f472b6;
        --bz-primary-dark: #db2777;
        --bz-accent: #00c9a7;
        --bz-danger: #ef4444;
        --bz-danger-2: #dc2626;
        --bz-success: #10b981;
        --bz-warn: #f59e0b;
        --bz-info: #3b82f6;
        --bz-purple: #f9a8d4;

        --bz-bg: #f1f5f9;
        --bz-card: #ffffff;
        --bz-line: #e2e8f0;
        --bz-text: #0f172a;
        --bz-text-2: #64748b;
        --bz-text-3: #94a3b8;

        --bz-side: #0f172a;
        --bz-side-2: #1e293b;
        --bz-side-text: #cbd5e1;

        --bz-radius: 14px;
        --bz-radius-sm: 10px;
        --bz-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
        --bz-shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, .25);
        --bz-grad: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #f9a8d4 100%);
        --bz-grad-green: linear-gradient(135deg, #00c9a7 0%, #10b981 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* v3.5.4: use 100dvh (dynamic viewport height) for proper mobile support.
   Falls back to 100vh for older browsers. */
html { height: 100%; }
/* v3.5.4: app body overflow:hidden — scroll is handled by .bz-content container.
   Login body needs overflow:auto for the login page to scroll if needed. */
body.bz-app-body { height: 100%; overflow: hidden; }
body.bz-login-body { height: 100%; overflow-x: hidden; overflow-y: auto; }
body.bz-app-body, body.bz-login-body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background: var(--bz-bg); color: var(--bz-text);
        font-size: 14.5px; line-height: 1.5;
        -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.bz-muted { color: var(--bz-text-2); font-size: 13px; }
.bz-green { color: var(--bz-success); }
.r { text-align: right; }
.bz-center { text-align: center; }
.bz-spacer { flex: 1; }
.bz-w-auto { width: auto !important; }

/* ============ LOGIN ============ */
.bz-login-body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow-x: hidden; }
.bz-login-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(1200px 800px at 10% 0%, #4a1942 0%, #0f172a 45%, #020617 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: bz-float 14s ease-in-out infinite; }
.blob-a { width: 420px; height: 420px; background: #ec4899; top: -120px; left: -80px; }
.blob-b { width: 360px; height: 360px; background: #00c9a7; bottom: -100px; right: -60px; animation-delay: -5s; }
.blob-c { width: 260px; height: 260px; background: #fbcfe8; top: 40%; left: 55%; animation-delay: -9s; }
@keyframes bz-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.08); } }

.bz-login-wrap { width: 100%; max-width: 420px; }
.bz-login-card {
        background: rgba(255, 255, 255, .08); backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px;
        padding: 38px 34px 28px; box-shadow: var(--bz-shadow-lg); color: #fff;
        animation: bz-up .5s ease both;
}
@keyframes bz-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bz-login-brand { text-align: center; margin-bottom: 24px; }
.bz-logo {
        width: 56px; height: 56px; border-radius: 16px; background: var(--bz-grad);
        display: inline-flex; align-items: center; justify-content: center;
        font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .5px;
        box-shadow: 0 8px 24px -6px rgba(236, 72, 153, .6);
}
.bz-store-name { font-size: 21px; font-weight: 800; margin-top: 14px; }
.bz-login-sub { color: rgba(255, 255, 255, .65); font-size: 13.5px; margin-top: 4px; }

.bz-login-card .bz-field-label { color: rgba(255, 255, 255, .75); }
.bz-login-card .bz-input {
        background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff;
}
.bz-login-card .bz-input::placeholder { color: rgba(255, 255, 255, .4); }
.bz-login-card .bz-input:focus { border-color: var(--bz-primary-2); background: rgba(255, 255, 255, .14); }
.bz-login-card .bz-check { color: rgba(255, 255, 255, .8); }
.bz-login-note { text-align: center; color: rgba(255, 255, 255, .55); font-size: 12.5px; margin-top: 18px; line-height: 1.6; }
.bz-login-foot { color: rgba(255, 255, 255, .35); font-size: 12px; margin-top: 22px; }
.bz-pass-wrap { position: relative; }
.bz-pass-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 16px; opacity: .6; }
.bz-pass-toggle:hover { opacity: 1; }

/* ============ TOMBOL & FORM ============ */
.bz-btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        padding: 10px 18px; border-radius: var(--bz-radius-sm); border: 1px solid transparent;
        font-size: 14px; font-weight: 600; transition: all .18s ease; white-space: nowrap;
        line-height: 1.2; text-decoration: none;
}
.bz-btn:active { transform: scale(.97); }
.bz-btn[disabled] { opacity: .5; cursor: not-allowed; }
.bz-btn-primary { background: var(--bz-grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(236, 72, 153, .55); }
.bz-btn-primary:hover:not([disabled]) { filter: brightness(1.07); box-shadow: 0 10px 24px -6px rgba(236, 72, 153, .6); }
.bz-btn-ghost { background: var(--bz-card); border-color: var(--bz-line); color: var(--bz-text); }
.bz-btn-ghost:hover { border-color: var(--bz-primary-2); color: var(--bz-primary); background: #f6f5ff; }
.bz-btn-danger { background: var(--bz-danger); color: #fff; }
.bz-btn-danger:hover { background: var(--bz-danger-2); }
.bz-btn-danger-ghost { background: transparent; border-color: #fecaca; color: var(--bz-danger); }
.bz-btn-danger-ghost:hover { background: #fef2f2; }
.bz-btn-success { background: var(--bz-grad-green); color: #fff; }
.bz-btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.bz-btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.bz-btn-block { width: 100%; }

.bz-field { display: block; margin-bottom: 14px; }
.bz-field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--bz-text-2); margin-bottom: 6px; }
.bz-input {
        width: 100%; padding: 11px 14px; border: 1.5px solid var(--bz-line); border-radius: var(--bz-radius-sm);
        font-size: 14px; background: var(--bz-card); color: var(--bz-text); transition: border-color .15s, box-shadow .15s;
}
.bz-input:focus { outline: none; border-color: var(--bz-primary-2); box-shadow: 0 0 0 3px rgba(236, 72, 153, .15); }
.bz-input-lg { font-size: 22px; font-weight: 700; text-align: right; padding: 12px 16px; }
.bz-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 4px 0 16px; cursor: pointer; }
.bz-check input { width: 16px; height: 16px; accent-color: var(--bz-primary); }
.bz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bz-inline-form { display: flex; gap: 8px; margin-top: 10px; }
.bz-inline-form .bz-input { flex: 1; }
.bz-form-grid { display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.bz-prod-img-col { text-align: center; }
.bz-prod-img {
        width: 100%; aspect-ratio: 1; border: 2px dashed var(--bz-line); border-radius: var(--bz-radius);
        display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
        background: #f8fafc; color: var(--bz-text-3); font-size: 13px; text-align: center; line-height: 1.4;
        overflow: hidden; background-size: cover; background-position: center;
}
.bz-prod-img.has-img { border-style: solid; }
.bz-alert { padding: 11px 14px; border-radius: var(--bz-radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.bz-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.bz-alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* ============ LAYOUT APLIKASI ============ */
/* v3.5.4: .bz-app fills viewport height exactly — this is CRITICAL.
   Without a definite height, .bz-content (flex:1) has no height constraint,
   overflow-y:auto never activates, scroll falls to viewport level (broken on mobile).
   With height:100%, .bz-content gets a definite height and becomes the scroll container.
   100dvh = dynamic viewport height (excludes mobile URL bar). Falls back to 100vh. */
.bz-app { display: flex; height: 100vh; height: 100dvh; }
.bz-sidebar {
        width: 250px; background: var(--bz-side); color: var(--bz-side-text);
        position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column;
        transition: transform .25s ease;
}
.bz-side-head { display: flex; gap: 12px; align-items: center; padding: 20px 18px; }
.bz-side-title strong { display: block; color: #fff; font-size: 15px; }
.bz-side-title span { font-size: 11.5px; color: var(--bz-text-3); letter-spacing: 1.2px; text-transform: uppercase; }
.bz-nav { flex: 1; padding: 8px 12px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.bz-nav-item {
        display: flex; align-items: center; gap: 12px; width: 100%;
        padding: 11px 14px; margin-bottom: 3px; border: 0; border-radius: 11px;
        background: transparent; color: var(--bz-side-text); font-size: 14px; font-weight: 500;
        transition: all .15s ease; text-align: left;
}
.bz-nav-item svg { width: 19px; height: 19px; opacity: .8; }
.bz-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.bz-nav-item.is-active { background: var(--bz-grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(236, 72, 153, .8); }
.bz-side-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--bz-side-2); }
.bz-avatar {
        width: 36px; height: 36px; border-radius: 50%; background: var(--bz-grad);
        display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px;
}
.bz-side-user-info { flex: 1; min-width: 0; }
.bz-side-user-info strong { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-side-user-info span { font-size: 11.5px; color: var(--bz-text-3); }
.bz-icon-btn { display: inline-flex; padding: 7px; border-radius: 8px; color: var(--bz-side-text); background: rgba(255,255,255,.05); }
.bz-icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
/* Logout button — pink danger hover */
.bz-logout { cursor: pointer; transition: all .15s ease; }
.bz-logout:hover { background: rgba(239,68,68,.15); color: #ef4444; }
.bz-logout svg { width: 18px; height: 18px; }

/* .bz-content is the scroll container for all views.
   flex:1 fills remaining width in the row flex container.
   Cross-axis stretch (default align-items) fills the 100vh height from .bz-app.
   min-height:0 allows flex shrinking so overflow-y:auto activates.
   overflow-y:auto scrolls when content exceeds available height. */
.bz-content { flex: 1; margin-left: 250px; padding: 0 24px 40px; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
/* v3.5.4: topbar sticks to top of .bz-content scroll container (not viewport) */
.bz-topbar {
        display: flex; align-items: center; gap: 14px; padding: 16px 0; margin-bottom: 18px;
        position: sticky; top: 0; z-index: 40; background: linear-gradient(var(--bz-bg) 75%, transparent);
        flex-shrink: 0;
}
.bz-topbar-title { font-size: 19px; font-weight: 800; }
.bz-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bz-clock { color: var(--bz-text-2); font-size: 13px; font-weight: 500; }
.bz-burger { display: none; background: var(--bz-card); border: 1px solid var(--bz-line); border-radius: 10px; padding: 8px 12px; font-size: 18px; }
.bz-session-pill {
        display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
        border: 1px solid var(--bz-line); background: var(--bz-card); font-size: 12.5px; font-weight: 600; color: var(--bz-text-2);
}
.bz-session-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bz-text-3); }
.bz-session-pill.is-open { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.bz-session-pill.is-open .dot { background: var(--bz-success); animation: bz-pulse 1.6s infinite; }
@keyframes bz-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.bz-view { display: none; animation: bz-fade .25s ease; }
.bz-view.is-active { display: block; }
/* POS view: fill remaining viewport height for independent column scroll */
/* v3.5.3: account for safe-area-inset-top (notch), use max-height for flexibility */
.bz-view.is-active#view-pos {
        height: calc(100vh - 70px - env(safe-area-inset-top, 0px));
        max-height: calc(100vh - 70px - env(safe-area-inset-top, 0px));
        overflow: hidden;
        position: relative;
}
@keyframes bz-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ DASHBOARD ============ */
.bz-welcome {
        display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
        background: linear-gradient(120deg, #0f172a 0%, #4a1942 55%, #831843 100%);
        border-radius: 18px; padding: 26px 28px; margin-bottom: 20px; color: #fff; position: relative; overflow: hidden;
}
.bz-welcome::after {
        content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
        border-radius: 50%; background: radial-gradient(circle, rgba(249, 168, 212, .35), transparent 70%);
}
.bz-welcome h2 { font-size: 21px; font-weight: 800; }
.grad-text { background: linear-gradient(90deg, #f9a8d4, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bz-welcome .bz-muted { color: rgba(255, 255, 255, .6); margin-top: 4px; }
.bz-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.bz-welcome-actions .bz-btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.bz-welcome-actions .bz-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.bz-stats { display: grid; gap: 14px; margin-bottom: 20px; }
.bz-stats-4 { grid-template-columns: repeat(4, 1fr); }
.bz-stats-3 { grid-template-columns: repeat(3, 1fr); }
.bz-stat {
        background: var(--bz-card); border-radius: var(--bz-radius); padding: 16px 18px;
        display: flex; align-items: center; gap: 14px; box-shadow: var(--bz-shadow);
        border: 1px solid var(--bz-line);
}
.bz-stat-icon {
        width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff;
}
.bz-stat-icon svg { width: 21px; height: 21px; }
.bz-stat-icon.purple { background: var(--bz-grad); }
.bz-stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bz-stat-icon.green { background: var(--bz-grad-green); }
.bz-stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.bz-stat-body { min-width: 0; }
.bz-stat-label { display: block; font-size: 12px; color: var(--bz-text-2); font-weight: 600; }
.bz-stat-value { font-size: 20px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }

.bz-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.bz-grid-2 { grid-template-columns: 1fr 1fr; }
.bz-grid-2-1 { grid-template-columns: 2fr 1fr; }

.bz-card { background: var(--bz-card); border-radius: var(--bz-radius); border: 1px solid var(--bz-line); box-shadow: var(--bz-shadow); margin-bottom: 16px; }
.bz-card-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--bz-line); }
.bz-card-head h3 { font-size: 15px; font-weight: 700; }
.bz-card-head .bz-muted { margin-left: auto; }
.bz-chart-wrap { padding: 16px 18px; position: relative; height: 240px; }
.bz-chart-wrap canvas { width: 100% !important; height: 100% !important; }

.bz-toplist { list-style: none; padding: 8px 18px 14px; }
.bz-toplist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--bz-line); }
.bz-toplist li:last-child { border-bottom: 0; }
.bz-toplist .rank {
        width: 26px; height: 26px; border-radius: 8px; background: #f1f5f9; color: var(--bz-text-2);
        display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
.bz-toplist li:nth-child(1) .rank { background: var(--bz-grad); color: #fff; }
.bz-toplist li:nth-child(2) .rank { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.bz-toplist li:nth-child(3) .rank { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: #fff; }
.bz-toplist .name { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-toplist .qty { color: var(--bz-primary); font-weight: 700; font-size: 13px; white-space: nowrap; }

.bz-stocklist { list-style: none; padding: 8px 18px 14px; max-height: 260px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.bz-stocklist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--bz-line); font-size: 13.5px; }
.bz-stocklist li:last-child { border-bottom: 0; }
.bz-stocklist .name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-stock-pill { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.bz-stock-pill.zero { background: #fee2e2; color: #b91c1c; }
.bz-stock-pill.low { background: #fef3c7; color: #b45309; }
.bz-stock-empty { padding: 22px; text-align: center; color: var(--bz-text-3); font-size: 13px; }

.bz-badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; margin-left: auto; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-orange { background: #fef3c7; color: #b45309; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-gray { background: #f1f5f9; color: #64748b; }

/* ============ TABEL ============ */
/* v3.5.4: table wrapper scrolls horizontally with proper touch support */
/* v3.5.5: touch-action:pan-x pan-y allows BOTH horizontal table scroll AND vertical page scroll.
   Previous pan-x-only blocked ALL vertical touch panning ("scroll 1 titik" bug).
   overscroll-behavior-x:contain only (not both axes) — prevents CSS from making
   this a bidirectional scroll container that would eat vertical scroll. */
.bz-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.bz-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bz-table th {
        text-align: left; padding: 11px 16px; background: #f8fafc; color: var(--bz-text-2);
        font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--bz-line); white-space: nowrap;
}
.bz-table th.r { text-align: right; }
.bz-table td { padding: 11px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.bz-table tbody tr:hover { background: #fafbfe; }
.bz-table tbody tr:last-child td { border-bottom: 0; }
.bz-table .num { font-variant-numeric: tabular-nums; }
.bz-status { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.bz-status.completed { background: #d1fae5; color: #047857; }
.bz-status.voided { background: #fee2e2; color: #b91c1c; }
.bz-empty { padding: 40px 20px; text-align: center; color: var(--bz-text-3); }
.bz-empty svg { width: 40px; height: 40px; opacity: .3; margin-bottom: 8px; }

.bz-pager { display: flex; align-items: center; gap: 6px; padding: 14px 16px; flex-wrap: wrap; }
.bz-pager .pg-info { font-size: 12.5px; color: var(--bz-text-2); margin-right: auto; }
.bz-pager button {
        min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--bz-line);
        background: var(--bz-card); font-size: 13px; font-weight: 600;
}
.bz-pager button.is-active { background: var(--bz-primary); border-color: var(--bz-primary); color: #fff; }
.bz-pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ============ TOOLBAR / TABS ============ */
.bz-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.bz-search { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.bz-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bz-text-3); width: 17px; height: 17px; }
.bz-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1.5px solid var(--bz-line); border-radius: var(--bz-radius-sm); font-size: 14px; background: var(--bz-card); }
.bz-search input:focus { outline: none; border-color: var(--bz-primary-2); box-shadow: 0 0 0 3px rgba(236, 72, 153, .12); }
.bz-seg { display: inline-flex; background: #e9edf4; border-radius: 11px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.bz-seg button { padding: 7px 15px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--bz-text-2); transition: all .15s; }
.bz-seg button.is-active { background: var(--bz-card); color: var(--bz-primary); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.bz-seg-block { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-bottom: 14px; }
.bz-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 2px solid var(--bz-line); overflow-x: auto; }
.bz-tabs button { padding: 10px 18px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--bz-text-2); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.bz-tabs button.is-active { color: var(--bz-primary); border-bottom-color: var(--bz-primary); }

/* ============ POS TERMINAL (Independent Column Scroll) ============ */
.bz-pos {
        display: grid;
        grid-template-columns: 1fr 390px;
        gap: 18px;
        align-items: stretch; /* CRITICAL: columns fill full height → overflow-y: auto works */
        /* Full viewport height — each column scrolls independently */
        height: 100%;
        overflow: hidden;
}
.bz-pos-left {
        min-width: 0;
        height: 100%; /* Fill grid row → enables overflow-y: auto scroll */
        /* INDEPENDENT SCROLL: only this column scrolls when touched */
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y; /* v3.5.3: explicit vertical pan — never eat touch */
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,.12) transparent;
        padding-right: 4px; /* breathing room for scrollbar */
}
.bz-pos-left::-webkit-scrollbar { width: 6px; }
.bz-pos-left::-webkit-scrollbar-track { background: transparent; }
.bz-pos-left::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }
.bz-pos-left::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.22); }
.bz-pos-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.bz-pos-search { max-width: none; }
.bz-pos-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: thin; }
.bz-pos-cats button {
        padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--bz-line); background: var(--bz-card);
        font-size: 13px; font-weight: 600; color: var(--bz-text-2); white-space: nowrap; transition: all .15s;
}
.bz-pos-cats button.is-active { background: var(--bz-primary); border-color: var(--bz-primary); color: #fff; }
/* v3.5.3: product grid allows touch scroll via parent .bz-pos-left */
.bz-pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; touch-action: manipulation; }
.bz-pos-more { width: 100%; margin-top: 14px; }

.bz-prod-card {
        background: var(--bz-card); border: 1.5px solid var(--bz-line); border-radius: var(--bz-radius);
        overflow: hidden; cursor: pointer; transition: all .15s ease; position: relative;
        display: flex; flex-direction: column;
}
.bz-prod-card:hover { border-color: var(--bz-primary-2); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(236, 72, 153, .35); }
.bz-prod-card:active { transform: scale(.98); }
.bz-prod-thumb { aspect-ratio: 1; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--bz-text-3); overflow: hidden; }
.bz-prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-prod-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.bz-prod-name { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.bz-prod-price { color: var(--bz-primary); font-weight: 800; font-size: 14px; margin-top: 6px; }
.bz-prod-stock-badge {
        position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 999px;
        font-size: 10.5px; font-weight: 700; color: #fff; backdrop-filter: blur(4px);
}
.bz-prod-stock-badge.ok { background: rgba(16, 185, 129, .85); }
.bz-prod-stock-badge.low { background: rgba(245, 158, 11, .9); }
.bz-prod-stock-badge.out { background: rgba(239, 68, 68, .9); }
.bz-prod-type-badge {
        position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px;
        font-size: 10px; font-weight: 700; color: #fff; background: rgba(139, 92, 246, .9);
}
.bz-prod-card.is-out { opacity: .55; }
.bz-prod-card.is-out .bz-prod-thumb::after { content: "STOK HABIS"; position: absolute; font-size: 11px; font-weight: 800; color: #b91c1c; }
.bz-prod-card.is-variable { opacity: .7; }
.bz-prod-card.is-variable .bz-prod-thumb::after { content: "VARIABEL"; position: absolute; font-size: 10px; font-weight: 800; color: #7c3aed; }

/* Keranjang — independent scroll column */
.bz-pos-right {
        height: 100%; /* Fill grid row → enables overflow-y: auto scroll */
        /* v3.5.4: overflow:hidden — we do NOT want the entire right column to scroll.
           Only .bz-cart-items should scroll (flex:1 + overflow-y:auto inside .bz-cart) */
        overflow: hidden;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y; /* v3.5.3: explicit vertical pan — never eat touch */
}
.bz-pos-right::-webkit-scrollbar { width: 6px; }
.bz-pos-right::-webkit-scrollbar-track { background: transparent; }
.bz-pos-right::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }
.bz-pos-right::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.22); }
/* v3.5.4: .bz-cart fills .bz-pos-right height so that .bz-cart-items (flex:1)
   gets a constrained height and can scroll properly. Without this, .bz-cart
   grows to fit content → flex:1 never activates → no inner scroll. */
.bz-cart { background: var(--bz-card); border-radius: var(--bz-radius); border: 1px solid var(--bz-line); box-shadow: var(--bz-shadow); display: flex; flex-direction: column; height: 100%; min-height: 0; }
.bz-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--bz-line); }
.bz-cart-head h3 { font-size: 15px; font-weight: 800; }
.bz-cart-member { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #faf8ff; border-bottom: 1px solid var(--bz-line); }
.bz-cart-member-info span { display: block; font-size: 11px; color: var(--bz-text-2); }
.bz-cart-member-info strong { font-size: 13.5px; }
/* v3.5.4: cart items list — the ONLY scrollable part of the cart.
   flex:1 takes remaining space; overflow-y:auto scrolls just the items.
   min-height:0 allows flex shrinking; min-height via padding keeps empty state visible.
   touch-action:pan-y ensures touch scroll works on Android. */
.bz-cart-items { flex: 1; overflow-y: auto; padding: 6px 12px; min-height: 0; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.12) transparent; }
.bz-cart-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--bz-line); }
.bz-cart-item:last-child { border-bottom: 0; }
.bz-cart-item-info { flex: 1; min-width: 0; }
.bz-cart-item-info .nm { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-cart-item-info .pr { font-size: 12px; color: var(--bz-text-2); }
.bz-qty { display: inline-flex; align-items: center; gap: 2px; background: #f1f5f9; border-radius: 9px; padding: 2px; }
.bz-qty button { width: 26px; height: 26px; border: 0; background: var(--bz-card); border-radius: 7px; font-size: 15px; font-weight: 700; color: var(--bz-text); box-shadow: 0 1px 2px rgba(15,23,42,.1); display: flex; align-items: center; justify-content: center; }
.bz-qty button:hover { color: var(--bz-primary); }
.bz-qty .q { min-width: 26px; text-align: center; font-weight: 700; font-size: 13.5px; }
.bz-cart-item .total { min-width: 74px; text-align: right; font-weight: 700; font-size: 13.5px; }
.bz-cart-item .rm { border: 0; background: none; color: var(--bz-text-3); padding: 4px; }
.bz-cart-item .rm:hover { color: var(--bz-danger); }
.bz-cart-empty { text-align: center; color: var(--bz-text-3); padding: 34px 10px; font-size: 13.5px; }
.bz-cart-summary { padding: 12px 16px; border-top: 1px solid var(--bz-line); background: #fafbfd; border-radius: 0 0 var(--bz-radius) var(--bz-radius); }
.bz-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; color: var(--bz-text-2); }
.bz-row strong { color: var(--bz-text); }
.bz-row.bz-total { font-size: 17px; font-weight: 800; color: var(--bz-text); padding-top: 8px; margin-top: 6px; border-top: 1.5px dashed var(--bz-line); }
.bz-row.bz-total strong { color: var(--bz-primary); }
.bz-cart-actions { padding: 0 16px 16px; }

/* Keypad cepat bayar */
.bz-quick-cash { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.bz-quick-cash button { padding: 8px 4px; border-radius: 9px; border: 1.5px solid var(--bz-line); background: var(--bz-card); font-size: 12.5px; font-weight: 700; }
.bz-quick-cash button:hover { border-color: var(--bz-primary-2); color: var(--bz-primary); }
.bz-pay-total { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(120deg, #0f172a, #4a1942); color: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.bz-pay-total span { font-size: 12.5px; opacity: .7; }
.bz-pay-total strong { font-size: 24px; font-weight: 800; }
.bz-pay-change { display: flex; justify-content: space-between; align-items: center; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 11px; padding: 11px 16px; font-size: 14px; color: #047857; }
.bz-pay-change strong { font-size: 19px; font-weight: 800; }
.bz-pay-change.is-neg { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* Picklist member */
.bz-picklist { list-style: none; max-height: 300px; overflow-y: auto; margin-top: 10px; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.bz-picklist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--bz-line); border-radius: 11px; margin-bottom: 7px; cursor: pointer; transition: all .13s; }
.bz-picklist li:hover { border-color: var(--bz-primary-2); background: #faf8ff; }
.bz-picklist .nm { font-weight: 700; font-size: 14px; }
.bz-picklist .hp { font-size: 12.5px; color: var(--bz-text-2); }
.bz-picklist .promo { font-size: 11.5px; font-weight: 700; color: var(--bz-success); background: #d1fae5; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.bz-new-inline { margin-top: 12px; border-top: 1.5px dashed var(--bz-line); padding-top: 12px; }
.bz-new-inline p { font-size: 12.5px; margin-bottom: 4px; }

/* ============ MODAL ============ */
.bz-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(2, 6, 23, .62); backdrop-filter: blur(4px); }
.bz-modal.is-open { display: flex; animation: bz-fade .2s ease; }
.bz-modal-box { background: var(--bz-card); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--bz-shadow-lg); animation: bz-pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes bz-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.bz-modal-sm { max-width: 440px; }
.bz-modal-lg { max-width: 680px; }
.bz-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--bz-line); }
.bz-modal-head h3 { font-size: 16px; font-weight: 800; }
.bz-modal-close { border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 9px; font-size: 20px; color: var(--bz-text-2); line-height: 1; }
.bz-modal-close:hover { background: #fee2e2; color: var(--bz-danger); }
.bz-modal-body { padding: 18px 20px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.bz-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--bz-line); }
.bz-confirm-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #fef3c7; color: #b45309; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bz-confirm-icon { animation: bz-shake .5s ease; }
@keyframes bz-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

.bz-term-list { list-style: none; max-height: 260px; overflow-y: auto; margin-bottom: 6px; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.bz-term-list li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 9px; font-size: 14px; }
.bz-term-list li:hover { background: #f8fafc; }
.bz-term-list .del { border: 0; background: none; color: var(--bz-text-3); font-size: 16px; }
.bz-term-list .del:hover { color: var(--bz-danger); }

/* Detail transaksi */
.bz-trx-head-row { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 16px; background: #f8fafc; border-radius: 12px; margin-bottom: 14px; font-size: 13px; }
.bz-trx-head-row div span { display: block; color: var(--bz-text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.bz-trx-head-row div strong { font-size: 13.5px; }
.bz-trx-items { list-style: none; margin-bottom: 14px; }
.bz-trx-items li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 2px; border-bottom: 1px dashed var(--bz-line); font-size: 13.5px; }
.bz-trx-items .qty { color: var(--bz-text-2); font-size: 12px; }

/* ============ TOAST & LOADING ============ */
.bz-toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.bz-toast {
        display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 12px;
        background: #0f172a; color: #fff; font-size: 13.5px; box-shadow: var(--bz-shadow-lg);
        animation: bz-slide-in .25s ease;
}
.bz-toast.success { background: linear-gradient(120deg, #059669, #10b981); }
.bz-toast.error { background: linear-gradient(120deg, #dc2626, #ef4444); }
@keyframes bz-slide-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.bz-toast.hide { opacity: 0; transform: translateX(30px); transition: all .3s; }

.bz-loading-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(255,255,255,.5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
.bz-spinner { width: 42px; height: 42px; border: 4px solid #e2e8f0; border-top-color: var(--bz-primary); border-radius: 50%; animation: bz-spin .7s linear infinite; }
@keyframes bz-spin { to { transform: rotate(360deg); } }
.bz-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.bz-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: bz-spin .6s linear infinite; }
.bz-btn.is-loading svg { opacity: 0; }

/* ============ CHART FALLBACK (tanpa Chart.js) ============ */
.bz-chart-fallback { display: flex; align-items: flex-end; gap: 6px; height: 100%; padding: 8px 4px 26px; position: relative; }
.bz-chart-fallback .bar { flex: 1; background: var(--bz-grad); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; opacity: .9; }
.bz-chart-fallback .bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--bz-text-3); white-space: nowrap; }
.bz-chart-fallback .bar:hover { opacity: 1; }

/* ============ CETAK STRUK ============ */
#bz-print-area { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
#bz-print-area iframe { width: 400px; height: 500px; border: 0; }

@media print {
        @page { margin: 0; }
        body.bz-app-body > *:not(#bz-print-area) { display: none !important; }
        #bz-print-area { position: static !important; left: 0 !important; width: auto !important; height: auto !important; overflow: visible !important; }
        /* iframe width diatur oleh JS berdasarkan receipt_width setting (58mm / 80mm) */
        #bz-print-area iframe { width: 58mm; height: auto; border: 0; }
        #bz-print-area iframe.bz-receipt-80mm { width: 80mm; }
        .bz-print-root { position: fixed; inset: 0; z-index: 9999; background: #fff; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
        /* v3.5.3: safe-area-aware height */
        .bz-pos { grid-template-columns: 1fr 340px; height: calc(100vh - 80px - env(safe-area-inset-top, 0px)); }
        .bz-stats-4 { grid-template-columns: repeat(2, 1fr); }
        .bz-grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
        .bz-sidebar { transform: translateX(-100%); box-shadow: none; }
        .bz-sidebar.is-open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
        .bz-content { margin-left: 0; padding: 0 16px 30px; }
        .bz-burger { display: inline-block; }
        /* v3.5.3: tablet ≤1024: POS flows naturally without height clipping */
        .bz-pos { grid-template-columns: 1fr; height: auto; overflow: visible; }
        .bz-pos-left { max-height: none; overflow-y: auto; touch-action: pan-y; }
        /* v3.5.4: on ≤1024 tablet (not bottom sheet), cart is inline — let it flow naturally */
        .bz-pos-right { position: static; max-height: none; overflow: visible; height: auto; }
        .bz-cart { max-height: none; height: auto; }
        .bz-sidebar-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.5); z-index: 45; }
        /* v3.5.3: on ≤1024, let .bz-content scroll when POS is active */
        .bz-content.bz-view-pos-active {
                overflow-y: auto;
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
        }
        /* v3.5.3: on ≤1024, POS section doesn't clip */
        .bz-view.is-active#view-pos {
                height: auto;
                max-height: none;
                overflow: visible;
        }
}
@media (max-width: 640px) {
        .bz-stats-4, .bz-stats-3 { grid-template-columns: 1fr 1fr; }
        .bz-grid-2 { grid-template-columns: 1fr; }
        .bz-form-row { grid-template-columns: 1fr; }
        .bz-form-grid { grid-template-columns: 1fr; }
        .bz-prod-img-col { max-width: 200px; margin: 0 auto; }
        .bz-welcome { padding: 20px; }
        .bz-welcome-actions { width: 100%; }
        .bz-welcome-actions .bz-btn { flex: 1; }
        .bz-pos-grid { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); }
        .bz-quick-cash { grid-template-columns: repeat(3, 1fr); }
        .bz-seg-block { grid-template-columns: repeat(2, 1fr); }
        .bz-modal-box { max-height: calc(100vh - 24px); }
        .bz-clock { display: none; }
        .bz-stat-value { font-size: 17px; }
        .bz-pay-total strong { font-size: 20px; }
        .bz-input-lg { font-size: 19px; }
        .bz-table { font-size: 12.5px; }
        .bz-table th, .bz-table td { padding: 9px 10px; }
}
@media (max-width: 380px) {
        .bz-stats-4, .bz-stats-3 { grid-template-columns: 1fr; }
        .bz-pos-grid { grid-template-columns: repeat(2, 1fr); }
        .bz-quick-cash { grid-template-columns: repeat(2, 1fr); }
        .bz-modal { padding: 8px; }
        .bz-modal-body { padding: 14px; }
}


/* ============================================================
   BZStore POS v3.5.0 — Ultra-Modern Performance Scroll System
   ============================================================
   • GPU-accelerated momentum scrolling (scroll-behavior: smooth)
   • Overscroll glow effect (Android-style) + bounce containment
   • Pull-to-refresh indicator with pink gradient
   • Scroll-snap for product grid (horizontal carousel mode)
   • Bottom sheet cart on mobile (drag up/down with spring)
   • Floating action button (FAB) for checkout with pulse
   • Glassmorphism header & bottom nav (backdrop-filter)
   • Safe area insets for notched devices (iPhone X+)
   • Haptic-style micro-animations (60ms spring curve)
   • Custom thin scrollbars (auto-hide on idle)
   • 44px touch targets (Apple HIG / WCAG 2.2)
   • REMOVED: content-visibility/contain/will-change (caused display bugs)
   • touch-action: manipulation (kill 300ms tap delay)
   • CSS custom property animation timing system
   ============================================================ */

/* ============ PERFORMANCE: ANIMATION TIMING SYSTEM ============ */
:root {
        --bz-ease-spring: cubic-bezier(.2, .9, .3, 1);
        --bz-ease-out: cubic-bezier(.4, 0, .2, 1);
        --bz-ease-in-out: cubic-bezier(.4, 0, .6, 1);
        --bz-duration-fast: 120ms;
        --bz-duration-normal: 200ms;
        --bz-duration-slow: 350ms;
        --bz-duration-sheet: 400ms;
}

/* ============ GLOBAL SCROLL SYSTEM ============ */
html {
        scroll-behavior: smooth;
}
.bz-app-body {
        -webkit-tap-highlight-color: transparent;
        /* v3.5.3: removed -webkit-touch-callout: none from body — it was
           interfering with touch scroll on some Android devices.
           Moved to sidebar/nav only where it's needed */
        overscroll-behavior: none;
        /* Momentum scrolling — native iOS feel */
        -webkit-overflow-scrolling: touch;
        /* Kill 300ms tap delay globally */
        touch-action: manipulation;
}

/* ============ CUSTOM SCROLLBARS (thin, modern) ============ */
.bz-content::-webkit-scrollbar,
.bz-sidebar::-webkit-scrollbar,
.bz-cart-items::-webkit-scrollbar,
.bz-modal-body::-webkit-scrollbar,
.bz-table-wrap::-webkit-scrollbar,
.bz-picklist::-webkit-scrollbar,
.bz-stocklist::-webkit-scrollbar,
.bz-pos-cats::-webkit-scrollbar {
        width: 5px;
        height: 5px;
}
.bz-content::-webkit-scrollbar-track,
.bz-sidebar::-webkit-scrollbar-track,
.bz-cart-items::-webkit-scrollbar-track,
.bz-modal-body::-webkit-scrollbar-track,
.bz-table-wrap::-webkit-scrollbar-track,
.bz-picklist::-webkit-scrollbar-track,
.bz-stocklist::-webkit-scrollbar-track,
.bz-pos-cats::-webkit-scrollbar-track {
        background: transparent;
}
.bz-content::-webkit-scrollbar-thumb,
.bz-sidebar::-webkit-scrollbar-thumb,
.bz-cart-items::-webkit-scrollbar-thumb,
.bz-modal-body::-webkit-scrollbar-thumb,
.bz-table-wrap::-webkit-scrollbar-thumb,
.bz-picklist::-webkit-scrollbar-thumb,
.bz-stocklist::-webkit-scrollbar-thumb,
.bz-pos-cats::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .12);
        border-radius: 10px;
        /* Auto-hide: show on hover/scroll only */
        transition: background .3s;
}
.bz-content:hover::-webkit-scrollbar-thumb,
.bz-sidebar:hover::-webkit-scrollbar-thumb,
.bz-cart-items:hover::-webkit-scrollbar-thumb,
.bz-modal-body:hover::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .22);
}
/* Firefox scrollbar */
.bz-content, .bz-sidebar, .bz-cart-items, .bz-modal-body, .bz-table-wrap {
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,.12) transparent;
}

/* ============ OVERSCROLL GLOW (Android-style) ============ */
/* .bz-content scroll properties are in the main .bz-content declaration
   (flex:1 + min-height:0 + overflow-y:auto). No need to repeat here. */
/* When POS view is active, disable .bz-content scroll — columns scroll independently */
/* v3.5.3: add touch-action:pan-y so touch scrolls are never eaten */
.bz-content.bz-view-pos-active {
        overflow-y: hidden;
        overscroll-behavior-y: none;
        touch-action: pan-y;
}
.bz-sidebar {
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
}

/* ============ TOUCH TARGETS (44px min) ============ */
.bz-nav-item,
.bz-btn,
.bz-action-btn,
.bz-qty-btn,
.bz-tab-item,
.bz-chip,
.bz-quick-cash button,
.bz-pager button {
        min-height: 44px;
        min-width: 44px;
}

/* ============ PREVENT ACCIDENTAL SELECTION ============ */
/* v3.5.3: only sidebar/nav get user-select:none — product grid & cart area
   need touch scroll to work; user-select:none breaks drag-to-scroll on Android */
.bz-sidebar,
.bz-nav {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none; /* v3.5.3: prevent long-press callout only here */
}
/* Category chips: prevent text selection but allow scroll */
.bz-pos-cats {
        -webkit-user-select: none;
        user-select: none;
        touch-action: pan-x; /* horizontal scroll only */
}

/* ============ INPUTS: PREVENT iOS ZOOM ============ */
.bz-input,
.bz-field input,
.bz-field select,
.bz-field textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS auto-zoom on focus */
}

/* ============ SAFE AREA INSETS (notched devices) ============ */
.bz-sidebar {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
/* v3.5.3: safe area on all sides — prevents notch clipping top content */
.bz-app {
        padding-top: env(safe-area-inset-top, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============ PRODUCT CARDS: TOUCH & MOMENTUM ============ */
.bz-prod-card {
        min-height: 120px;
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
        /* REMOVED: contain/content-visibility/will-change — caused cards to disappear */
        /* Smooth momentum on press — spring curve */
        transition: transform var(--bz-duration-fast) var(--bz-ease-spring),
                    border-color .15s var(--bz-ease-out),
                    box-shadow .15s var(--bz-ease-out);
}

/* ============ TOUCH FEEDBACK (haptic-style, 60ms spring) ============ */
.bz-nav-item:active,
.bz-btn:active,
.bz-prod-card:active,
.bz-quick-cash button:active,
.bz-pos-cats button:active {
        opacity: 0.7;
        transform: scale(0.97);
        transition: opacity 60ms var(--bz-ease-spring), transform 60ms var(--bz-ease-spring);
}

/* ============ BUTTON SPACING ============ */
.bz-btn + .bz-btn,
.bz-action-btn + .bz-action-btn {
        margin-left: 8px;
}

/* ============ CART: ITEM ADD ANIMATION (instant feedback) ============ */
@keyframes bz-cart-pop {
        0% { opacity: 0; transform: translateX(20px) scale(.95); }
        60% { transform: translateX(-2px) scale(1.02); }
        100% { opacity: 1; transform: none; }
}
.bz-cart-item {
        animation: bz-cart-pop var(--bz-duration-slow) var(--bz-ease-spring) both;
}

/* ============ CATEGORY CHIPS: HORIZONTAL SNAP SCROLL ============ */
.bz-pos-cats {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        /* Hide scrollbar for native feel */
        scrollbar-width: none;
        -ms-overflow-style: none;
}
.bz-pos-cats::-webkit-scrollbar {
        display: none;
}
.bz-pos-cats button {
        scroll-snap-align: start;
        flex-shrink: 0;
}

/* ============ MODAL: BOTTOM SHEET ON MOBILE ============ */
.bz-modal {
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
}
.bz-modal-wrap {
        padding: 20px;
        -webkit-overflow-scrolling: touch;
}

/* ============ CHART CANVAS ============ */
/* v3.5.5: Only POS product grid canvas needs touch-action:none.
   Global canvas{touch-action:none} blocked scroll in Reports chart area.
   Chart.js also sets inline style — !important overrides it. */
.bz-pos-grid canvas {
        touch-action: none;
}
#bz-chart-report,
#bz-chart-sales {
        touch-action: pan-y !important;
}

/* ============ TOAST ============ */
.bz-toast {
        max-width: 400px;
}

/* ============ CASH DRAWER & QTY BUTTONS ============ */
.bz-drawer-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 8px;
}
.bz-qty-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
}

/* ============ PULL-TO-REFRESH INDICATOR ============ */
.bz-ptr {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: var(--bz-grad);
        z-index: 500;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .2s ease;
        border-radius: 0 0 4px 4px;
}
.bz-ptr.is-pulling {
        display: block;
        transform: scaleX(var(--ptr-progress, 0));
}
.bz-ptr.is-refreshing {
        display: block;
        transform: scaleX(1);
        animation: bz-ptr-pulse 1s ease infinite;
}
@keyframes bz-ptr-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: .4; }
}

/* ============ OVERSCROLL GLOW INDICATOR ============ */
.bz-overscroll-glow {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 80px;
        pointer-events: none;
        background: linear-gradient(to top, rgba(236, 72, 153, .12), transparent);
        opacity: 0;
        transition: opacity .15s;
        z-index: 50;
}
.bz-overscroll-glow.is-visible {
        opacity: 1;
}

/* ============ BARCODE SCAN FLASH (instant visual feedback) ============ */
@keyframes bz-scan-flash {
        0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, .5); }
        50% { box-shadow: 0 0 0 8px rgba(236, 72, 153, .2); }
        100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}
.bz-scan-flash {
        animation: bz-scan-flash var(--bz-duration-slow) var(--bz-ease-out);
}
/* Scan success overlay on the search bar */
@keyframes bz-scan-success {
        0% { background: rgba(236, 72, 153, .15); }
        100% { background: transparent; }
}
.bz-pos-search.bz-scan-ok {
        animation: bz-scan-success .6s var(--bz-ease-out);
}

/* ============ SKELETON LOADING (perceived performance) ============ */
@keyframes bz-shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
}
.bz-skeleton {
        background: linear-gradient(90deg, var(--bz-line) 25%, #f8fafc 37%, var(--bz-line) 63%);
        background-size: 200% 100%;
        animation: bz-shimmer 1.2s ease infinite;
        border-radius: var(--bz-radius-sm);
        min-height: 44px;
}

/* ============ TABLET: 768px–1024px ============ */
@media (min-width: 768px) and (max-width: 1024px) {
        /* POS: Independent column scroll on tablet */
        .bz-pos {
                grid-template-columns: 1fr 340px;
                height: calc(100vh - 80px - env(safe-area-inset-top, 0px));
                overflow: hidden;
        }
        .bz-pos-left {
                overflow-y: auto;
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y; /* v3.5.3 */
                height: 100%; /* Fill grid row for scroll to work */
        }
        .bz-pos-right {
                /* v3.5.4: overflow:hidden — cart items scroll inside, not the whole column */
                overflow: hidden;
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y; /* v3.5.3 */
                height: 100%; /* Fill grid row for scroll to work */
        }
        /* v3.5.3: On tablet, POS section uses safe-area-aware height */
        .bz-view.is-active#view-pos {
                height: calc(100vh - 80px - env(safe-area-inset-top, 0px));
                max-height: calc(100vh - 80px - env(safe-area-inset-top, 0px));
        }
        /* v3.5.3: On tablet POS, .bz-content must not scroll — columns scroll independently */
        .bz-content.bz-view-pos-active {
                overflow-y: hidden;
                overscroll-behavior-y: none;
                touch-action: pan-y;
        }
        /* Product grid: balanced tablet layout */
        .bz-prod-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 10px;
        }
        .bz-prod-card {
                padding: 10px;
        }
        .bz-prod-name {
                font-size: 13px;
        }
        .bz-cart-area {
                min-width: 320px;
                touch-action: pan-y; /* v3.5.4: allow vertical scroll in cart */
        }
        /* Slightly larger text */
        .bz-content {
                font-size: 15px;
        }
        /* Dashboard cards: 2 columns */
        .bz-dash-grid,
        .bz-stats-4,
        .bz-stats-3 {
                grid-template-columns: repeat(2, 1fr) !important;
        }
        /* Better button sizes */
        .bz-btn {
                padding: 10px 18px;
                font-size: 14px;
        }
        .bz-btn-lg {
                padding: 14px 24px;
                font-size: 16px;
        }
        /* v3.5.5: Table scroll — touch-action pan-x pan-y for vertical page scroll */
        .bz-table-wrap {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-x: contain;
                touch-action: pan-x pan-y;
        }
        /* Cart items: independent scroll on tablet */
        .bz-cart-items {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-y: contain;
        }
        /* Sidebar: independent scroll on tablet */
        .bz-sidebar {
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
        }
        /* Stat cards: glassmorphism hover */
        .bz-stat {
                transition: transform .2s cubic-bezier(.2,.9,.3,1), box-shadow .2s;
        }
        .bz-stat:active {
                transform: scale(.97);
        }
        /* Category pills: scroll snap */
        .bz-pos-cats {
                scroll-snap-type: x mandatory;
        }
}

/* ============ TABLET LANDSCAPE ============ */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
        .bz-sidebar {
                width: 220px;
        }
        .bz-prod-grid {
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        }
}

/* ============ MOBILE: ≤767px ============ */
@media (max-width: 767px) {
        /* --- Sidebar: slide-in with glassmorphism backdrop --- */
        .bz-sidebar {
                position: fixed;
                left: 0;
                top: 0;
                bottom: 0;
                z-index: 1000;
                width: 280px;
                transform: translateX(-100%);
                transition: transform .3s cubic-bezier(.4, 0, .2, 1);
                box-shadow: none;
        }
        .bz-sidebar.is-open {
                transform: translateX(0);
                box-shadow: 4px 0 32px rgba(0, 0, 0, .25);
        }
        /* Sidebar overlay: blur backdrop */
        .bz-sidebar-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: rgba(2, 6, 23, .45);
                backdrop-filter: blur(4px);
                -webkit-backdrop-filter: blur(4px);
                z-index: 999;
                opacity: 0;
                transition: opacity .3s ease;
        }
        .bz-sidebar-overlay.is-visible {
                display: block;
                opacity: 1;
        }

        /* .bz-content is the scroll container — flex:1+min-height:0 already set globally.
           Just override margin/padding for mobile. */
        .bz-content {
                margin-left: 0 !important;
                padding: 0 14px 80px !important; /* 80px bottom for FAB */
        }
        /* v3.5.3: hamburger as fixed overlay — doesn't eat into content flex width */
        .bz-hamburger {
                display: flex !important;
                position: fixed;
                top: calc(8px + env(safe-area-inset-top, 0px));
                left: calc(8px + env(safe-area-inset-left, 0px));
                z-index: 1001;
                width: 44px;
                height: 44px;
                background: var(--bz-card);
                border: 1px solid var(--bz-line);
                box-shadow: 0 2px 8px rgba(0,0,0,.1);
        }
        /* v3.5.4: hide inline burger on mobile — use fixed hamburger instead */
        .bz-burger {
                display: none !important;
        }

        /* --- Topbar: glassmorphism sticky --- */
        /* v3.5.3: top accounts for safe-area-inset-top (notch) */
        .bz-topbar {
                position: sticky;
                top: 0;
                z-index: 40;
                background: rgba(241, 245, 249, .82);
                backdrop-filter: blur(12px) saturate(180%);
                -webkit-backdrop-filter: blur(12px) saturate(180%);
                border-bottom: 1px solid rgba(226, 232, 240, .5);
                padding: 12px 0;
                margin: 0 -14px 14px;
                padding-left: 54px; /* v3.5.3: space for fixed hamburger (44+10) */
                padding-right: 14px;
        }

        /* --- Product grid: 2-column with momentum scroll --- */
        /* v3.5.3: mobile POS flows naturally, no fixed height clipping */
        .bz-pos {
                grid-template-columns: 1fr;
                gap: 0;
                height: auto;
                overflow: visible;
        }
        .bz-pos-left {
                overflow-y: auto;
                /* Independent scroll for products on mobile */
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y; /* v3.5.3: vertical pan for reliable scroll */
                height: auto;
                /* v3.5.3: use 100dvh for dynamic viewport (excludes browser chrome) */
                max-height: none; /* let .bz-content handle the scroll instead */
                padding-bottom: 140px; /* space for bottom sheet cart */
        }
        .bz-pos-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
        }
        .bz-prod-card {
                border-radius: 12px;
                transition: transform .15s cubic-bezier(.2,.9,.3,1);
        }
        .bz-prod-card:active {
                transform: scale(.95);
        }
        .bz-prod-name {
                font-size: 12.5px;
                min-height: 2.4em;
        }
        .bz-prod-price {
                font-size: 13px;
        }

        /* --- Category chips: horizontal snap carousel --- */
        .bz-pos-cats {
                scroll-snap-type: x mandatory;
                gap: 6px;
                padding: 4px 0;
                margin-bottom: 10px;
        }
        .bz-pos-cats button {
                padding: 7px 14px;
                font-size: 12.5px;
        }

        /* --- Cart: Bottom sheet (draggable) --- */
        .bz-pos {
                grid-template-columns: 1fr;
                gap: 0;
        }
        /* v3.5.4: Mobile bottom sheet cart — overflow:hidden so that
           .bz-cart-items (flex:1) scrolls, not the entire sheet */
        .bz-pos-right {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 60;
                height: 65vh; /* v3.5.4: fixed height (not max-height) so .bz-cart can fill it */
                transform: translateY(calc(100% - 56px)); /* Show only handle bar */
                transition: transform .35s cubic-bezier(.4, 0, .2, 1);
                border-radius: 20px 20px 0 0;
                overflow: hidden; /* v3.5.4: items scroll inside, not the whole sheet */
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
                box-shadow: 0 -4px 24px rgba(0, 0, 0, .12);
        }
        .bz-pos-right.is-expanded {
                transform: translateY(0);
        }
        /* v3.5.4: .bz-cart fills the bottom sheet height */
        .bz-cart {
                border-radius: 20px 20px 0 0;
                height: 100%;
                min-height: 0;
                max-height: none; /* v3.5.4: override, use height:100% instead */
                border: none;
                box-shadow: none;
        }
        /* Cart drag handle */
        .bz-cart-head {
                cursor: grab;
                position: relative;
        }
        .bz-cart-head::before {
                content: "";
                position: absolute;
                top: 8px;
                left: 50%;
                transform: translateX(-50%);
                width: 36px;
                height: 4px;
                border-radius: 2px;
                background: rgba(0, 0, 0, .15);
        }
        .bz-cart-head:active {
                cursor: grabbing;
        }

        /* --- Floating Action Button (FAB) for checkout — elegant pink --- */
        .bz-fab-checkout {
                position: fixed;
                bottom: 72px;
                right: 18px;
                z-index: 55;
                width: 56px;
                height: 56px;
                border-radius: 16px;
                border: none;
                background: var(--bz-grad);
                color: #fff;
                font-size: 22px;
                font-weight: 800;
                box-shadow: 0 8px 28px -4px rgba(236, 72, 153, .6);
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                will-change: transform;
                transition: transform var(--bz-duration-normal) var(--bz-ease-spring), box-shadow var(--bz-duration-normal) var(--bz-ease-out);
                /* Pulse ring animation for attention */
                animation: bz-fab-pulse 2.5s ease-in-out infinite;
        }
        .bz-fab-checkout:active {
                transform: scale(.9);
                box-shadow: 0 4px 16px -2px rgba(236, 72, 153, .5);
                animation: none;
        }
        @keyframes bz-fab-pulse {
                0%, 100% { box-shadow: 0 8px 28px -4px rgba(236, 72, 153, .6); }
                50% { box-shadow: 0 8px 36px -2px rgba(236, 72, 153, .75), 0 0 0 8px rgba(236, 72, 153, .1); }
        }
        .bz-fab-checkout .fab-badge {
                position: absolute;
                top: -4px;
                right: -4px;
                min-width: 20px;
                height: 20px;
                border-radius: 10px;
                background: var(--bz-danger);
                color: #fff;
                font-size: 11px;
                font-weight: 800;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0 5px;
        }

        /* --- Stats: compact cards --- */
        .bz-stats-4,
        .bz-stats-3 {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
        }
        .bz-stat {
                padding: 12px 14px;
                border-radius: 12px;
        }
        .bz-stat-icon {
                width: 40px;
                height: 40px;
                border-radius: 11px;
        }
        .bz-stat-value {
                font-size: 17px;
        }

        /* --- Welcome: compact --- */
        .bz-welcome {
                padding: 18px 20px;
                border-radius: 14px;
        }
        .bz-welcome h2 {
                font-size: 17px;
        }

        /* v3.5.5: Table scroll — touch-action pan-x pan-y */
        .bz-table-wrap {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-x: contain;
                touch-action: pan-x pan-y;
        }
        .bz-table {
                font-size: 12.5px;
        }
        .bz-table th, .bz-table td {
                padding: 10px 12px;
        }

        /* --- Modal: bottom sheet style --- */
        .bz-modal.is-open {
                align-items: flex-end;
        }
        .bz-modal-box {
                border-radius: 20px 20px 0 0;
                max-height: 85vh;
                max-width: 100%;
                animation: bz-sheet-up .3s cubic-bezier(.4, 0, .2, 1);
        }
        @keyframes bz-sheet-up {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
        }
        .bz-modal-head::before {
                content: "";
                position: absolute;
                top: 8px;
                left: 50%;
                transform: translateX(-50%);
                width: 36px;
                height: 4px;
                border-radius: 2px;
                background: rgba(0, 0, 0, .12);
        }
        .bz-modal-head {
                position: relative;
                padding-top: 20px;
        }

        /* --- Pager: compact --- */
        .bz-pager {
                padding: 10px 12px;
        }

        /* --- Pay total: compact --- */
        .bz-pay-total strong {
                font-size: 20px;
        }
        .bz-input-lg {
                font-size: 19px;
        }

        /* --- Quick cash: 3-column --- */
        .bz-quick-cash {
                grid-template-columns: repeat(3, 1fr);
        }

        /* --- Segment: 2-column --- */
        .bz-seg-block {
                grid-template-columns: repeat(2, 1fr);
        }

        /* --- Cart summary & items --- */
        /* v3.5.4: cart items scroll properly with flex:1 in constrained .bz-cart */
        .bz-cart-items {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-y: contain;
                touch-action: pan-y;
        }

        /* --- v3.5.3: On mobile POS, let .bz-content scroll (single column) --- */
        .bz-content.bz-view-pos-active {
                overflow-y: auto;
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
        }
        /* v3.5.3: On mobile, POS section must NOT clip — content flows naturally */
        .bz-view.is-active#view-pos {
                height: auto;
                max-height: none;
                overflow: visible;
                position: relative;
        }

        /* --- Hide clock on mobile --- */
        .bz-clock {
                display: none;
        }

        /* --- Toast: bottom-center on mobile --- */
        .bz-toasts {
                top: auto;
                bottom: 80px;
                right: 50%;
                transform: translateX(50%);
                max-width: calc(100vw - 32px);
        }
        .bz-toast {
                font-size: 13px;
                border-radius: 14px;
        }
}

/* ============ SMALL MOBILE: ≤380px ============ */
@media (max-width: 380px) {
        .bz-stats-4, .bz-stats-3 {
                grid-template-columns: 1fr;
        }
        .bz-pos-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
        }
        .bz-quick-cash {
                grid-template-columns: repeat(2, 1fr);
        }
        .bz-modal {
                padding: 0;
        }
        .bz-modal-body {
                padding: 14px;
        }
        .bz-prod-name {
                font-size: 12px;
        }
        .bz-content {
                padding: 0 10px 80px !important;
        }
}

/* ============ HAMBURGER BUTTON ============ */
.bz-hamburger {
        display: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        color: var(--bz-text);
        font-size: 24px;
        cursor: pointer;
        border-radius: var(--bz-radius-sm);
        transition: background .15s;
}
.bz-hamburger:active {
        background: var(--bz-line);
}

/* ============ PREVENT LAYOUT SHIFT (virtual keyboard) ============ */
@media (max-height: 500px) {
        .bz-sidebar {
                overflow-y: auto;
        }
        .bz-pos-right {
                max-height: 40vh;
        }
}

/* ============ PRINT ============ */
@media print {
        .bz-sidebar, .bz-hamburger, .bz-sidebar-overlay, .bz-fab-checkout, .bz-ptr, .bz-overscroll-glow {
                display: none !important;
        }
        .bz-content {
                margin: 0 !important;
                padding: 0 !important;
        }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
                animation-duration: .01ms !important;
                transition-duration: .01ms !important;
        }
        html {
                scroll-behavior: auto;
        }
}

/* ============ HARDWARE STATUS BAR ============ */
.bz-hardware-bar {
    display: flex; gap: 14px; padding: 8px 14px; margin-bottom: 12px;
    background: var(--bz-card); border-radius: var(--bz-radius-sm);
    box-shadow: var(--bz-shadow); align-items: center; flex-wrap: wrap;
}
.bz-hw-item { display: flex; align-items: center; gap: 5px; }
.hw-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
    transition: background .3s, box-shadow .3s;
}
.hw-dot.connected { background: var(--bz-success); box-shadow: 0 0 6px rgba(16,185,129,.5); }
.hw-dot.disconnected { background: var(--bz-danger); }
.bz-hw-label { font-size: 12px; font-weight: 600; color: var(--bz-text-2); }
.bz-hw-status { font-size: 12px; font-weight: 600; color: var(--bz-text); }

/* ============ LOGO IMAGE ============ */
.bz-logo-img {
    width: 56px; height: 56px; border-radius: 16px; object-fit: contain;
    background: var(--bz-grad); flex-shrink: 0;
    box-shadow: 0 8px 24px -6px rgba(236, 72, 153, .4);
}
.bz-side-head .bz-logo-img {
    width: 40px; height: 40px; border-radius: 12px;
    box-shadow: 0 4px 12px -3px rgba(236, 72, 153, .4);
}
/* Printer setup button in hardware bar */
.bz-hw-setup {
    margin-left: auto; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--bz-line);
    background: var(--bz-bg); font-size: 11.5px; font-weight: 600; cursor: pointer;
    color: var(--bz-primary); display: flex; align-items: center; gap: 4px;
}
.bz-hw-setup:hover { background: rgba(236,72,153,.08); border-color: var(--bz-primary-2); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
