:root{--brand:#2a5ee8;--brand-dark:#1f4bc4;--brand-soft:#eef3ff;--on-brand:#fff;--danger:#d92d20;--danger-soft:#fef3f2;--success:#12805c;--chart-revenue:#007fff;--chart-revenue-ink:#0063c8;--chart-revenue-light:#9ec5f7;--chart-profit:#3cb371;--chart-orders:#ffdb58;--chart-orders-ink:#9a6b00;--chart-debt:#da2c43;--chart-purple:#9370db;--chart-1:#007fff;--chart-2:#3cb371;--chart-3:#9370db;--chart-4:#ffdb58;--chart-5:#da2c43;--chart-6:#4dabff;--chart-7:#7bcfa2;--chart-8:#b9a2e8;--chart-9:#ffe894;--chart-10:#e86a7b;--on-scrim:#f2f5fa;--warning-soft:#fffaeb;--bg:#eef1f5;--surface:#fff;--surface-2:#fafbfc;--surface-3:#eef0f3;--border:#e6e8ec;--border-strong:#d5d8de;--text:#1f2430;--muted:#6b7280;--success-soft:#ecfdf5;--warning-text:#93370d;--warning-border:#fedf89;--danger-text:#912018;--danger-border:#fecdca;--success-border:#abefc6;--info-border:#c7d7fe;--radius-control:8px;--radius:8px;--radius-sm:var(--radius-control);--radius-card:14px;--radius-pill:999px;--shadow:0 1px 2px #1018280f, 0 1px 3px #10182814;--shadow-lg:0 16px 40px #1018282e;--sidebar-w:248px;--topbar-h:56px;--row-h:52px;--control-h:32px;--control-h-page:40px;--row-list-h:calc(var(--control-h) + 12px);--label-w:126px;--z-sticky:10;--z-topbar:20;--z-menu:30;--z-sheet:40;--z-drawer:50;--z-scanner:60;--z-modal:70;--z-toast:100;--z-loading:120;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (width<=768px){:root{--control-h:40px;--control-h-page:44px;--row-list-h:calc(var(--control-h) + 12px);--label-w:108px}}:root[data-theme=dark]{--brand:#6f9bff;--brand-dark:#4d7ef0;--brand-soft:#1b2a4a;--on-brand:#0f1218;--warning-text:#ffd48a;--warning-border:#6b5622;--danger-text:#ffb4ad;--danger-border:#6b3230;--success-border:#1f5747;--info-border:#2b3f6b;--danger:#ff7b72;--danger-soft:#3a1f1e;--success:#4ade9b;--success-soft:#12302a;--warning-soft:#3a2f16;--chart-revenue:#4da6ff;--chart-revenue-ink:#7cc0ff;--chart-revenue-light:#2f5f96;--chart-profit:#6fd3a0;--chart-orders:#ffdb58;--chart-orders-ink:#ffd24a;--chart-debt:#ff6b7d;--chart-purple:#b08aea;--chart-1:#4da6ff;--chart-2:#6fd3a0;--chart-3:#b08aea;--chart-4:#ffdb58;--chart-5:#ff6b7d;--chart-6:#8fc4ff;--chart-7:#9fe0bf;--chart-8:#cbb3f2;--chart-9:#ffe894;--chart-10:#ff9aa6;--bg:#0a0d12;--surface:#171b23;--surface-2:#1c212b;--surface-3:#232935;--border:#2a3140;--border-strong:#39414f;--text:#e6e9ef;--muted:#98a1b0;--on-scrim:#f2f5fa;--shadow:0 1px 2px #0006, 0 1px 3px #00000080;--shadow-lg:0 16px 40px #0009;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=dark] .mini-table tbody tr:nth-child(2n),:root[data-theme=dark] tbody tr:nth-child(2n){background:var(--surface-2)}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Noto Sans Vietnamese,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.5}.app{gap:14px;height:100vh;padding:14px;display:flex;overflow:hidden}.sidebar{width:var(--sidebar-w);flex:0 0 var(--sidebar-w);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);flex-direction:column;align-self:flex-start;height:100vh;max-height:100%;display:flex;position:relative;top:0;overflow-y:auto}.brand{height:var(--topbar-h);letter-spacing:.2px;align-items:center;gap:8px;padding:0 16px;font-size:17px;font-weight:700;display:flex}.nav{flex-direction:column;gap:2px;padding:6px 10px 12px;display:flex;overflow-y:auto}.nav-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:12px 10px 6px;font-size:11px;font-weight:600}.nav-item{color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:10px;align-items:center;gap:10px;padding:9px 12px;text-decoration:none;transition:background .12s,color .12s;display:flex}.nav-item:hover:not(.is-disabled){background:var(--bg)}.nav-item.is-active{background:var(--brand-soft);color:var(--brand-dark);font-weight:600}.nav-item.is-disabled{color:var(--muted);cursor:not-allowed;opacity:.75}.nav-item .tag{white-space:nowrap;flex:none;margin-left:auto}.nav-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.nav-icon{stroke:currentColor;fill:none;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;flex:0 0 18px;width:18px;height:18px}.main{flex-direction:column;flex:1;gap:14px;min-width:0;display:flex}.topbar{height:var(--topbar-h);flex:0 0 var(--topbar-h);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);z-index:var(--z-topbar);align-items:center;gap:12px;padding:0 20px;display:flex;position:sticky;top:0}.topbar .spacer{flex:1}.content{flex-direction:column;flex:1;width:100%;min-height:0;display:flex;overflow:hidden}.btn{height:var(--control-h-page);border-radius:var(--radius-control);border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;align-items:center;gap:6px;padding:0 14px;font-weight:500;display:inline-flex}.btn:hover:not(:disabled){background:var(--bg)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}.btn-primary:hover:not(:disabled){background:var(--brand-dark);border-color:var(--brand-dark)}.btn-ghost{color:var(--brand-dark);background:0 0;border-color:#0000}.btn-ghost:hover:not(:disabled){background:var(--brand-soft)}.btn-ghost.is-danger-text{color:var(--danger)}.btn-ghost.is-danger-text:hover:not(:disabled){background:var(--danger-soft)}.btn-danger{color:var(--danger);background:0 0;border-color:#0000}.btn-danger:hover:not(:disabled){background:var(--danger-soft)}.btn-sm{height:var(--control-h);padding:0 10px;font-size:13px}.input,.select{width:100%;height:var(--control-h-page);border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font:inherit;padding:0 11px}.select,select{text-align:center;text-align-last:center}.drawer .input,.drawer .select{height:var(--control-h)}.drawer .select,.select-chevron{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-position:right 11px center;background-repeat:no-repeat;background-size:14px 14px;padding-left:32px;padding-right:32px}:root[data-theme=dark] .drawer .select,:root[data-theme=dark] .select-chevron{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a1b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}.input:focus-visible,.select:focus-visible,.btn:focus-visible,.nav-item:focus-visible{outline:2px solid var(--brand);outline-offset:1px}[data-focus-restore]:focus{outline:none}.input::placeholder{color:#9aa1ad}.field{flex-direction:column;gap:5px;display:flex}.field>span{color:var(--text);font-size:13px;font-weight:500}.field .hint{color:var(--muted);font-size:12px}.field .error-text{color:var(--danger);font-size:12px}.tag{border-radius:var(--radius-pill);background:var(--bg);border:1px solid var(--border);color:var(--muted);align-items:center;padding:1px 8px;font-size:11px;line-height:18px;display:inline-flex}.banner{border-radius:var(--radius-sm);border:1px solid;margin-bottom:12px;padding:10px 12px;font-size:13px}.banner-dismissible{align-items:flex-start;gap:8px;display:flex}.banner-text{flex:1;min-width:0}.banner-close{width:22px;height:22px;color:inherit;cursor:pointer;opacity:.75;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.banner-close:hover{opacity:1;background:#0000000f}.banner-close .nav-icon{width:14px;height:14px}.banner-error{background:var(--danger-soft);border-color:var(--danger-border);color:var(--danger-text)}.banner-success{background:var(--success-soft);border-color:var(--success-border);color:var(--success)}.banner-info{background:var(--brand-soft);border-color:var(--info-border);color:var(--brand-dark)}.page-actions{align-items:center;gap:8px;display:flex}.file-pick{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.hidden-file{display:none}.import-status{align-items:center;gap:8px;margin:0 20px 10px;display:flex}.import-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;flex:none;width:14px;height:14px;animation:.8s linear infinite import-spin}@keyframes import-spin{to{transform:rotate(360deg)}}@media (width<=768px){.import-status{margin:0 12px 10px}}.stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;display:grid}.stat{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);flex-direction:column;gap:2px;padding:10px 12px;display:flex}.stat-value{font-variant-numeric:tabular-nums;font-size:20px;font-weight:650}.stat-label{color:var(--muted);font-size:12px}.section-title{margin:4px 0 8px;font-size:13px;font-weight:600}.mini-table{border-collapse:collapse;border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;font-size:13px;overflow:hidden}.mini-table th,.mini-table td{border-bottom:1px solid var(--border);text-align:left;padding:8px 10px}.mini-table tr:last-child td{border-bottom:none}.mini-table th{background:var(--surface-2);color:var(--muted);font-weight:600}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.push-end{margin-left:auto}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.page-head h1{margin:0;font-size:20px;font-weight:650}.page-head .sub{color:var(--muted);margin:2px 0 0;font-size:13px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.card-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px;display:flex}.card-toolbar .search{flex:260px;max-width:420px}.card-toolbar .select{width:auto;min-width:180px}.table-wrap{flex:1;min-height:0;overflow:auto}table{border-collapse:collapse;width:100%}thead th{text-align:left;letter-spacing:.02em;color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--border);z-index:var(--z-sticky);white-space:nowrap;padding:10px 16px;font-size:12px;font-weight:600;position:sticky;top:0}.th-sort{width:100%;font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;justify-content:flex-start;align-items:center;padding:0;display:flex;position:relative}th.num .th-sort,th.center .th-sort{justify-content:center}.th-sort:hover{color:var(--brand)}.sort-mark{font-size:9px;line-height:1;position:absolute}th.num .sort-mark{left:0}th:not(.num) .sort-mark{right:0}.cell-edit{align-items:center;gap:6px;display:inline-flex}.cell-edit .input{height:var(--control-h);min-width:160px}.price-cell{width:100%;font:inherit;color:inherit;text-align:center;cursor:pointer;background:0 0;border:0;padding:0}.price-cell:hover{color:var(--brand)}.barcode-row{align-items:center;gap:6px;margin-bottom:6px;display:flex}.barcode-row .input{flex:1}.barcode-row .btn:disabled{opacity:.45;cursor:not-allowed}.image-slot{border:1px dashed var(--border-strong);border-radius:var(--radius);width:96px;height:96px;color:var(--muted);cursor:not-allowed;opacity:.7;background:0 0;flex-direction:column;justify-content:center;align-items:center;gap:6px;display:flex}.image-slot em{font-size:11px;font-style:normal}.stock-cell{min-height:var(--control-h);font:inherit;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;gap:4px;padding:0 4px;display:inline-flex;position:relative}.stock-cell:hover{background:var(--surface-hover,#0000000a)}.stock-cell-num{align-items:center;display:inline-flex;position:relative}.stock-cell .sort-mark{margin-right:2px;top:50%;right:100%;transform:translateY(-50%)}.stock-cell.is-negative,.stock-detail .is-negative{color:var(--danger);font-weight:600}.stock-detail-row>td{background:var(--surface-sunken,#00000005);padding:8px 12px 12px}.stock-detail-title{color:var(--muted);align-items:center;gap:10px;margin:0 0 6px;font-size:12px;font-weight:600;display:flex}.stock-step{text-transform:none;align-items:center;gap:6px;font-weight:500;display:inline-flex}.stock-detail{border-collapse:collapse;width:auto;min-width:260px}.stock-detail td{padding:3px 14px 3px 0;font-size:13px}.stock-detail td.num{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.stock-detail td.stock-stepper{white-space:nowrap;padding-right:0}.stock-detail td.stock-stepper .btn{border-color:var(--border-strong);background:var(--surface);color:var(--text)}.stock-detail td.stock-stepper .btn:hover:not(:disabled){background:var(--surface-3)}.stock-detail td.stock-stepper .btn:first-child:hover:not(:disabled){border-color:var(--danger);color:var(--danger);background:var(--danger-soft)}.stock-detail td.stock-stepper .btn:last-child:hover:not(:disabled){border-color:var(--brand);color:var(--brand-dark);background:var(--brand-soft)}.stock-detail td.stock-stepper .btn+.btn{margin-left:6px}.group-price-list{flex-wrap:wrap;justify-content:center;gap:4px;display:inline-flex}tbody td{height:var(--row-h);border-bottom:1px solid var(--border);vertical-align:middle;white-space:nowrap;padding:0 16px}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:var(--surface-2)}.cell-name{overflow-wrap:anywhere;align-items:center;gap:10px;min-width:220px;display:flex}.cell-name .name-link{font:inherit;color:var(--brand-dark,var(--brand));text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:550}.cell-name .name-link:hover{text-decoration:underline}.product-row{cursor:pointer}.avatar{border-radius:var(--radius-sm);background:var(--brand-soft);width:32px;height:32px;color:var(--brand-dark);flex:0 0 32px;place-items:center;font-weight:600;display:grid;position:relative;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.thumb-zoom{z-index:90;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-md);pointer-events:none;border-radius:10px;padding:4px;display:block;position:fixed}.thumb-zoom img{object-fit:contain;border-radius:6px;width:auto;max-width:240px;height:auto;max-height:240px;display:block}.photo-capture{flex-flow:wrap;align-items:flex-start;gap:10px 12px;display:flex}.photo-preview{object-fit:cover;background:var(--bg);border:1px solid var(--border);border-radius:10px;width:96px;height:96px}.photo-notice{color:var(--success);font-size:12px;font-style:normal}.photo-actions{flex-flow:column wrap;align-items:flex-start;gap:6px;display:flex}.photo-capture>.photo-notice,.photo-capture>.error-text{flex-basis:100%}.muted{color:var(--muted)}.num{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}thead th.num,th.center,td.center,tbody td.num{text-align:center}.barcode-list{flex-wrap:wrap;justify-content:center;gap:4px;display:flex}.barcode-list .tag{justify-content:center}.barcode-main{align-items:center;gap:4px;display:inline-flex}.barcode-copy{width:var(--control-h);min-width:var(--control-h);height:var(--control-h);padding:0}.table-footer{border-top:1px solid var(--border);color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;font-size:13px;display:flex}.pager{align-items:center;gap:8px;display:flex}.pager-size{align-items:center;gap:6px;display:inline-flex}.pager-size .select{width:auto;min-width:4.5em;height:var(--control-h);padding:0 26px 0 8px}.pager-arrow{display:none}.empty{text-align:center;color:var(--muted);padding:48px 16px}.empty .icon{background:var(--bg);border-radius:50%;place-items:center;width:44px;height:44px;margin:0 auto 10px;display:grid}.skeleton-row td{height:var(--row-h)}.skeleton{border-radius:var(--radius-pill);background:linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%);background-size:400% 100%;height:12px;animation:1.4s infinite shimmer}@keyframes shimmer{0%{background-position:100%}to{background-position:0}}.drawer-overlay{z-index:var(--z-drawer);background:#10182861;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{background:var(--surface);width:min(560px,100%);height:100%;box-shadow:var(--shadow-lg);flex-direction:column;display:flex}.drawer-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.drawer-head h2{margin:0;font-size:16px}.drawer-body{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:5px;padding:5px;display:grid;overflow-y:auto}.wide{grid-column:1/-1}.category-create{gap:5px;display:flex}.drawer-foot{border-top:1px solid var(--border);background:var(--surface-2);justify-content:flex-end;gap:8px;margin-top:auto;padding:14px 20px;display:flex}@media (width<=900px){.app{flex-direction:column}.sidebar{border-right:none;border-bottom:1px solid var(--border);flex:none;width:100%;height:auto;position:static}.nav{flex-direction:row;padding:8px;overflow-x:auto}.nav-label,.nav-item .tag{display:none}.content{padding:14px}}.mapping-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:8px;display:grid}.pick{width:40px;padding-right:0}.pick input{width:16px;height:16px;accent-color:var(--brand);cursor:pointer}.bulk-bar{background:var(--brand-soft);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px;display:flex}.bulk-bar .spacer{flex:1}.banner-warning{background:var(--warning-soft);border-color:var(--warning-border);color:var(--warning-text);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:12px 16px 0;display:flex}.row-actions{white-space:nowrap;justify-content:center;gap:4px;display:flex}.profit-line{color:var(--muted);align-items:baseline;gap:4px;font-size:12px;font-style:normal;display:inline-flex}.profit-figure{font-variant-numeric:tabular-nums;color:var(--success)}.profit-figure.is-negative{color:var(--danger)}output.profit-figure{font-size:13px;font-weight:650}.select-sm{width:auto;padding:5px 8px;font-size:13px}.price-row{flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:5px;display:flex}.price-row .select{flex:0 38%;width:auto;min-width:8em}.price-row .input{flex:6em;width:auto;min-width:6em}.ledger-table{border-collapse:collapse;width:100%;font-size:13px}.ledger-table th{text-align:center;color:var(--muted);padding:8px 16px;font-weight:500}.ledger-table th,.ledger-table td{text-align:center}.ledger-table td{border-top:1px solid var(--border);padding:10px 16px}.stock-detail-row .ledger-table th:first-child,.stock-detail-row .ledger-table td:first-child{padding-left:0}.stock-detail-row .ledger-table th,.stock-detail-row .ledger-table td{padding-top:6px;padding-bottom:6px}.ledger-table th.num,.ledger-table td.num{text-align:center;font-variant-numeric:tabular-nums;padding-right:16px}.ledger-table th.col-date,.ledger-table td.col-date{width:13em}.ledger-table th.col-kind,.ledger-table td.col-kind{width:8em}.ledger-table th.col-store,.ledger-table td.col-store{width:9em}.ledger-table th.col-qty,.ledger-table td.col-qty{width:7em}.ledger-table th.col-operator,.ledger-table td.col-operator{width:9em}.ledger-table th.col-note,.ledger-table td.col-note{width:auto}.ledger-table .in{color:var(--success,#1a7f37)}.ledger-table .out{color:var(--danger)}.template-bar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.template-bar .muted{flex:14em;font-size:12px}@media (width<=768px){.app{gap:0;height:100dvh;padding:0;overflow:hidden}.main{gap:0;min-height:0}.input,.select,input,select,textarea{font-size:16px}.content{padding:5px;overflow:hidden}.content.is-catalog,.content.is-home{padding:0}.content.is-home{background:var(--surface);padding:0}.content.is-inventory,.content.is-stores{padding-bottom:0}.content.is-pos,.content.is-orders,.content.is-customers,.content.is-reports{padding:0}.card{flex:none}.sidebar,.table-wrap{max-height:none}thead th{position:static}.mobile-home{background:var(--surface);flex-direction:column;flex:1;gap:5px;min-height:0;padding:0 5px;display:flex;overflow:hidden}.search-scan:disabled{opacity:.6;cursor:not-allowed}.search-scan.pos-entry{background:var(--brand);color:var(--on-brand)}.mobile-home>.mobile-search-row{margin:0 -5px}.mobile-feed{-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:10px;min-height:0;padding-bottom:12px;display:flex;overflow-y:auto}.mobile-scroll{overscroll-behavior-y:contain}.mobile-ptr{background:var(--surface);color:var(--muted);flex:none;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex;overflow:hidden}.mobile-ptr-spinner{opacity:.55;border:2px solid;border-right-color:#0000;border-radius:50%;flex:none;width:16px;height:16px}.mobile-ptr.is-refreshing .mobile-ptr-spinner,.mobile-ptr-spinner.is-refreshing{opacity:1;animation:.8s linear infinite mobile-ptr-spin}@keyframes mobile-ptr-spin{to{transform:rotate(360deg)}}.mobile-more{border-top:1px solid var(--border);background:var(--surface);height:44px;color:var(--muted);flex:none;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex}.mobile-home>.mobile-feed{background:0 0;gap:0;margin:0 -5px}.mobile-section{border-top:1px solid var(--border);flex:none;padding:14px 12px}.mobile-section:first-child{border-top:0}.mobile-section h3{color:var(--muted);margin:0 0 8px;font-size:13px;font-weight:600}.mobile-stats{gap:12px;display:flex}.mobile-stats>div{flex:1}.mobile-stats .v{font-size:20px;font-weight:700}.mobile-stats .l{color:var(--muted);font-size:11px}.mobile-line{border-top:1px solid var(--border);flex-wrap:wrap;align-items:baseline;gap:6px;padding:7px 0;font-size:13px;display:flex}.mobile-line:first-of-type{border-top:0}.mobile-line .qty{font-variant-numeric:tabular-nums;font-weight:700}.mobile-line .qty.in{color:var(--success)}.mobile-line .qty.out{color:var(--danger)}.mobile-line .name{font-weight:550}.mobile-line .meta{color:var(--muted);flex-basis:100%;font-size:11px}.mobile-shortcuts{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.mobile-shortcut{border-radius:var(--radius-sm);font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;font-size:12px;display:flex;position:relative}.mobile-shortcut:disabled{color:var(--muted);opacity:.75;cursor:not-allowed}.mobile-shortcut em{font-size:10px;font-style:normal}.mobile-dock{background:var(--surface);flex:none}.mobile-tabs{height:calc(69px + env(safe-area-inset-bottom,0px));min-height:69px;padding:0 2px;padding-bottom:env(safe-area-inset-bottom,0);background:var(--surface);border:none;border-top:1px solid var(--border);box-shadow:none;z-index:var(--z-menu);border-radius:0;flex:none;margin:0;display:flex;position:static}.mobile-tab{min-width:0;font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:none;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:11.5px;display:flex;position:relative}.mobile-tab .nav-icon{flex:0 0 22px;width:22px;height:22px}.mobile-tab.is-active{color:var(--brand-dark);background:var(--brand-soft);font-weight:600}.mobile-tab.is-active:before{content:"";background:var(--brand);height:3px;position:absolute;inset:0 0 auto}.mobile-tab.is-disabled{opacity:.6;cursor:not-allowed}.mobile-tab em{font-size:9px;font-style:normal}.mobile-catalog{background:var(--bg);flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.mobile-search-row{box-sizing:border-box;background:var(--surface);height:52px;box-shadow:inset 0 -1px 0 var(--border);flex:none;align-items:center;gap:8px;padding:6px 12px;display:flex}.search-wrap{flex:1;min-width:0;position:relative}.search-wrap .search{background:var(--surface-3);border:0;width:100%;height:40px;padding-left:38px}.search-wrap.has-clear .search{padding-right:44px}.search-wrap .search::-webkit-search-cancel-button{appearance:none}.search-wrap .search::-webkit-search-decoration{appearance:none}.search-clear{width:40px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;display:flex;position:absolute;top:0;right:0}.search-clear-icon{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.search-icon{width:16px;height:16px;color:var(--muted);pointer-events:none;flex:none;position:absolute;top:12px;left:12px}.search-scan{background:var(--surface-3);width:40px;height:40px;color:var(--text);cursor:pointer;border:0;border-radius:10px;flex:none;justify-content:center;align-items:center;display:flex}.mobile-head-logo{object-fit:contain;border-radius:8px;flex:none;width:30px;height:30px}.mobile-head-logo.is-wordmark{border-radius:0;width:auto;height:30px}.mobile-head-spacer{flex:1;min-width:0}.mobile-list-head{background:var(--surface);border-bottom:1px solid var(--border);height:36px;color:var(--muted);flex:none;justify-content:space-between;align-items:center;gap:8px;padding:0 12px;font-size:12px;display:flex}.mobile-list-head>span:first-child{white-space:nowrap;flex:none}.head-actions{flex:none;align-items:center;gap:14px;display:flex}.head-action{font:inherit;color:var(--muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:3px;padding:0;font-size:12px;display:inline-flex}.head-action .nav-icon{flex:0 0 14px;width:14px;height:14px}.head-action.is-on{color:var(--brand-dark);font-weight:600}.head-count{background:var(--brand);color:#fff;text-align:center;border-radius:999px;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:700;line-height:16px}.mobile-list{background:var(--surface);flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}.mobile-fab{right:16px;bottom:calc(69px + env(safe-area-inset-bottom,0px) + 16px);z-index:var(--z-menu);background:var(--brand);width:52px;height:52px;color:var(--on-brand);cursor:pointer;border:0;border-radius:50%;justify-content:center;align-items:center;display:flex;position:fixed;box-shadow:0 6px 16px #10182838}.mobile-fab .nav-icon{stroke:currentColor;width:24px;height:24px}.mobile-catalog .mobile-list{padding-bottom:76px}.fab-actions{flex-direction:column;gap:8px;display:flex}.fab-actions .btn{width:100%;height:var(--control-h-page);justify-content:center}.mobile-product{flex:none;align-items:center;display:flex;position:relative}.mobile-product:after{content:"";background:var(--border);height:1px;position:absolute;bottom:0;left:62px;right:0}.mobile-product:last-child:after{display:none}.mobile-product-main{min-width:0;min-height:64px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;gap:10px;padding:8px 12px;display:flex}.mobile-product-copy{width:var(--control-h);height:var(--control-h);flex:none;margin-right:4px;padding:0}.mobile-product-text{flex-direction:column;gap:2px;min-width:0;display:flex}.mobile-product-text .name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.mobile-product-text .meta{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.mobile-product-price{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;font-size:15px;font-weight:700}.mobile-product-price em{color:var(--muted);font-size:12px;font-style:normal;font-weight:400;display:block}.mobile-product-price em.is-negative{color:var(--danger);font-weight:600}.mobile-empty{text-align:center;padding:28px 16px}.mobile-empty-title{color:var(--text);margin:0;font-size:15px;font-weight:600}.mobile-empty-hint{margin:6px 0 16px;font-size:13px;line-height:1.5}.mobile-empty-actions{flex-direction:column;gap:8px;display:flex}.mobile-empty-actions .btn{width:100%}.mobile-sheet{z-index:var(--z-sheet);background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.mobile-sheet-head{background:var(--surface);border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;height:56px;padding:0 14px;display:flex}.mobile-sheet-head h2{margin:0;font-size:16px}.mobile-sheet-body{flex-direction:column;flex:1;gap:10px;min-height:0;padding:14px;display:flex;overflow-y:auto}.mobile-scan-input{letter-spacing:.04em;height:48px;font-size:18px}.mobile-wide{justify-content:center;height:46px;font-size:15px}.mobile-found,.mobile-unknown{flex-direction:column;gap:10px;padding:14px;display:flex}.mobile-found-name{font-size:16px;font-weight:650}.mobile-stepper{align-items:center;gap:10px;display:flex}.mobile-stepper .btn{width:var(--control-h-page);height:var(--control-h-page);justify-content:center;font-size:16px}.mobile-qty{width:88px;height:var(--control-h-page);text-align:center;font-size:16px;font-weight:700}}.locale-toggle{height:var(--control-h);border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-weight:500;transition:background .12s,border-color .12s;display:inline-flex}.locale-toggle:hover{background:var(--bg);border-color:var(--border-strong)}.locale-toggle .nav-icon{color:var(--muted)}.locale-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.scanner-overlay{z-index:var(--z-scanner);background:#0d1016;flex-direction:column;display:flex;position:fixed;inset:0}.scanner-head{height:56px;color:var(--on-scrim);flex:none;justify-content:space-between;align-items:center;padding:0 14px;display:flex}.scanner-head h2{margin:0;font-size:16px}.scanner-head .btn-ghost{color:var(--on-scrim)}.scanner-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:0 14px 18px;display:flex;position:relative}.scanner-video{object-fit:cover;border-radius:var(--radius-card);background:#000;flex:1;width:100%;min-height:0}.scanner-overlay.is-idle{display:none}.scanner-overlay.is-half{border-radius:var(--radius-card) var(--radius-card) 0 0;top:50%;overflow:hidden;box-shadow:0 -12px 32px #080b1066}.scanner-overlay.is-half .scanner-head{height:48px}.scanner-overlay.is-half .scanner-body{padding:0 10px 10px}.scanner-overlay.is-half .scanner-frame{width:min(64vw,30vh,260px);top:40%}.mobile-found-photo{justify-content:center;margin-bottom:8px;display:flex}.scanner-snapshot{object-fit:contain;border-radius:var(--radius-card);background:#0d1016;width:calc(100% - 28px);height:calc(100% - 18px);position:absolute;inset:0 14px 18px}.scanner-code{text-align:center;letter-spacing:.08em;color:#cbd5e6;font-family:ui-monospace,monospace;font-size:12px;position:absolute;bottom:2px;left:0;right:0}.scanner-overlay.is-compact{border-radius:var(--radius-card);background:0 0;margin-bottom:8px;position:static;inset:auto;overflow:hidden}.scanner-overlay.is-compact .scanner-head{background:var(--surface);height:40px}.scanner-overlay.is-compact .scanner-head h2{color:var(--text);font-size:13px}.scanner-overlay.is-compact .scanner-head .btn-ghost{color:var(--text)}.scanner-overlay.is-compact .scanner-body{padding:0 0 8px}.scanner-overlay.is-compact .scanner-video{flex:none;height:128px;max-height:128px}.scanner-overlay.is-compact .scanner-snapshot{width:100%;height:calc(100% - 8px);bottom:8px;left:0;right:0}.scanner-overlay.is-compact .scanner-frame,.scanner-overlay.is-compact .scanner-tip,.scanner-overlay.is-compact .scanner-torch{display:none}.scanner-overlay.is-compact .scanner-tip{color:var(--muted);font-size:11px}.scanner-frame{aspect-ratio:1;pointer-events:none;border:2px solid #ffffffd9;border-radius:12px;width:min(72vw,300px);position:absolute;top:38%;left:50%;transform:translate(-50%,-50%)}.scanner-tip{text-align:center;color:#e8ecf5;margin:0;font-size:13px}.scanner-torch{align-self:center}.lightbox{z-index:var(--z-modal);background:#080b10f0;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:12px;display:flex;position:fixed;inset:0}.lightbox-bar{top:max(10px, env(safe-area-inset-top));justify-content:space-between;display:flex;position:absolute;left:10px;right:10px}.lightbox-action{color:var(--on-scrim);background:#ffffff1f}.lightbox-image{object-fit:contain;border-radius:var(--radius-card);background:#000;max-width:100%;max-height:74vh}.lightbox-caption{text-align:center;color:var(--on-scrim);flex-direction:column;align-items:center;gap:4px;max-width:92%;font-size:13px;display:flex}.lightbox-barcode{letter-spacing:.06em;color:#c8d2e2;font-family:ui-monospace,monospace}.lightbox-hint{color:#9aa7bd;font-size:11px;font-style:normal}.photo-preview-button{cursor:zoom-in;background:0 0;border:0;padding:0}.brand-logo{flex:none;width:30px;height:30px;display:block}.login-screen{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{flex-direction:column;flex:none;gap:14px;width:min(360px,100%);padding:24px;display:flex}.login-card .input,.login-card .btn-block{width:100%}.login-card .field>span,.login-card .login-remember{font-size:12px}.login-brand{align-items:center;gap:12px;display:flex}.login-brand .login-logo{width:40px;height:40px}.login-brand-text{flex-direction:column;gap:2px;min-width:0;display:flex}.login-brand strong{letter-spacing:-.01em;font-size:18px;font-weight:700;line-height:1.2}.login-brand em{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-style:normal;line-height:1.3;overflow:hidden}.btn-block{justify-content:center;width:100%}.topbar-store,.topbar-account{align-items:center;gap:8px;display:inline-flex}.topbar-store{position:relative}.topbar-store .select{height:var(--control-h);border-radius:var(--radius-pill);background:var(--bg);text-overflow:ellipsis;appearance:none;cursor:pointer;border:1px solid #0000;padding:0 26px;font-size:13px;font-weight:550}.topbar-store .select:hover{background:var(--surface-3)}.topbar-store:after{content:"";border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);pointer-events:none;width:6px;height:6px;position:absolute;top:calc(50% - 3px);right:11px;transform:rotate(45deg)}.topbar-account{border-left:1px solid var(--border);padding-left:8px}.tabs{border-bottom:1px solid var(--border);scrollbar-width:none;overscroll-behavior-x:contain;align-items:stretch;gap:4px;min-height:48px;display:flex;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tab{font:inherit;white-space:nowrap;cursor:pointer;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;flex:none;margin-bottom:-1px;padding:0 16px;font-size:14px;font-weight:600;transition:color .15s,border-color .15s}.tab:hover{color:var(--text)}.tab.is-active{color:var(--brand-dark);border-bottom-color:var(--brand)}:root[data-theme=dark] .tab.is-active{color:var(--brand)}.admin-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;gap:5px;display:grid}@media (width<=768px){.admin-grid{gap:5px}}.checkbox-fieldset{border:1px solid var(--border);border-radius:var(--radius-sm);flex-wrap:wrap;gap:5px;padding:5px;display:flex}.checkbox-fieldset legend{color:var(--muted);padding:0 4px;font-size:12px}.checkbox-line{align-items:center;gap:6px;font-size:13px;display:inline-flex}.perm-fieldset{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);min-width:0;padding:12px 14px}.perm-fieldset legend{color:var(--muted);padding:0 4px;font-size:12px}.perm-note{margin:0 0 8px}.perm-rows{flex-direction:column;gap:2px;display:flex}.perm-row{border-bottom:1px dashed var(--border);grid-template-columns:8.5em 1fr;align-items:center;gap:3px 12px;padding:6px 0;font-size:13px;display:grid}.perm-row:last-child{border-bottom:0}.perm-row.is-pending{background:repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 8px, var(--surface-3) 8px, var(--surface-3) 16px);border-radius:var(--radius-sm);padding-left:8px;padding-right:8px}.perm-says{color:var(--muted);grid-column:2;font-size:12px}.perm-why{grid-column:2}.perm-name{flex:0 0 8.5em;font-weight:600}.seg{border:1px solid var(--border-strong);background:var(--surface);border-radius:999px;display:inline-flex;overflow:hidden}.seg-btn{font:inherit;cursor:pointer;color:var(--muted);white-space:nowrap;background:0 0;border:0;padding:4px 13px;font-size:12.5px}.seg-btn+.seg-btn{border-left:1px solid var(--border)}.seg-btn:hover{color:var(--brand)}.seg-btn.is-on{background:var(--brand);color:var(--on-brand);font-weight:600}.seg-btn.is-on.is-none{background:var(--surface-3);color:var(--text)}.tag-soon{color:var(--warning-text);background:var(--warning-soft);border:1px solid var(--warning-border);border-radius:999px;margin-left:6px;padding:1px 7px;font-size:11px;font-weight:600;display:inline-block}.perm-standalone{border-top:1px solid var(--border);margin-top:14px;padding-top:12px}.perm-sect-title{font-size:13px;font-weight:600}.perm-why{flex:auto}.perm-summary{border:1px solid var(--info-border);border-radius:var(--radius-sm);background:var(--brand-soft);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;font-size:13px;display:flex}.perm-tag{background:var(--surface);border:1px solid var(--info-border);border-radius:999px;padding:2px 10px;font-size:12px}.perm-tag.is-none{background:var(--surface-3);border-color:var(--border);color:var(--muted)}.inventory,.inventory-body{flex-direction:column;flex:1;min-height:0;display:flex}.inventory .card-toolbar{border-bottom:1px solid var(--border)}.board-table th.num,.board-table td.num{text-align:center}.board-table td.board-cell{text-align:center;white-space:nowrap}.board-table th.board-store{text-align:center}.board-table .board-name{width:100%}.board-table td.board-cell .stock-stepper{vertical-align:middle;justify-content:center;gap:4px;margin-left:0;display:inline-flex}.board-table td.board-cell .btn{border-color:var(--border-strong);background:var(--surface);min-width:26px;height:24px;color:var(--text);padding:0 6px;font-size:13px;font-weight:700;line-height:1}.board-table td.board-cell .btn:hover:not(:disabled){background:var(--surface-3)}.board-table td.board-cell .btn:first-of-type:hover:not(:disabled){border-color:var(--danger);color:var(--danger);background:var(--danger-soft)}.board-table td.board-cell .btn:last-of-type:hover:not(:disabled){border-color:var(--brand);color:var(--brand-dark);background:var(--brand-soft)}.board-table td .strong,.board-table td.strong{font-variant-numeric:tabular-nums;font-weight:650}.inventory .ledger-table{font-size:13px}.scope-select{width:auto;min-width:10em}.mobile-feed .card h3{justify-content:space-between;align-items:center;gap:8px;display:flex}.store-detail{grid-template-rows:repeat(5,auto);grid-auto-columns:minmax(220px,1fr);grid-auto-flow:column;gap:2px 18px;max-width:760px;display:grid}.store-detail-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;min-height:34px;display:flex}.store-detail-row .muted{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.store-detail-row .stock-stepper{flex:none;align-items:center;gap:6px;display:inline-flex}.form-stock-head{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.form-stock-head em{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;font-style:normal}.form-stock-meta{align-items:center;gap:10px;display:inline-flex}.store-detail-list{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);flex-direction:column;padding:0 12px;display:flex}.store-detail-list .store-detail-row{min-height:var(--row-list-h)}.store-detail-list .store-detail-row:last-child{border-bottom:0}.stock-input.is-invalid{border-color:var(--danger)}.store-detail-row .strong{font-variant-numeric:tabular-nums;text-align:center;min-width:2.5em;font-weight:650}.store-detail-row .stock-stepper .btn,.inv-card-row .stock-stepper .btn,.board-table td.board-cell .btn{border-color:var(--border-strong);background:var(--surface);color:var(--text)}.store-detail-row .stock-stepper .btn:hover:not(:disabled),.board-table td.board-cell .btn:hover:not(:disabled){background:var(--surface-3)}.topbar-store>.muted,.topbar .btn,.locale-toggle,.topbar-account{white-space:nowrap}.topbar-store .select{text-overflow:ellipsis;max-width:240px}@media (width<=1360px){.topbar-store>.muted{display:none}}@media (width<=1200px){.topbar-account>.muted{display:none}}@media (width<=1100px){.topbar .btn-label{display:none}.topbar .btn,.locale-toggle{padding-left:10px;padding-right:10px}}.stock-sum{color:var(--text);font-variant-numeric:tabular-nums;background:var(--surface-2);border-radius:var(--radius-pill);padding:2px 10px;font-size:12px;font-weight:650}.stock-amount{align-items:center;gap:6px;display:inline-flex}.stock-input{width:4.4em;height:var(--stepper-h);text-align:center;font-variant-numeric:tabular-nums;padding:2px 8px;font-size:13px;font-weight:650}.price-amount{align-items:center;gap:6px;display:inline-flex}.price-input{width:8em;height:var(--stepper-h);text-align:center;font-variant-numeric:tabular-nums;padding:2px 8px;font-size:13px;font-weight:650}.price-input.is-invalid{border-color:var(--danger)}.weight-input{text-align:right;font-variant-numeric:tabular-nums;width:5em}.stock-input:focus{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft);outline:none}.stock-confirm.is-dirty{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}.store-actions{white-space:nowrap;gap:4px;display:inline-flex}.tag-active{color:var(--success);background:var(--success-soft);border-color:var(--success-border)}.tag-warehouse{color:var(--brand-dark);background:var(--brand-soft);border-color:#0000}.store-name-cell{align-items:center;gap:8px;min-width:0;display:inline-flex}.admin-page{flex-direction:column;flex:1;min-height:0;display:flex}.admin-body{flex:1;min-height:0;padding:16px;overflow-y:auto}.admin-page.is-narrow .admin-body{padding:5px}.tab-soon{border-radius:var(--radius-pill);background:var(--surface-2);color:var(--muted);margin-left:6px;padding:1px 6px;font-size:11px;font-style:normal;font-weight:500}.form-section{border-bottom:1px solid var(--border);margin-bottom:5px;padding:5px 0}.form-actions{grid-column:1/-1;justify-content:flex-end;gap:5px;display:flex}.list-head{align-items:center;gap:10px;margin:10px 0;display:flex}.list-head strong{font-size:14px}.spacer{margin-left:auto}.form-card{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);margin:5px 0;padding:5px}.form-head{border-bottom:1px solid var(--border);align-items:center;gap:10px;margin-bottom:10px;padding-bottom:8px;display:flex}.form-head strong{font-size:14px}.checkbox-fieldset{background:var(--surface-2)}.notif{display:inline-flex;position:relative}.notif-btn{position:relative}.notif-dot{border-radius:var(--radius-pill);background:var(--danger);color:#fff;text-align:center;font-variant-numeric:tabular-nums;min-width:17px;height:17px;box-shadow:0 0 0 2px var(--surface);padding:0 4px;font-size:11px;font-weight:700;line-height:17px;position:absolute;top:-4px;right:-4px}.notif-backdrop{z-index:var(--z-sheet);position:fixed;inset:0}.notif-panel{z-index:calc(var(--z-sheet) + 1);white-space:normal;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:min(340px,100vw - 24px);max-height:min(70vh,460px);box-shadow:var(--shadow-lg);padding:12px 14px;position:absolute;top:calc(100% + 8px);right:0;overflow:hidden auto}.notif-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.notif-head .notif-mark-all{flex:none;padding:0 8px}.notif-item+.notif-item{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.notif-item-head{align-items:center;gap:8px;display:flex}.notif-products{margin:6px 0 8px;padding:0;list-style:none}.notif-products li{justify-content:space-between;align-items:baseline;gap:10px;min-width:0;padding:3px 0;font-size:13px;display:flex}.notif-panel .hint{white-space:normal;overflow-wrap:anywhere}.notif-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.notif-threshold-used,.notif-products li .num{flex:none}.notif-products li.is-unread .notif-name{font-weight:700}.notif-foot{border-top:1px solid var(--border);margin-top:10px;padding-top:8px}.notify-settings{flex-direction:column;align-items:flex-start;gap:12px;display:flex}.notify-switch{align-items:flex-start}.notify-switch.is-reserved{opacity:.7}.notify-threshold{align-items:center;gap:8px;display:inline-flex}.notify-threshold .input{text-align:right;width:5em}.notif-threshold-used{white-space:nowrap;font-size:11px}@media (width<=768px){.store-detail{grid-template-rows:none;grid-template-columns:1fr;grid-auto-columns:auto;grid-auto-flow:row;max-width:none}}:root{--stepper-h:var(--control-h)}.stock-amount.stock-stepper .btn.stock-step,.stock-amount.stock-stepper .btn.stock-confirm{width:var(--stepper-h);min-width:var(--stepper-h);height:var(--stepper-h);border-radius:var(--radius-control);background:var(--surface-3);color:var(--text);border:0;justify-content:center;align-items:center;padding:0;font-size:0;display:inline-flex}.stock-amount.stock-stepper .btn.stock-step:hover:not(:disabled){background:var(--brand-soft);color:var(--brand)}.stock-amount.stock-stepper .btn.stock-confirm{color:var(--muted)}.stock-amount.stock-stepper .btn.stock-confirm.is-dirty{background:var(--brand-soft);color:var(--brand)}.stock-amount.stock-stepper .btn.stock-step .nav-icon,.stock-amount.stock-stepper .btn.stock-confirm .nav-icon{stroke-width:2px;flex:0 0 16px;width:16px;height:16px}.stock-amount .btn,.stock-amount .stock-confirm,.price-amount .stock-confirm,.stock-stepper .btn,.stock-detail td.stock-stepper .btn,.store-detail-row .stock-stepper .btn,.inv-card-row .stock-stepper .btn,.board-table td.board-cell .btn,.btn.stock-step-btn{min-width:var(--stepper-h);height:var(--stepper-h);padding:0 6px;font-size:16px;font-weight:700;line-height:1}.inv-card-head{z-index:var(--z-sticky);background:var(--surface);border-radius:var(--radius-card) var(--radius-card) 0 0;position:sticky;top:0}.store-sheet{flex-direction:column;min-height:0;display:flex}.store-sheet-body{min-height:0;max-height:40vh;overflow-y:auto}.store-sheet-foot{border-top:1px solid var(--border);padding:10px 0 0}.store-sheet-save{width:100%;height:var(--control-h-page);justify-content:center}.store-detail-row.is-failed{background:var(--danger-soft);border-radius:var(--radius-sm);padding-left:6px;padding-right:6px}.tag.is-bad{color:var(--danger-text);background:var(--danger-soft);border:1px solid var(--danger-border);margin-left:6px}@media (width<=768px){.stock-input,.price-input{font-size:16px}}.product-drawer{position:relative}.drawer-body.product-drawer-body{flex-direction:column;flex:1;gap:5px;min-height:0;padding:5px 5px 104px;display:flex;overflow-y:auto}.row-section{flex-direction:column;flex:none;display:flex}.row-section-head{justify-content:space-between;align-items:baseline;gap:5px;padding:0 2px 5px;font-size:13px;font-weight:600;display:flex}.row-section-head em{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;font-style:normal;font-weight:400}.row-section-meta{align-items:center;gap:10px;display:inline-flex}.row-list{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-2);padding:0 5px}.row-block{border-bottom:1px solid var(--border);padding:5px 0}.row-block:last-child{border-bottom:0}.row-item{min-height:var(--control-h);align-items:center;gap:4px;display:flex}.row-item-top{align-items:flex-start}.row-label{flex:0 0 var(--label-w);font-size:13px;font-weight:500;line-height:1.35}.row-label .req{color:var(--danger);margin-left:1px}.row-name{flex:0 0 var(--label-w);color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.35;overflow:hidden}.row-ctl{flex:1;justify-content:flex-end;align-items:center;gap:5px;min-width:0;display:flex}.row-text{flex:1;min-width:0}.row-money{text-align:right;font-variant-numeric:tabular-nums;width:8em;font-weight:600}.row-qty{text-align:center;font-variant-numeric:tabular-nums;width:4.4em;font-weight:600}.row-hint{color:var(--muted);margin:2px 0 0;font-size:12px;line-height:1.45}.row-hint.end{text-align:right;margin-left:0;padding-right:12px}.row-hint b{color:var(--text);font-variant-numeric:tabular-nums;font-weight:600}.row-error{color:var(--danger);margin:2px 0 0;font-size:12px;line-height:1.45}.row-add{height:var(--control-h);color:var(--brand-dark);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:0 2px;font-size:13px;font-weight:500;display:flex}.row-add:hover{color:var(--brand)}.product-drawer .barcode-list{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.app.ui-v2 .product-drawer .barcode-list{flex-direction:column;justify-content:flex-start;align-items:stretch;display:flex}.barcode-line{align-items:center;gap:5px;display:flex}.row-pair{display:flex}.row-cell{flex:1;align-items:center;gap:4px;min-width:0;display:flex}.row-cell+.row-cell{border-left:1px solid var(--border);margin-left:5px;padding-left:5px}.row-cell .row-label{white-space:nowrap;flex:none}.row-cell .row-money{margin-left:auto}.modal-backdrop{z-index:var(--z-modal);background:#10182873;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{border-radius:var(--radius-card);background:var(--surface);width:min(100%,380px);padding:18px;box-shadow:0 24px 60px #10182847}.modal-title{margin:0 0 6px;font-size:15px;font-weight:600;line-height:1.5}.modal-hint{margin:0 0 16px;font-size:12px;line-height:1.5}.modal-actions{justify-content:flex-end;gap:8px;display:flex}.modal-actions .btn{height:var(--control-h)}.order-edit-list{border-top:1px solid var(--border);border-bottom:1px solid var(--border);gap:6px;max-height:46vh;padding:6px 0;display:grid;overflow-y:auto}.order-edit-row{grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;font-size:13px;display:grid}.order-edit-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.order-edit-price{color:var(--muted);font-variant-numeric:tabular-nums}.order-edit-qty{align-items:center;gap:2px;display:flex}.order-edit-qty input{text-align:center;width:52px;height:32px;font:inherit;border:1px solid var(--border);border-radius:8px}.order-edit-step{background:var(--surface-3);width:32px;height:32px;color:var(--text);cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;display:flex}.order-edit-step-icon{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:14px;height:14px}.order-edit-remove{width:32px;height:32px;color:var(--danger);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;display:flex}.order-edit-remove-icon{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}.order-edit-empty{color:var(--muted);margin:4px 0;font-size:12px}.order-edit-search{margin-top:10px;display:block;position:relative}.order-edit-search .input{width:100%;padding-left:34px}.order-edit-search-icon{color:var(--muted);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.order-edit-results{gap:2px;max-height:30vh;margin-top:6px;display:grid;overflow-y:auto}.order-edit-result{background:var(--surface-3);color:var(--text);font:inherit;text-align:left;cursor:pointer;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;font-size:13px;display:flex}.order-edit-result:hover{background:var(--surface-2)}.order-edit-sum{grid-template-columns:1fr auto;gap:4px 12px;margin-top:12px;font-size:13px;display:grid}.order-edit-sum b{font-variant-numeric:tabular-nums;text-align:right}.order-edit-note{color:var(--muted);margin:8px 0 12px;font-size:12px;line-height:1.5}.order-edit-inline{gap:5px;display:grid}.order-edit-inline .order-edit-list{border-top:0;max-height:none;padding:0;overflow:visible}.order-edit-inline .order-edit-search{margin-top:0}.order-edit-inline .order-edit-sum{margin-top:5px}.order-edit-inline .order-edit-note{margin:0}.order-edit-price-group{gap:4px;display:grid}.order-edit-price-group .select{width:100%}.order-edit-price-group .hint{margin:0;font-size:12px}.order-edit-inline-actions{z-index:var(--z-sticky);background:var(--surface);margin-top:5px;padding:8px 0 2px;position:sticky;bottom:0}.settle-summary{border-top:1px solid var(--border);border-bottom:1px solid var(--border);gap:6px;padding:10px 0;display:grid}.settle-summary>div{justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;display:flex}.settle-summary>div.is-strong{font-size:15px;font-weight:700}.settle-methods{gap:8px;margin:12px 0;display:flex}.settle-methods .btn{height:var(--control-h);flex:1;justify-content:center}.settle-cash{flex-direction:column;gap:8px;display:flex}.settle-quick{flex-wrap:wrap;gap:6px;display:flex}.product-danger-zone{border-top:1px solid var(--border);margin-top:8px;padding-top:10px}.product-delete{width:100%;height:var(--control-h-page);color:var(--danger);border:1px solid color-mix(in srgb, var(--danger) 32%, transparent);background:color-mix(in srgb, var(--danger) 7%, var(--surface));justify-content:center;font-weight:600}.product-delete:hover:not(:disabled){background:color-mix(in srgb, var(--danger) 12%, var(--surface))}.product-danger-zone .row-hint{text-align:center;margin-top:6px}.drawer-float,.drawer-confirm{z-index:var(--z-sticky);padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(to top, var(--bg) 56%, transparent);justify-content:flex-end;align-items:center;gap:6px;display:flex;position:absolute;bottom:0;left:0;right:0}.drawer-float .btn,.drawer-confirm .btn{height:44px}.btn-text{color:var(--muted);background:0 0;border:0;padding:0 12px}.btn-text:hover:not(:disabled){color:var(--text);background:0 0}.drawer-save{border-radius:var(--radius-pill);height:44px;padding:0 28px;box-shadow:0 10px 24px #2a5ee84d}.drawer-confirm{background:var(--surface);border-top:1px solid var(--border);justify-content:space-between;gap:12px;box-shadow:0 -8px 24px #1018281f}.drawer-confirm p{margin:0;font-size:13px;line-height:1.4}.drawer-confirm-actions{flex:none;align-items:center;gap:6px;display:flex}.row-item-image{align-items:center}@media (width<=768px){.drawer-body.product-drawer-body{padding:5px 5px 112px}.row-section-head{font-size:14px}.row-block{padding:5px 0}.row-item{min-height:40px}.row-label,.row-name{font-size:14px}.row-hint{font-size:12.5px}.row-add{font-size:14px}.drawer-float,.drawer-confirm{padding:12px 14px calc(14px + env(safe-area-inset-bottom))}}@media (width<=480px){.row-pair{display:block}.row-cell+.row-cell{border-left:0;border-top:1px solid var(--border);margin-top:8px;margin-left:0;padding-top:8px;padding-left:0}.row-item-top{flex-wrap:wrap}.row-item-top .row-label,.row-item-top .barcode-list{flex:1 0 100%}}.drawer-failure{margin:0}@media (width<=768px){.field>span,.login-card .field>span{font-size:14px}}.topbar .btn,.topbar .locale-toggle,.topbar .topbar-store .select{height:var(--control-h)}.topbar .btn,.topbar .locale-toggle{font-size:13px}.pwa-update{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:var(--z-toast);border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);max-width:min(560px,100vw - 32px);box-shadow:var(--shadow-lg);align-items:center;gap:8px;padding:10px 12px 10px 14px;font-size:13px;display:flex;position:fixed}.pwa-update>span{flex:1;min-width:0}@media (width<=768px){.pwa-update{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom))}.product-drawer .drawer-body.product-drawer-body{background:var(--bg);gap:5px;padding:5px 5px 112px}.product-drawer .row-section{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin:0 0 5px;padding:5px}.product-drawer .row-section-head{color:var(--muted);padding:5px 0;font-size:12px}.product-drawer .row-item{border-top:1px solid var(--border);flex-direction:column;align-items:stretch;gap:4px;min-height:0;padding:5px 0}.product-drawer .row-item:first-child{border-top:0}.product-drawer .row-label{width:auto;color:var(--muted);flex:none;font-size:12px}.product-drawer .row-ctl{width:100%}.product-drawer .row-ctl .input,.product-drawer .row-ctl .select{height:44px;font-size:16px}.product-drawer .row-pair{gap:5px}.product-drawer .row-cell{flex:1;min-width:0}.product-drawer .row-cell .row-item{border-top:0;padding:5px 0}.product-drawer .row-item:has(.row-name){flex-direction:row;align-items:center;gap:5px;min-height:52px;padding:5px 0}.product-drawer .row-item:has(.row-name) .row-name{color:var(--text);font-size:14px}.product-drawer .row-item:has(.row-name) .row-ctl{width:auto;margin-left:auto}.product-drawer .row-pair{gap:5px;display:flex}.product-drawer .row-cell{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.product-drawer .row-cell .row-label{width:auto;color:var(--muted);font-size:12px}.product-drawer .row-cell .row-money{width:100%;margin-left:0}.product-drawer .row-cell+.row-cell{border:0;margin:0;padding:0}.product-drawer .row-item-top,.product-drawer .row-item-image{align-items:stretch}.product-drawer .row-hint{font-size:12px}.product-drawer .row-add{font-size:14px}.product-drawer .product-danger-zone{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px}.mobile-tab{padding:0 2px}.mobile-tab>span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.mobile-tab.store-tab{flex:1.35}.mobile-tab .store-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.search-bell{background:var(--surface-3);border-radius:10px;flex:none;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.search-bell .notif-btn{justify-content:center;width:40px;height:40px;padding:0}.search-bell .notif-dot{box-shadow:0 0 0 2px var(--surface-3);top:3px;right:3px}.mobile-title-head{background:var(--surface);height:52px;box-shadow:inset 0 -1px 0 var(--border);flex:none;justify-content:center;align-items:center;margin:-5px -5px 0;padding:0 12px;display:flex}.mobile-title-head:before{content:"";flex:none;width:40px}.mobile-title-head .title-block{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1px;min-width:0;display:flex;position:relative}.mobile-title-head h1{letter-spacing:-.015em;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:19px;font-weight:700;line-height:1.2;overflow:hidden}.mobile-title-head .sub{max-width:100%;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:3px;font-size:11.5px;font-weight:500;line-height:1.25;display:inline-flex;overflow:hidden}.mobile-title-head .sub-text{text-overflow:ellipsis;min-width:0;overflow:hidden}.mobile-title-head .title-chevron{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:12px;height:12px}.mobile-title-head .title-block.is-button{flex:1;max-width:100%}.mobile-title-head .title-hit{z-index:1;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0;position:absolute;inset:-4px -6px}.mobile-title-head .title-hit:active{background:var(--surface-3)}.mobile-title-head .title-hit:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.mobile-title-head .notif{display:inline-flex;position:relative}.mobile-title-head .btn{justify-content:center;width:40px;height:40px;padding:0}.mobile-title-head .notif-dot{top:3px;right:3px}.sheet-backdrop{z-index:var(--z-sheet);background:#1018286b;align-items:flex-end;display:flex;position:fixed;inset:0}.bottom-sheet{background:var(--surface);width:100%;max-height:72vh;box-shadow:var(--shadow-lg);padding-bottom:env(safe-area-inset-bottom,0);border-radius:14px 14px 0 0;flex-direction:column;display:flex}.sheet-head{border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;height:56px;padding:0 16px;display:flex}.sheet-head h2{margin:0;font-size:16px}.sheet-close{width:32px;color:var(--muted);justify-content:center;padding:0}.sheet-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:12px 16px;display:flex;overflow:hidden auto}.sheet-foot{border-top:1px solid var(--border);flex:none;justify-content:flex-end;align-items:center;gap:8px;padding:12px 16px;display:flex}.sheet-field{flex-direction:column;gap:4px;display:flex}.sheet-field>span{font-size:13px;font-weight:500}.sheet-field .select{height:var(--control-h-page)}.sheet-option{border:0;border-bottom:1px solid var(--border);min-height:48px;font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:8px;padding:0 4px;font-size:14px;display:flex}.sheet-option:last-of-type{border-bottom:0}.sheet-option.is-on{color:var(--brand-dark);font-weight:600}.store-options{flex-direction:column;display:flex}.store-option{border:0;border-bottom:1px solid var(--border);min-height:48px;font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:8px;padding:0 4px;font-size:14px;display:flex}.store-option:last-child{border-bottom:0}.store-option.is-on{color:var(--brand-dark);font-weight:600}.store-option-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.more-page{flex-direction:column;flex:1;gap:12px;min-height:0;padding-bottom:12px;display:flex;overflow-y:auto}.more-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex:none;overflow:hidden}.more-user{align-items:center;gap:12px;padding:14px;display:flex}.more-avatar{background:var(--brand-soft);width:40px;height:40px;color:var(--brand-dark);border-radius:999px;flex:0 0 40px;place-items:center;font-weight:700;display:grid}.more-user-text{flex-direction:column;gap:2px;min-width:0;display:flex}.more-user-text strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.more-user-text .muted{font-size:12px}.more-row{border:0;border-top:1px solid var(--border);width:100%;min-height:52px;font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;align-items:center;gap:12px;padding:0 14px;font-size:14px;display:flex}.more-row:first-child{border-top:0}.more-row-static{cursor:default}.more-row .nav-icon{color:var(--muted)}.more-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.more-chevron{color:var(--muted);transform:rotate(-90deg)}.more-row .seg{flex:none}.more-row .seg-btn{padding:4px 10px;font-size:12px}.more-logout{border:1px solid var(--border);background:var(--surface);min-height:48px;color:var(--danger);font:inherit;cursor:pointer;border-radius:14px;flex:none;justify-content:center;align-items:center;gap:8px;font-size:14px;font-weight:600;display:flex}.inventory>.mobile-search-row,.inventory>.mobile-title-head{margin:-5px -5px 0}.inventory-shell,.inventory-body{display:contents}.inventory-head,.inventory-list{margin:0 -12px}.inventory .table-footer{background:var(--surface);border-top:1px solid var(--border);flex-wrap:nowrap;height:44px;margin:0 -12px;padding:0 12px;font-size:12px}.inventory .table-footer .pager{flex-wrap:nowrap;align-items:center;gap:2px}.inventory .table-footer .pager .btn{border-radius:var(--radius-control);width:32px;height:32px;color:var(--muted);background:0 0;border:0;justify-content:center;align-items:center;padding:0;font-size:16px;line-height:1;display:inline-flex}.inventory .table-footer .pager .btn:disabled{opacity:.35}.inventory .table-footer .pager .muted{border-radius:var(--radius-pill);background:var(--surface-3);height:28px;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums;align-items:center;padding:0 10px;font-weight:600;display:inline-flex}.inventory .table-footer .pager-arrow{justify-content:center;align-items:center;font-size:0;display:inline-flex}.inventory .table-footer .pager-arrow .nav-icon{stroke-width:2px;flex:0 0 14px;width:14px;height:14px}.inventory .table-footer .pager-label{display:none}.inventory-list>.hint{padding:16px 12px}.inv-row{background:var(--surface);flex:none;position:relative}.inv-row:after{content:"";background:var(--border);height:1px;position:absolute;bottom:0;left:12px;right:0}.inv-row:last-child:after{display:none}.inv-row-main{width:100%;min-height:64px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:8px 12px;display:flex}.inv-row-name{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.inv-row-name>span{text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:14px;font-weight:600;overflow:hidden}.inv-row-name small{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11.5px;font-weight:400;overflow:hidden}.inv-row-total{font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:15px;font-weight:700}.inv-row-total .muted{font-size:12px;font-weight:400}.inv-chevron{width:18px;height:18px;color:var(--muted);flex:0 0 18px;transition:transform .15s}.inv-row.is-open .inv-chevron{transform:rotate(180deg)}.inv-row-detail{border-top:1px solid var(--border);background:var(--surface);padding:0 12px 12px}.inv-row-detail .store-sheet{padding-top:10px}}.store-feed{background:var(--surface);gap:0;margin:0 -5px;padding-bottom:0}.store-limit{background:var(--warning-soft);border-bottom:1px solid var(--warning-border);color:var(--warning-text);margin:0;padding:9px 12px;font-size:12px;line-height:1.55}.store-row{background:var(--surface);border-bottom:1px solid var(--border);flex:none;align-items:center;gap:8px;min-height:64px;padding:0 12px;display:flex}.store-row-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.store-row-title{align-items:center;gap:8px;min-width:0;display:flex}.store-row-title strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.store-row-meta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.store-row-more{flex:none;justify-content:center;width:40px;height:40px;padding:0}.store-row-editing{gap:8px}.store-row-editing .input{flex:1;min-width:0;height:40px}.store-sheet-actions{flex-direction:column;gap:8px;display:flex}.store-sheet-actions .btn{width:100%;height:var(--control-h-page)}@media (width<=768px){.inventory .card-toolbar{background:0 0;border:0;margin:0 -12px;padding:8px 12px}.ledger-row{border-top:1px solid var(--border);background:var(--surface);padding:10px 12px}.ledger-row:first-child{border-top:0}.ledger-row-head{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.ledger-row-head strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.ledger-row-head .qty{font-variant-numeric:tabular-nums;flex:none;font-size:15px;font-weight:700}.ledger-row-head .qty.in{color:var(--success)}.ledger-row-head .qty.out{color:var(--danger)}.ledger-row-meta{text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:11px;overflow:hidden}}.pos-page{flex-direction:column;flex:1;gap:12px;min-height:0;padding:12px;display:flex;overflow-y:auto}.app.ui-v2 .pos-page{gap:5px;padding:0}.app.ui-v2 .pos-grid{gap:5px}.pos-page.is-narrow{padding:0 12px 12px}.pos-page>.mobile-title-head{margin:0 -12px 12px}.pos-toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.pos-store{align-items:center;gap:8px;display:inline-flex}.pos-store .select{width:auto;min-width:10em}.pos-lock{margin:0}.pos-scan{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow);color:var(--muted);align-items:center;gap:8px;padding:8px 10px;display:flex}.pos-scan .input{min-width:0;box-shadow:none;background:0 0;border:0;flex:1}.pos-scan.is-in-cart{box-shadow:none;background:0 0;border:0;border-radius:0;margin:0;padding:10px 0}.pos-scan.is-in-cart .input{border:1px solid var(--border-strong);background:var(--surface);border-radius:8px;height:38px;padding:0 10px}.pos-results{z-index:var(--z-menu);border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);max-height:320px;box-shadow:var(--shadow-lg);flex-direction:column;display:flex;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto}.pos-result{border:0;border-bottom:1px solid var(--border);background:var(--surface);min-height:48px;font:inherit;color:var(--text);text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:10px;padding:6px 12px;font-size:13px;display:flex}.pos-result:last-child{border-bottom:0}.pos-result:hover{background:var(--surface-2)}.pos-result.is-active{background:var(--brand-soft)}.pos-result-main{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.pos-result-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.pos-result-barcode{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px;overflow:hidden}.pos-result-side{flex-direction:column;flex:none;align-items:flex-end;gap:1px;display:flex}.pos-result-stock{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.pos-result-stock.is-negative{color:var(--danger)}.pos-grid{flex:1;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);align-items:stretch;gap:12px;min-height:0;display:grid}.pos-page.is-narrow .pos-grid{flex:none;grid-template-columns:minmax(0,1fr)}.pos-cart,.pos-side,.pos-history{padding:0 14px 14px}.pos-cart,.pos-side{flex-direction:column;min-height:0;display:flex}.pos-cart{overflow:hidden}.pos-side{overflow-y:auto}.pos-card-head{border-bottom:1px solid var(--border);align-items:center;gap:10px;min-height:48px;margin-bottom:10px;display:flex}.pos-card-head h3{flex:1;margin:0;font-size:15px}.pos-card-head .muted{font-size:12px}.pos-print-toggle{white-space:nowrap;margin-left:auto;font-size:12px}.pos-mobile .pos-print-toggle{margin-left:0}.pos-empty{flex:1;justify-content:center;align-items:center;padding:18px 0;display:flex}.pos-lines{flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}.pos-page.is-narrow .pos-lines{flex:none;overflow-y:visible}.pos-cart-foot{border-top:1px solid var(--border);background:var(--surface-2);justify-content:space-between;align-items:center;padding:10px 14px;font-size:13px;display:flex}.pos-cart-foot b{font-variant-numeric:tabular-nums;font-size:16px}.pos-line,.pos-line-head{grid-template-columns:minmax(0,1fr) auto 5.5em 32px;align-items:center;gap:8px;display:grid}.pos-line{border-bottom:1px solid var(--border);min-height:56px}.pos-line-head{border-bottom:1px solid var(--border);min-height:28px;color:var(--muted);font-size:11.5px;font-weight:600}.pos-line-head .pos-line-total{color:var(--muted);font-size:11.5px;font-weight:600}.pos-line-head>span:nth-child(2){text-align:center}.pos-line:last-child{border-bottom:0}.pos-line-product{align-items:center;gap:10px;min-width:0;display:flex}.pos-line-product .pos-line-name{flex:1}.pos-line-name{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.pos-line-name strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.pos-line-name .muted{font-size:12px}.pos-line-barcode{min-width:0;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;font-size:11.5px;line-height:1.3;overflow:hidden}.pos-qty{flex:none;align-items:center;gap:4px;display:inline-flex}.pos-qty .btn{justify-content:center;width:32px;height:32px;padding:0}.pos-qty-input{border:1px solid var(--border-strong);background:var(--surface);text-align:center;width:3em;height:32px;font:inherit;font-variant-numeric:tabular-nums;border-radius:6px;padding:0 4px;font-weight:650}.pos-qty-input:focus{border-color:var(--brand);outline:none}.pos-line-total{text-align:right;font-variant-numeric:tabular-nums;flex:none;min-width:5.5em;font-size:13px}.pos-remove{width:32px;height:32px;color:var(--muted);flex:none;justify-content:center;padding:0}.pos-page:not(.is-narrow) .pos-line-name strong{white-space:normal;text-overflow:clip;overflow:visible}.pos-page:not(.is-narrow) .pos-qty{justify-self:center}.pos-page:not(.is-narrow) .pos-line-total{text-align:center;white-space:nowrap}.pos-page:not(.is-narrow) .pos-line,.pos-page:not(.is-narrow) .pos-line-head{grid-template-columns:minmax(0,1fr) 128px 9.5rem 32px}.pos-page:not(.is-narrow) .pos-line-head>span:nth-child(2),.pos-page:not(.is-narrow) .pos-line-head .pos-line-total{text-align:center;justify-self:center}.pos-page:not(.is-narrow) .pos-line-head>span:first-child{padding-left:50px}.pos-line-head-qty{grid-template-columns:32px 3em 32px;justify-content:center;align-items:center;gap:4px;width:100%;display:grid}.pos-line-head-qty>span:nth-child(2){text-align:center}.pos-page:not(.is-narrow) .pos-qty-input.is-out{color:var(--danger)}.pos-page:not(.is-narrow) .pos-clear,.pos-page:not(.is-narrow) .pos-clear:hover{color:var(--danger);font-weight:700}.pos-customer-row{align-items:center;gap:6px;margin:10px 0;display:flex}.pos-customer{border:1px solid var(--border);background:var(--surface-2);min-width:0;min-height:44px;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:10px;flex:1;align-items:center;gap:8px;padding:0 10px;display:flex}.pos-customer-info{flex:1;align-items:baseline;gap:7px;min-width:0;display:flex}.pos-customer-name{text-overflow:ellipsis;white-space:nowrap;max-width:8em;font-size:13px;font-weight:600;overflow:hidden}.pos-page:not(.is-narrow) .pos-customer-name.has-customer,.pos-page.is-narrow .has-customer{color:var(--brand)}.pos-customer-meta{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:11px;overflow:hidden}.pos-quick{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:6px;margin:8px 0;display:grid}.pos-quick-btn{text-overflow:ellipsis;border:1px solid var(--border);background:var(--surface-2);min-width:0;height:28px;color:var(--text);font:inherit;white-space:nowrap;cursor:pointer;border-radius:999px;padding:0 6px;font-size:11px;overflow:hidden}.pos-quick-btn:hover{background:var(--brand-soft);border-color:var(--brand);color:var(--brand-dark)}.pos-page:not(.is-narrow) .pos-quick{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));grid-auto-flow:row}.pos-page:not(.is-narrow) .pos-quick-btn{height:34px;font-size:14px}.pos-barcode-open{justify-content:center;width:100%;margin-bottom:8px}.pos-submit{margin-top:auto}.pos-pricing-row{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:8px;margin:8px 0;display:grid}.pos-pricing-row>.pos-price-group,.pos-pricing-row>.pos-discount{margin:0}.pos-select-wrap{width:100%;display:flex;position:relative}.pos-select-wrap>.select{appearance:none;width:100%;height:var(--control-h-page);flex:1;padding-left:34px;padding-right:34px}.pos-select-chevron{pointer-events:none;color:var(--muted);position:absolute;top:50%;right:10px;transform:translateY(-50%)}.pos-pricing-row .pos-discount .input{height:var(--control-h-page)}.pos-pricing-row .pos-price-group>.muted,.pos-pricing-row .pos-discount>.muted{font-size:12px;line-height:16px;display:block}.pos-pricing-row .pos-price-group,.pos-pricing-row .pos-discount{gap:4px}.pos-price-group{flex-direction:column;gap:4px;margin:8px 0;display:flex}.pos-price-group>.muted{font-size:12px}.pos-price-group .select{height:var(--control-h-page)}.pos-price-group .hint{margin:0}.pos-discount{flex-direction:column;gap:4px;margin:8px 0;display:flex}.pos-discount .input{height:var(--control-h-page)}.pos-discount .hint{margin:0}.pos-discount-sum{color:var(--muted);justify-content:space-between;gap:12px;margin:-2px 0 6px;font-size:12px;display:flex}.pos-discount-sum b{color:var(--text);font-variant-numeric:tabular-nums}.pos-total{border-bottom:1px solid var(--border);justify-content:space-between;align-items:baseline;padding:6px 0 10px;display:flex}.pos-total span{color:var(--muted);font-size:13px}.pos-total strong{font-variant-numeric:tabular-nums;font-size:24px}.pos-methods{gap:8px;margin:12px 0;display:flex}.pos-methods .btn{flex:1;justify-content:center}.pos-cash{flex-direction:column;gap:6px;display:flex}.pos-cash .muted{font-size:12px}.pos-cash-row{gap:8px;display:flex}.pos-cash-row .input{text-align:right;font-variant-numeric:tabular-nums;flex:1;min-width:0}.pos-change{min-height:24px;color:var(--muted);margin:10px 0;font-size:13px}.pos-change.is-due{color:var(--brand-dark);font-weight:600}.pos-page:not(.is-narrow) .pos-change{font-size:15px}.pos-submit{width:100%;height:var(--control-h-page);justify-content:center}.pos-key{opacity:.8;border:1px solid;border-radius:6px;align-items:center;padding:1px 6px;font-size:11px;font-weight:700;line-height:1.4;display:inline-flex}.pos-side .hint{margin:8px 0 0;font-size:11px}.pos-history-list{flex-direction:column;display:flex}.pos-history-row{border:0;border-bottom:1px solid var(--border);min-height:40px;font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;grid-template-columns:60px minmax(0,1fr) minmax(0,.8fr) minmax(90px,auto) auto;align-items:center;gap:10px;font-size:12px;display:grid}.pos-history-row:last-child{border-bottom:0}.pos-history-row:hover{background:var(--surface-2)}.pos-history-row b{text-align:right;font-variant-numeric:tabular-nums}.tag-danger{background:var(--danger-soft);color:var(--danger)}@media (width<=768px){.pos-line{gap:4px}.pos-line-name strong{font-size:13px}.pos-line-total{min-width:4.5em;font-size:12px}.pos-history-row{grid-template-columns:52px minmax(0,1fr) auto auto}.pos-history-row>span:nth-child(3){display:none}}.orders-page{flex-direction:column;flex:1;gap:12px;min-height:0;padding:12px;display:flex;overflow-y:auto}.orders-page.is-narrow{padding:0 12px 12px}.orders-page.is-narrow>.mobile-title-head{margin:0 -12px 12px}.orders-title{align-items:baseline;gap:10px;padding:0 2px;display:flex}.orders-title h2{margin:0;font-size:17px}.orders-toolbar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);flex-wrap:wrap;align-items:flex-end;gap:8px;padding:10px 12px;display:flex}.orders-filter,.orders-date{flex-direction:column;gap:4px;display:flex}.orders-filter .select,.orders-date .input{width:auto;min-width:10em;height:36px}.orders-date .input{min-width:9em}.orders-search{flex:1;gap:6px;min-width:220px;display:flex}.orders-search .input{flex:1;min-width:0;height:36px}.orders-table-card{overflow-x:auto}.orders-row-actions{gap:6px;display:flex}.orders-table{border-collapse:collapse;width:100%;min-width:920px}.orders-table th,.orders-table td{border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;height:44px;padding:0 12px;font-size:13px}.orders-table th{color:var(--muted);background:var(--surface-2);font-size:12px;font-weight:500}.orders-table th.num,.orders-table td.num,.orders-table th.center,.orders-table td.center{text-align:center}.orders-table td.center .orders-row-actions{justify-content:center}.orders-table tbody tr:last-child td{border-bottom:0}.orders-no{font-weight:650}.orders-no-btn{color:var(--brand);font:inherit;font-variant-numeric:tabular-nums;cursor:pointer;background:0 0;border:0;padding:0;font-weight:650}.orders-no-btn:hover{text-decoration:underline}.orders-no-btn:focus-visible{outline:2px solid var(--brand);outline-offset:1px}.orders-copy{width:var(--control-h);min-width:var(--control-h);height:var(--control-h);vertical-align:middle;margin-left:4px;padding:0}.order-no-link{vertical-align:middle;align-items:center;gap:2px;min-width:0;display:inline-flex}.order-no-link .orders-copy{width:22px;min-width:22px;height:22px;margin-left:2px}.order-no-text{font-variant-numeric:tabular-nums;font-weight:650}.orders-detail-title{align-items:center;gap:6px;display:flex}.orders-money{font-variant-numeric:tabular-nums}.orders-empty{text-align:center;color:var(--muted);padding:22px 0}.orders-list{padding:0 14px}.orders-row{border:0;border-bottom:1px solid var(--border);width:100%;min-height:62px;font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;display:flex}.orders-row:last-child{border-bottom:0}.orders-row-main,.orders-row-side{flex-direction:column;gap:3px;min-width:0;display:flex}.orders-row-main strong{font-size:14px}.orders-row-side{flex:none;align-items:flex-end}.orders-row-side b{font-variant-numeric:tabular-nums;font-size:14px}.orders-row-side .muted{text-overflow:ellipsis;white-space:nowrap;max-width:13em;font-size:11px;overflow:hidden}.orders-foot{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:0 2px;display:flex}.orders-pager{align-items:center;gap:8px;display:inline-flex}.orders-detail{flex-direction:column;width:min(520px,100vw - 32px);max-height:82vh;padding:0;display:flex;overflow:hidden}.orders-detail-head{background:var(--surface);flex:none;align-items:center;gap:10px;padding:18px 18px 0;display:flex}.orders-detail-head .modal-title{flex:1}.orders-detail-meta{background:var(--surface);border-bottom:1px solid var(--border);color:var(--muted);flex-wrap:wrap;flex:none;align-items:center;gap:10px;margin:8px 0 0;padding:0 18px 10px;font-size:12px;display:flex}.orders-detail-body{flex:1;min-height:0;padding:0 18px 18px;overflow-y:auto}.orders-detail-body .modal-actions{margin-top:12px}.orders-invoice{padding-top:8px}.orders-invoice-head,.orders-invoice-cols{grid-template-columns:.7fr 1.1fr .7fr 1.1fr;gap:8px;display:grid}.orders-invoice-head{color:var(--muted);border-bottom:1px solid var(--border);padding:6px 0;font-size:11px}.orders-invoice-head,.orders-invoice-cols{padding-left:50px}.orders-invoice.is-no-discount .orders-invoice-head,.orders-invoice.is-no-discount .orders-invoice-cols{grid-template-columns:.7fr 1.1fr 1.1fr}.orders-invoice-head span:nth-child(n+2),.orders-invoice-cols span:nth-child(n+2){text-align:right}.orders-invoice-item{border-bottom:1px solid var(--border);padding:8px 0}.orders-invoice-product{align-items:flex-start;gap:10px;display:flex}.orders-invoice-product-text{flex:1;min-width:0}.orders-invoice-name{font-size:13px;font-weight:600}.orders-item-link{width:100%;color:var(--brand);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;display:block}.orders-item-link:hover{text-decoration:underline}.orders-invoice-sku{color:var(--muted);margin-top:2px;font-size:11px}.orders-invoice-cols{font-variant-numeric:tabular-nums;margin-top:4px;font-size:12px}.orders-invoice-totals{flex-direction:column;gap:4px;padding:10px 0 4px;font-size:12px;display:flex}.orders-invoice-totals>div{justify-content:space-between;gap:12px;display:flex}.orders-invoice-totals b{font-variant-numeric:tabular-nums}.orders-invoice-totals .is-strong{font-size:13px;font-weight:700}.orders-invoice-payment{color:var(--muted);padding:6px 0 2px;font-size:11px}@media (width<=768px){.orders-toolbar{align-items:stretch}.orders-filter{flex:100%;min-width:0}.orders-date{flex:calc(50% - 4px);min-width:0}.orders-filter .select,.orders-date .input{width:100%;min-width:0}.orders-search{flex-basis:100%}.orders-list{padding:0 12px}}.customers-page{flex-direction:column;flex:1;gap:12px;min-height:0;padding:12px;display:flex;overflow-y:auto}.customers-page.is-narrow{padding:0 12px 12px}.customers-page.is-narrow>.mobile-title-head{margin:0 -12px 12px}.customers-list{padding:0 12px}.customer-row{border:0;border-bottom:1px solid var(--border);width:100%;min-height:62px;font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;display:flex}.customer-row:last-child{border-bottom:0}.customer-row-main,.customer-row-side{flex-direction:column;gap:3px;min-width:0;display:flex}.customer-row-side{flex:none;align-items:flex-end}.customer-row-main strong{font-size:14px}.customer-form-row{flex-direction:column;gap:4px;margin:5px 0;display:flex}.customer-form-row .input,.customer-form-row .select{height:40px}.customer-form-check{align-items:center;gap:8px;margin:12px 0;font-size:13px;display:flex}.customer-group-picker{flex-wrap:wrap;gap:6px;display:flex}.customer-group-option{border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface);cursor:pointer;align-items:center;gap:6px;min-height:36px;padding:0 10px;font-size:13px;display:inline-flex}.customer-group-option.is-checked{border-color:var(--brand);background:var(--brand-soft)}.customer-group-option input{accent-color:var(--brand)}.customer-group-picker .hint{flex-basis:100%;margin:2px 0 0}.customer-danger-zone{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.customer-danger-zone .btn{justify-content:center;width:100%}.customer-danger-zone .hint{text-align:center;margin-top:6px}.sidebar{transition:width .18s,flex-basis .18s}.sidebar .brand-word{white-space:nowrap;overflow:hidden}.sidebar-collapse{height:36px;color:var(--muted);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:none;align-items:center;gap:8px;margin:auto 10px 10px;padding:0 10px;font-size:12px;display:flex}.sidebar-collapse:hover{background:var(--bg);color:var(--text)}.sidebar.is-collapsed{flex-basis:72px;align-items:center;width:72px;padding:10px 8px 0}.sidebar.is-collapsed .brand{justify-content:center;width:52px;height:44px;padding:0}.sidebar.is-collapsed .brand-word,.sidebar.is-collapsed .nav-label,.sidebar.is-collapsed .nav-text,.sidebar.is-collapsed .nav-item .tag{display:none}.sidebar.is-collapsed .nav{align-items:center;gap:4px;width:52px;padding:4px 0;overflow:visible}.sidebar.is-collapsed .nav-item{flex:none;justify-content:center;gap:0;width:52px;height:44px;padding:0}.sidebar.is-collapsed .sidebar-collapse{justify-content:center;width:52px;height:44px;margin:auto 0 10px;padding:0}.sidebar.is-collapsed .collapse-label{display:none}.pos-workspace-head{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:14px;flex:none;align-items:center;gap:10px;min-width:0;padding:8px 10px;display:flex}.pos-sync{flex:none;align-items:center;gap:4px;display:flex}.pos-sync-chip{border:1px solid var(--border);background:var(--surface-2);height:28px;color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;padding:0 10px;font-size:12px;font-weight:600;line-height:1;display:inline-flex}.pos-sync-chip.is-offline,.pos-sync-chip.is-failed{color:var(--danger-text);background:var(--danger-soft);border-color:var(--danger-border)}.pos-sync-chip.is-pending{color:var(--warning-text);background:var(--warning-soft);border-color:var(--warning-border)}.pos-sync-retry{height:28px}.pos-sync-banner{justify-content:space-between;align-items:center;gap:8px;display:flex}.pos-search-box{flex:0 0 280px;align-items:center;gap:6px;min-width:280px;display:flex;position:relative}.pos-search-input{border:1px solid var(--border-strong);background:var(--surface);min-width:0;height:40px;color:var(--muted);border-radius:8px;flex:1;align-items:center;gap:8px;padding:0 11px;display:flex}.pos-search-input .input{min-width:0;box-shadow:none;background:0 0;border:0;outline:none;flex:1;padding:0}.pos-search-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.pos-scan-btn{border:1px solid var(--border-strong);background:var(--surface-2);width:40px;height:40px;color:var(--text);cursor:pointer;border-radius:8px;flex:none;place-items:center;display:grid}.pos-tabs{flex:1;align-items:center;gap:6px;min-width:0;display:flex}.pos-tab-arrow{border:1px solid var(--border);background:var(--surface);width:34px;height:38px;color:var(--muted);box-shadow:var(--shadow);cursor:pointer;border-radius:10px;flex:none;place-items:center;display:grid}.pos-tab-arrow:disabled{opacity:.35;cursor:default;box-shadow:none}.pos-tab-scroll{scrollbar-width:none;flex:0 auto;align-items:center;gap:7px;min-width:0;display:flex;overflow-x:auto}.pos-tab-scroll::-webkit-scrollbar{display:none}.pos-tab{border:1px solid var(--border);background:var(--surface);height:38px;color:var(--text);white-space:nowrap;box-shadow:var(--shadow);cursor:pointer;border-radius:10px;flex:none;align-items:center;gap:7px;padding:0 10px;font-size:12px;display:inline-flex}.pos-tab.is-active{background:var(--brand-soft);border-color:var(--brand);color:var(--brand-dark);font-weight:600}.pos-tab-dot{background:#22c55e;border-radius:50%;flex:none;width:6px;height:6px}.pos-tab-label{text-overflow:ellipsis;max-width:7em;overflow:hidden}.pos-tab-close{width:22px;height:22px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;font-size:16px;line-height:1}.pos-tab-close:hover{background:var(--surface-3);color:var(--danger)}.pos-tab-add{border:1px dashed var(--border-strong);background:var(--surface);width:38px;height:38px;color:var(--brand);cursor:pointer;border-radius:10px;flex:none;place-items:center;display:grid}.pos-tab-add:disabled{opacity:.4;cursor:not-allowed}.pos-tabs-spacer{flex:1}.pos-tab-total{color:var(--muted);font-variant-numeric:tabular-nums;flex:none;padding:0 2px;font-size:11px}.pos-transfer-note{border:1px solid var(--border);background:var(--surface-2);color:var(--muted);border-radius:10px;margin:10px 0;padding:10px;font-size:12px;line-height:1.6}@media (width<=768px){.pos-page.is-narrow .pos-workspace-head{border-radius:12px}.pos-tab{max-width:8.5em}.pos-mobile>.mobile-title-head,.customers-mobile>.mobile-title-head{margin:0}.pos-mobile{background:var(--surface);flex-direction:column;flex:1;min-height:0;display:flex}.pos-mobile>.banner{flex:none;margin:8px 12px}.pos-m-command{background:var(--surface);height:52px;box-shadow:inset 0 -1px 0 var(--border);flex:none;align-items:center;gap:8px;padding:6px 12px;display:flex}.pos-m-command .pos-search-box{flex:1;width:auto;min-width:0}.pos-m-command .pos-search-input{background:var(--surface-3);min-width:0;height:40px;box-shadow:none;border:0;border-radius:10px;flex:1;padding:0 12px}.pos-m-command .pos-search-input:focus-within{box-shadow:0 0 0 2px var(--brand-soft);border:0}.pos-m-command .pos-search-input .input{font-size:16px}.pos-m-command .pos-scan-btn{background:var(--surface-3);width:40px;height:40px;box-shadow:none;border:0;border-radius:10px}.pos-mobile .pos-tabs{background:var(--surface);height:48px;box-shadow:inset 0 -1px 0 var(--border);flex:none;align-items:center;gap:6px;padding:6px 12px;display:flex}.pos-mobile .pos-tab{height:34px;box-shadow:none;border-radius:10px;padding:0 9px;font-size:13px}.pos-mobile .pos-tab-close{width:22px;height:22px;font-size:15px}.pos-mobile .pos-tab-add{width:34px;height:34px;box-shadow:none;background:0 0;border-radius:10px}.pos-mobile .pos-tab-scroll{flex:0 auto;max-width:calc(100% - 76px)}.pos-mobile .pos-tab-total{margin-left:auto;padding:0;font-size:11px}.pos-m-list-head{background:var(--surface);height:32px;box-shadow:inset 0 -1px 0 var(--border);color:var(--muted);flex:none;justify-content:space-between;align-items:center;gap:8px;padding:0 12px;font-size:12px;display:flex}.pos-m-lines{background:var(--surface);flex:1;min-height:0;overflow-y:auto}.pos-m-line{border-bottom:1px solid var(--border);background:var(--surface);flex-direction:column;gap:5px;padding:9px 12px;display:flex}.pos-m-line-top{justify-content:space-between;align-items:center;gap:10px;display:flex}.pos-m-line-product{align-items:center;gap:8px;min-width:0;display:flex}.pos-m-line-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.pos-m-line-top strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;font-weight:600;overflow:hidden}.pos-m-line-top b{font-variant-numeric:tabular-nums;flex:none;font-size:14px;font-weight:700}.pos-m-line-bottom{align-items:center;gap:8px;min-height:28px;display:flex}.pos-m-unit{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted);font-size:12px;overflow:hidden}.pos-m-stepper{align-items:center;gap:2px;margin-left:auto;display:inline-flex}.pos-m-stepper .btn{justify-content:center;width:28px;height:28px;padding:0}.pos-m-qty-input{border:1px solid var(--border-strong);background:var(--surface);text-align:center;font-variant-numeric:tabular-nums;border-radius:6px;width:2.8em;height:28px;padding:0 2px;font-size:16px;font-weight:600}.pos-m-line-bottom>.btn-ghost{width:28px;height:28px;color:var(--muted);justify-content:center;padding:0}.pos-m-empty{min-height:0;color:var(--muted);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:0 24px;font-size:13px;display:flex}.pos-m-empty-icon{width:28px;height:28px;color:var(--muted);flex:none}.pos-m-checkout{background:var(--surface);box-shadow:inset 0 1px 0 var(--border);flex:none;align-items:center;gap:12px;padding:9px 12px;display:flex}.pos-m-sum{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.pos-m-sum span{color:var(--muted);font-size:11px}.pos-m-sum b{font-variant-numeric:tabular-nums;font-size:20px;font-weight:700;line-height:1.15}.pos-m-sum em{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;font-style:normal;overflow:hidden}.pos-m-pay{height:44px;padding:0 22px;font-size:15px}.pos-m-customer-row{border-top:1px solid var(--border);border-bottom:1px solid var(--border);align-items:center;gap:6px;display:flex}.pos-m-customer{min-width:0;color:var(--text);font:inherit;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:12px 0;display:flex}.pos-m-customer-text{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.pos-m-customer-text b{font-size:14px;font-weight:600}.pos-m-customer-text span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;overflow:hidden}.pos-m-pay-total{border-bottom:1px solid var(--border);justify-content:space-between;align-items:baseline;padding:10px 0;display:flex}.pos-m-pay-total span{color:var(--muted);font-size:13px}.pos-m-pay-total b{font-variant-numeric:tabular-nums;font-size:26px;font-weight:700}.pos-m-methods{background:var(--surface-3);border-radius:10px;gap:3px;padding:3px;display:flex}.pos-m-methods .btn{height:38px;color:var(--muted);box-shadow:none;background:0 0;border:0;border-radius:8px;flex:1;justify-content:center;padding:0;font-size:13px}.pos-m-methods .btn-primary{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #10182814}.pos-m-cash{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;height:48px;display:flex}.pos-m-cash .muted{font-size:12px}.pos-m-cash .input{text-align:right;font-variant-numeric:tabular-nums;background:0 0;border:0;width:150px;height:40px;padding:0;font-size:18px;font-weight:700}.pos-m-quick{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.pos-m-quick .btn{background:var(--surface-3);width:100%;height:34px;box-shadow:none;border:0;border-radius:8px;padding:0 6px;font-size:14px}.pos-m-change{color:var(--muted);margin:0;font-size:15px}.pos-m-change.is-due{color:var(--success);font-weight:600}.pos-m-confirm{width:100%;height:46px}.pos-store-option{border:0;border-bottom:1px solid var(--border);width:100%;min-height:56px;color:var(--text);font:inherit;text-align:left;background:0 0;align-items:center;gap:10px;padding:8px 2px;display:flex}.pos-store-option:last-child{border-bottom:0}.pos-store-option:disabled{opacity:.5}.pos-store-option-name{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.pos-store-option-name strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.pos-store-option-name span{color:var(--muted);font-size:11.5px}.pos-store-option .nav-icon{width:20px;height:20px;color:var(--brand);flex:none}.orders-mobile{background:var(--surface);flex-direction:column;flex:1;min-height:0;display:flex}.orders-mobile>.banner{flex:none;margin:8px 12px}.orders-m-search{background:var(--surface);height:52px;box-shadow:inset 0 -1px 0 var(--border);flex:none;align-items:center;gap:8px;padding:6px 12px;display:flex}.orders-m-search .search-box{flex:1;min-width:0}.orders-m-filter{background:var(--surface-3);width:40px;height:40px;color:var(--text);border:0;border-radius:10px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.orders-m-filter .nav-icon{width:22px;height:22px}.orders-m-chips{background:var(--surface);height:44px;box-shadow:inset 0 -1px 0 var(--border);flex:none;align-items:center;gap:8px;padding:6px 12px;display:flex}.orders-m-chips-scroll{scrollbar-width:none;flex:1;align-items:center;gap:6px;min-width:0;display:flex;overflow-x:auto}.orders-m-chips-scroll::-webkit-scrollbar{display:none}.orders-m-count{color:var(--muted);white-space:nowrap;flex:none;font-size:12px}.orders-chip{background:var(--surface-3);height:30px;color:var(--text);font:inherit;white-space:nowrap;border:0;border-radius:999px;flex:none;align-items:center;gap:3px;padding:0 10px;font-size:12px;display:inline-flex}.orders-chip.is-active{background:var(--brand-soft);color:var(--brand-dark);font-weight:600}.orders-chip.is-ghost{color:var(--muted);background:0 0;padding-left:4px}.orders-chip .nav-icon{width:13px;height:13px}.orders-m-list{background:var(--surface);flex:1;min-height:0;overflow-y:auto}.orders-m-empty{text-align:center;padding:22px 12px}.orders-m-row{border:0;border-bottom:1px solid var(--border);background:var(--surface);width:100%;min-height:68px;color:var(--text);font:inherit;text-align:left;align-items:center;gap:10px;padding:9px 12px;display:flex}.orders-m-item{border-bottom:1px solid var(--border);background:var(--surface);align-items:center;display:flex}.orders-m-item:last-child{border-bottom:0}.orders-m-item .orders-m-row{border-bottom:0;flex:1;width:auto;min-width:0}.orders-m-copy{width:var(--control-h);height:var(--control-h);flex:none;margin-right:4px;padding:0}.orders-m-row:last-child{border-bottom:0}.orders-m-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.orders-m-line1{align-items:baseline;gap:8px;display:flex}.orders-m-line1 b{font-size:14px;font-weight:650}.orders-m-line1 span{color:var(--muted);font-size:12px}.orders-m-line2{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;overflow:hidden}.orders-m-side{flex-direction:column;flex:none;align-items:flex-end;gap:3px;display:flex}.orders-m-side b{font-variant-numeric:tabular-nums;font-size:15px;font-weight:700}.orders-m-chev{width:18px;height:18px;color:var(--muted);flex:none}.orders-sheet-field{flex-direction:column;gap:6px;display:flex}.orders-sheet-field>span{color:var(--muted);font-size:12px}.orders-sheet-field .select,.orders-sheet-field .input{height:40px}.orders-sheet-dates{grid-template-columns:1fr 1fr;gap:10px;display:grid}.orders-m-detail-actions{flex-wrap:wrap;gap:8px;width:100%;display:flex}.orders-invoice-head,.orders-invoice-cols{gap:6px}.orders-invoice-cols,.orders-invoice-totals{font-size:11.5px}.orders-m-detail-actions .btn{flex:1}.orders-m-detail-actions .btn-danger{background:var(--danger);color:var(--on-brand);border-color:#0000}.orders-detail-meta.is-sticky{z-index:var(--z-sticky);background:var(--surface);border-bottom:1px solid var(--border);margin:-12px -16px 0;padding:12px 16px 10px;position:sticky;top:-12px}.customers-mobile{background:var(--surface);flex-direction:column;flex:1;min-height:0;display:flex}.customers-mobile>.banner{flex:none;margin:8px 12px}.orders-m-search .search-box,.customers-m-search .search-box{background:var(--surface-3);min-width:0;height:40px;color:var(--muted);border-radius:10px;flex:1;align-items:center;gap:8px;padding:0 12px;display:flex}.orders-m-search .search-box .nav-icon,.customers-m-search .search-box .nav-icon{width:16px;height:16px;color:var(--muted);flex:none}.orders-m-search .search-box .input,.customers-m-search .search-box .input{min-width:0;box-shadow:none;background:0 0;border:0;outline:none;flex:1;padding:0;font-size:16px}.customers-m-search{background:var(--surface);height:52px;box-shadow:inset 0 -1px 0 var(--border);flex:none;align-items:center;gap:8px;padding:6px 12px;display:flex}.customers-m-add{flex:none;height:40px;padding:0 12px;font-size:13px}.customers-m-add .nav-icon{width:17px;height:17px}.customers-m-list{background:var(--surface);flex:1;min-height:0;padding-bottom:8px;overflow-y:auto}.customers-m-empty{text-align:center;padding:22px 12px}.customers-m-row{background:var(--surface);width:100%;min-height:64px;color:var(--text);font:inherit;text-align:left;border:0;align-items:center;gap:10px;padding:8px 12px;display:flex;position:relative}.customers-m-row:disabled{opacity:1;cursor:default}.customers-m-row:after{content:"";background:var(--border);height:1px;position:absolute;bottom:0;left:56px;right:0}.customers-m-row:last-child:after{display:none}.customers-m-avatar{background:var(--brand-soft);width:32px;height:32px;color:var(--brand-dark);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:13px;font-weight:700;display:inline-flex}.customers-m-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.customers-m-main strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.customers-m-main span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;overflow:hidden}.customers-m-chev{width:18px;height:18px;color:var(--muted);flex:none}}.tag-warning{color:var(--warning-text);background:var(--warning-soft);border-color:var(--warning-border)}.pos-customer-debt{color:var(--warning-text);justify-content:space-between;align-items:center;gap:8px;margin:-4px 0 8px;padding:0 2px;font-size:12.5px;display:flex}.pos-credit-box{border:1px solid var(--warning-border);border-radius:var(--radius-control);background:var(--warning-soft);margin:12px 0;padding:10px 12px}.pos-credit-box>span{color:var(--muted);font-size:13px}.pos-credit-box>b{color:var(--warning-text);font-variant-numeric:tabular-nums;margin-top:2px;font-size:20px;display:block}.pos-credit-box .hint{margin:6px 0 0}.customer-credit{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-2);margin:12px 0;padding:10px 12px}.customer-credit-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.customer-credit-head b{font-variant-numeric:tabular-nums}.customer-credit-list{border-top:1px solid var(--border);margin-top:6px}.customer-credit-row{border-bottom:1px solid var(--border);grid-template-columns:64px 1fr auto;align-items:baseline;gap:8px;padding:6px 0;font-size:12.5px;display:grid}.customer-credit-row:last-child{border-bottom:0}.customer-credit-row b{white-space:nowrap;font-variant-numeric:tabular-nums}.is-debt{color:var(--danger)}.customers-m-filter{background:var(--surface);flex:none;gap:8px;padding:0 12px 8px;display:flex}.receipt-dialog{width:min(100%,420px);max-height:90vh;overflow:auto}.receipt-width{align-items:center;gap:6px;margin:0 0 12px;display:flex}.receipt-width .muted{margin-right:6px;font-size:12px}.receipt-preview{border-radius:var(--radius-control);background:var(--surface-3);justify-content:center;max-height:52vh;padding:12px;display:flex;overflow:auto}.receipt-paper{color:#111;font-variant-numeric:tabular-nums;background:#fff;border-radius:2px;padding:4mm 3mm;font-size:10.5px;line-height:1.45;box-shadow:0 1px 2px #1018281f}.receipt-paper[data-width="58"]{padding:3mm 2mm;font-size:9.5px}.receipt-head{text-align:center}.receipt-store{font-size:15px;font-weight:700}.receipt-paper[data-width="58"] .receipt-store{font-size:13px}.receipt-org,.receipt-note{color:#333;font-size:10px}.receipt-note{white-space:pre-line;margin-top:4px}.receipt-sep{border-top:1px dashed #999;margin:6px 0}.receipt-title{text-align:center;letter-spacing:.08em;font-size:12px;font-weight:700}.receipt-meta{margin-top:4px;font-size:10px}.receipt-meta>div,.receipt-total-row{justify-content:space-between;gap:8px;display:flex}.receipt-meta>div>span:last-child,.receipt-total-row>span:last-child{text-align:right}.receipt-items{font-size:10.5px}.receipt-item{border-bottom:1px dotted #ccc;padding:3px 0}.receipt-item:last-child{border-bottom:0}.receipt-item-name{overflow-wrap:anywhere;font-weight:600}.receipt-item-barcode{color:#444;letter-spacing:.04em;font-size:9px}.receipt-item-row{justify-content:space-between;gap:8px;display:flex}.receipt-totals{font-size:10.5px}.receipt-total-row.is-strong{font-size:11.5px;font-weight:700}.receipt-void{text-align:center;border:1px solid #111;margin:6px 0;padding:6px;font-size:10.5px;font-weight:700}.receipt-void-title{letter-spacing:.06em;font-size:12px}.receipt-thanks{text-align:center;white-space:pre-line;font-size:10.5px}.print-root{display:none}@media print{html,body{background:#fff!important;margin:0!important;padding:0!important}body>:not(.print-root){display:none!important}.print-root{display:block!important}.print-root .receipt-paper{width:100%!important;max-width:none!important;box-shadow:none!important;color:#000!important;background:#fff!important;border:0!important;border-radius:0!important;margin:0!important;padding:0 2mm!important}.print-root .receipt-paper *{color:#000!important}}.pos-toast{z-index:var(--z-drawer);border-radius:var(--radius-pill);background:var(--text);max-width:min(560px,100vw - 40px);color:var(--surface);box-shadow:var(--shadow-lg);pointer-events:none;align-items:center;gap:12px;padding:10px 16px;font-size:13.5px;font-weight:600;display:flex;position:fixed;bottom:28px;left:50%;transform:translate(-50%)}@media (width<=768px){.pos-toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}}.receipt-textarea{resize:vertical;height:auto;min-height:64px;padding:8px 11px;line-height:1.5}.receipt-switch{align-items:flex-start}.delivery-title-editor{border-bottom:1px solid var(--border);margin-bottom:12px;padding-bottom:12px}.receipt-template-preview{border-radius:var(--radius-control);background:var(--surface-3);flex-direction:column;align-items:center;gap:8px;padding:12px;display:flex}.receipt-template-preview .receipt-paper{max-width:100%}.delivery-dialog{flex-direction:column;width:min(920px,100vw - 24px);max-height:calc(100vh - 48px);display:flex}.delivery-preview{border-radius:var(--radius-control);background:var(--surface-3);flex:auto;min-height:180px;padding:12px;overflow:auto}.delivery-paper{box-sizing:border-box;color:#111;background:#fff;border-radius:2px;width:100%;min-width:560px;max-width:210mm;margin:0 auto;padding:16px 18px;font-size:12px;line-height:1.4;box-shadow:0 1px 4px #0f172a1f}.delivery-title{text-align:center;letter-spacing:.08em;margin:0 0 6px;font-size:22px;font-weight:700}.delivery-customer{text-align:center;margin:0 0 12px;font-size:12px}.delivery-section{text-align:center;margin:10px 0 6px;font-size:13px;font-weight:700}.delivery-table{border-collapse:collapse;table-layout:fixed;width:100%}.delivery-table th,.delivery-table td{vertical-align:middle;word-break:break-word;border:1px solid #111;padding:4px 5px}.delivery-table th{text-align:center;font-size:11px;font-weight:700}.delivery-table th em{color:#333;margin-left:2px;font-style:normal;font-weight:400}.delivery-table td{font-size:11.5px}.delivery-table th:first-child{width:6%}.delivery-table th:nth-child(2){width:19%}.delivery-table th:nth-child(3){width:29%}.delivery-table th:nth-child(4){width:13%}.delivery-table th:nth-child(5){width:16%}.delivery-table th:nth-child(6){width:17%}.delivery-no{text-align:center}.delivery-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-footer{justify-content:space-between;gap:18px;margin-top:16px;font-size:11.5px;display:flex}.delivery-dates,.delivery-totals{flex-direction:column;gap:3px;display:flex}.delivery-totals{text-align:right}.delivery-totals b{font-weight:700}@media print{.print-root .delivery-paper{width:100%;min-width:0;max-width:none;box-shadow:none;border-radius:0;padding:0;font-size:10.5pt}.print-root .delivery-title{font-size:20pt}.print-root .delivery-table th,.print-root .delivery-table td{padding:3pt 4pt}.print-root .delivery-table tr{break-inside:avoid}.print-root .delivery-table thead{display:table-header-group}}.reports-page{flex-direction:column;flex:1;gap:12px;min-height:0;padding:12px;display:flex;overflow-y:auto}.reports-page.is-narrow{overscroll-behavior-x:contain;padding:5px;overflow-x:hidden}.reports-mobile{flex-direction:column;flex:1;min-height:0;display:flex}.reports-desktop{display:contents}.reports-mobile .reports-head{z-index:6;background:var(--surface);box-shadow:inset 0 -1px 0 var(--border);flex:none;padding:0 5px 4px;position:relative}.reports-mobile .reports-head .reports-toolbar{box-shadow:none;border:0;border-radius:0;padding:6px 0}.reports-mobile .reports-head .reports-tabs{background:var(--surface);border-bottom:0}.reports-title{align-items:baseline;gap:10px;padding:0 2px;display:flex}.reports-title h2{margin:0;font-size:17px}.reports-toolbar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);flex-wrap:wrap;align-items:flex-end;gap:8px;padding:10px 12px;display:flex}.reports-range,.reports-actions,.report-toggle{flex-wrap:wrap;gap:4px;display:flex}.reports-date,.reports-filter{flex-direction:column;gap:4px;display:flex}.reports-date .input,.reports-filter .select{width:auto;min-width:9em}.reports-filter .select{min-width:10em}.reports-actions{margin-left:auto}.reports-tabs{flex-wrap:nowrap;flex:none;gap:0;min-height:48px;overflow:visible}.reports-tabs .tab{text-align:center;white-space:normal;overflow-wrap:break-word;flex:1 1 0;justify-content:center;align-items:center;min-width:0;padding:4px 2px;line-height:1.25;display:flex}.reports-body{flex-direction:column;gap:12px;display:flex}.report-panel-head>.report-toggle,.report-panel-head.is-as-of>.tag{margin-left:auto}.report-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.report-stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);flex-direction:column;gap:4px;padding:14px;display:flex}.report-stat span{color:var(--muted);font-size:12px}.report-stat b{font-variant-numeric:tabular-nums;font-size:22px}.report-stat em{color:var(--muted);font-size:12px;font-style:normal}.report-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);flex-direction:column;flex:none;gap:8px;padding:14px;display:flex}.report-panel h3{margin:0;font-size:14px}.report-panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.report-table{width:100%}.report-pager{border-top:1px solid var(--border);margin-top:8px;padding:8px 0 0}.reports-m-pagesize{color:var(--muted);align-items:center;gap:8px;padding:0 2px;font-size:13px;display:flex}.reports-m-pagesize .select{width:auto;min-width:5.4em;height:var(--control-h)}.report-sub{color:var(--muted);font-size:12px;font-style:normal}.report-rows{flex-direction:column;display:flex}.report-row{border-bottom:1px solid var(--border);grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:10px 0;display:grid}.report-row:last-child{border-bottom:0}.report-cell{justify-content:space-between;gap:8px;font-size:12.5px;display:flex}.report-cell-label{color:var(--muted)}.report-cell-value{text-align:right;font-variant-numeric:tabular-nums}.report-cell.is-num .report-cell-value{font-weight:600}.report-cell.tone-brand .report-cell-value{color:var(--brand)}.report-cell.tone-danger .report-cell-value{color:var(--danger)}.report-stat .stat-extra{color:var(--muted);margin-top:4px;font-size:12px;display:block}.report-stat .stat-extra .tone-danger{color:var(--danger);font-weight:700}.report-table tbody td.tone-brand{color:var(--brand);font-weight:600}.report-table tbody td.tone-danger{color:var(--danger);font-weight:600}.report-sort{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;display:inline-flex}.report-sort .nav-icon{opacity:.35;width:12px;height:12px}.report-sort:hover .nav-icon{opacity:.7}.report-sort.is-active .nav-icon{opacity:1;color:var(--brand)}@media (width<=768px){.reports-page{gap:5px;padding:5px}.reports-toolbar{flex-wrap:nowrap;align-items:center;gap:6px;padding:8px 10px}.reports-toolbar .reports-filter{flex:1;min-width:0}.reports-toolbar .reports-filter .select{width:100%;min-width:0}.range-pill{height:var(--control-h-page);background:var(--brand-soft);color:var(--brand-dark);white-space:nowrap;border:1px solid #0000;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}button.range-pill{cursor:pointer}.range-pill .nav-icon{width:12px;height:12px}.range-pill.is-static{background:var(--surface-2);color:var(--muted)}.range-export{flex:none}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.report-stat{padding:10px}.report-stat b{font-size:18px}.report-panel{padding:10px}.reports-body{gap:5px}.report-chart-panel .report-panel-head{margin-bottom:4px}.report-chart-panel .report-panel-head .muted,.best-cashiers .report-panel-head .muted{font-size:11px}.donut-wrap{flex-direction:column;align-items:center;gap:4px;display:flex}.donut-wrap svg{aspect-ratio:1;width:100%;max-width:240px;height:auto}.donut-segment{cursor:pointer;transition:stroke-width .12s}.donut-center-label{fill:var(--muted);font-size:11px}.donut-center-value{fill:var(--text);font-variant-numeric:tabular-nums;font-size:15px;font-weight:700}.donut-readout{align-items:baseline;gap:8px;min-height:18px;font-size:12px;display:flex}.donut-legend{color:var(--muted);flex-wrap:wrap;gap:4px 10px;margin-top:4px;font-size:11px;display:flex}.donut-legend-item{align-items:center;gap:4px;display:inline-flex}.donut-legend-item i{border-radius:50%;width:8px;height:8px}.donut-legend-item em{color:var(--text);font-style:normal}.donut-single{justify-content:space-between;align-items:baseline;gap:8px;padding:8px 0;font-size:13px;display:flex}.profit-trend svg{width:100%;height:auto;display:block}.profit-trend-unit,.profit-trend-axis{fill:var(--muted);font-size:10px}.profit-trend-grid{stroke:var(--border);stroke-width:1px}.profit-trend-zero{stroke:var(--muted);stroke-width:1px;stroke-dasharray:3 3}.profit-trend-line{fill:none;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.profit-trend-line.is-revenue{stroke:var(--chart-revenue)}.profit-trend-line.is-profit{stroke:var(--chart-profit)}.profit-trend-line.is-cost{stroke:var(--chart-orders-ink)}.profit-trend-line{transition:opacity .15s,stroke-width .15s}.profit-trend-line.is-emphasized{stroke-width:3.4px}.profit-trend-line.is-muted{opacity:.28}.profit-legend{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.profit-legend-btn{height:24px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;align-items:center;gap:4px;padding:0 8px;font-size:11px;display:inline-flex}.profit-legend-btn .dot{background:var(--muted);border-radius:50%;width:8px;height:8px}.profit-legend-btn.is-revenue .dot{background:var(--chart-revenue)}.profit-legend-btn.is-profit .dot{background:var(--chart-profit)}.profit-legend-btn.is-cost .dot{background:var(--chart-orders-ink)}.profit-legend-btn.is-active{border-color:var(--border);background:var(--surface-2);color:var(--text);font-weight:600}.items-trend-area{fill:var(--chart-orders);opacity:.35}.items-trend-line{fill:none;stroke:var(--chart-orders-ink);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.items-trend-grid{stroke:var(--border);stroke-width:1px}.items-trend-zero{stroke:var(--border-strong);stroke-width:1px}.items-trend-axis{fill:var(--muted);font-size:10px}.items-trend-cursor{stroke:var(--border-strong);stroke-width:1px;stroke-dasharray:3 3}.items-trend-dot{fill:var(--chart-orders-ink);stroke:var(--surface);stroke-width:1.5px}.items-trend-readout{align-items:baseline;gap:8px;min-height:18px;font-size:11px;display:flex}.items-trend-readout b{font-variant-numeric:tabular-nums}.profit-trend-readout{flex-wrap:wrap;gap:4px 10px;min-height:18px;font-size:11px;display:flex}.profit-trend-readout b{font-variant-numeric:tabular-nums}.profit-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:6px;display:grid}.profit-tile{color:#fff;border-radius:10px;flex-direction:column;gap:4px;padding:8px;display:flex}.profit-tile span{opacity:.9;font-size:10px}.profit-tile b{font-variant-numeric:tabular-nums;font-size:11px}.profit-tile.is-profit{background:var(--chart-profit)}.profit-tile.is-revenue{background:var(--chart-revenue)}.profit-tile.is-cost{background:var(--chart-orders-ink)}.best-cashier-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.best-cashier-line{justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;display:flex}.best-cashier-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.best-cashier-bar{background:var(--surface-3);border-radius:999px;height:4px;margin-top:5px;overflow:hidden}.best-cashier-bar i{border-radius:inherit;background:var(--brand);height:100%;display:block}}.audit-page{flex-direction:column;gap:10px;min-width:0;display:flex}.audit-toolbar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;display:flex}.audit-field .input,.audit-field .select{width:auto;height:var(--control-h);min-width:9em}.audit-actor{width:8em}.audit-keyword{width:12em}.audit-actions{gap:6px;margin-left:auto;display:flex}.audit-table td{vertical-align:top}.audit-state{white-space:normal;max-width:18em;color:var(--muted);font-size:12px}.audit-reason{white-space:normal;max-width:14em;font-size:12px}.audit-rows{border-top:1px solid var(--border);flex-direction:column;display:flex}.audit-row{border-bottom:1px solid var(--border);flex-direction:column;gap:4px;padding:10px 2px;display:flex}.audit-row-head,.audit-row-meta,.audit-row-main,.audit-row-state{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.audit-row-head{justify-content:space-between}.audit-row-state{color:var(--muted);font-size:12px}.audit-row-state span{flex:100%}.audit-row-reason{font-size:12px}@media (width<=768px){.audit-toolbar{align-items:stretch}.audit-field,.audit-field .input,.audit-field .select,.audit-actor,.audit-keyword{width:100%;min-width:0}.audit-actions{width:100%;margin-left:0}.audit-actions .btn{flex:1}.audit-footer .pager{gap:4px}}.app.ui-v2{--radius-control:10px;--radius:10px;--radius-sm:10px;--radius-card:16px;--radius-pill:999px;--control-h:32px;--control-h-page:40px;--row-h:48px;--card-gap:5px;--page-gap:5px;--page-pad:24px;--sidebar-w:256px;--topbar-h:64px;--bg:#eef1f5;--surface:#fff;--surface-2:#f8fafc;--surface-3:#eef2f7;--border:#e4e8ee;--border-strong:#d3d9e2;--text:#111827;--muted:#64748b;--brand:#2a5ee8;--brand-dark:#1f4bc4;--brand-soft:#eef3ff;--on-brand:#fff;--success-text:#0b7a56;--success-soft:#e8f8f1;--warning-text:#93400a;--warning-soft:#fff7e6;--danger-text:#912018;--danger-soft:#fef3f2;--shadow:0 1px 2px #1018280a, 0 1px 3px #1018280f;--shadow-md:0 8px 24px #10182814}:root[data-theme=dark] .app.ui-v2{--bg:#0a0d12;--surface:#121821;--surface-2:#161e29;--surface-3:#1d2733;--border:#25303e;--border-strong:#334155;--text:#e6ebf2;--muted:#94a3b8;--brand:#7aa2ff;--brand-dark:#a9c1ff;--brand-soft:#1a2740;--on-brand:#0b1017;--success:#3ddc97;--success-text:#7ee7bd;--success-soft:#12302a;--warning:#f5b544;--warning-text:#ffd48a;--warning-soft:#3a2f16;--danger:#ff7b72;--danger-text:#ffb4ad;--danger-soft:#3a1f1e;--shadow:0 1px 2px #00000059, 0 1px 3px #0006;--shadow-md:0 10px 28px #00000073}.app.ui-v2{background:var(--bg);gap:0;padding:0}.app.ui-v2 .sidebar{width:var(--sidebar-w);flex-basis:var(--sidebar-w);border:0;border-right:1px solid var(--border);height:100vh;max-height:none;box-shadow:none;border-radius:0;align-self:stretch;padding:0 10px 10px}.app.ui-v2 .sidebar.is-collapsed{flex-basis:76px;width:76px;padding-left:8px;padding-right:8px}.app.ui-v2 .main{gap:0}.app.ui-v2 .topbar{height:var(--topbar-h);flex-basis:var(--topbar-h);border:0;border-bottom:1px solid var(--border);box-shadow:none;padding:0 var(--page-pad);border-radius:0;gap:10px}.app.ui-v2 .content{padding:var(--page-pad);gap:var(--card-gap);overflow:hidden}.app.ui-v2 .content.is-pos{padding:0}.app.ui-v2 .content>.banner,.app.ui-v2 .pos-page>.banner{margin-bottom:0}.app.ui-v2 .brand{border-bottom:1px solid var(--border);gap:10px;height:64px;margin-bottom:8px;padding:0 8px;font-size:18px}.app.ui-v2 .brand-logo{border-radius:12px;width:36px;height:36px}.app.ui-v2 .brand-word{letter-spacing:-.02em;font-size:18px;font-weight:750}.app.ui-v2 .nav{gap:2px;padding:0 0 8px}.app.ui-v2 .nav-label{letter-spacing:.09em;padding:14px 10px 6px;font-size:10.5px;font-weight:700}.app.ui-v2 .nav-item{border-radius:10px;gap:10px;height:40px;padding:0 10px;font-weight:450}.app.ui-v2 .nav-item .nav-icon{width:18px;height:18px}.app.ui-v2 .nav-item.is-active{font-weight:600}.app.ui-v2 .sidebar-collapse{border-radius:10px;height:40px}.app.ui-v2 .crumb{align-items:center;gap:8px;min-width:0;display:flex}.app.ui-v2 .crumb-tile{background:var(--surface-3);width:28px;height:28px;color:var(--muted);border-radius:8px;flex:none;place-items:center;display:grid}.app.ui-v2 .crumb-tile .nav-icon{width:15px;height:15px}.app.ui-v2 .crumb-app{text-overflow:ellipsis;white-space:nowrap;max-width:34em;color:var(--muted);font-size:13px;overflow:hidden}.app.ui-v2 .crumb-sep{color:var(--border-strong)}.app.ui-v2 .crumb-page{white-space:nowrap;font-size:13px;font-weight:650}.app.ui-v2 .top-btn{min-width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-size:12.5px;font-weight:500;display:inline-flex}.app.ui-v2 .top-btn:hover{background:var(--surface-2);color:var(--text)}.app.ui-v2 .top-divider{background:var(--border);flex:none;width:1px;height:20px;margin:0 2px}.app.ui-v2 .user{align-items:center;gap:8px;min-width:0;display:flex}.app.ui-v2 .avatar{background:linear-gradient(135deg, var(--brand), #5b7cfa);width:32px;height:32px;color:var(--on-brand);border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:700;display:grid}.app.ui-v2 .user-meta{flex-direction:column;min-width:0;line-height:1.2;display:flex}.app.ui-v2 .user-name{white-space:nowrap;text-overflow:ellipsis;max-width:10em;font-size:12.5px;font-weight:650;overflow:hidden}.app.ui-v2 .user-role{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:10em;font-size:11px;overflow:hidden}.app.ui-v2 .topbar .notif-btn{background:0 0;border:0;width:32px;height:32px;padding:0}.app.ui-v2 .topbar .notif-btn:hover{background:var(--surface-2)}.app.ui-v2 .topbar-store .select{height:32px;font-size:12.5px}.app.ui-v2 .page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;width:100%;display:flex}.app.ui-v2 .page-head-text{min-width:0}.app.ui-v2 .page-head h1{letter-spacing:-.015em;margin:0;font-size:20px;font-weight:700;line-height:1.3}.app.ui-v2 .page-head .sub{color:var(--muted);margin:3px 0 0;font-size:13px}.app.ui-v2 .page-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.app.ui-v2 .reports-page,.app.ui-v2 .orders-page,.app.ui-v2 .customers-page{gap:var(--page-gap);width:100%;max-width:1440px;margin:0 auto;padding:0}.app.ui-v2 .inventory,.app.ui-v2 .admin-page{gap:var(--page-gap);width:100%;max-width:1440px;margin:0 auto}.app.ui-v2 .admin-body{gap:var(--page-gap);padding:0}.app.ui-v2 .admin-page{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);overflow:hidden}.app.ui-v2 .admin-page>.bm-tabs{scrollbar-width:none;flex:none;overflow-x:auto}.app.ui-v2 .admin-page>.bm-tabs::-webkit-scrollbar{display:none}.app.ui-v2 .admin-page .admin-body{min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex:1;gap:12px;padding:16px 20px 20px}.app.ui-v2 .content.is-catalog>.card,.app.ui-v2 .content.is-catalog>.page-head,.app.ui-v2 .content.is-catalog>.page-body{width:100%;max-width:1440px;margin-left:auto;margin-right:auto}.app.ui-v2 .card{border-radius:var(--radius-card);border:1px solid var(--border);box-shadow:var(--shadow);background:var(--surface)}.app.ui-v2 .card-toolbar{gap:8px;padding:12px 16px}.app.ui-v2 .toolbar-card{flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px;display:flex}.app.ui-v2 .btn{border-radius:var(--radius-control);gap:6px;font-size:13px}.app.ui-v2 .page-actions .btn,.app.ui-v2 .card-toolbar .btn,.app.ui-v2 .toolbar-card .btn,.app.ui-v2 .reports-actions .btn,.app.ui-v2 .orders-toolbar .btn,.app.ui-v2 .audit-toolbar .btn,.app.ui-v2 .pager .btn,.app.ui-v2 .topbar .btn,.app.ui-v2 .bulk-bar .btn{height:var(--control-h);padding:0 12px}.app.ui-v2 .btn-sm,.app.ui-v2 .page-actions .btn-sm,.app.ui-v2 .card-toolbar .btn-sm,.app.ui-v2 .orders-toolbar .btn-sm,.app.ui-v2 .pager .btn-sm{height:32px;padding:0 10px;font-size:12.5px}.app.ui-v2 .icon-btn{width:var(--control-h);padding:0}.app.ui-v2 .drawer-foot .btn,.app.ui-v2 .modal-actions .btn{height:var(--control-h-page)}.app.ui-v2 .input,.app.ui-v2 .select{border-radius:var(--radius-control);padding:0 10px;font-size:13px}.app.ui-v2 .order-edit-search .input{padding-left:34px}.app.ui-v2 .card-toolbar .input,.app.ui-v2 .card-toolbar .select,.app.ui-v2 .toolbar-card .input,.app.ui-v2 .toolbar-card .select,.app.ui-v2 .orders-toolbar .input,.app.ui-v2 .orders-toolbar .select,.app.ui-v2 .reports-toolbar .input,.app.ui-v2 .reports-toolbar .select,.app.ui-v2 .audit-toolbar .input,.app.ui-v2 .audit-toolbar .select,.app.ui-v2 .table-footer .select,.app.ui-v2 .table-wrap .input,.app.ui-v2 .table-wrap .select{height:var(--control-h);font-size:13px}.app.ui-v2 .select{background-position:right 9px center;padding-left:30px;padding-right:30px}.app.ui-v2 .search .input{padding-left:32px}.app.ui-v2 .seg{height:var(--control-h);border-radius:var(--radius-control);background:var(--surface-2);padding:3px}.app.ui-v2 .seg button{border-radius:7px;height:26px;font-size:12.5px}.app.ui-v2 .reports-range{height:var(--control-h);border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-2);align-items:center;gap:2px;padding:3px;display:inline-flex}.app.ui-v2 .reports-range .btn{height:26px;color:var(--muted);box-shadow:none;background:0 0;border:0;border-radius:7px;padding:0 10px;font-size:12.5px}.app.ui-v2 .reports-range .btn.btn-primary{background:var(--surface);color:var(--brand-dark);font-weight:650;box-shadow:0 1px 2px #10182814}.app.ui-v2 .reports-toolbar,.app.ui-v2 .orders-toolbar,.app.ui-v2 .audit-toolbar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);align-items:center;gap:8px;padding:12px 16px}.app.ui-v2 .orders-toolbar{align-items:center}.app.ui-v2 .orders-filter .select,.app.ui-v2 .orders-date .input,.app.ui-v2 .orders-search .input,.app.ui-v2 .reports-date .input,.app.ui-v2 .reports-filter .select,.app.ui-v2 .reports-toolbar .input,.app.ui-v2 .reports-toolbar .select{height:var(--control-h);font-size:13px}.app.ui-v2 .reports-actions .btn{height:var(--control-h)}.app.ui-v2 .stat-grid{gap:var(--card-gap);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.app.ui-v2 .stat-card{flex-direction:column;justify-content:space-between;gap:10px;min-height:116px;padding:16px 20px;transition:box-shadow .15s;display:flex}.app.ui-v2 .stat-card:hover{box-shadow:var(--shadow-md)}.app.ui-v2 .stat-top{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.app.ui-v2 .stat-label{letter-spacing:.02em;color:var(--muted);font-size:12px;font-weight:650}.app.ui-v2 .stat-icon{background:var(--brand-soft);width:32px;height:32px;color:var(--brand);border-radius:10px;flex:none;place-items:center;display:grid}.app.ui-v2 .stat-icon.is-success{background:var(--success-soft);color:var(--success-text)}.app.ui-v2 .stat-icon.is-warning{background:var(--warning-soft);color:var(--warning)}.app.ui-v2 .stat-icon.is-danger{background:var(--danger-soft);color:var(--danger)}.app.ui-v2 .stat-icon.is-brand{background:var(--brand-soft);color:var(--brand)}.app.ui-v2 .stat-value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:24px;font-weight:750;line-height:1.2}.app.ui-v2 .stat-value small{color:var(--muted);letter-spacing:0;font-size:14px;font-weight:500}.app.ui-v2 .stat-hint{color:var(--muted);min-height:18px;font-size:12px}.app.ui-v2 .stat-card.is-warning .stat-value{color:var(--warning)}.app.ui-v2 .stat-card.is-success .stat-value{color:var(--success-text)}.app.ui-v2 .stat-card.is-brand .stat-value{color:var(--brand)}.app.ui-v2 .stat-card.is-danger .stat-value{color:var(--danger)}.app.ui-v2 .stat-extra{color:var(--muted);margin-top:4px;font-size:12px;line-height:1.4}.app.ui-v2 .stat-extra b{font-weight:700}.app.ui-v2 .stat-extra .tone-danger{color:var(--danger)}.app.ui-v2 .stat-card.is-muted .stat-value{color:var(--muted)}.app.ui-v2 .stat-card.is-wide{grid-column:span 2}.app.ui-v2 .panel{overflow:hidden}.app.ui-v2 .panel-head{justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 12px;display:flex}.app.ui-v2 .panel-head h2{letter-spacing:-.01em;font-size:15px;font-weight:700}.app.ui-v2 .panel-head p{color:var(--muted);margin-top:2px;font-size:12px}.app.ui-v2 .panel-body{padding:0 20px 20px}.app.ui-v2 .panel-body.is-flush{padding:0}.app.ui-v2 .panel-foot{border-top:1px solid var(--border);background:var(--surface-2);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;display:flex}.app.ui-v2 .reports-body{gap:var(--card-gap)}.app.ui-v2 .tabs{gap:4px;min-height:48px}.app.ui-v2 .tab{gap:7px;height:48px;padding:0 14px;font-size:13.5px}.app.ui-v2 .tab .nav-icon{width:16px;height:16px}.app.ui-v2 thead th{background:var(--surface-2);border-bottom:1px solid var(--border);height:40px;padding:0 16px;font-size:12px;font-weight:650}.app.ui-v2 tbody td{height:var(--row-h);border-bottom:1px solid var(--border);padding:0 16px;font-size:13px}.app.ui-v2 tbody tr:hover{background:var(--surface-2)}.app.ui-v2 .orders-table th,.app.ui-v2 .orders-table td,.app.ui-v2 .board-table th,.app.ui-v2 .board-table td,.app.ui-v2 .ledger-table th,.app.ui-v2 .ledger-table td,.app.ui-v2 .audit-table th,.app.ui-v2 .audit-table td,.app.ui-v2 .report-table th,.app.ui-v2 .report-table td{height:var(--row-h);padding:0 16px;font-size:13px}.app.ui-v2 .orders-table th,.app.ui-v2 .audit-table th{height:40px;font-size:12px}.app.ui-v2 .table-footer{background:var(--surface-2);border-top:1px solid var(--border);gap:12px;height:auto;min-height:56px;padding:10px 16px}.app.ui-v2 .pager-size .select,.app.ui-v2 .pager-btn,.app.ui-v2 .pager .btn-sm,.app.ui-v2 .page-pill{height:var(--control-h)}.app.ui-v2 .product-toolbar .search{flex:240px;max-width:380px}.app.ui-v2 .product-table-card{flex-direction:column;flex:1;min-height:0;display:flex}.app.ui-v2 .product-table-card .table-wrap{flex:1;min-height:0}.app.ui-v2 .product-table-card tbody td{height:var(--row-h)}.app.ui-v2 .product-table-card .table-footer{flex:none}.app.ui-v2 .cell-name{align-items:center;gap:10px;min-width:0;display:flex}.app.ui-v2 .cell-name .avatar img{border-radius:8px;flex:none;width:28px;height:28px}.app.ui-v2 .name-link{text-overflow:ellipsis;white-space:nowrap;max-width:260px;font-weight:500;overflow:hidden}.app.ui-v2 .barcode-list{align-items:center;gap:4px;display:inline-flex}.app.ui-v2 .barcode-list .tag{border-radius:6px;height:22px;padding:0 8px;font-size:11.5px}.app.ui-v2 .barcode-copy{width:20px;height:20px;padding:0}.app.ui-v2 .profit-figure{color:var(--success-text);font-variant-numeric:tabular-nums;font-weight:650}.app.ui-v2 .profit-figure.is-negative{color:var(--danger)}.app.ui-v2 .bulk-bar{color:#e2e8f0;background:#0f172a;border:1px solid #334155;border-radius:14px;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;display:flex;box-shadow:0 12px 30px #00000038}.app.ui-v2 .bulk-bar .select,.app.ui-v2 .bulk-bar .btn{color:#e2e8f0;background:#1e293b;border-color:#334155}.app.ui-v2 .inventory>.card-toolbar,.app.ui-v2 .inventory>.table-wrap,.app.ui-v2 .inventory>.table-footer,.app.ui-v2 .audit-toolbar,.app.ui-v2 .form-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow)}.app.ui-v2 .inventory>.card-toolbar{border-bottom:1px solid var(--border);padding:12px 16px}.app.ui-v2 .inventory>.table-wrap{border-radius:var(--radius-card);flex:1;min-height:0;overflow:auto}.app.ui-v2 .inventory>.table-footer{border-radius:var(--radius-card);background:var(--surface-2)}.app.ui-v2 .inventory .bm-wrap .inventory-body{flex-direction:column;flex:1;min-height:0;display:flex}.app.ui-v2 .inventory .bm-wrap .inventory-body>.card-toolbar{border:0;border-bottom:1px solid var(--border);box-shadow:none;background:0 0;border-radius:0;flex:none;padding:12px 20px}.app.ui-v2 .inventory .bm-wrap .inventory-body>.table-wrap{min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex:1;overflow:auto}.app.ui-v2 .inventory .bm-wrap .inventory-body>.table-footer{background:var(--surface-2);border:0;border-top:1px solid var(--border);box-shadow:none;border-radius:0;flex:none}.app.ui-v2 .inventory .bm-wrap .purchase-toolbar,.app.ui-v2 .inventory .bm-wrap .purchase-form,.app.ui-v2 .inventory .bm-wrap .purchase-detail,.app.ui-v2 .inventory .bm-wrap .purchase-card{box-shadow:none;background:0 0;border:0;border-radius:0}.app.ui-v2 .inventory .bm-wrap .purchase-card{border-bottom:1px solid var(--border)}.app.ui-v2 .inventory .bm-wrap .inventory-body>.hint,.app.ui-v2 .inventory .bm-wrap .purchase-docs>.hint{margin:0;padding:16px 20px}.app.ui-v2 .form-card{padding:5px}.app.ui-v2 .form-section{border-bottom-color:var(--border)}.app.ui-v2 .report-panel{border-radius:var(--radius-card);box-shadow:var(--shadow);gap:7px;padding:20px}.app.ui-v2 .report-panel h3{font-size:15px;font-weight:700}.app.ui-v2 .report-stat{border-radius:var(--radius-card);padding:16px 20px}.app.ui-v2 .report-stat b{font-size:24px}.app.ui-v2 .drawer .input,.app.ui-v2 .drawer .select{height:var(--control-h)}@media (width<=1180px){.app.ui-v2 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app.ui-v2 .stat-card.is-wide{grid-column:span 2}}.app.ui-v2 .payment-stack{border-radius:var(--radius-pill);background:var(--surface-3);flex:1;min-width:200px;height:8px;display:flex;overflow:hidden}.app.ui-v2 .payment-stack i{height:100%;display:block}.app.ui-v2 .payment-stack .is-received{background:var(--success)}.app.ui-v2 .payment-stack .is-credit{background:var(--warning)}.app.ui-v2 .payment-legend{color:var(--muted);flex-wrap:wrap;align-items:center;gap:12px;font-size:11.5px;display:flex}.app.ui-v2 .payment-legend .dot{border-radius:50%;width:8px;height:8px;margin-right:5px;display:inline-block}.app.ui-v2 .payment-legend .dot.is-received{background:var(--success)}.app.ui-v2 .payment-legend .dot.is-credit{background:var(--warning)}.app.ui-v2 .product-toolbar .card-toolbar{border-bottom:0}.app.ui-v2 .tag{background:var(--surface-3);max-width:180px;height:22px;color:var(--text);text-overflow:ellipsis;white-space:nowrap;border-radius:6px;align-items:center;padding:0 8px;font-size:11.5px;font-weight:500;display:inline-flex;overflow:hidden}.app.ui-v2 .tag.is-brand{background:var(--brand-soft);color:var(--brand-dark)}.app.ui-v2 .tag.is-success,.app.ui-v2 .tag-active{background:var(--success-soft);color:var(--success-text)}.app.ui-v2 .tag.is-warning{background:var(--warning-soft);color:var(--warning-text)}.app.ui-v2 .tag.is-danger{background:var(--danger-soft);color:var(--danger-text)}.app.ui-v2 .product-toolbar{flex:none}.app.ui-v2 .product-table{table-layout:fixed;width:100%}.app.ui-v2 .product-table .name-link,.app.ui-v2 .product-table .tag{max-width:100%}.app.ui-v2 .product-table .barcode-list{flex-wrap:nowrap;overflow:hidden}.app.ui-v2 .product-table .barcode-main{min-width:0}.app.ui-v2 .product-toolbar .select{min-width:150px;max-width:220px}.app.ui-v2 .tab{align-items:center;display:inline-flex}.app.ui-v2 .admin-body{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);padding:16px 20px}.app.ui-v2 .bulk-bar{z-index:var(--z-bulk,60);max-width:calc(100vw - 48px);margin:0;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}@media (width<=1180px){.app.ui-v2 .crumb-app{display:none}}.app.ui-v2 .page-body{flex-direction:column;flex:1;width:100%;max-width:1440px;min-height:0;margin:0 auto;display:flex}.app.ui-v2 .orders-page>.card,.app.ui-v2 .customers-page>.card{flex:none}.app.ui-v2 .product-table{min-width:960px}.app.ui-v2 .bulk-bar{width:max-content}.app.ui-v2 .bulk-bar .select{min-width:180px;max-width:240px}.app.ui-v2 .content.is-catalog:has(.bulk-bar){padding-bottom:150px}.app.ui-v2 .orders-foot,.app.ui-v2 .customers-page>.table-footer{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);min-height:56px;box-shadow:var(--shadow);padding:10px 16px}.app.ui-v2 .content{padding:5px}.app.ui-v2 .content>.page-body:has(>.admin-page){max-width:none;margin:0}.app.ui-v2 .reports-page,.app.ui-v2 .orders-page,.app.ui-v2 .customers-page,.app.ui-v2 .inventory,.app.ui-v2 .admin-page{max-width:none;margin:0}.app.ui-v2 .content>.page-body:has(>.inventory){max-width:none;margin:0}.app.ui-v2 .inventory{gap:5px}.app.ui-v2 .content.is-catalog>.card,.app.ui-v2 .content.is-catalog>.page-body,.app.ui-v2 .content.is-catalog>.page-head{max-width:none;margin-left:0;margin-right:0}.app.ui-v2 .sidebar{z-index:40;border-right:0;flex:0 0 64px;width:64px;padding:0;position:relative;overflow:visible}.app.ui-v2 .sidebar .brand{border-bottom:0;border-right:1px solid var(--border);justify-content:center;height:64px;margin:0;padding:0}.app.ui-v2 .sidebar .brand .brand-logo{object-fit:cover;border-radius:0;width:64px;height:64px}.app.ui-v2 .sidebar .brand-word{display:none}.app.ui-v2 .sidebar .nav{background:var(--surface);border-right:1px solid var(--border);gap:2px;width:64px;padding:8px 0;transition:width .16s,box-shadow .16s;position:absolute;top:64px;bottom:0;left:0;overflow:hidden}.app.ui-v2 .sidebar:hover .nav{width:156px;box-shadow:var(--shadow-md)}.app.ui-v2 .sidebar:has(.nav-item:focus-visible) .nav{width:156px;box-shadow:var(--shadow-md)}.app.ui-v2 .sidebar .nav-item{border-radius:10px;gap:11px;height:44px;padding:0 23px}.app.ui-v2 .sidebar .nav-item .nav-icon{color:var(--muted)}.app.ui-v2 .sidebar .nav-item.is-active .nav-icon{color:var(--brand)}.app.ui-v2 .sidebar .nav-text{opacity:0;white-space:nowrap;width:0;transition:opacity .12s;overflow:hidden}.app.ui-v2 .sidebar:hover .nav-text{opacity:1;width:auto}.app.ui-v2 .sidebar:has(.nav-item:focus-visible) .nav-text{opacity:1;width:auto}.app.ui-v2 .sidebar .nav-label,.app.ui-v2 .sidebar-foot{display:none}.app.ui-v2 .reports-page,.app.ui-v2 .orders-page,.app.ui-v2 .customers-page,.app.ui-v2 .inventory,.app.ui-v2 .admin-page{scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable}.app.ui-v2 .reports-page.is-scrolling,.app.ui-v2 .orders-page.is-scrolling,.app.ui-v2 .customers-page.is-scrolling,.app.ui-v2 .inventory.is-scrolling,.app.ui-v2 .admin-page.is-scrolling{scrollbar-color:var(--border-strong) transparent}.app.ui-v2 .reports-page::-webkit-scrollbar{width:6px;height:6px}.app.ui-v2 .orders-page::-webkit-scrollbar{width:6px;height:6px}.app.ui-v2 .customers-page::-webkit-scrollbar{width:6px;height:6px}.app.ui-v2 .inventory::-webkit-scrollbar{width:6px;height:6px}.app.ui-v2 .admin-page::-webkit-scrollbar{width:6px;height:6px}.app.ui-v2 .reports-page::-webkit-scrollbar-button{display:none}.app.ui-v2 .orders-page::-webkit-scrollbar-button{display:none}.app.ui-v2 .customers-page::-webkit-scrollbar-button{display:none}.app.ui-v2 .inventory::-webkit-scrollbar-button{display:none}.app.ui-v2 .admin-page::-webkit-scrollbar-button{display:none}.app.ui-v2 .reports-page::-webkit-scrollbar-track{background:0 0}.app.ui-v2 .orders-page::-webkit-scrollbar-track{background:0 0}.app.ui-v2 .customers-page::-webkit-scrollbar-track{background:0 0}.app.ui-v2 .inventory::-webkit-scrollbar-track{background:0 0}.app.ui-v2 .admin-page::-webkit-scrollbar-track{background:0 0}.app.ui-v2 .reports-page::-webkit-scrollbar-thumb{background:padding-box content-box;border:1px solid #0000;border-radius:999px}.app.ui-v2 .orders-page::-webkit-scrollbar-thumb{background:padding-box content-box;border:1px solid #0000;border-radius:999px}.app.ui-v2 .customers-page::-webkit-scrollbar-thumb{background:padding-box content-box;border:1px solid #0000;border-radius:999px}.app.ui-v2 .inventory::-webkit-scrollbar-thumb{background:padding-box content-box;border:1px solid #0000;border-radius:999px}.app.ui-v2 .admin-page::-webkit-scrollbar-thumb{background:padding-box content-box;border:1px solid #0000;border-radius:999px}.app.ui-v2 .reports-page.is-scrolling::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:content-box}.app.ui-v2 .orders-page.is-scrolling::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:content-box}.app.ui-v2 .customers-page.is-scrolling::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:content-box}.app.ui-v2 .inventory.is-scrolling::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:content-box}.app.ui-v2 .admin-page.is-scrolling::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:content-box}.app.ui-v2 .reports-page{gap:5px}.app.ui-v2 .reports-toolbar{flex:none}.app.ui-v2 .bm-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);width:100%;box-shadow:var(--shadow);flex-direction:column;flex:1 0 auto;display:flex;overflow:hidden}.app.ui-v2 .bm-tabs{background:var(--surface-2);flex:none;gap:2px;width:100%;padding:8px 12px 0;display:flex;position:relative}.app.ui-v2 .bm-tabs:after{content:"";background:var(--border);z-index:0;pointer-events:none;height:1px;position:absolute;bottom:0;left:0;right:0}.app.ui-v2 .bm-tab{z-index:1;height:42px;color:var(--muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;border-bottom:0;border-radius:12px 12px 0 0;align-items:center;gap:7px;padding:0 16px;font-size:13.5px;font-weight:600;display:inline-flex;position:relative}.app.ui-v2 .bm-tab:hover{color:var(--text)}.app.ui-v2 .bm-tab.is-active{background:var(--surface);border-color:var(--border);border-bottom-color:var(--surface);color:var(--brand-dark)}.app.ui-v2 .bm-body{flex-direction:column;flex:1;min-height:0;display:flex}.app.ui-v2 .bm-body .reports-body{flex:1;gap:5px;min-height:0}.app.ui-v2 .bm-body .reports-body>.banner{margin:12px 16px 0}.app.ui-v2 .bm-foot{border-top:1px solid var(--border);background:var(--surface-2);color:var(--muted);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px;font-size:12px;display:flex}.app.ui-v2 .bm-metrics{border-bottom:1px solid var(--border);grid-template-columns:repeat(4,minmax(0,1fr));gap:0;display:grid}.app.ui-v2 .bm-metrics .stat-card{min-height:116px;box-shadow:none;border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);background:0 0;border-radius:0}.app.ui-v2 .bm-metrics .stat-card:hover{box-shadow:none}.app.ui-v2 .bm-metrics .stat-card:nth-child(4n),.app.ui-v2 .bm-metrics .stat-card:last-child{border-right:0}.app.ui-v2 .bm-metrics .stat-card:nth-child(n+5){border-bottom:0}.app.ui-v2 .bm-metrics .stat-icon{background:var(--brand-soft)}.app.ui-v2 .bm-metrics .stat-icon.is-success{background:var(--success-soft)}.app.ui-v2 .bm-metrics .stat-icon.is-warning{background:var(--warning-soft)}.app.ui-v2 .bm-metrics .stat-icon.is-danger{background:var(--danger-soft)}.app.ui-v2 .report-split{flex:1;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);align-items:stretch;gap:0;min-height:0;display:grid;position:relative}.app.ui-v2 .report-split:after{content:"";background:var(--border);pointer-events:none;z-index:1;width:1px;position:absolute;top:0;bottom:0;left:62.963%}.app.ui-v2 .report-split>.panel{min-width:0;box-shadow:none;background:0 0;border:0;border-radius:0;overflow:visible}.app.ui-v2 .report-three{min-height:calc(520px * var(--fit));margin-top:calc(-1 * var(--card-gap));flex:1 0 auto;grid-template-columns:minmax(0,1.55fr) minmax(0,.725fr) minmax(0,.725fr);align-items:stretch;gap:0;display:grid}.app.ui-v2 .report-three>.panel{min-width:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:column;display:flex;overflow:hidden}.app.ui-v2 .report-three>.panel+.panel{border-left:1px solid var(--border)}.app.ui-v2 .report-three .panel-head{padding:calc(16px * var(--fit)) calc(18px * var(--fit)) calc(8px * var(--fit))}.app.ui-v2 .report-three .panel-head h2{font-size:calc(15px * var(--fit))}.app.ui-v2 .report-three .panel-head p{font-size:calc(12px * var(--fit));margin-top:2px}.app.ui-v2 .report-three .chart-panel .panel-body{justify-content:flex-start}.app.ui-v2 .chart-note{text-align:right;font-size:calc(11.5px * var(--fit));color:var(--muted);margin:2px 0 0}.app.ui-v2 .chart-legend .dot.is-dash{border-top:2px dashed var(--brand-dark);vertical-align:middle;border-radius:0;width:12px;height:0}.app.ui-v2 .report-three .payment-panel .panel-body{justify-content:center;align-items:center;gap:calc(8px * var(--fit));min-height:0;padding:0 calc(18px * var(--fit));flex-direction:column;flex:1;display:flex}.app.ui-v2 .payment-pie-wrap{width:100%;max-width:calc(300px * var(--fit));position:relative}.app.ui-v2 .payment-pie-wrap .payment-pie{width:100%;max-width:none;display:block}.app.ui-v2 .payment-pie-tip{z-index:3;pointer-events:none;min-width:calc(120px * var(--fit));padding:calc(8px * var(--fit)) calc(10px * var(--fit));border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-md);font-size:calc(12px * var(--fit));border-radius:10px;gap:2px;display:grid;position:absolute;transform:translate(-50%,calc(-100% - 10px))}.app.ui-v2 .payment-pie-tip .method{color:var(--muted)}.app.ui-v2 .payment-pie-tip b{font-size:calc(15px * var(--fit));font-variant-numeric:tabular-nums}.app.ui-v2 .payment-pie-tip em{color:var(--muted);font-variant-numeric:tabular-nums;font-style:normal}.app.ui-v2 .payment-pie-legend{gap:calc(7px * var(--fit));width:100%;margin:0;padding:0;list-style:none;display:grid}.app.ui-v2 .payment-pie-legend li{font-size:calc(12.5px * var(--fit));grid-template-columns:10px minmax(0,1fr) auto 46px;align-items:center;gap:8px;display:grid}.app.ui-v2 .payment-pie-legend .dot{border-radius:50%;width:9px;height:9px;display:block}.app.ui-v2 .payment-pie-legend .method{font-weight:600}.app.ui-v2 .payment-pie-legend b{font-variant-numeric:tabular-nums}.app.ui-v2 .payment-pie-legend em{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;font-style:normal}.app.ui-v2 .payment-pie-legend li.is-total{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;margin-top:2px;padding-top:7px;display:flex}.app.ui-v2 .change-kpis{margin:0 calc(16px * var(--fit)) calc(10px * var(--fit));border:1px solid var(--border);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));display:grid;overflow:hidden}.app.ui-v2 .change-kpi{padding:calc(8px * var(--fit)) calc(10px * var(--fit));border-right:1px solid var(--border);min-width:0}.app.ui-v2 .change-kpi:last-child{border-right:0}.app.ui-v2 .change-kpi span{font-size:calc(11.5px * var(--fit));color:var(--muted);display:block}.app.ui-v2 .change-kpi b{font-size:calc(15px * var(--fit));font-variant-numeric:tabular-nums;margin-top:3px;display:block}.app.ui-v2 .change-scroll{min-height:0;margin:0 calc(8px * var(--fit));flex:1;overflow-y:auto}.app.ui-v2 .change-panel .report-table thead th{height:calc(32px * var(--fit));font-size:calc(11.5px * var(--fit));padding:0 calc(10px * var(--fit))}.app.ui-v2 .change-panel .report-table tbody td{height:calc(30px * var(--fit));font-size:calc(12px * var(--fit));padding:0 calc(10px * var(--fit))}.app.ui-v2 .change-foot{padding:calc(8px * var(--fit)) calc(16px * var(--fit));font-size:calc(11.5px * var(--fit));color:var(--muted);flex:none}.app.ui-v2 .chart-panel{flex-direction:column;display:flex}.app.ui-v2 .chart-panel .panel-head{padding-bottom:6px}.app.ui-v2 .chart-panel .panel-body{flex-direction:column;flex:1;gap:4px;min-height:0;padding:0 20px 8px;display:flex;position:relative}.app.ui-v2 .chart-legend{color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:18px;padding-top:6px;font-size:11.5px;display:flex;position:relative}.app.ui-v2 .chart-legend .dot{border-radius:50%;width:8px;height:8px;margin-right:5px;display:inline-block}.app.ui-v2 .chart-unit{font-size:11px;position:absolute;right:0}.app.ui-v2 .chart-plot{min-height:calc(200px * var(--fit));flex:1;position:relative}.app.ui-v2 .chart-svg{touch-action:none;width:100%;height:100%;display:block}.app.ui-v2 .chart-svg text{font-family:inherit;font-size:calc(11px * var(--fit));fill:var(--muted)}.app.ui-v2 .payment-panel{flex-direction:column;align-self:stretch;width:100%;display:flex}.app.ui-v2 .payment-panel .panel-body{flex:1}.app.ui-v2 .payment-panel .panel-foot{margin-top:auto}.app.ui-v2 .bm-body .report-panel{box-shadow:none;background:0 0;border:0;border-radius:0;padding:16px 20px 20px}.app.ui-v2 .bm-body .report-panel>h3{font-size:15px;font-weight:700}.app.ui-v2 .bm-body .report-panel .report-panel-head{padding:0 0 10px}.app.ui-v2 .bm-body .report-panel .table-wrap{border-top:1px solid var(--border)}.app.ui-v2 .bm-body .report-panel .pager{padding:10px 0 0}.app.ui-v2 .bm-empty{text-align:center;color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;padding:48px 24px;display:flex}.app.ui-v2 .bm-empty-icon{background:var(--surface-2);width:56px;height:56px;color:var(--muted);border-radius:50%;place-items:center;margin-bottom:4px;display:grid}.app.ui-v2 .bm-empty-icon .nav-icon{width:24px;height:24px}.app.ui-v2 .bm-empty h3{color:var(--text);font-size:15px;font-weight:700}.app.ui-v2 .bm-empty p{max-width:460px;color:var(--muted);font-size:13px;line-height:1.6}.app.ui-v2{--fit:1}@media (height>=1150px){.app.ui-v2{--fit:1.15}}@media (height>=1250px){.app.ui-v2{--fit:1.35}}@media (height>=1450px){.app.ui-v2{--fit:1.6}}.app.ui-v2 .bm-tab{height:calc(42px * var(--fit));font-size:calc(13.5px * var(--fit))}.app.ui-v2 .bm-tab .nav-icon{width:calc(16px * var(--fit));height:calc(16px * var(--fit))}.app.ui-v2 .bm-metrics .stat-card{min-height:calc(116px * var(--fit));padding:calc(16px * var(--fit)) calc(20px * var(--fit));gap:calc(10px * var(--fit))}.app.ui-v2 .bm-metrics .stat-value{font-size:calc(24px * var(--fit))}.app.ui-v2 .bm-metrics .stat-value small{font-size:calc(14px * var(--fit))}.app.ui-v2 .bm-metrics .stat-label{font-size:calc(12px * var(--fit))}.app.ui-v2 .bm-metrics .stat-hint{font-size:calc(12px * var(--fit));min-height:calc(18px * var(--fit))}.app.ui-v2 .bm-metrics .stat-icon{width:calc(32px * var(--fit));height:calc(32px * var(--fit));border-radius:calc(10px * var(--fit))}.app.ui-v2 .bm-wrap .panel-head{padding:calc(18px * var(--fit)) calc(20px * var(--fit)) calc(12px * var(--fit))}.app.ui-v2 .bm-wrap .panel-head h2{font-size:calc(15px * var(--fit))}.app.ui-v2 .bm-wrap .panel-head p{font-size:calc(12px * var(--fit))}.app.ui-v2 .bm-wrap .panel-body{padding:0 calc(20px * var(--fit)) calc(20px * var(--fit))}.app.ui-v2 .bm-wrap .panel-body.is-flush{padding:0}.app.ui-v2 .bm-wrap thead th{height:calc(40px * var(--fit));font-size:calc(12px * var(--fit));padding:0 calc(16px * var(--fit))}.app.ui-v2 .bm-wrap tbody td{height:calc(48px * var(--fit));font-size:calc(13px * var(--fit));padding:0 calc(16px * var(--fit))}.app.ui-v2 .chart-tip{z-index:3;padding:calc(12px * var(--fit)) calc(14px * var(--fit));border:1px solid var(--border);pointer-events:none;background:#fff;border-radius:14px;position:absolute;box-shadow:0 12px 32px #0f172a29,0 2px 6px #0f172a14}.app.ui-v2 .chart-tip-label{font-size:calc(12px * var(--fit));color:var(--muted)}.app.ui-v2 .chart-tip-value{font-size:calc(20px * var(--fit));letter-spacing:-.2px;font-variant-numeric:tabular-nums;margin-top:2px;font-weight:700}.app.ui-v2 .chart-tip-delta{margin-top:calc(8px * var(--fit));font-size:calc(12px * var(--fit));border-radius:999px;padding:2px 8px;font-weight:600;display:inline-block}.app.ui-v2 .chart-tip-delta.is-up{color:var(--success);background:#eaf7ef}.app.ui-v2 .chart-tip-delta.is-down{background:var(--danger-soft);color:var(--danger)}.app.ui-v2 .chart-tip-delta.is-off{background:var(--surface-3);color:var(--muted)}.app.ui-v2 .chart-tip-prev{margin-top:calc(10px * var(--fit));padding-top:calc(10px * var(--fit));border-top:1px solid var(--border);font-size:calc(12px * var(--fit));color:var(--text);justify-content:space-between;gap:10px;display:flex}.app.ui-v2 .chart-legend{font-size:calc(11.5px * var(--fit))}.app.ui-v2 .panel-foot{padding:calc(12px * var(--fit)) calc(20px * var(--fit))}.app.ui-v2 .payment-legend{font-size:calc(11.5px * var(--fit))}.app.ui-v2 .bm-wrap .tag{font-size:calc(11px * var(--fit))}.app.ui-v2 .bm-foot{padding:calc(10px * var(--fit)) calc(20px * var(--fit));font-size:calc(12px * var(--fit))}.app.ui-v2 .bm-empty h3{font-size:calc(15px * var(--fit))}.app.ui-v2 .bm-empty p{font-size:calc(13px * var(--fit))}.app.ui-v2 .bm-empty-icon{width:calc(56px * var(--fit));height:calc(56px * var(--fit))}@media (width>=1600px){.app.ui-v2 .bm-wrap.is-overview{flex:auto;min-height:848px}.app.ui-v2 .bm-wrap.is-overview .reports-body{flex:1;min-height:0}.app.ui-v2 .report-three{flex:1 1 0;min-height:300px}.app.ui-v2 .payment-pie-wrap{aspect-ratio:1;flex:0 auto;width:auto;max-width:100%;min-height:0}}@media (width>=1600px) and (height<=1100px){.app.ui-v2 .bm-metrics .stat-card{gap:6px;min-height:100px;padding:10px 16px}}@media (width<=1599px){.app.ui-v2 .report-split{flex:none;grid-template-columns:1fr}.app.ui-v2 .report-split:after{display:none}.app.ui-v2 .chart-panel{border-bottom:1px solid var(--border)}.app.ui-v2 .report-three{flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.app.ui-v2 .report-three>.chart-panel{border-bottom:1px solid var(--border);height:calc(460px * var(--fit));grid-column:1/-1}.app.ui-v2 .report-three>.payment-panel{border-left:0}.app.ui-v2 .report-three>.payment-panel,.app.ui-v2 .report-three>.change-panel{height:calc(520px * var(--fit))}}.app.ui-v2 .bm-body>.hint{margin:16px 20px}.app.ui-v2 .bm-body>.banner{margin:12px 16px 0}.app.ui-v2 .bm-metrics.is-debts .stat-card{border-bottom:0}.app.ui-v2 .bm-body .report-panel{flex-direction:column;flex:1;min-height:0;display:flex}.app.ui-v2 .bm-body .report-panel>.bm-empty{flex:1}.app.ui-v2 .bm-wrap .report-panel{padding:calc(16px * var(--fit)) calc(20px * var(--fit)) calc(20px * var(--fit))}.app.ui-v2 .bm-wrap .report-panel>h3,.app.ui-v2 .bm-wrap .report-panel-head h3{font-size:calc(15px * var(--fit))}.app.ui-v2 .bm-wrap .report-toggle .btn{height:calc(32px * var(--fit));font-size:calc(12.5px * var(--fit))}.app.ui-v2 .bm-wrap .pager{font-size:calc(12px * var(--fit))}.app.ui-v2 .bm-wrap .pager .btn,.app.ui-v2 .bm-wrap .pager-btn{height:calc(32px * var(--fit));font-size:calc(12.5px * var(--fit))}.app.ui-v2 .bm-wrap .pager-size{font-size:calc(12px * var(--fit))}.app.ui-v2 .report-three.is-four{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr) minmax(0,.65fr) minmax(0,.65fr)}.app.ui-v2 .chart-head-side{flex-direction:column;flex:none;align-items:flex-end;gap:6px;display:flex}.app.ui-v2 .chart-mode{background:var(--surface-2);border:1px solid var(--border);border-radius:9px;gap:2px;padding:2px;display:flex}.app.ui-v2 .chart-mode button{height:26px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:0 10px;font-size:12px}.app.ui-v2 .chart-mode button.is-active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #10182814}.app.ui-v2 .chart-tip-stores{border-top:1px solid var(--border);flex-direction:column;gap:5px;margin-top:8px;padding-top:8px;display:flex}.app.ui-v2 .chart-tip-stores div{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:flex}.app.ui-v2 .chart-tip-stores i{border-radius:2px;flex:none;width:8px;height:8px}.app.ui-v2 .chart-tip-stores b{color:var(--text);margin-left:auto;font-weight:600}.app.ui-v2 .store-donut-panel .store-donut-body{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;min-height:0;padding:0 16px 14px;display:flex}.app.ui-v2 .store-donut-panel .donut-wrap{flex-direction:column;align-items:center;gap:6px;width:100%;display:flex}.app.ui-v2 .store-donut-panel .donut-wrap svg{aspect-ratio:1;width:100%;max-width:236px;height:auto}.app.ui-v2 .store-donut-panel .donut-center-label{fill:var(--muted);font-size:12px}.app.ui-v2 .store-donut-panel .donut-center-value{fill:var(--text);font-variant-numeric:tabular-nums;font-size:17px;font-weight:700}.app.ui-v2 .store-donut-panel .donut-readout{align-items:baseline;gap:8px;min-height:18px;font-size:12px;display:flex}.app.ui-v2 .store-donut-panel .donut-legend{color:var(--muted);flex-wrap:wrap;justify-content:center;gap:6px 12px;font-size:12px;display:flex}.app.ui-v2 .store-donut-panel .donut-legend-item{align-items:center;gap:5px;display:inline-flex}.app.ui-v2 .store-donut-panel .donut-legend-item i{border-radius:50%;width:8px;height:8px}.app.ui-v2 .store-donut-panel .donut-legend-item em{color:var(--text);font-style:normal}.app.ui-v2 .store-donut-panel .donut-single{align-items:baseline;gap:10px;font-size:13px;display:flex}@media (width<=1599px){.app.ui-v2 .report-three.is-four{flex:none;grid-template-columns:repeat(3,minmax(0,1fr))}.app.ui-v2 .report-three.is-four>.chart-panel{height:calc(460px * var(--fit));grid-column:1/-1}.app.ui-v2 .report-three.is-four>.panel:not(.chart-panel){height:calc(520px * var(--fit))}.app.ui-v2 .report-three.is-four>.panel:nth-child(2){border-left:0}}.customer-picker{flex-direction:column;gap:10px;display:flex}.customer-picker .orders-detail-head{padding:0}.customer-picker-search{align-items:center;gap:8px;display:flex}.customer-picker-search .input{flex:1;min-width:0}.customer-picker-search .btn{height:var(--control-h);flex:none}.customer-picker-list{flex-direction:column;gap:6px;max-height:46vh;display:flex;overflow-y:auto}.customer-pick-row{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);width:100%;color:var(--text);text-align:left;cursor:pointer;align-items:center;gap:10px;padding:10px 12px;display:flex}.customer-pick-row:hover{background:var(--surface-2);border-color:var(--border-strong)}.customer-pick-row>span:first-child{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.customer-pick-row>span:first-child strong{font-size:13px;font-weight:600}.customer-pick-row>span:first-child .muted{font-size:12px}.customer-pick-row .tag{flex:none}.customer-pick-row .nav-icon{color:var(--muted);flex:none}.customer-picker>.hint{margin:0}.pos-customer-row{position:relative}.pos-side{overflow:visible}.customer-picker.is-popover{z-index:40;width:auto;max-height:min(440px,62vh);box-shadow:var(--shadow-md);padding:10px;position:absolute;top:calc(100% + 6px);left:0;right:0}.customer-picker.is-popover .customer-picker-list{max-height:300px}.customer-picker-scrim{z-index:39;position:fixed;inset:0}.customer-pick-row.is-walk-in{background:var(--surface-2)}.purchase-docs{flex-direction:column;gap:12px;min-width:0;display:flex}.purchase-toolbar{flex-wrap:wrap}.purchase-toolbar .input[type=date]{width:auto;min-width:140px}.purchase-toolbar .search{flex:180px;min-width:160px}.purchase-form,.purchase-detail{flex-direction:column;gap:12px;padding:16px;display:flex}.purchase-form .panel-head,.purchase-detail .panel-head{align-items:flex-start}.purchase-form .panel-head h2,.purchase-detail .panel-head h2{margin:0;font-size:15px}.purchase-form .panel-head p,.purchase-detail .panel-head p{color:var(--muted);margin:4px 0 0;font-size:12px}.purchase-form-head{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 12px;display:grid}.purchase-form-head label,.purchase-void label{color:var(--muted);flex-direction:column;gap:4px;font-size:12px;display:flex}.purchase-form-head .purchase-note{grid-column:span 2}.purchase-add{align-items:center;gap:8px;display:flex}.purchase-add .search{flex:1}.purchase-results{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);flex-direction:column;max-height:220px;display:flex;overflow-y:auto}.purchase-result{border:0;border-bottom:1px solid var(--border);color:var(--text);text-align:left;cursor:pointer;background:0 0;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:8px 10px;display:grid}.purchase-result:last-child{border-bottom:0}.purchase-result:hover{background:var(--brand-soft)}.purchase-result span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.purchase-result em,.purchase-result small{color:var(--muted);font-size:12px;font-style:normal}.purchase-lines .stock-input{text-align:right;width:96px}.purchase-form-foot{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.purchase-void{border:1px solid var(--danger-border);border-radius:var(--radius-control);background:var(--danger-soft);align-items:flex-end;gap:12px;padding:10px 12px;display:flex}.purchase-void label{flex:1}.purchase-void .page-actions{flex-wrap:nowrap}.purchase-cards{flex-direction:column;gap:8px;display:flex}.purchase-card{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);width:100%;color:var(--text);text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:10px;padding:12px;display:flex}.purchase-card:hover{background:var(--surface-2)}.purchase-card-main{flex-direction:column;gap:3px;min-width:0;display:flex}.purchase-card-main strong{font-size:13px}.purchase-card-main em{color:var(--muted);font-size:12px;font-style:normal}.purchase-card-meta{flex-direction:column;flex:none;align-items:flex-end;gap:2px;display:flex}.purchase-card-meta b{font-variant-numeric:tabular-nums}.purchase-card-meta small{color:var(--muted);font-size:11px}.tag.is-off{background:var(--surface-3);color:var(--muted);border-color:var(--border)}@media (width<=768px){.purchase-form-head{grid-template-columns:1fr}.purchase-form-head .purchase-note{grid-column:auto}.purchase-toolbar .input[type=date]{flex:140px}.purchase-void{flex-direction:column;align-items:stretch}.purchase-void .page-actions{justify-content:flex-end}}.aging-table .aging-toggle{color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:600;display:inline-flex}.aging-table .aging-toggle .nav-icon{width:14px;height:14px;color:var(--muted);transition:transform .15s}.aging-table tr.is-open .aging-toggle .nav-icon{transform:rotate(90deg)}.aging-table tbody tr.is-open>td{background:var(--brand-soft)}.aging-table tfoot th{border-top:1px solid var(--border);background:var(--surface-2);color:var(--text);font-weight:700}.aging-detail-row>td{background:var(--surface-2);padding:0}.aging-orders{padding:10px 12px 12px}.aging-orders-head{color:var(--muted);margin-bottom:6px;font-size:12px}.aging-orders-table{width:100%}.aging-orders-table th,.aging-orders-table td{height:36px;padding:6px 10px;font-size:12px}.aging-orders-table thead th{background:0 0}.aging-cards{flex-direction:column;gap:8px;display:flex}.aging-card{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);overflow:hidden}.aging-card-head{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:12px;display:flex}.aging-card-head strong{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.aging-card-total{font-variant-numeric:tabular-nums;font-weight:700}.aging-card-head .nav-icon{width:14px;height:14px;color:var(--muted);transition:transform .15s}.aging-card.is-open .aging-card-head .nav-icon{transform:rotate(90deg)}.aging-buckets{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;padding:0 12px 10px;display:grid}.aging-buckets span{background:var(--surface-2);border-radius:var(--radius-control);flex-direction:column;gap:2px;padding:6px 8px;display:flex}.aging-buckets em{color:var(--muted);font-size:11px;font-style:normal}.aging-buckets b{font-variant-numeric:tabular-nums;font-size:13px}.aging-order-row{border-top:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 0;display:flex}.aging-order-row>span{flex-direction:column;gap:2px;min-width:0;display:flex}.aging-order-row>span:last-child{text-align:right;align-items:flex-end}.aging-order-row em{color:var(--muted);font-size:11px;font-style:normal}@media (height<=1150px){.app.ui-v2{--row-h:42px}.app.ui-v2 .bm-wrap tbody td{height:calc(42px * var(--fit))}}@media (width<=768px){.mobile-home>.mobile-feed.dash-feed{gap:8px;margin:0}.dash-feed{gap:8px;padding-bottom:10px}.dash-filters{flex:none;gap:8px;padding:2px 0;display:flex;overflow-x:auto}.dash-chip{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--text);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}.dash-chip .nav-icon{width:16px;height:16px}.dash-chip.is-static{background:var(--surface-2);color:var(--muted);border-color:#0000;font-weight:500}.dash-card{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);flex:none;padding:12px}.dash-summary{flex-direction:column;gap:10px;display:flex}.dash-summary-top{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:10px;padding-top:10px;display:grid}.dash-top-stat{align-items:baseline;gap:6px;min-width:0;display:flex}.dash-top-stat>span{color:var(--muted);font-size:12px}.dash-top-stat>strong{font-variant-numeric:tabular-nums;font-size:16px;line-height:1.2}.dash-top-stat.is-returns{text-align:right;justify-content:flex-end}.dash-top-stat.is-returns>strong{color:var(--text);overflow-wrap:anywhere;text-align:right;font-size:12.5px;font-weight:600;line-height:1.35}.dash-summary-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;display:grid}.dash-summary-main.is-single{grid-template-columns:minmax(0,1fr)}.dash-main-stat{flex-direction:column;gap:2px;min-width:0;display:flex}.dash-main-stat>span{min-height:var(--control-h);color:var(--muted);align-items:center;font-size:12px;display:flex}.dash-main-stat>strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:clamp(18px,5.4vw,25px);line-height:1.2}.dash-main-stat>strong.is-turnover{color:var(--brand)}.dash-main-stat>strong.is-profit{color:var(--success)}.dash-stat-label{align-items:center;gap:4px;display:inline-flex}.dash-eye{width:var(--control-h);height:var(--control-h);color:var(--muted);background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.dash-eye .nav-icon{width:16px;height:16px}.dash-hint{color:var(--muted);margin:0;font-size:11px}.dash-chart-card{padding:10px 10px 8px}.dash-metrics{gap:6px;margin-bottom:4px;display:flex}.dash-metric{border:1px solid var(--border);background:var(--surface);height:30px;color:var(--muted);border-radius:999px;flex:none;padding:0 12px;font-size:12px;font-weight:600}.dash-metric.is-active{border-color:var(--brand);background:var(--brand);color:var(--on-brand)}.dash-chart{position:relative}.dash-chart svg{width:100%;height:auto;display:block;overflow:visible}.dash-chart-unit,.dash-chart-axis{fill:var(--muted);font-size:9px}.dash-chart-grid{stroke:var(--border);stroke-width:1px}.dash-chart-zero{stroke:var(--border-strong);stroke-width:1px}.dash-chart-bar{cursor:pointer}.dash-chart-bar.is-selected{opacity:.72}.dash-chart-bar.is-grown{opacity:1}.dash-chart-legend{flex-wrap:wrap;gap:4px 10px;margin-top:4px;display:flex}.dash-chart-legend-item{color:var(--muted);align-items:center;gap:4px;font-size:11px;display:inline-flex}.dash-chart-legend-item i{border-radius:50%;width:8px;height:8px;display:inline-block}.dash-chart-readout{border-top:1px solid var(--border);justify-content:space-between;align-items:baseline;gap:8px;min-height:20px;padding:2px 2px 0;display:flex}.dash-chart-readout-label{color:var(--muted);font-size:11px}.dash-chart-readout strong{color:var(--text);font-variant-numeric:tabular-nums;text-align:right;font-size:13px}.dash-chart-readout-hint{color:var(--muted);font-size:11px}.dash-empty{color:var(--muted);text-align:center;margin:0;padding:24px 0;font-size:13px}.dash-pending{flex-direction:column;gap:6px;display:flex}.dash-pending>h3{margin:0;font-size:13px;font-weight:700}.dash-pending-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.dash-pending-grid.is-single{grid-template-columns:1fr}.dash-pending-card{border-radius:var(--radius-card);background:var(--surface-2);min-height:76px;color:var(--text);text-align:left;border:0;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;display:flex;position:relative}.dash-pending-card>span{color:var(--muted);font-size:12px}.dash-pending-card>strong{font-variant-numeric:tabular-nums;font-size:20px;line-height:1.2}.dash-pending-card>em{color:var(--muted);font-size:11px;font-style:normal}.dash-pending-card .nav-icon{width:16px;height:16px;color:var(--muted);position:absolute;top:50%;right:10px;transform:translateY(-50%)}.dash-pending-card.is-static{cursor:default}.dash-best{flex-direction:column;gap:8px;display:flex}.dash-best-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.dash-best-head h3{margin:0;font-size:14px;font-weight:700}.dash-count{width:auto;height:var(--control-h);padding:0 8px;font-size:12px}.dash-sort{gap:6px;display:flex}.dash-sort button{border:1px solid var(--border);background:var(--surface);height:30px;color:var(--muted);border-radius:999px;flex:none;padding:0 12px;font-size:12px;font-weight:600}.dash-sort button.is-active{border-color:var(--brand);background:var(--brand);color:var(--on-brand)}.dash-products{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.dash-product{border-top:1px solid var(--border);align-items:center;gap:10px;padding:8px 0;display:flex}.dash-product:first-child{border-top:0}.dash-product-body{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.dash-product-name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.dash-product-meta{color:var(--muted);font-size:11px}.dash-product-profit{color:var(--success);font-size:11px}.dash-product-revenue{color:var(--text);font-variant-numeric:tabular-nums;text-align:right;flex:none;font-size:13px}.sheet-option-list{flex-direction:column;gap:6px;display:flex}.sheet-option{height:var(--control-h-page);border-radius:var(--radius-control);background:var(--surface-2);color:var(--text);text-align:left;border:0;padding:0 12px;font-size:14px}.sheet-option.is-active{background:var(--brand-soft);color:var(--brand);font-weight:700}.sheet-custom-range{border-top:1px solid var(--border);flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;display:flex}.dash-loading{text-align:center;padding:32px 0}.dash-no-permission{color:var(--muted);text-align:center;padding:32px 12px}}
