:root{--bg:#f4f7fb;--panel:#fff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--primary:#2563eb;--primary-dark:#1d4ed8;--green:#16a34a;--orange:#f59e0b;--red:#dc2626;--purple:#7c3aed;--slate:#475569;--sidebar:#0b1220}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:linear-gradient(180deg,#0b1220,#111827);color:#cbd5e1;padding:18px 14px;overflow:auto;z-index:40}.brand{display:flex;align-items:center;gap:11px;padding:7px 9px 18px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-mark{width:42px;height:42px;border-radius:11px;background:var(--primary);color:white;display:grid;place-items:center;font-weight:900}.brand-title{font-weight:900;color:white;font-size:15px}.brand-sub{font-size:11px;color:#94a3b8;margin-top:2px}.sidebar-close{display:none;margin-left:auto;border:0;background:transparent;color:white;font-size:28px}.nav-title{margin:17px 10px 7px;text-transform:uppercase;font-size:10px;letter-spacing:.1em;color:#64748b}.nav-link{display:flex;justify-content:space-between;align-items:center;padding:10px 11px;border-radius:10px;margin-bottom:4px;font-weight:700;font-size:14px}.nav-link:hover{background:rgba(255,255,255,.06);color:white}.nav-link.active{background:linear-gradient(90deg,var(--primary),#1e40af);color:white;box-shadow:0 9px 24px rgba(37,99,235,.22)}.nav-left{display:flex;gap:10px;align-items:center}.nav-icon{width:18px;text-align:center}.sidebar-footer{margin-top:24px;border-top:1px solid rgba(255,255,255,.08);padding:14px 10px;display:grid;gap:4px}.sidebar-footer strong{color:#dbeafe;font-size:12px}.sidebar-footer small{color:#94a3b8}.main{margin-left:260px;min-width:0}.topbar{height:72px;position:sticky;top:0;z-index:30;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 26px}.topbar-left{display:flex;align-items:center;gap:12px}.topbar h1{font-size:19px;margin:0}.menu-button{display:none;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.topbar-actions{display:flex;align-items:center;gap:12px}.sync-chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:5px 7px 5px 10px;background:#fff;font-size:12px;font-weight:800}.sync-chip button{border:0;border-radius:999px;padding:7px 10px;background:#eaf1ff;color:var(--primary);font-weight:800}.sync-chip button:disabled{opacity:.45}.sync-status.online{color:#15803d}.sync-status.offline{color:#b91c1c}.user-chip{display:flex;align-items:center;gap:8px}.user-chip span:last-child{display:grid}.user-chip small{color:var(--muted);text-transform:capitalize}.avatar{width:36px;height:36px;border-radius:50%;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-weight:900}.logout-btn{border:1px solid var(--line);background:white;border-radius:10px;padding:9px 12px;font-weight:800}.content{padding:26px 28px}.footer-note{text-align:center;color:#94a3b8;font-size:12px;margin:28px 0 5px}.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:35}.sidebar-overlay.show{display:block}
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 28px rgba(15,23,42,.045)}.page-heading,.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.page-heading h2,.page-title{margin:0;font-size:26px;letter-spacing:-.03em}.page-subtitle{display:none!important}.heading-actions,.header-actions,.form-actions,.icon-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.role-chip{display:inline-flex;border-radius:999px;background:#e0e7ff;color:#3730a3;padding:7px 11px;font-size:12px;font-weight:900}.btn,.quick-link,.mini-link,.mini-button{border:0;border-radius:10px;padding:10px 14px;background:var(--primary);color:white;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.btn:hover{background:var(--primary-dark)}.btn-secondary{background:#fff;color:#334155;border:1px solid var(--line)}.btn-success{background:var(--green)}.btn-success:hover{background:#15803d}.btn-danger{background:var(--red)}.btn-danger-outline{background:#fff;color:var(--red);border:1px solid #fecaca}.btn-full{width:100%}.text-link,.mini-link{background:transparent;color:var(--primary);padding:0}.status-box,.error-box{padding:12px 14px;border-radius:12px;margin-bottom:16px}.status-box{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.error-box{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.error-box ul{margin:0;padding-left:18px}
.welcome-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.welcome-row h2{margin:0;font-size:26px}.welcome-row p{margin:5px 0 0;color:var(--muted)}.dashboard-top{display:grid;gap:14px;margin-bottom:18px}.dashboard-top.six{grid-template-columns:repeat(6,minmax(0,1fr))}.dashboard-top.four{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;display:grid;gap:10px;position:relative;overflow:hidden}.summary-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--primary)}.summary-card span{font-size:12px;color:var(--muted);font-weight:800}.summary-card strong{font-size:22px;line-height:1.15;word-break:break-word}.tone-green:before{background:var(--green)}.tone-orange:before{background:var(--orange)}.tone-red:before{background:var(--red)}.tone-purple:before{background:var(--purple)}.tone-slate:before{background:var(--slate)}.dashboard-middle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.dashboard-widget{padding:18px;min-width:0}.widget-head,.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.widget-head h3,.table-toolbar h3,.section-heading h3,.settings-section h3,.info-card h3,.void-card h3{margin:0;font-size:17px}.widget-head a{color:var(--primary);font-size:13px;font-weight:800}.compact-list{display:grid;gap:9px}.compact-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f7}.compact-row:last-child{border-bottom:0}.compact-row div:first-child{display:grid}.compact-row small,.expense-row small{color:var(--muted)}.stock-mini{text-align:right}.stock-mini{display:grid}.stock-chart-wrap{display:flex;align-items:center;gap:20px}.donut{width:128px;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--green) 0 var(--in),var(--orange) var(--in) var(--low-end),var(--red) var(--low-end) 100%);display:grid;place-items:center;position:relative;flex:0 0 auto}.donut:after{content:"";position:absolute;inset:24px;border-radius:50%;background:white}.donut span{position:relative;z-index:1;font-size:22px;font-weight:900}.legend{display:grid;gap:10px;flex:1}.legend div{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:7px;font-size:13px}.legend i{width:10px;height:10px;border-radius:50%}.legend .green{background:var(--green)}.legend .orange{background:var(--orange)}.legend .red{background:var(--red)}.legend .blue{background:var(--primary)}.expense-row{display:grid;grid-template-columns:1fr auto 42px;gap:8px;padding:9px 0;border-bottom:1px solid #eef2f7;align-items:center}.expense-row:last-child{border-bottom:0}.expense-row em{text-align:right;color:var(--muted);font-style:normal}.section-heading{margin:20px 0 12px}.quick-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.quick-actions-grid a{background:white;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;align-items:center;gap:12px;min-height:76px}.quick-actions-grid a:hover{border-color:#93c5fd;box-shadow:0 12px 24px rgba(37,99,235,.08)}.quick-actions-grid span{font-size:22px}.dashboard-recent{margin-top:18px}.empty-state,.empty-cell{text-align:center;color:var(--muted);padding:18px}
.filter-card{padding:14px;margin-bottom:16px}.filter-grid{display:grid;gap:10px;align-items:center}.products-filter{grid-template-columns:minmax(220px,1fr) 200px 160px auto}.stock-filter{grid-template-columns:1fr 200px auto}.expense-filter{grid-template-columns:220px minmax(340px,1fr) auto}.sales-filter{grid-template-columns:minmax(220px,1fr) 190px minmax(340px,1fr) auto}.users-filter{grid-template-columns:1fr 170px 170px auto}.date-range{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}.form-card,.settings-section,.info-card,.void-card{padding:20px}.form-grid{display:grid;gap:14px}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.form-group{display:grid;gap:7px;margin-bottom:14px}.form-group label,label{font-size:13px;font-weight:800}.form-group input,.form-group select,.form-group textarea,input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:white;outline:none}.form-group input:focus,.form-group select:focus,.form-group textarea:focus,input:focus,select:focus,textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.inline-check{display:flex;align-items:center;gap:8px;margin-top:8px}.inline-check input{width:auto}.table-card{overflow:hidden}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th,.data-table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.data-table th{background:#f8fafc;color:#334155;font-size:12px;font-weight:800;text-transform:none;white-space:nowrap}.data-table td{font-size:13px}.data-table td small{display:block;color:var(--muted);margin-top:3px}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#fbfdff}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}.table-footer nav{max-width:60%;overflow:auto}.thumb{width:42px;height:42px;border-radius:9px;background:#eff6ff;display:grid;place-items:center;overflow:hidden;color:var(--primary);font-weight:900}.thumb img,.product-tile-image img{width:100%;height:100%;object-fit:cover}.icon-actions form{margin:0}.icon-actions a,.icon-actions button,.icon-link{width:34px;height:34px;border-radius:8px;border:1px solid var(--line);background:white;display:grid;place-items:center;cursor:pointer}.danger-icon{color:var(--red)}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;white-space:nowrap}.status-active,.status-in-stock{background:#dcfce7;color:#166534}.status-inactive{background:#e2e8f0;color:#475569}.status-warning,.status-low-stock{background:#ffedd5;color:#9a3412}.status-danger,.status-out-of-stock{background:#fee2e2;color:#991b1b}.void-row{opacity:.72}.product-table td:nth-child(5),.product-table td:nth-child(6){min-width:150px}
.pos-status{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;padding:12px 14px;margin-bottom:14px}.pos-status>div{display:flex;align-items:center;gap:10px}.pos-status span{color:#475569;font-size:13px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:16px;align-items:start}.pos-products,.current-sale{padding:16px}.current-sale{position:sticky;top:88px}.pos-toolbar{display:grid;grid-template-columns:1fr 190px;gap:10px;margin-bottom:12px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;max-height:690px;overflow:auto;padding:2px}.product-tile{border:1px solid var(--line);border-radius:13px;background:white;padding:11px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;cursor:pointer;min-height:170px}.product-tile:hover,.product-tile.selected{border-color:#93c5fd;background:#f8fbff;box-shadow:0 10px 22px rgba(37,99,235,.08)}.product-tile-image{width:100%;height:72px;border-radius:9px;background:#f1f5f9;display:grid;place-items:center;overflow:hidden;font-size:24px;color:var(--primary);font-weight:900}.product-tile small,.tile-stock{font-size:11px;color:var(--muted)}.product-tile em{font-style:normal;color:var(--green);font-size:12px;font-weight:900}.current-sale-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.current-sale-head h3{margin:0}.selected-product{border:1px dashed #bfdbfe;background:#f8fbff;border-radius:11px;padding:12px;display:grid;gap:3px;margin-bottom:12px}.selected-product span{color:var(--muted);font-size:12px}.sale-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pos-item-buttons{display:flex;gap:9px;margin:2px 0 14px}.cart-list{display:grid;gap:8px;max-height:250px;overflow:auto}.cart-row{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px}.cart-row>div{display:grid}.cart-row small{color:var(--muted)}.cart-row>div:last-child{display:flex;align-items:center;gap:8px}.cart-row button{width:27px;height:27px;border:0;border-radius:7px;background:#fee2e2;color:#991b1b}.checkout{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.checkout-total{display:flex;justify-content:space-between;align-items:center;font-size:18px;margin:10px 0}.checkout .btn{margin-top:8px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(1px,1px,1px,1px)!important}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.info-card dl,.settings-dl{display:grid;grid-template-columns:150px 1fr;gap:11px;margin:0}.info-card dt,.settings-dl dt{color:var(--muted);font-weight:700}.info-card dd,.settings-dl dd{margin:0}.void-card{border-color:#fecaca}.settings-stack{display:grid;gap:16px}.toggle-list{display:grid;gap:10px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:12px;padding:13px;position:relative}.toggle-row span{display:grid;gap:3px}.toggle-row small{color:var(--muted);font-weight:500}.toggle-row input{position:absolute;opacity:0}.toggle-row i{width:44px;height:24px;border-radius:999px;background:#cbd5e1;position:relative;flex:0 0 auto}.toggle-row i:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:white;top:3px;left:3px;transition:.2s}.toggle-row input:checked+i{background:var(--primary)}.toggle-row input:checked+i:after{left:23px}.save-settings{justify-self:start}.settings-bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.permission-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.permission-columns div{border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;gap:5px}.permission-columns span{color:var(--muted);font-size:12px}
.grid{display:grid;gap:16px}.grid-4,.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{padding:18px}.card-label{font-size:12px;color:var(--muted);font-weight:800}.card-value{font-size:24px;font-weight:900;margin-top:8px}.card-hint,.muted-small{font-size:12px;color:var(--muted);margin-top:4px}.report-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-card{padding:20px;min-height:180px}.report-two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-form{display:grid;grid-template-columns:repeat(3,1fr) auto;gap:10px;align-items:end}.daily-filter-form{display:grid;grid-template-columns:240px auto;gap:10px;align-items:end}.login-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#0f172a,#1e3a8a 55%,#2563eb)}.login-card{width:min(420px,100%);background:white;border-radius:20px;padding:32px;box-shadow:0 30px 70px rgba(0,0,0,.25)}.logo-badge{width:54px;height:54px;border-radius:15px;background:var(--primary);color:white;display:grid;place-items:center;font-weight:900;font-size:20px}.login-card h1{margin:14px 0 4px}.login-card p{color:var(--muted);margin:0 0 20px}.demo-box{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:14px;font-size:12px}.badge{display:inline-flex;border-radius:999px;background:#e0e7ff;color:#3730a3;padding:5px 8px;font-size:11px;font-weight:800}.placeholder-icon{font-size:42px}.quick-actions{display:flex;gap:10px}.field-error{color:#b91c1c;font-size:12px}.pagination-wrap{margin-top:14px}
@media(max-width:1280px){.dashboard-top.six{grid-template-columns:repeat(3,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1080px){.dashboard-middle{grid-template-columns:1fr 1fr}.dashboard-middle>.dashboard-widget:last-child{grid-column:1/-1}.pos-layout{grid-template-columns:1fr}.current-sale{position:static}.dashboard-top.four,.grid-4,.stat-grid{grid-template-columns:repeat(2,1fr)}.settings-bottom{grid-template-columns:1fr}.permission-columns{grid-template-columns:1fr 1fr 1fr}.products-filter,.sales-filter,.users-filter,.expense-filter{grid-template-columns:1fr 1fr}.products-filter button,.sales-filter button,.users-filter button,.expense-filter button{width:100%}}
@media(max-width:800px){.sidebar{transform:translateX(-105%);transition:.2s}.sidebar.open{transform:translateX(0)}.sidebar-close{display:block}.main{margin-left:0}.menu-button{display:block}.topbar{padding:0 14px}.topbar-actions{gap:7px}.user-chip span:last-child,.logout-btn{display:none}.content{padding:18px}.dashboard-middle{grid-template-columns:1fr}.dashboard-middle>.dashboard-widget:last-child{grid-column:auto}.quick-actions-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.two-col,.detail-grid,.report-two-col{grid-template-columns:1fr}.permission-columns{grid-template-columns:1fr}.page-heading,.page-header,.welcome-row{align-items:flex-start;flex-direction:column}.page-heading .heading-actions{width:100%}.pos-status{align-items:flex-start;flex-direction:column}.pos-status>div:last-child{width:100%;justify-content:space-between}.table-footer{align-items:flex-start;flex-direction:column;gap:10px}.filter-grid,.products-filter,.stock-filter,.expense-filter,.sales-filter,.users-filter,.report-filter-form,.daily-filter-form{grid-template-columns:1fr}.date-range{grid-template-columns:1fr}.date-range span{text-align:center}.topbar h1{font-size:16px}.sync-chip{font-size:11px}.stock-chart-wrap{align-items:flex-start;flex-direction:column}.donut{align-self:center}}
@media(max-width:560px){.dashboard-top.six,.dashboard-top.four,.grid-4,.stat-grid{grid-template-columns:1fr}.quick-actions-grid{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.pos-toolbar{grid-template-columns:1fr}.sale-controls{grid-template-columns:1fr}.sync-chip #pendingSyncBadge{display:none}.content{padding:14px}.summary-card strong{font-size:20px}.page-heading h2,.page-title,.welcome-row h2{font-size:22px}}
.pending-panel{margin-bottom:14px;padding:0;overflow:hidden}.pending-panel summary{cursor:pointer;padding:13px 15px;font-weight:850;color:#334155;background:#fff}.pending-sales-list{display:grid;gap:9px;padding:0 14px 14px}.pending-sale-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);border-radius:11px;padding:11px;background:#fff}.pending-sale-row>div{display:grid;gap:3px}.pending-sale-row>div:last-child{display:flex;align-items:center;gap:10px}.pending-sale-row small{color:var(--muted)}.pending-sale-row em{color:#b91c1c;font-size:12px;font-style:normal;max-width:620px}
@media(max-width:700px){.pending-sale-row{align-items:flex-start;flex-direction:column}.pending-sale-row>div:last-child{width:100%;justify-content:space-between}}

/* Theme setting: keep the same information architecture while changing contrast only. */
body.theme-dark{--bg:#0f172a;--panel:#111827;--text:#e5e7eb;--muted:#94a3b8;--line:#273449;background:var(--bg);color:var(--text)}
body.theme-dark .topbar,body.theme-dark .card,body.theme-dark .summary-card,body.theme-dark .quick-actions-grid a,body.theme-dark .filter-card,body.theme-dark .form-group input,body.theme-dark .form-group select,body.theme-dark .form-group textarea,body.theme-dark input,body.theme-dark select,body.theme-dark textarea,body.theme-dark .sync-chip,body.theme-dark .logout-btn,body.theme-dark .btn-secondary,body.theme-dark .icon-actions a,body.theme-dark .icon-actions button,body.theme-dark .icon-link,body.theme-dark .product-tile,body.theme-dark .pending-panel summary,body.theme-dark .pending-sale-row{background:#111827;color:#e5e7eb}
body.theme-dark .data-table th{background:#172033;color:#cbd5e1}
body.theme-dark .data-table td,body.theme-dark .compact-row,body.theme-dark .expense-row{border-color:#273449}
body.theme-dark .data-table tr:hover td,body.theme-dark .product-tile:hover,body.theme-dark .product-tile.selected,body.theme-dark .selected-product{background:#172033}
body.theme-dark .donut:after{background:#111827}
body.theme-dark .toggle-row,body.theme-dark .permission-columns div,body.theme-dark .cart-row{border-color:#273449}
body.theme-dark .menu-button{background:#172033;color:#e5e7eb;border-color:#273449}
body.theme-dark .footer-note{color:#64748b}

/* v0.8.1 workflow and hotfix styles */
.pos-products-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;flex-wrap:wrap}
.progressive-sale-panel{border:1px solid var(--line);border-radius:13px;padding:13px;margin-bottom:14px;background:#fbfdff}
.progressive-sale-panel[hidden],.manual-outside-panel[hidden],#saleDetailFields[hidden],#sourceGroup[hidden]{display:none!important}
.line-preview{border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;padding:11px 12px;font-weight:850;color:#1e3a8a;margin:2px 0 12px}
.manual-outside-panel{border:1px solid #fed7aa;background:#fffaf5;border-radius:13px;padding:14px;margin:0 0 14px}
.checkout-breakdown{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.checkout-breakdown span{color:var(--muted);font-size:13px}
.cart-row-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.qty-stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.qty-stepper button{width:28px;height:28px;border:0;border-radius:0;background:#f1f5f9;color:#0f172a;font-weight:900}
.qty-stepper span{min-width:30px;text-align:center;font-weight:850;font-size:12px}
.cart-remove{background:#fee2e2!important;color:#991b1b!important}
.category-section{padding:18px;margin-bottom:18px}
.category-move-card{padding:18px;margin-top:18px}
.product-selection-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px;max-height:360px;overflow:auto;padding:2px}
.product-select-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;padding:11px;background:#fff;cursor:pointer}
.product-select-row:hover{border-color:#93c5fd;background:#f8fbff}
.product-select-row input{width:auto}
.product-select-row span{display:grid;gap:2px}
.product-select-row small{color:var(--muted)}
.category-move-controls{grid-template-columns:minmax(260px,1fr) auto;align-items:end}
.category-move-controls .form-group{margin:0}
.report-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}
.report-overview-grid .report-card{min-height:210px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.report-overview-grid .report-card p{margin:0;color:var(--muted);line-height:1.5}
.report-overview-grid .report-card strong{margin-top:auto;color:#334155}
.daily-summary-page{display:grid;gap:18px}
.daily-summary-page .page-heading,.daily-summary-page .filter-card,.daily-summary-page .daily-summary-stats,.daily-summary-page .daily-summary-sections{margin:0}
.daily-summary-filter{padding:16px}
.daily-summary-page .stat-card{min-width:0}
.daily-summary-sections{gap:18px}
.daily-summary-sections .table-card{min-width:0}
body.theme-dark .progressive-sale-panel,body.theme-dark .product-select-row{background:#111827}
body.theme-dark .manual-outside-panel{background:#172033;border-color:#7c2d12}
body.theme-dark .line-preview{background:#172554;border-color:#1d4ed8;color:#dbeafe}
body.theme-dark .report-overview-grid .report-card strong{color:#e2e8f0}
@media(max-width:900px){.product-selection-list{grid-template-columns:1fr}.category-move-controls{grid-template-columns:1fr}.report-overview-grid{grid-template-columns:1fr 1fr}.cart-row{align-items:flex-start;flex-direction:column}.cart-row-actions{width:100%;justify-content:space-between}}
@media(max-width:620px){.report-overview-grid{grid-template-columns:1fr}.pos-products-head{align-items:stretch}.pos-products-head .btn{width:100%}.manual-outside-panel .sale-controls{grid-template-columns:1fr}.daily-summary-page{gap:14px}}
.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}
@media(max-width:620px){.report-summary-grid{grid-template-columns:1fr}}

/* v0.9 business tools: reports, import/export and backups */
.report-menu-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.report-menu-grid .report-card{min-height:185px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.report-menu-grid .report-card p{margin:0;color:var(--muted);line-height:1.45;font-size:13px}
.pnl-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:stretch}
.pnl-metrics{display:grid;gap:12px}
.pnl-chart-card{padding:20px;min-height:480px}.pnl-chart-card h3{margin:0 0 18px}
.bar-chart{height:390px;display:grid;grid-template-columns:repeat(5,minmax(80px,1fr));gap:18px;align-items:end;border-bottom:1px solid var(--line);padding:18px 10px 0;overflow-x:auto}
.bar-column{height:100%;display:grid;grid-template-rows:auto 1fr auto;align-items:end;gap:8px;text-align:center;min-width:80px}
.bar-value{font-size:11px;font-weight:800;color:var(--muted);white-space:nowrap}.bar-track{height:100%;display:flex;align-items:flex-end;justify-content:center}.bar-fill{width:min(64px,70%);min-height:4px;border-radius:9px 9px 0 0;background:var(--primary)}
.bar-blue{background:#2563eb}.bar-cyan{background:#0ea5e9}.bar-slate{background:#64748b}.bar-red{background:#ef4444}.bar-green{background:#10b981}.bar-label{font-size:12px;font-weight:800;min-height:34px}
.tone-cyan:before{background:#0ea5e9}.dashboard-top.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-range-filter{grid-template-columns:repeat(3,minmax(160px,1fr)) auto}.compact-filter{grid-template-columns:minmax(220px,360px) auto;justify-content:start}
.expense-report-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px}.expense-report-layout>.card:first-child{padding:18px}.expense-report-layout h3{margin:0 0 14px}.category-breakdown{display:grid;gap:3px}.category-breakdown>div{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.category-breakdown>div:last-child{border-bottom:0}
.mini-progress{width:150px;max-width:100%;height:8px;border-radius:999px;background:#e7edf5;overflow:hidden}.mini-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#0ea5e9)}
.negative-value{color:#b91c1c;font-weight:800}
.import-guide{padding:18px;margin-bottom:16px}.import-guide h3{margin:0 0 14px}.import-rule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.import-rule-grid>div{border:1px solid var(--line);border-radius:12px;padding:13px;display:grid;gap:5px}.import-rule-grid span{font-size:12px;color:var(--muted)}.import-upload-form{padding:20px}.import-actions{justify-content:flex-end;margin-top:16px}.import-actions form{margin:0}
.backup-section{margin-top:20px}.section-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.section-heading-row h3{margin:0}.section-heading-row p{margin:5px 0 0}
body.theme-dark .progressive-sale-panel,body.theme-dark .import-rule-grid>div{background:#111827}
@media(max-width:1180px){.report-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.import-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pnl-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:900px){.pnl-layout,.expense-report-layout{grid-template-columns:1fr}.pnl-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bar-chart{height:340px}.report-range-filter{grid-template-columns:1fr 1fr}.report-range-filter button{width:100%}.dashboard-top.three{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.report-menu-grid,.import-rule-grid,.pnl-metrics,.dashboard-top.three{grid-template-columns:1fr}.report-range-filter,.compact-filter{grid-template-columns:1fr}.bar-chart{grid-template-columns:repeat(5,100px)}.section-heading-row{flex-direction:column}.section-heading-row form,.section-heading-row .btn{width:100%}}
@media print{.sidebar,.topbar,.sidebar-overlay,.footer-note,.heading-actions,.filter-card,.btn,.quick-link{display:none!important}.main{margin:0!important}.content{padding:0!important}.card,.summary-card{box-shadow:none!important}.page-heading{margin-bottom:12px}.pnl-layout{grid-template-columns:230px 1fr}.data-table{min-width:0;font-size:10px}.data-table th,.data-table td{padding:7px}}

/* v0.9.1 POS, configurable units and invoice refinement */
.connection-chip{display:flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:9px 12px;background:#fff;font-size:12px;font-weight:900}
.pos-status-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-bottom:14px}
.pos-connection-card,.pos-sync-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:11px;min-width:0}.pos-connection-card div{display:grid;gap:2px}.pos-connection-card small{color:var(--muted)}.pos-sync-card{justify-content:flex-end}.connection-dot{width:11px;height:11px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 0 5px rgba(22,163,74,.11)}.connection-dot.online{background:var(--green)}.connection-dot.offline{background:var(--red);box-shadow:0 0 0 5px rgba(220,38,38,.11)}
.line-preview{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px}.line-preview strong{text-align:right}.field-alert{color:#b91c1c!important;font-weight:750}.btn:disabled{cursor:not-allowed;opacity:.55}
.product-form-section{border-bottom:1px solid var(--line);padding:0 0 20px;margin:0 0 20px}.product-form-section:last-of-type{border-bottom:0;margin-bottom:0}.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}.image-preview-box{display:flex;align-items:center;gap:12px;margin-top:8px;border:1px dashed var(--line);border-radius:12px;padding:10px}.image-preview-box img{width:76px;height:76px;object-fit:cover;border-radius:10px}.btn-small{padding:7px 10px;font-size:12px}
.unit-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.unit-panel{border:1px solid var(--line);border-radius:14px;padding:15px;min-width:0}.unit-panel h4{margin:0 0 12px}.unit-add-form{display:grid;grid-template-columns:1fr 1fr 100px auto;gap:8px;margin-bottom:14px}.unit-add-form input,.unit-edit-form input{min-width:0}.unit-list{display:grid;gap:9px}.unit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:9px}.unit-edit-form{display:grid;grid-template-columns:1fr 1fr 90px 36px;gap:7px;align-items:center}.unit-row-actions{display:flex;align-items:center;gap:6px}.unit-row-actions form{margin:0}
.sale-complete-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #bbf7d0;background:#ecfdf5;color:#166534;border-radius:15px;padding:16px 18px;margin-bottom:18px}.sale-complete-banner>div:first-child{display:grid;gap:4px}.sale-items-card .table-toolbar{padding:18px 18px 0}.sale-items-card .table-scroll{padding-top:4px}
body.theme-dark .connection-chip,body.theme-dark .pos-connection-card,body.theme-dark .pos-sync-card,body.theme-dark .unit-panel,body.theme-dark .image-preview-box{background:#111827;color:#e5e7eb}.theme-dark .sale-complete-banner{background:#052e16;border-color:#166534;color:#bbf7d0}
@media(max-width:1100px){.unit-settings-grid{grid-template-columns:1fr}.unit-add-form{grid-template-columns:1fr 1fr}.three-col{grid-template-columns:1fr 1fr}.line-preview{grid-template-columns:1fr auto}.line-preview strong{grid-column:1/-1;text-align:left}}
@media(max-width:760px){.pos-status-grid{grid-template-columns:1fr}.pos-sync-card{justify-content:space-between}.unit-add-form,.unit-edit-form,.three-col{grid-template-columns:1fr}.unit-row{grid-template-columns:1fr}.unit-row-actions{justify-content:flex-end}.sale-complete-banner{align-items:stretch;flex-direction:column}.sale-complete-banner .heading-actions{width:100%}.sale-complete-banner .btn{flex:1}.line-preview{grid-template-columns:1fr}.topbar-actions .connection-chip{display:none}}

/* v0.9.2 smart POS logic and simplified product flow */
[hidden]{display:none!important}
.pos-layout>*{min-width:0}.product-tile strong{max-width:100%;overflow-wrap:anywhere}.product-tile:disabled{cursor:not-allowed}.product-tile.out-of-stock{opacity:.58;background:#f8fafc;box-shadow:none}.product-tile.out-of-stock:hover{border-color:var(--line);box-shadow:none}.product-tile.out-of-stock em{color:var(--red)}
.auto-selling-type,.stock-unavailable-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:11px;padding:11px 12px;margin-bottom:12px}.auto-selling-type{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a}.auto-selling-type strong{font-size:13px}.auto-selling-type span,.stock-unavailable-notice span{font-size:12px}.stock-unavailable-notice{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}.sale-discount-field{grid-column:1/-1}.outside-helper{margin:-5px 0 14px}.checkout-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);margin:8px 0 3px}.checkout-meta small:last-child{text-align:right}.form-group small{color:var(--muted);line-height:1.35}.cart-row>div:first-child{min-width:0}.cart-row strong,.cart-row small{overflow-wrap:anywhere}
.product-flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 18px}.product-flow-steps span{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:11px;padding:10px;background:#f8fafc;color:var(--muted);font-size:12px;font-weight:850}.product-flow-steps b{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e2e8f0;color:#475569}.product-flow-steps span.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.product-flow-steps span.active b{background:var(--primary);color:#fff}.product-flow-steps span.complete{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.product-flow-steps span.complete b{background:var(--green);color:#fff}
.product-flow-card{border:1px solid var(--line);border-radius:15px;padding:18px;margin-bottom:16px;background:#fff}.product-flow-card.active{border-color:#bfdbfe}.product-flow-card.complete{border-color:#bbf7d0}.product-flow-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.product-flow-heading h3{margin:3px 0 4px;font-size:18px}.product-flow-heading p,.setup-block-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.step-kicker{color:var(--primary);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.step-state,.setup-chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:900;white-space:nowrap}.product-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-image-field{grid-column:1/-1;margin-bottom:0}.product-next-hint{border:1px dashed #bfdbfe;border-radius:10px;padding:10px 12px;background:#f8fbff;color:#475569;font-size:12px;margin-top:12px}
.selling-mode-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.selling-mode-card{position:relative;display:grid;align-content:start;gap:6px;border:2px solid var(--line);border-radius:14px;padding:15px;cursor:pointer;background:#fff;min-height:140px;transition:border-color .15s,box-shadow .15s,transform .15s}.selling-mode-card:hover{border-color:#93c5fd;transform:translateY(-1px)}.selling-mode-card.selected{border-color:var(--primary);background:#f8fbff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.selling-mode-card input{position:absolute;opacity:0;pointer-events:none}.selling-mode-card strong{font-size:14px}.selling-mode-card small{color:var(--muted);line-height:1.4}.mode-icon{width:40px;height:40px;border-radius:11px;background:#eaf1ff;color:var(--primary);display:grid;place-items:center;font-size:13px;font-weight:950}
.setup-block{border:1px solid var(--line);border-radius:13px;padding:15px;margin-bottom:14px;background:#fbfdff}.setup-block-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.setup-block-heading h4{margin:0 0 3px;font-size:15px}.single-unit-field{grid-column:1/-1;max-width:520px}.product-more-settings{border-top:1px solid var(--line);margin-top:17px;padding-top:14px}.product-more-settings summary{cursor:pointer;color:#334155;font-size:13px;font-weight:900;list-style-position:inside}.product-more-settings summary span{color:var(--muted);font-size:11px;font-weight:600;margin-left:5px}.more-settings-grid{padding-top:15px}.more-settings-notes{grid-column:1/-1}.product-form-actions{position:static;margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.08)}
body.theme-dark .auto-selling-type{background:#172554;border-color:#1d4ed8;color:#dbeafe}body.theme-dark .stock-unavailable-notice{background:#450a0a;border-color:#991b1b;color:#fecaca}body.theme-dark .product-flow-card,body.theme-dark .selling-mode-card,body.theme-dark .setup-block,body.theme-dark .product-form-actions{background:#111827;color:#e5e7eb}body.theme-dark .selling-mode-card.selected,body.theme-dark .product-next-hint{background:#172033}body.theme-dark .product-flow-steps span{background:#111827}body.theme-dark .product-more-settings summary{color:#e2e8f0}body.theme-dark .product-tile.out-of-stock{background:#111827}
@media(max-width:900px){.selling-mode-cards{grid-template-columns:1fr}.selling-mode-card{min-height:0;grid-template-columns:auto 1fr;align-items:center}.selling-mode-card .mode-icon{grid-row:1/3}.selling-mode-card small{grid-column:2}.product-flow-card{padding:15px}}
@media(max-width:760px){.product-basic-grid{grid-template-columns:1fr}.product-image-field,.single-unit-field,.more-settings-notes{grid-column:auto}.product-flow-heading{flex-direction:column;gap:8px}.product-flow-steps span{font-size:0}.product-flow-steps span b{font-size:12px}.checkout-meta{align-items:flex-start;flex-direction:column}.checkout-meta small:last-child{text-align:left}.product-form-actions{position:static}.auto-selling-type,.stock-unavailable-notice{align-items:flex-start;flex-direction:column}}
@media(max-width:430px){.product-grid{grid-template-columns:1fr}.pos-products,.current-sale{padding:12px}.pos-item-buttons{flex-direction:column}.pos-item-buttons .btn{width:100%}.current-sale-head{align-items:stretch;flex-direction:column}.current-sale-head .btn{width:100%}.cart-row-actions{align-items:flex-end!important;flex-direction:column}.product-flow-card{padding:13px}}

/* v0.9.3 returns, carton opening, payments, restore and report polish */
.dashboard-recent .table-toolbar{padding:18px 18px 0;margin-bottom:10px}.dashboard-recent .table-toolbar h3,.dashboard-recent .table-toolbar a{line-height:1.3}
.progressive-sale-panel .line-preview,.manual-outside-panel .line-preview{grid-template-columns:minmax(0,1fr);align-items:start;gap:5px}.progressive-sale-panel .line-preview strong,.manual-outside-panel .line-preview strong{text-align:left;font-size:15px}.checkout-breakdown strong,.checkout-total strong{min-width:0;text-align:right;overflow-wrap:anywhere}.carton-open-note{color:#1d4ed8!important;font-weight:850}
.selling-mode-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-five-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.report-five-stats .card,.report-clean-stat{padding:18px;min-width:0}.report-five-stats .card-value{font-size:clamp(17px,1.7vw,23px);overflow-wrap:anywhere}.report-five-stats .items-sold-value{font-size:15px;line-height:1.35}.low-stock-stats{margin-bottom:18px}
.download-menu{position:relative}.download-menu summary{list-style:none}.download-menu summary::-webkit-details-marker{display:none}.download-menu>div{position:absolute;right:0;top:calc(100% + 7px);z-index:25;min-width:170px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 16px 35px rgba(15,23,42,.16);display:grid}.download-menu>div a{padding:9px 10px;border-radius:8px;font-size:13px;font-weight:800;color:#334155}.download-menu>div a:hover{background:#eff6ff;color:var(--primary)}
.payment-methods-section,.product-units-section{margin-top:20px}.payment-method-add{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:10px;align-items:end;margin-bottom:14px}.payment-method-add .form-group{margin:0}.payment-method-list{display:grid;gap:9px}.payment-method-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;border-top:1px solid var(--line);padding-top:10px}.payment-method-edit{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:8px}.payment-method-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.payment-method-actions form{margin:0}.payment-method-actions .danger-icon{border:0;background:transparent;font-weight:800;cursor:pointer}.payment-method-actions .mini-link{white-space:nowrap}
.backup-restore-form{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(220px,1fr) minmax(210px,1fr) auto;align-items:end;gap:14px;border:1px solid #fed7aa;background:#fffaf5;border-radius:13px;padding:15px;margin:0 0 16px}.backup-restore-form>div:first-child{display:grid;gap:4px;align-self:center}.backup-restore-form>div:first-child span{font-size:12px;color:var(--muted);line-height:1.4}.backup-restore-form .form-group{margin:0}.restore-confirm{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.4}.restore-confirm input{width:auto;margin-top:2px}.backup-section .icon-actions{gap:14px}.backup-section .icon-actions form{margin:0}.backup-section .icon-actions .mini-link,.backup-section .icon-actions .danger-icon{width:auto;height:auto;padding:7px 10px;border-radius:8px}.backup-section .data-table td:last-child{min-width:170px}
.snapshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.snapshot-grid>div{border:1px solid var(--line);border-radius:11px;padding:12px;display:grid;gap:5px;min-width:0}.snapshot-grid span{color:var(--muted);font-size:11px;font-weight:800}.snapshot-grid strong{overflow-wrap:anywhere;font-size:13px}
.sale-actions-card{padding:20px;border-color:#fed7aa}.sale-actions-card>p{margin:7px 0 14px;color:var(--muted);font-size:13px}.return-items-card,.return-history-card{padding:20px;margin-top:16px}.return-item-list{display:grid;gap:10px}.return-item-row{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:16px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px}.return-item-row>div:first-child{display:grid;gap:4px}.return-item-row small{color:var(--muted)}.return-item-row .form-group{margin:0}.return-form-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin-top:14px}.return-form-footer .form-group{margin:0}.return-history-list{display:grid;gap:10px}.return-history-list article{border:1px solid var(--line);border-radius:12px;padding:13px}.return-history-list article>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.return-history-list article span,.return-history-list article small{color:var(--muted);font-size:12px}.return-history-list article p{margin:8px 0;font-size:13px}
body.theme-dark .download-menu>div,body.theme-dark .backup-restore-form{background:#111827;color:#e5e7eb}body.theme-dark .download-menu>div a{color:#e2e8f0}body.theme-dark .snapshot-grid>div,body.theme-dark .payment-method-row,body.theme-dark .return-item-row,body.theme-dark .return-history-list article{border-color:#273449}
@media(max-width:1180px){.report-five-stats{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(190px,1fr);overflow-x:auto;padding-bottom:5px}.backup-restore-form{grid-template-columns:1fr 1fr}.backup-restore-form .btn{width:100%}}
@media(max-width:760px){.selling-mode-cards,.payment-method-add,.payment-method-row,.backup-restore-form,.return-item-row,.return-form-footer{grid-template-columns:1fr}.payment-method-actions{justify-content:flex-start}.snapshot-grid{grid-template-columns:1fr 1fr}.return-history-list article>div{align-items:flex-start;flex-direction:column}.download-menu{width:100%}.download-menu summary{width:100%}.download-menu>div{left:0;right:0}.heading-actions .download-menu+.quick-link{width:100%}}
@media(max-width:430px){.snapshot-grid{grid-template-columns:1fr}.report-five-stats{grid-auto-columns:minmax(170px,84vw)}}

/* v0.9.4 guided product management, progressive POS and completion flow */
.duplicate-product-panel{margin-top:14px;border:1px solid #fbbf24;background:#fffbeb;border-radius:13px;padding:14px}.duplicate-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.duplicate-panel-heading>div{display:grid;gap:3px}.duplicate-panel-heading span{font-size:12px;color:#92400e}.duplicate-product-matches{display:grid;gap:8px;margin-bottom:10px}.duplicate-match{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid #fde68a;background:#fff;border-radius:11px;padding:11px}.duplicate-match>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:center}.duplicate-match>div:first-child span{font-size:12px;color:var(--muted)}.duplicate-match>div:first-child small{grid-column:2;grid-row:1/3}.duplicate-match-actions{display:flex;gap:8px;flex-wrap:wrap}.duplicate-match-actions .btn{white-space:nowrap}
.edit-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.edit-choice{border:2px solid var(--line);border-radius:14px;background:#fff;padding:15px;display:grid;grid-template-columns:auto 1fr;gap:4px 10px;text-align:left;cursor:pointer}.edit-choice>span{grid-row:1/3;width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#eff6ff;color:var(--primary);font-weight:900}.edit-choice strong{align-self:end}.edit-choice small{color:var(--muted);line-height:1.35}.edit-choice.active{border-color:var(--primary);background:#f8fbff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.edit-section{border:1px solid var(--line);border-radius:14px;padding:18px;background:#fbfdff}.product-edit-actions{margin-top:16px}.product-edit-actions .text-link{margin-left:auto}
.pos-product-explorer{margin-top:14px;padding:18px}.pos-step-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:15px}.pos-step-heading>span{width:34px;height:34px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900;flex:0 0 auto}.pos-step-heading h2{font-size:20px;margin:0}.pos-step-heading p{font-size:12px;color:var(--muted);margin:3px 0 0}.pos-explorer-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 190px 190px auto;gap:10px;align-items:end;margin-bottom:14px}.pos-explorer-toolbar .form-group{margin:0}.pos-explorer-toolbar>.btn{margin-bottom:0}.pos-paged-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible}.product-tile-wrap{position:relative;min-width:0}.product-tile-wrap .product-tile{width:100%;height:100%}.product-deselect{display:none;position:absolute;left:-7px;top:-7px;z-index:4;width:27px;height:27px;border:2px solid #fff;border-radius:50%;background:var(--red);color:#fff;font-size:18px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(220,38,38,.28)}.product-tile-wrap.selected .product-deselect{display:grid;place-items:center}.product-tile-wrap.selected .product-tile{border-color:var(--primary);background:#f8fbff;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.pos-pagination{display:flex;align-items:center;justify-content:center;gap:14px;border-top:1px solid var(--line);margin-top:15px;padding-top:14px}.pos-pagination strong{font-size:12px;color:var(--muted);text-align:center}.pos-workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:16px;align-items:start;margin-top:16px}.pos-item-config{padding:18px;min-width:0}.pos-workspace .current-sale{padding:18px;min-width:0}.pos-workspace .cart-list{max-height:390px}.pos-workspace .selected-product{position:relative}.progressive-pos .pending-panel{margin-bottom:0}
body.modal-open{overflow:hidden}.sale-success-modal{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.64);display:grid;place-items:center;padding:20px;overflow:auto}.sale-success-dialog{width:min(940px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 30px 90px rgba(15,23,42,.35)}.sale-success-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line);background:#f0fdf4}.sale-success-heading>div{display:flex;align-items:center;gap:12px}.success-check{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-size:22px;font-weight:900}.sale-success-heading h2{margin:0;color:#166534;font-size:21px}.sale-success-heading p{margin:3px 0 0;color:#166534}.sale-success-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:18px;padding:22px}.sale-success-summary,.sale-success-actions{border:1px solid var(--line);border-radius:14px;padding:17px;min-width:0}.sale-success-summary h3,.sale-success-actions h3{margin:0 0 14px}.sale-success-summary dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px;margin:0}.sale-success-summary dt{color:var(--muted);font-weight:750}.sale-success-summary dd{margin:0;font-weight:850;text-align:right;overflow-wrap:anywhere}.success-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.whatsapp-share-box{border-top:1px solid var(--line);margin-top:16px;padding-top:15px}.whatsapp-share-box p{font-size:12px;color:var(--muted);line-height:1.45}.whatsapp-share-box>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.whatsapp-share-box small{display:block;margin-top:7px}
.backup-choice-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.backup-choice-actions form{margin:0}.restore-panel-actions{display:grid;gap:8px}.backup-restore-form[hidden]{display:none!important}
body.theme-dark .duplicate-product-panel{background:#422006;border-color:#92400e}body.theme-dark .duplicate-match,body.theme-dark .edit-choice,body.theme-dark .edit-section,body.theme-dark .sale-success-dialog,body.theme-dark .sale-success-summary,body.theme-dark .sale-success-actions{background:#111827;color:#e5e7eb}body.theme-dark .sale-success-heading{background:#052e16}body.theme-dark .edit-choice.active{background:#172033}
@media(max-width:1180px){.pos-paged-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pos-explorer-toolbar{grid-template-columns:1fr 1fr 1fr}.pos-explorer-toolbar>.btn{grid-column:1/-1}.pos-workspace{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:900px){.pos-paged-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-workspace,.sale-success-grid{grid-template-columns:1fr}.pos-workspace .current-sale{position:static}.edit-choice-grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:760px){.duplicate-match,.edit-choice-grid,.pos-explorer-toolbar{grid-template-columns:1fr}.duplicate-match>div:first-child{grid-template-columns:1fr}.duplicate-match>div:first-child small{grid-column:auto;grid-row:auto;justify-self:start}.duplicate-match-actions .btn{flex:1}.edit-choice-grid{gap:8px}.edit-choice{min-width:0}.product-edit-actions .text-link{width:100%;margin-left:0}.pos-paged-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-success-modal{padding:10px}.sale-success-dialog{max-height:calc(100vh - 20px)}.sale-success-heading{align-items:flex-start;padding:16px}.sale-success-heading h2{font-size:18px}.sale-success-grid{padding:14px}.success-action-buttons{grid-template-columns:1fr}.whatsapp-share-box>div{grid-template-columns:1fr}.whatsapp-share-box .btn{width:100%}.sale-success-summary dl{grid-template-columns:1fr auto}.backup-choice-actions,.backup-choice-actions form,.backup-choice-actions .btn{width:100%}}
@media(max-width:430px){.pos-paged-grid{grid-template-columns:1fr}.pos-pagination{gap:8px}.pos-pagination .btn{padding:8px 10px}.sale-success-summary dl{grid-template-columns:1fr}.sale-success-summary dd{text-align:left}.sale-success-heading>div{align-items:flex-start}}

/* v0.9.5 mobile experience pass */
.mobile-bottom-nav{display:none}.unit-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.unit-panel-heading h4{margin:0}.unit-add-disclosure{position:relative}.unit-add-disclosure>summary{list-style:none}.unit-add-disclosure>summary::-webkit-details-marker,.unit-row>summary::-webkit-details-marker{display:none}.unit-add-disclosure[open]{width:100%;flex-basis:100%}.unit-add-disclosure[open]>summary{margin-left:auto;width:max-content;margin-bottom:10px}.unit-panel-heading:has(.unit-add-disclosure[open]){flex-wrap:wrap}.unit-add-disclosure .unit-add-form{margin:0}.unit-row{display:block;border:1px solid var(--line);border-radius:11px;padding:0;overflow:hidden}.unit-row-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:11px 12px;cursor:pointer;list-style:none;background:#fbfdff}.unit-row-summary>span:first-child{display:grid;gap:2px;min-width:0}.unit-row-summary strong,.unit-row-summary small{overflow-wrap:anywhere}.unit-row-summary small{font-size:11px;color:var(--muted)}.unit-row-summary>b{font-size:12px;color:var(--primary)}.unit-row[open] .unit-row-summary{border-bottom:1px solid var(--line);background:#f8fbff}.unit-row>.unit-edit-form{margin:11px}.unit-row>.unit-row-actions{padding:0 11px 11px}.mobile-cart-dock{display:none}
body.theme-dark .unit-row-summary{background:#111827}body.theme-dark .unit-row[open] .unit-row-summary{background:#172033}body.theme-dark .mobile-bottom-nav{background:rgba(17,24,39,.97);border-color:#273449}body.theme-dark .mobile-bottom-nav a,body.theme-dark .mobile-bottom-nav button{color:#94a3b8}body.theme-dark .mobile-bottom-nav .active{color:#93c5fd;background:#172033}

@media(max-width:800px){
  .mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));left:0;right:0;bottom:0;z-index:45;height:68px;padding:6px max(7px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -10px 28px rgba(15,23,42,.1);backdrop-filter:blur(12px)}
  .mobile-bottom-nav a,.mobile-bottom-nav button{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:3px;border-radius:10px;font-size:16px}.mobile-bottom-nav strong{font-size:10px;line-height:1.1}.mobile-bottom-nav .active{color:var(--primary);background:#eff6ff}.mobile-bottom-nav .mobile-sale-link{color:#fff;background:var(--primary);transform:translateY(-8px);box-shadow:0 8px 18px rgba(37,99,235,.25)}
  .content{padding-bottom:92px}.footer-note{margin-bottom:0}.topbar{height:64px}.menu-button{width:42px;height:42px}.topbar-actions .sync-chip{padding:4px 5px 4px 8px}.topbar-actions .sync-chip button{padding:6px 8px}.avatar{width:40px;height:40px}.table-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
}

@media(max-width:620px){
  .content{padding:14px 12px 92px}.card,.summary-card{border-radius:13px}.page-heading,.page-header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:13px}.page-heading h2,.page-title{font-size:22px}.page-heading>.role-chip{justify-self:start}.heading-actions,.header-actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}.heading-actions>.btn,.heading-actions>.quick-link,.heading-actions>.download-menu{width:auto}.paired-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.paired-actions>.btn,.paired-actions>.quick-link,.paired-actions>.download-menu,.paired-actions>.download-menu>summary{width:100%!important;min-width:0}.paired-actions .btn{padding-inline:9px;text-align:center}.download-menu>div{left:0;right:auto;min-width:100%}
  .welcome-row{flex-direction:row!important;align-items:center!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:13px}.welcome-row h2{font-size:22px;line-height:1.15}.welcome-row p{font-size:13px;line-height:1.35}.welcome-row .role-chip{padding:6px 9px}
  .dashboard-top.six,.dashboard-top.four,.dashboard-top.three,.grid-4,.stat-grid,.report-summary-grid,.report-five-stats,.pnl-metrics{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-columns:auto!important;gap:10px;overflow:visible;padding-bottom:0;margin-bottom:14px}.summary-card,.stat-card,.report-clean-stat,.report-five-stats .card{min-height:92px;padding:13px;gap:6px}.summary-card span,.card-label{font-size:11px;line-height:1.3}.summary-card strong,.card-value,.report-five-stats .card-value{font-size:clamp(16px,4.6vw,20px);line-height:1.16;margin-top:2px;word-break:normal;overflow-wrap:anywhere}.card-hint{font-size:10px;line-height:1.25}
  .section-heading{margin:16px 0 9px}.quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.quick-actions-grid a{min-height:82px;padding:12px;gap:9px}.quick-actions-grid span{font-size:19px}.quick-actions-grid strong{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
  .dashboard-middle{gap:12px}.dashboard-widget{padding:14px}.stock-chart-wrap{display:grid;grid-template-columns:105px minmax(0,1fr);align-items:center;gap:12px}.donut{width:100px}.donut:after{inset:20px}.legend{gap:7px}.legend div{font-size:11px}.compact-row{font-size:12px}.stock-mini{max-width:52%;font-size:11px}
  .report-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.report-menu-grid .report-card{min-height:132px;padding:13px;gap:5px}.report-menu-grid .report-card h3{font-size:15px;line-height:1.18;margin:2px 0}.report-menu-grid .report-card p{font-size:11px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.report-menu-grid .report-icon{width:34px;height:34px;font-size:16px}.report-menu-grid .report-card strong{font-size:11px;margin-top:auto}
  .filter-card{padding:12px;margin-bottom:13px}.filter-grid{gap:8px}.filter-grid>*{min-width:0}.compact-filter{grid-template-columns:minmax(0,1fr) auto!important}.compact-filter .btn{width:auto!important;min-width:92px}.daily-filter-form{grid-template-columns:minmax(0,1fr) auto!important;align-items:end}.daily-filter-form .form-group{margin:0}.daily-filter-form .btn{height:44px;width:auto!important;white-space:nowrap}.report-range-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}.report-range-filter button{grid-column:1/-1}.date-range{gap:6px}.form-group{margin-bottom:10px}.form-group input,.form-group select,.form-group textarea,input,select,textarea{padding:10px 11px;min-height:44px;min-width:0}
  .form-card,.settings-section,.info-card,.void-card{padding:14px}.settings-stack{gap:12px}.settings-bottom{gap:12px}.snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.section-heading-row{flex-direction:row!important;align-items:flex-start}.section-heading-row form,.section-heading-row .btn{width:auto!important}.backup-choice-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.backup-choice-actions form,.backup-choice-actions .btn{width:100%!important}.payment-method-row{gap:9px}.payment-method-actions{gap:7px}.unit-settings-grid{gap:12px}.unit-panel{padding:12px}.unit-panel-heading{margin-bottom:9px}.unit-panel-heading h4{font-size:15px}.unit-panel-heading .btn{padding:8px 10px;font-size:12px}.unit-list{gap:7px}.unit-row>.unit-edit-form{grid-template-columns:1fr 1fr!important}.unit-row>.unit-edit-form input:nth-of-type(3){grid-column:1/-1}.unit-row>.unit-edit-form .icon-link{grid-column:1/-1;width:100%;height:40px}.unit-row-summary{grid-template-columns:minmax(0,1fr) auto auto;padding:10px}.unit-row-actions .status-pill{display:none}.unit-add-disclosure .unit-add-form{grid-template-columns:1fr 1fr!important}.unit-add-disclosure .unit-add-form input:nth-of-type(3),.unit-add-disclosure .unit-add-form .btn{grid-column:1/-1}
  .pnl-layout{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)!important;gap:12px}.pnl-chart-card{min-width:0;overflow:hidden;padding:14px}.bar-chart{width:100%;min-width:0;grid-template-columns:repeat(5,minmax(72px,1fr));gap:10px;height:300px;padding-inline:2px}.bar-value{font-size:9px}.bar-label{font-size:9px}.daily-summary-sections{gap:12px}.daily-summary-sections .table-toolbar{padding:13px 13px 0}.daily-summary-sections .data-table th,.daily-summary-sections .data-table td{padding:11px 12px}
  .table-footer{padding:11px 12px}.product-edit-actions,.form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-edit-actions .btn,.product-edit-actions .text-link,.form-actions .btn,.form-actions .quick-link{width:100%!important;margin:0!important}
}

@media(max-width:380px){.summary-card strong,.card-value{font-size:17px}.quick-actions-grid a{padding:10px}.report-menu-grid .report-card{min-height:126px;padding:11px}.paired-actions .btn{font-size:12px}.topbar{padding-inline:10px}.topbar h1{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

@media(max-width:340px){.paired-actions,.backup-choice-actions{grid-template-columns:1fr!important}.daily-filter-form,.compact-filter{grid-template-columns:1fr!important}.daily-filter-form .btn,.compact-filter .btn{width:100%!important}}

@media(max-width:760px){
  .progressive-pos{padding-bottom:74px}.pos-product-explorer,.pos-item-config,.pos-workspace .current-sale{padding:13px}.pos-step-heading{gap:9px;margin-bottom:11px}.pos-step-heading>span{width:30px;height:30px;font-size:13px}.pos-step-heading h2{font-size:17px}.pos-step-heading p{font-size:11px}.pos-explorer-toolbar{grid-template-columns:1fr 1fr!important;gap:8px}.pos-explorer-toolbar .form-group:first-child{grid-column:1/-1}.pos-explorer-toolbar>.btn{grid-column:1/-1;padding-block:9px}.pos-paged-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.product-tile{min-height:142px;padding:8px;gap:3px}.product-tile-image{height:58px}.product-tile strong{font-size:13px;line-height:1.15}.product-tile small,.tile-stock{font-size:9px}.product-tile em{font-size:10px}.pos-pagination{gap:7px;margin-top:11px;padding-top:10px}.pos-pagination .btn{padding:8px 9px;font-size:11px}.pos-pagination strong{font-size:10px}.pos-workspace{gap:12px;margin-top:12px}.sale-controls{grid-template-columns:1fr 1fr!important;gap:8px}.sale-controls .sale-discount-field{grid-column:1/-1}.pos-item-buttons{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}.pos-item-buttons .btn{width:100%!important;font-size:12px;padding-inline:8px}.current-sale-head{align-items:center!important;flex-direction:row!important}.current-sale-head .btn{width:auto!important;padding:8px 10px;font-size:12px}.cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px!important}.cart-row-actions{width:auto!important;display:grid!important;grid-template-columns:auto auto;justify-items:end;gap:7px!important}.cart-row-actions .qty-stepper{grid-column:1/2}.cart-row-actions>b{grid-column:2/3;grid-row:1;align-self:center;font-size:13px}.cart-row-actions .cart-remove{grid-column:2/3}.checkout{padding-top:11px}.mobile-cart-dock:not([hidden]){position:fixed;left:10px;right:10px;bottom:76px;z-index:44;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px 9px 13px;background:#0f172a;color:#fff;border-radius:14px;box-shadow:0 16px 35px rgba(15,23,42,.3)}.mobile-cart-dock>div{display:grid;gap:1px}.mobile-cart-dock small{color:#cbd5e1}.mobile-cart-dock strong{font-size:15px}.mobile-cart-dock .btn{padding:9px 13px}.route-pos-index .mobile-bottom-nav{transform:translateY(100%)}.route-pos-index .mobile-cart-dock:not([hidden]){bottom:10px}.route-pos-index .content{padding-bottom:84px}.sale-success-grid{gap:10px}.success-action-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}.success-action-buttons .btn{font-size:12px;padding-inline:8px}.whatsapp-share-box>div{grid-template-columns:minmax(0,1fr) auto!important}.whatsapp-share-box .btn{width:auto!important;padding-inline:10px;font-size:12px}
}

@media print{.mobile-bottom-nav,.mobile-cart-dock{display:none!important}}

/* v0.9.6 security, density and mobile polish */
.mobile-account-panel{display:none}.language-switch button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 10px;font-weight:850;color:#334155;cursor:pointer}.readonly-field{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#f8fafc;display:flex;justify-content:space-between;gap:10px;align-items:center}.readonly-field small{color:var(--muted)}.idle-warning-modal{position:fixed;inset:0;z-index:150;background:rgba(15,23,42,.65);display:grid;place-items:center;padding:18px}.idle-warning-modal[hidden]{display:none}.idle-warning-modal>.card{width:min(420px,100%);padding:22px}.idle-warning-modal h3{margin:0 0 8px}.idle-warning-modal p{color:var(--muted)}.danger-zone{border-color:#fecaca}.danger-confirm-form{margin-top:14px;display:grid;gap:10px}.warning-box{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:13px;margin-bottom:13px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.low-stock-stats .report-clean-stat{min-height:0;padding:15px}.report-five-stats .card{min-height:0;padding:15px}.sale-success-summary dl{gap:7px 12px}.sale-success-summary,.sale-success-actions{padding:14px}.sale-success-grid{padding:16px}.success-action-buttons .btn[hidden]{display:none}.setup-shell{max-width:940px;margin:auto}
.archived-setting-list{display:grid;gap:8px}.archived-setting-list>div{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.archived-setting-list form{margin:0}
@media(max-width:800px){.language-switch{display:none}.mobile-account-panel{display:grid;gap:3px;margin:18px 4px 0;padding:14px 10px;border-top:1px solid rgba(255,255,255,.1)}.mobile-account-panel>small{color:#94a3b8}.account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.account-actions form,.account-actions .btn{width:100%}.sidebar{padding-bottom:90px}.sidebar-footer{margin-top:8px}}
@media(max-width:620px){.report-five-stats .card,.low-stock-stats .card{min-height:82px!important;padding:12px!important}.report-five-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.report-five-stats .card:last-child{grid-column:1/-1}.low-stock-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sale-success-dialog{border-radius:14px}.sale-success-heading{padding:12px}.success-check{width:34px;height:34px;font-size:18px}.sale-success-heading h2{font-size:16px}.sale-success-heading p{font-size:12px}.sale-success-grid{padding:10px}.sale-success-summary,.sale-success-actions{padding:12px}.sale-success-summary h3,.sale-success-actions h3{margin-bottom:9px;font-size:16px}.sale-success-summary dl{grid-template-columns:minmax(80px,.7fr) minmax(0,1.3fr)!important;gap:6px 9px;font-size:13px}.sale-success-summary dd{text-align:right!important}.success-action-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}.success-action-buttons .btn{min-height:42px}.receipt-settings{grid-template-columns:1fr 1fr!important}}
@media(max-width:380px){.topbar-actions .connection-chip{display:none}.topbar-actions{margin-left:auto}.topbar h1{max-width:145px}.sale-success-summary dl{font-size:12px}.success-action-buttons{grid-template-columns:1fr 1fr!important}}

/* v0.9.7 safety and layout pass */
.daily-filter-form{display:grid;grid-template-columns:minmax(220px,280px) minmax(240px,1fr);gap:10px;align-items:end}
.daily-filter-form .form-group{margin:0}.daily-filter-form .btn{min-height:44px}
.sales-filter{display:grid;grid-template-columns:minmax(190px,1.15fr) minmax(155px,.75fr) minmax(155px,.75fr) minmax(150px,.7fr) minmax(320px,1.45fr) auto;gap:10px;align-items:center;min-width:0}
.sales-filter>*{min-width:0}.sales-filter .date-range{display:grid;grid-template-columns:minmax(135px,1fr) auto minmax(135px,1fr);min-width:0}
.icon-actions{flex-wrap:nowrap!important;white-space:nowrap}.icon-actions form{margin:0;flex:0 0 auto}.data-table .icon-actions{width:max-content}
.sale-detail-top{align-items:start;margin-bottom:22px}.sale-detail-top>.card{align-self:start;height:auto}.sale-detail-top .info-card dl{grid-template-columns:125px minmax(0,1fr) 115px minmax(0,1fr);column-gap:14px;row-gap:9px}.sale-detail-top .info-card dd{overflow-wrap:anywhere}.sale-items-card,.return-items-card,.return-history-card{margin-top:22px}
.settings-stack{gap:24px}.route-settings-index .settings-section{margin-bottom:24px}.route-settings-index .settings-stack .settings-section{margin-bottom:0}.settings-section>h3{margin:0 0 17px}.settings-section .section-heading-row{margin-bottom:17px}.backup-section{margin-top:26px}.danger-zone{margin-top:28px}.backup-restore-form{margin-top:18px}
.settings-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px;margin-bottom:14px;scrollbar-width:thin}.settings-tabs button{border:1px solid var(--line);background:#fff;color:#475569;border-radius:10px;padding:11px 14px;font-weight:850;white-space:nowrap;cursor:pointer}.settings-tabs button.active{background:var(--primary);border-color:var(--primary);color:#fff}.settings-tabs .danger-tab{color:#b91c1c}.settings-tabs .danger-tab.active{background:#dc2626;border-color:#dc2626;color:#fff}.settings-tab-panel[hidden]{display:none}.settings-tab-panel>.settings-section,.settings-tab-panel>.settings-stack{margin-bottom:20px}.settings-snapshot{margin-top:20px}
@media(max-width:1500px){.sales-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-filter .date-range{grid-column:1/-1}.sales-filter>.btn{grid-column:1/-1}}
@media(max-width:900px){.sale-detail-top .info-card dl{grid-template-columns:115px minmax(0,1fr)}}
@media(max-width:620px){.sales-filter{grid-template-columns:1fr}.sales-filter .date-range,.sales-filter>.btn{grid-column:auto}.sale-detail-top{gap:14px}.sale-detail-top .info-card dl{grid-template-columns:minmax(95px,.7fr) minmax(0,1.3fr);font-size:13px}.sale-detail-top .info-card h3{margin-bottom:12px}.route-settings-index .settings-section{margin-bottom:18px}.settings-stack{gap:18px}}
@media(max-width:430px){.daily-filter-form{grid-template-columns:1fr}.daily-filter-form .btn{width:100%!important}}

/* final security, POS flexibility and account-safe tab pass */
.compact-filter{display:grid;grid-template-columns:minmax(220px,360px) auto;gap:10px;align-items:center;justify-content:start}.compact-filter>*{min-width:0}.compact-filter .btn{margin:0;white-space:nowrap}
.access-denied-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:24px;border-color:#fecaca}.access-denied-icon,.session-identity-icon{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#fee2e2;color:#b91c1c;font-size:25px;font-weight:950}.access-denied-copy{display:grid;gap:6px}.access-denied-copy .status-pill{justify-self:start}.access-denied-copy h2{font-size:21px;line-height:1.25;margin:0}.access-denied-copy p{color:var(--muted);margin:0}
.session-identity-modal{position:fixed;inset:0;z-index:300;background:rgba(15,23,42,.76);display:grid;place-items:center;padding:18px}.session-identity-modal[hidden]{display:none}.session-identity-modal>.card{width:min(560px,100%);padding:24px;display:grid;gap:13px}.session-identity-modal h2{margin:0;font-size:23px}.session-identity-modal p{margin:0;color:var(--muted);line-height:1.55}.session-identity-modal small{color:var(--muted);line-height:1.45}.session-identity-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.session-identity-actions form,.session-identity-actions .btn{width:100%}.session-identity-locked .app-shell,.session-identity-locked .mobile-bottom-nav{pointer-events:none;user-select:none}
.discount-enable-toggle{grid-column:1/-1;display:inline-flex;align-items:center;justify-self:start;gap:8px;color:#334155;font-size:13px;font-weight:850;cursor:pointer}.discount-enable-toggle input{width:18px;height:18px;min-height:0;margin:0}.discount-input-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px}.discount-clear-button{border:1px solid #fecaca;border-radius:10px;background:#fff;color:var(--red);font-size:20px;font-weight:900;cursor:pointer}.cart-line-discount{display:flex;align-items:center;gap:7px;margin-top:5px;font-size:11px;color:var(--muted)}.cart-line-discount button{width:auto!important;height:auto!important;padding:3px 7px!important;border:1px solid var(--line)!important;border-radius:6px!important;background:#fff!important;color:var(--primary)!important;font-size:10px;font-weight:850}.cart-line-discount .cart-discount-remove{border-color:#fecaca!important;color:var(--red)!important}.cart-discount-editor{display:grid;grid-template-columns:minmax(90px,1fr) auto auto;gap:6px;margin-top:7px}.cart-discount-editor input{min-height:36px;padding:7px 8px}.cart-discount-editor button{width:auto!important;height:36px!important;padding:0 9px!important;border-radius:7px!important;background:var(--primary)!important;color:#fff!important;font-size:11px;font-weight:850}.cart-discount-editor button:last-child{background:#fff!important;color:#475569!important;border:1px solid var(--line)!important}.checkout-breakdown{display:grid;gap:7px}.checkout-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.checkout-discount-value{display:flex;align-items:center;gap:7px}.checkout-discount-value button{width:25px;height:25px;border:1px solid #fecaca;border-radius:7px;background:#fff;color:var(--red);font-weight:900;cursor:pointer}
.sale-detail-top{grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:22px}.sale-detail-top .info-card h3{margin-bottom:14px}.sale-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.sale-summary-metrics>div{min-width:0;border:1px solid #e7edf5;border-radius:10px;background:#fbfdff;padding:10px;display:grid;gap:4px}.sale-summary-metrics span{font-size:11px;color:var(--muted);font-weight:800}.sale-summary-metrics strong{font-size:13px;overflow-wrap:anywhere}.sale-summary-metrics .sale-summary-highlight{background:#eff6ff;border-color:#bfdbfe}.sale-summary-metrics .sale-summary-highlight strong{color:#1d4ed8;font-size:15px}.sale-summary-metrics .sale-summary-note{grid-column:1/-1}.sale-actions-card textarea{min-height:88px}.sale-actions-card .form-group{margin-bottom:10px}
.factory-reset-backup{display:grid;gap:7px}.factory-reset-backup .btn{justify-self:start}.factory-reset-challenge{display:grid;gap:6px;border:1px dashed #f59e0b;border-radius:12px;padding:13px;margin-bottom:14px;background:#fffbeb}.factory-reset-challenge span,.factory-reset-challenge small{color:#92400e}.factory-reset-challenge strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:24px;letter-spacing:.16em;color:#7c2d12;overflow-wrap:anywhere}.forgot-password-help{margin-top:16px;border-top:1px solid var(--line);padding-top:13px}.forgot-password-help summary{cursor:pointer;color:var(--primary);font-weight:800;font-size:13px}.forgot-password-help p,.forgot-password-help small{display:block;color:var(--muted);font-size:12px;line-height:1.45}.forgot-password-help code{display:block;border:1px solid var(--line);border-radius:8px;background:#f8fafc;padding:9px;margin:8px 0;font-size:11px;overflow-wrap:anywhere}
body.theme-dark .sale-summary-metrics>div,body.theme-dark .cart-line-discount button,body.theme-dark .discount-clear-button,body.theme-dark .checkout-discount-value button,body.theme-dark .forgot-password-help code{background:#111827;color:#e5e7eb;border-color:#334155}body.theme-dark .sale-summary-metrics .sale-summary-highlight{background:#172554;border-color:#1d4ed8}body.theme-dark .session-identity-modal>.card{background:#111827;color:#e5e7eb}
@media(max-width:1000px){.sale-detail-top{grid-template-columns:1fr}.sale-summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.mobile-account-panel .account-actions .btn{min-height:38px;padding:7px 6px;font-size:11px}.mobile-language-button{letter-spacing:-.02em}.access-denied-card{grid-template-columns:auto minmax(0,1fr)}.access-denied-card>.btn{grid-column:1/-1;width:100%}.sale-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-summary-metrics .sale-summary-note{grid-column:1/-1}}
@media(max-width:620px){.compact-filter{grid-template-columns:minmax(0,1fr) auto!important}.access-denied-card{padding:16px;gap:12px}.access-denied-icon{width:42px;height:42px}.access-denied-copy h2{font-size:18px}.session-identity-actions{grid-template-columns:1fr}.sale-summary-metrics{gap:7px}.sale-summary-metrics>div{padding:9px}.cart-discount-editor{grid-template-columns:1fr 1fr}.cart-discount-editor input{grid-column:1/-1}.cart-line-discount{flex-wrap:wrap}.factory-reset-challenge strong{font-size:20px}.mobile-bottom-nav strong{font-size:9px}}
@media(max-width:360px){.compact-filter{grid-template-columns:1fr!important}.compact-filter .btn{width:100%!important}.sale-summary-metrics{grid-template-columns:1fr}.sale-summary-metrics .sale-summary-note{grid-column:auto}}
.install-app-button{border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;padding:8px 11px;font-weight:850;white-space:nowrap;cursor:pointer}.install-app-button[hidden]{display:none!important}.account-actions>.install-app-button{grid-column:1/-1;width:100%;border-radius:9px}.install-app-topbar{font-size:12px}
@media(max-width:900px){.install-app-topbar{display:none!important}}

/* v0.9.9 hotfix: compact, readable stock breakdown */
.product-stock-column{min-width:185px}
.product-stock-compact{display:grid;gap:4px}
.product-stock-primary{display:flex;align-items:center;gap:5px;white-space:nowrap}
.product-stock-primary span{display:inline-flex;align-items:baseline;gap:3px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:7px;padding:4px 6px;line-height:1}
.product-stock-primary b{font-size:13px}
.product-stock-primary i{font-style:normal;color:var(--muted);font-weight:900}
.product-stock-compact>small{margin-top:0!important;white-space:nowrap;font-size:10px}
body.theme-dark .product-stock-primary span{background:#111827;border-color:#334155}

/* MauzoTrack pagination: replaces unstyled framework SVG controls */
.app-pagination{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:max-content}
.pagination-pages{display:flex;align-items:center;gap:5px}
.pagination-step,.pagination-page,.pagination-ellipsis{min-height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:#334155;font-size:12px;font-weight:800;line-height:1;padding:8px 10px;white-space:nowrap}
.pagination-page{min-width:34px;padding-inline:8px}.pagination-page.active{background:var(--primary);border-color:var(--primary);color:#fff}.pagination-step.disabled{opacity:.45;cursor:not-allowed}.pagination-ellipsis{border-color:transparent;background:transparent;padding-inline:3px}.table-footer>nav{max-width:100%;overflow-x:auto}
body.theme-dark .pagination-step,body.theme-dark .pagination-page{background:#111827;color:#e5e7eb;border-color:#334155}body.theme-dark .pagination-page.active{background:var(--primary);border-color:var(--primary);color:#fff}

/* Daily Summary card polish */
.daily-summary-sections{align-items:start}
.daily-summary-card{align-self:start;width:100%}
.daily-summary-card .table-toolbar{margin:0;padding:16px 18px 13px;border-bottom:1px solid var(--line)}
.daily-summary-card .table-toolbar h3{font-size:16px;line-height:1.3}
.daily-summary-card .table-scroll{padding:0}
.daily-summary-card .empty-cell{padding:20px 16px}
@media(max-width:800px){.app-pagination{justify-content:flex-start}.table-footer>nav{width:100%}.daily-summary-card .table-toolbar{padding:14px 14px 11px}.daily-summary-card .table-toolbar h3{font-size:15px}}

/* Report columns flow independently so a tall card never creates a blank row gap. */
.daily-summary-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.daily-summary-column{display:grid;gap:18px;align-content:start;min-width:0}
.daily-summary-columns .daily-summary-card{min-width:0}
@media(max-width:800px){
  .daily-summary-columns{grid-template-columns:1fr;gap:12px}
  .daily-summary-column{display:contents}
  .daily-summary-column:first-child .daily-summary-card:first-child{order:1}
  .daily-summary-column:nth-child(2) .daily-summary-card:first-child{order:2}
  .daily-summary-column:first-child .daily-summary-card:nth-child(2){order:3}
  .daily-summary-column:nth-child(2) .daily-summary-card:nth-child(2){order:4}
}

/* Touch-friendly report tables retain every column and scroll horizontally. */
.table-card>.table-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}

/* Action color psychology: blue edit, teal view, amber deactivate, red delete/archive. */
.icon-actions [title*="Edit" i]{color:#1d4ed8!important;border-color:#bfdbfe!important;background:#eff6ff!important}
.icon-actions [title*="Download" i]{color:#1d4ed8!important;border-color:#bfdbfe!important;background:#eff6ff!important}
.icon-actions [title*="View" i]{color:#0f766e!important;border-color:#99f6e4!important;background:#f0fdfa!important}
.icon-actions [title*="Deactivate" i]{color:#b45309!important;border-color:#fed7aa!important;background:#fff7ed!important}
.icon-actions [title*="Activate" i],.icon-actions [title*="Reactivate" i],.icon-actions [title*="Restore" i]{color:#15803d!important;border-color:#bbf7d0!important;background:#f0fdf4!important}
.icon-actions [title*="Delete" i],.icon-actions [title*="Archive" i],.icon-actions .danger-icon{color:#b91c1c!important;border-color:#fecaca!important;background:#fef2f2!important}
.icon-actions a:hover,.icon-actions button:hover{filter:saturate(1.15) brightness(.97)}

/* Per-device, three-level readable text control. */
.text-size-button{border:1px solid var(--line);background:#fff;color:#334155;border-radius:999px;min-width:38px;min-height:38px;padding:7px 9px;font-weight:900;cursor:pointer}
.text-size-topbar{display:grid;place-items:center}
html[data-text-size="level-4"] body,html[data-text-size="level-5"] body{line-height:1.55}
html[data-text-size="level-4"] :is(.card,.summary-card,.mobile-record-card,.report-card,.form-group,.table-card),html[data-text-size="level-5"] :is(.card,.summary-card,.mobile-record-card,.report-card,.form-group,.table-card){min-width:0}
html[data-text-size="level-4"] :is(h1,h2,h3,h4,p,small,strong,span,label,a,button,th,td),html[data-text-size="level-5"] :is(h1,h2,h3,h4,p,small,strong,span,label,a,button,th,td){overflow-wrap:anywhere}
html[data-text-size="level-4"] :is(.btn,button,.status-pill),html[data-text-size="level-5"] :is(.btn,button,.status-pill){white-space:normal}
html[data-text-size="level-4"] .table-scroll,html[data-text-size="level-5"] .table-scroll{overflow-x:hidden}
html[data-text-size="level-4"] :is(.data-table,.product-table,.inventory-overview-table),html[data-text-size="level-5"] :is(.data-table,.product-table,.inventory-overview-table){width:100%!important;min-width:0!important;table-layout:fixed!important}
html[data-text-size="level-4"] :is(.data-table,.product-table,.inventory-overview-table) :is(th,td),html[data-text-size="level-5"] :is(.data-table,.product-table,.inventory-overview-table) :is(th,td){min-width:0!important;white-space:normal!important;padding-inline:6px!important}
html[data-text-size="level-4"] :is(.icon-actions,.row-actions-primary,.inventory-actions),html[data-text-size="level-5"] :is(.icon-actions,.row-actions-primary,.inventory-actions){flex-wrap:wrap!important;white-space:normal!important}
body.theme-dark .text-size-button{background:#111827;color:#e5e7eb;border-color:#334155}
@media(max-width:800px){.text-size-topbar{display:none}.account-actions .text-size-button{border-radius:9px;width:100%}}

/* Always-available MauzoTrack installer */
.install-app-topbar{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;min-height:38px}
.install-app-icon{font-size:17px;line-height:1}.install-app-label{white-space:nowrap}
@media(max-width:900px){.install-app-topbar{display:inline-grid!important;width:38px;height:38px;min-height:38px;padding:0;border-radius:50%}.install-app-topbar .install-app-label{display:none}.install-app-topbar .install-app-icon{font-size:20px}}
@media(max-width:420px){.install-app-topbar{width:34px;height:34px;min-height:34px}.topbar-actions{gap:5px}}

/* Hotfix 4: safer forms, compact mobile controls and guided restore workflow. */
.password-field-shell{position:relative;width:100%}.password-field-shell>input{width:100%;padding-right:48px}.password-visibility-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:34px;border:0;border-radius:8px;background:transparent;color:#64748b;display:grid;place-items:center;cursor:pointer}.password-visibility-toggle:hover,.password-visibility-toggle.is-visible{background:#eff6ff;color:#1d4ed8}.caps-lock-warning{display:block;margin-top:5px;color:#b45309;font-weight:800}.caps-lock-warning[hidden]{display:none}.switch-account-btn{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:10px;padding:9px 11px;font-size:12px;font-weight:850}.restore-workflow-heading{display:grid;gap:5px;align-content:start}.restore-workflow-heading strong{font-size:18px}.restore-workflow-heading span{color:var(--muted);font-size:13px;line-height:1.55}.restore-step-list{display:grid;gap:12px}.restore-step{display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;align-items:start;border:1px solid var(--line);background:#fff;border-radius:11px;padding:13px;margin:0}.restore-step>b{width:30px;height:30px;border-radius:50%;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center}.restore-step .form-group{margin:0}.restore-step.warning-box{background:#fff7ed}.restore-step.warning-box p{margin:5px 0 9px;overflow-wrap:anywhere}.restore-confirm{min-height:30px;align-items:center}.restore-submit{width:100%}.backup-restore-form{grid-template-columns:minmax(220px,.7fr) minmax(420px,1.3fr);align-items:start;gap:22px;padding:20px}.backup-restore-form>.restore-step-list{display:grid}.backup-restore-form>.restore-workflow-heading{display:grid}
body.theme-dark .restore-step,body.theme-dark .password-visibility-toggle{background:#111827;color:#e5e7eb;border-color:#334155}
@media(max-width:900px){.backup-restore-form{grid-template-columns:1fr}.switch-account-btn{display:none}}
@media(max-width:800px){.text-size-topbar{display:grid;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border-radius:50%;font-size:12px}.account-actions .text-size-button{border-radius:9px;width:100%}}
@media(max-width:420px){.text-size-topbar{width:32px;height:32px;min-width:32px;min-height:32px}.backup-restore-form{padding:14px}.restore-step{padding:11px;grid-template-columns:30px minmax(0,1fr)}.restore-step>b{width:27px;height:27px}}
@media(max-width:800px){.mobile-account-panel .account-actions>.btn-danger-outline{grid-column:1/-1}}

/* Hotfix 5: account actions stay in the side menu and never crowd the top bar. */
.sidebar-footer{gap:9px}
.sidebar-logout{display:flex;align-items:center;gap:9px;border:1px solid rgba(248,113,113,.42);border-radius:9px;padding:9px 10px;color:#fecaca;background:rgba(127,29,29,.16)}
.sidebar-logout:hover{color:#fff;background:rgba(185,28,28,.3);border-color:#f87171}
.sidebar-logout strong{font-size:13px;color:inherit}
.switch-account-btn.is-loading{pointer-events:none;opacity:.7}

/* Hotfix 6: email ownership and recovery screens. */
.login-help{margin:16px 0 0;text-align:center;font-size:13px}.login-help a{color:var(--primary);font-weight:850;text-decoration:none}.login-help a:hover{text-decoration:underline}.login-intro{color:var(--muted);line-height:1.55;margin:0 0 16px}.email-verification-card{width:min(720px,100%);margin:24px auto;padding:24px;display:block!important}.verification-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:18px;align-items:start}.email-verification-card .brand-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-size:22px}.verification-copy{min-width:0}.email-verification-card h2{margin:0 0 7px}.email-verification-card p{margin:0;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.email-verification-card>.success-box,.email-verification-card>.error-box{margin-top:17px}.email-verification-card>.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.email-verification-card form{margin:0}.local-verification-bypass{border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;padding:15px;margin-top:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.local-verification-bypass strong{display:block;color:#1e3a8a;margin-bottom:4px}.local-verification-bypass p{font-size:13px;color:#475569}.local-verification-bypass .btn{white-space:nowrap}@media(max-width:620px){.email-verification-card{padding:18px;margin:14px auto}.verification-heading{grid-template-columns:40px minmax(0,1fr);gap:12px}.email-verification-card .brand-icon{width:40px;height:40px;font-size:18px}.email-verification-card>.form-actions,.email-verification-card>.form-actions form,.email-verification-card>.form-actions .btn{width:100%}.local-verification-bypass{grid-template-columns:1fr;gap:12px}.local-verification-bypass form,.local-verification-bypass .btn{width:100%}}

/* Hotfix 6.3: stable geometry without Chromium's old/new page snapshots. */
html{scrollbar-gutter:stable;background:var(--bg)}
body,.app-shell,.main{background:var(--bg)}

/* Hotfix 7: quieter desktop chrome and single-field unit management. */
.sidebar-install-app{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:9px;border-radius:9px;background:rgba(37,99,235,.18);border-color:rgba(147,197,253,.38);color:#dbeafe}
.sidebar-install-app:hover{background:rgba(37,99,235,.32);color:#fff}.sidebar-install-app strong{color:inherit}
.simplified-unit-form{grid-template-columns:minmax(0,1fr) auto!important;align-items:end}.simplified-unit-form .form-group{margin:0}.simplified-unit-form .form-group small{display:block;margin-top:5px}
@media(min-width:801px){.topbar-actions .user-chip{display:none}}
@media(max-width:800px){.simplified-unit-form,.unit-row>.simplified-unit-form,.unit-add-disclosure .simplified-unit-form{grid-template-columns:1fr!important}.simplified-unit-form .btn,.simplified-unit-form .icon-link{grid-column:1!important;width:100%;height:40px}.sidebar-install-app{min-height:38px}}

/* Hotfix 8: dense desktop overview, compact tables and calmer summaries. */
@media(min-width:801px){
  .sidebar{padding:15px 14px}.brand{padding:5px 8px 15px}.brand-mark{width:41px;height:41px}.brand-title{font-size:16px}.nav-title{margin:11px 10px 5px}.nav-link{padding:9px 10px;margin-bottom:2px;line-height:1.25;font-size:14.5px}.sidebar-footer{margin-top:15px;padding:12px 9px;gap:8px}.sidebar-footer .sidebar-install-app,.sidebar-footer .sidebar-logout{padding:9px 10px}
  .route-stock-index .page-heading{display:flex;align-items:center;flex-direction:row;flex-wrap:nowrap;gap:12px}.route-stock-index .page-heading h2{flex:0 0 auto;white-space:nowrap;font-size:24px}.route-stock-index .page-heading .heading-actions{min-width:0;justify-content:flex-end;flex-wrap:nowrap;gap:8px}.route-stock-index .page-heading .heading-actions .btn{padding:10px 12px;font-size:13px!important;white-space:nowrap}.route-stock-index .page-heading .download-menu{flex:0 0 auto}.route-stock-index .page-heading .download-menu summary{white-space:nowrap}
  .product-table{min-width:820px;table-layout:fixed}.product-table th,.product-table td{padding:10px 7px;font-size:12.5px;line-height:1.3;overflow-wrap:anywhere}.product-table th:first-child,.product-table td:first-child{padding-left:14px!important}.product-table th:last-child,.product-table td:last-child{padding-right:12px!important}.product-table th{font-size:12px}.product-table .product-image-cell,.product-table .product-name-cell,.product-table .product-category-cell,.product-table .product-price-cell,.product-table .product-stock-column,.product-table .product-status-cell,.product-table .product-actions-cell{width:auto;min-width:0!important}.product-table .product-name-cell>strong{font-size:13.5px}.product-table .product-name-cell>small{font-size:11px}.product-table .product-stock-compact,.product-table .product-stock-primary{justify-items:start}.product-table .product-status-cell,.product-table .product-actions-cell{text-align:center}.product-table .thumb{width:38px;height:38px}.product-table .status-pill{font-size:11.5px;padding:5px 8px}.product-table col.product-col-image{width:6%}.product-table col.product-col-name{width:18%}.product-table col.product-col-category{width:12%}.product-table col.product-col-price{width:14%}.product-table col.product-col-stock{width:12%}.product-table col.product-col-status{width:10%}.product-table col.product-col-actions{width:14%}.role-cashier .product-table col.product-col-image{width:7%}.role-cashier .product-table col.product-col-name{width:23%}.role-cashier .product-table col.product-col-category{width:15%}.role-cashier .product-table col.product-col-price{width:16%}.role-cashier .product-table col.product-col-stock{width:14%}.role-cashier .product-table col.product-col-status{width:11%}.role-cashier .product-table col.product-col-actions{width:14%}.product-price-lines{display:grid;gap:5px}.product-price-lines span{display:grid;gap:1px}.product-price-lines small{font-size:10.5px!important;margin:0!important;line-height:1.1}.product-price-lines b{font-size:11.5px;line-height:1.2;white-space:normal}.product-stock-compact{gap:3px}.product-stock-primary{display:grid;align-items:start;gap:3px;white-space:normal}.product-stock-primary span{border:0;background:transparent;border-radius:0;padding:0;font-size:11.5px;line-height:1.2}.product-stock-primary b{font-size:12.5px}.product-stock-compact>small{font-size:10.5px;white-space:normal}.product-action-stack{display:grid;justify-items:stretch;gap:4px;width:78px;margin-inline:auto}.product-action-stack form{margin:0}.product-action-stack a,.product-action-stack button{width:100%;min-height:23px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1d4ed8;padding:3px 6px;font-size:10.5px;font-weight:850;line-height:1.15;text-align:center;cursor:pointer}.product-action-stack a{display:grid;place-items:center}.product-action-stack .product-action-danger{border-color:#fecaca;background:#fff1f2;color:#b91c1c}
  html[data-text-size="level-4"] .product-table td{font-size:12.5px}html[data-text-size="level-5"] .product-table td{font-size:13px}
}

@media(min-width:1000px){
  .route-dashboard .dashboard-top.six{grid-template-columns:repeat(6,minmax(0,1fr))}.route-dashboard .dashboard-top.six .summary-card{min-height:90px;padding:13px 11px;gap:8px}.route-dashboard .dashboard-top.six .summary-card span{font-size:clamp(10px,.88vw,12px);line-height:1.2;white-space:nowrap}.route-dashboard .dashboard-top.six .summary-card strong{font-size:clamp(14px,1.22vw,18px);line-height:1.1;letter-spacing:-.025em;white-space:nowrap;word-break:normal;font-variant-numeric:tabular-nums}
}

@media(min-width:801px){.route-dashboard .compact-row{padding:9px 0;line-height:1.3}.route-dashboard .compact-row>div:first-child strong{font-size:14px}.route-dashboard .compact-row small{font-size:11px;line-height:1.3}.route-dashboard .stock-mini b{font-size:13px}.route-dashboard .expense-row{font-size:13px;line-height:1.3}.route-dashboard .expense-row strong,.route-dashboard .expense-row em{font-size:12px;white-space:nowrap}}

@media(min-width:621px){.report-menu-grid .report-card h3{max-width:100%;margin:3px 0;font-size:clamp(13px,1.15vw,16px);line-height:1.2;white-space:nowrap;letter-spacing:-.015em}}

@media(min-width:761px){
  .sale-success-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100vh - 48px);border-radius:17px}.sale-success-heading{padding:14px 16px}.success-check{width:38px;height:38px;font-size:19px}.sale-success-heading h2{font-size:18px}.sale-success-heading p{font-size:12px}.sale-success-grid{grid-template-columns:minmax(0,1.05fr) minmax(270px,.95fr);gap:12px;padding:14px}.sale-success-summary,.sale-success-actions{padding:13px}.sale-success-summary h3,.sale-success-actions h3{margin-bottom:10px;font-size:16px}.sale-success-summary dl{grid-template-columns:90px minmax(0,1fr);gap:7px 10px;font-size:12px}.success-action-buttons{gap:7px}.success-action-buttons .btn{padding:9px 8px;font-size:12px}
}

/* The shell and content swap without opacity snapshots or movement. */

@media(min-width:801px){
  .inventory-table{min-width:880px;table-layout:fixed}.inventory-table th,.inventory-table td{padding:12px 9px;overflow-wrap:anywhere}.inventory-table col.inventory-col-product{width:18%}.inventory-table col.inventory-col-category{width:12%}.inventory-table col.inventory-col-conversion{width:14%}.inventory-table col.inventory-col-stock{width:15%}.inventory-table col.inventory-col-total{width:13%}.inventory-table col.inventory-col-sold{width:11%}.inventory-table col.inventory-col-status{width:8%}.inventory-table col.inventory-col-actions{width:9%}.inventory-unit-stack{display:grid;gap:5px;line-height:1.25}.inventory-unit-stack span{display:block}.inventory-unit-stack b{font-size:13px}.inventory-sold-stack span{white-space:normal}
}

@media(min-width:761px){
  .sale-success-dialog{width:min(600px,calc(100% - 36px));min-height:min(500px,calc(100vh - 48px));max-height:calc(100vh - 48px);display:flex;flex-direction:column;border-radius:18px}.sale-success-heading{padding:18px 20px}.success-check{width:42px;height:42px;font-size:22px}.sale-success-heading h2{font-size:20px}.sale-success-heading p{font-size:13px}.sale-success-grid{flex:1;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:14px;padding:18px}.sale-success-summary,.sale-success-actions{padding:17px}.sale-success-summary h3,.sale-success-actions h3{font-size:18px;margin-bottom:13px}.sale-success-summary dl{grid-template-columns:110px minmax(0,1fr);gap:10px 14px;font-size:14px}.sale-success-actions{align-self:stretch}.success-action-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.success-action-buttons .btn{min-height:42px;padding:10px;font-size:13px}
}

.product-action-stack{display:grid;justify-items:stretch;gap:4px;width:78px;margin-inline:auto}.product-action-stack form{margin:0}.product-action-stack a,.product-action-stack button{width:100%;min-height:23px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1d4ed8;padding:3px 6px;font-size:10.5px;font-weight:850;line-height:1.15;text-align:center;cursor:pointer}.product-action-stack a{display:grid;place-items:center}.product-action-stack .product-action-danger{border-color:#fecaca;background:#fff1f2;color:#b91c1c}.inventory-unit-stack{display:grid;gap:5px;line-height:1.25}.inventory-unit-stack span{display:block}.inventory-unit-stack b{font-size:13px}


/* Hotfix 8.6: restore the preferred Products and Stock overview table vibe. */
.product-action-icons{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.product-action-icons form{margin:0}.product-action-icons .icon-link{width:30px;height:30px;font-size:13px}.product-mode-label{display:inline-block;font-weight:750;line-height:1.25}.inventory-sold-inline,.inventory-quantity-cell,.inventory-total-cell{white-space:nowrap}.inventory-actions{flex-wrap:nowrap!important;white-space:nowrap}.inventory-actions .mini-link{min-width:34px}
.product-stock-primary{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;white-space:nowrap}.product-stock-primary span{display:inline-flex;align-items:center;gap:3px;border:1px solid #dbe4f0;background:#f8fafc;border-radius:6px;padding:3px 6px;white-space:nowrap}.product-stock-primary i{font-style:normal;color:var(--muted);font-weight:900}.product-stock-compact>small{white-space:nowrap}
@media(min-width:801px){
  .product-table{min-width:1010px;table-layout:fixed}.product-table th,.product-table td{padding:10px 7px;font-size:12px;line-height:1.25}.product-table col.product-col-image{width:5%}.product-table col.product-col-name{width:16%}.product-table col.product-col-category{width:10%}.product-table col.product-col-mode{width:10%}.product-table col.product-col-price{width:13%}.product-table col.product-col-stock{width:14%}.product-table col.product-col-status{width:8%}.product-table col.product-col-actions{width:11%}.product-table .product-mode-cell{font-size:11.5px}.product-table .product-price-lines{gap:4px}.product-table .product-price-lines span{display:block}.product-table .product-price-lines small,.product-table .product-price-lines b{white-space:nowrap}.product-table .product-stock-primary{gap:3px}.product-table .product-stock-primary span{padding:3px 5px;font-size:11px}.product-table .product-stock-compact>small{font-size:10px}.role-cashier .product-table col.product-col-name{width:19%}.role-cashier .product-table col.product-col-category{width:12%}.role-cashier .product-table col.product-col-mode{width:12%}.role-cashier .product-table col.product-col-price{width:16%}.role-cashier .product-table col.product-col-stock{width:16%}
  .inventory-overview-table{min-width:1080px;table-layout:fixed}.inventory-overview-table th,.inventory-overview-table td{padding:11px 8px;font-size:12px;line-height:1.25}.inventory-overview-table col.inventory-col-product{width:15%}.inventory-overview-table col.inventory-col-category{width:10%}.inventory-overview-table col.inventory-col-conversion{width:14%}.inventory-overview-table col.inventory-col-wholesale{width:11%}.inventory-overview-table col.inventory-col-single{width:10%}.inventory-overview-table col.inventory-col-total{width:12%}.inventory-overview-table col.inventory-col-sold{width:12%}.inventory-overview-table col.inventory-col-status{width:8%}.inventory-overview-table col.inventory-col-actions{width:8%}.inventory-overview-table .inventory-product-cell strong{font-size:12.5px}.inventory-overview-table .inventory-conversion-cell{font-size:11.5px}.inventory-overview-table .status-pill{padding:5px 7px;font-size:10.5px}
}
@media(max-width:800px){.product-table{min-width:980px}.inventory-overview-table{min-width:1080px}.product-action-icons{justify-content:flex-start}}


/* Hotfix 8.7: compact product stock stack, natural selling-mode text, stacked sold units and login spacing. */
.product-mode-label{font-weight:400}
.product-stock-primary{display:flex;align-items:center;gap:5px;white-space:normal}
.product-stock-badges{display:grid;gap:3px;justify-items:start}
.product-stock-badges span{display:inline-flex;align-items:center;gap:3px;width:max-content;max-width:100%;border:1px solid #dbe4f0;background:#f8fafc;border-radius:6px;padding:2px 5px;line-height:1.1;white-space:nowrap}
.product-stock-badges b{font-size:12px}
.product-stock-plus{display:inline-grid;place-items:center;align-self:center;font-style:normal;color:var(--muted);font-size:14px;font-weight:900;line-height:1}
.product-stock-primary.has-one-unit .product-stock-plus{display:none}
.product-stock-compact>small{display:block;margin-top:3px!important;line-height:1.15}
.inventory-sold-inline{white-space:normal}
.inventory-sold-stack{display:grid;gap:3px;line-height:1.12;white-space:nowrap}
.inventory-sold-stack span{display:block;white-space:nowrap}
.login-help{margin-top:28px}
body.theme-dark .product-stock-badges span{background:#111827;border-color:#334155}
@media(min-width:801px){
  .product-table .product-mode-cell{font-weight:400}
  .product-table .product-stock-primary{gap:4px}
  .product-table .product-stock-badges{gap:2px}
  .product-table .product-stock-badges span{padding:2px 5px;font-size:10.75px}
  .product-table .product-stock-badges b{font-size:11.75px}
  .inventory-overview-table col.inventory-col-sold{width:10%}
  .inventory-overview-table col.inventory-col-product{width:16%}
  .inventory-overview-table col.inventory-col-actions{width:9%}
}
@media(max-width:620px){.login-help{margin-top:24px}}

/* Hotfix 8.8: balanced product columns, decorative actions, leaner inventory and login recovery spacing. */
.product-table th.product-mode-cell{font-weight:800}
.product-table td.product-mode-cell{font-weight:400}
.product-action-icons .icon-link{
  border-width:1px;
  box-shadow:0 2px 7px rgba(15,23,42,.07);
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease;
}
.product-action-icons .icon-link:hover{
  transform:translateY(-1px);
  box-shadow:0 5px 12px rgba(15,23,42,.12);
}
.product-action-icons .product-action-edit{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}
.product-action-icons .product-action-edit:hover{background:#dbeafe;border-color:#93c5fd}
.product-action-icons .product-action-status{
  border-color:#ddd6fe;
  background:#f5f3ff;
  color:#6d28d9;
}
.product-action-icons .product-action-status:hover{background:#ede9fe;border-color:#c4b5fd}
.product-action-icons .product-action-archive{
  border-color:#fecaca;
  background:#fff1f2;
  color:#dc2626;
}
.product-action-icons .product-action-archive:hover{background:#ffe4e6;border-color:#fda4af}
.product-action-icons .product-action-restore{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#15803d;
}
.product-action-icons .product-action-restore:hover{background:#dcfce7;border-color:#86efac}
.login-card-v7 form{margin-bottom:20px}
.login-card-v7 .login-help{margin:0;text-align:center}
body.theme-dark .product-action-icons .product-action-edit{background:#172554;border-color:#1e40af;color:#bfdbfe}
body.theme-dark .product-action-icons .product-action-status{background:#2e1065;border-color:#6d28d9;color:#ddd6fe}
body.theme-dark .product-action-icons .product-action-archive{background:#450a0a;border-color:#991b1b;color:#fecaca}
body.theme-dark .product-action-icons .product-action-restore{background:#052e16;border-color:#166534;color:#bbf7d0}

@media(min-width:801px){
  .product-table{width:100%;min-width:980px}
  .product-table col.product-col-image{width:6%}
  .product-table col.product-col-name{width:16%}
  .product-table col.product-col-category{width:11%}
  .product-table col.product-col-mode{width:10%}
  .product-table col.product-col-price{width:13%}
  .product-table col.product-col-stock{width:12%}
  .product-table col.product-col-status{width:9%}
  .product-table col.product-col-actions{width:10%}
  .product-table .product-stock-column,
  .product-table .product-status-cell,
  .product-table .product-actions-cell{vertical-align:middle}
  .role-cashier .product-table col.product-col-image{width:6%}
  .role-cashier .product-table col.product-col-name{width:20%}
  .role-cashier .product-table col.product-col-category{width:13%}
  .role-cashier .product-table col.product-col-mode{width:12%}
  .role-cashier .product-table col.product-col-price{width:17%}
  .role-cashier .product-table col.product-col-stock{width:14%}
  .role-cashier .product-table col.product-col-status{width:8%}
  .role-cashier .product-table col.product-col-actions{width:10%}

  .inventory-overview-table{width:100%;min-width:960px}
  .inventory-overview-table col.inventory-col-product{width:17%}
  .inventory-overview-table col.inventory-col-category{width:12%}
  .inventory-overview-table col.inventory-col-conversion{width:15%}
  .inventory-overview-table col.inventory-col-wholesale{width:12%}
  .inventory-overview-table col.inventory-col-single{width:11%}
  .inventory-overview-table col.inventory-col-sold{width:13%}
  .inventory-overview-table col.inventory-col-status{width:9%}
  .inventory-overview-table col.inventory-col-actions{width:11%}
}
@media(max-width:800px){
  .product-table{min-width:940px}
  .inventory-overview-table{min-width:940px}
}
@media(max-width:620px){
  .login-card-v7 form{margin-bottom:18px}
}


/* Hotfix 8.9: report-style table rhythm and stable content navigation. */
.product-table,
.inventory-overview-table{
  width:100%!important;
  table-layout:auto!important;
}
.product-table col,
.inventory-overview-table col{width:auto!important}
.product-table th,
.product-table td,
.inventory-overview-table th,
.inventory-overview-table td{
  padding:12px 12px!important;
  vertical-align:middle;
}
.product-table th:first-child,
.product-table td:first-child,
.inventory-overview-table th:first-child,
.inventory-overview-table td:first-child{padding-left:16px!important}
.product-table th:last-child,
.product-table td:last-child,
.inventory-overview-table th:last-child,
.inventory-overview-table td:last-child{padding-right:16px!important}

/* Products: content-sized columns with consistent breathing room. */
.product-table{min-width:980px!important}
.product-table .product-image-cell{width:54px;min-width:54px;text-align:center}
.product-table .product-name-cell{min-width:150px}
.product-table .product-category-cell{min-width:112px}
.product-table .product-mode-cell{min-width:105px}
.product-table .product-price-cell{min-width:120px}
.product-table .product-stock-column{min-width:112px}
.product-table .product-status-cell{width:88px;min-width:88px;text-align:center}
.product-table .product-actions-cell{width:112px;min-width:112px;text-align:center}
.product-table .product-action-icons{justify-content:center}
.product-table .product-stock-column{padding-inline:13px!important}
.product-table .product-status-cell{padding-inline:10px!important}
.product-table .product-actions-cell{padding-inline:10px!important}

/* Inventory: compact numeric columns, balanced like the printable report. */
.inventory-overview-table{min-width:920px!important}
.inventory-overview-table .inventory-product-cell{min-width:180px}
.inventory-overview-table td:nth-child(2),
.inventory-overview-table th:nth-child(2){min-width:130px}
.inventory-overview-table .inventory-conversion-cell{min-width:150px}
.inventory-overview-table .inventory-quantity-cell{min-width:104px;white-space:nowrap}
.inventory-overview-table .inventory-sold-cell{width:104px;min-width:104px;text-align:center}
.inventory-overview-table .inventory-status-cell{width:92px;min-width:92px;text-align:center}
.inventory-overview-table .inventory-actions-cell{width:96px;min-width:96px;text-align:center}
.inventory-overview-table .inventory-sold-stack{justify-items:center}
.inventory-overview-table .inventory-actions{justify-content:center}

/* Prevent result cards from collapsing while live filters update. */
[data-live-results][aria-busy="true"]{cursor:progress}

/* Keep the fixed shell still; swap only the content surface atomically. */
.content{view-transition-name:mauzotrack-content}
.sidebar,.topbar,.mobile-bottom-nav{view-transition-name:none}
::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-old(mauzotrack-content),
::view-transition-new(mauzotrack-content){animation-duration:.06s;animation-timing-function:linear}

@media(max-width:800px){
  .product-table{min-width:940px!important}
  .inventory-overview-table{min-width:900px!important}
}
@media(prefers-reduced-motion:reduce){
  ::view-transition-old(mauzotrack-content),
  ::view-transition-new(mauzotrack-content){animation:none}
}

/* Pre-multishop UX pass: calm hierarchy, accessible feedback and compact workflows. */
:where(a,button,input,select,textarea,summary):focus-visible{
  outline:3px solid rgba(37,99,235,.28)!important;
  outline-offset:2px;
}
button:disabled,.btn:disabled{cursor:not-allowed;opacity:.56}
.required-mark{color:#b91c1c;font-size:10px;text-transform:uppercase;letter-spacing:.04em}

.setup-step{margin-bottom:16px}
.setup-step-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}
.setup-step-heading>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#dbeafe;color:#1d4ed8;font-weight:900}
.setup-step-heading h3{margin:0 0 3px}
.setup-step-heading h3 small{font-size:12px;color:var(--muted);font-weight:700}
.setup-step-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.setup-ready-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.setup-ready-list span{padding:11px 12px;border:1px solid #bbf7d0;border-radius:10px;background:#f0fdf4;color:#166534;font-size:12px;font-weight:750}
.setup-only-shell{min-height:100vh;margin:0;background:#f3f7fc;color:var(--text)}
.setup-brandbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1040px)/2));border-bottom:1px solid var(--line);background:rgba(255,255,255,.96)}
.setup-brandbar a{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}
.setup-brandbar a span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--primary);color:#fff;font-weight:900}
.setup-brandbar a strong{font-size:17px}.setup-brandbar>small{color:var(--muted);font-weight:750}
.setup-only-main{width:min(1040px,calc(100% - 32px));margin:0 auto;padding:38px 0 64px}
.setup-wizard-shell{width:100%;max-width:none;margin:0}
.setup-intro{display:flex;justify-content:space-between;gap:20px;margin-bottom:22px}.setup-intro h1{margin:4px 0 6px;font-size:30px}.setup-intro p{margin:0;color:var(--muted)}
.setup-progress{display:grid;grid-template-columns:auto minmax(40px,1fr) auto minmax(40px,1fr) auto;align-items:center;margin:0 0 18px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.setup-progress button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}.setup-progress button:disabled{cursor:default}.setup-progress button b{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e8eef7;color:#64748b}.setup-progress button.active{color:var(--primary)}.setup-progress button.active b{background:var(--primary);color:#fff}.setup-progress button.complete{color:#15803d}.setup-progress button.complete b{background:#dcfce7;color:#15803d}.setup-progress i{height:2px;background:#dbe4ef}.setup-progress button.complete+i{background:#86efac}
.setup-wizard-panel{margin:0;min-height:420px}.setup-wizard-panel[hidden]{display:none!important}.setup-wizard-panel .setup-step-heading h2{margin:0 0 4px}.setup-wizard-panel .setup-step-heading h2 small{color:var(--muted);font-size:13px}
.setup-wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.setup-final-note{margin-top:18px;padding:14px 16px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}.setup-final-note strong{display:block;margin-bottom:4px;color:#1e40af}.setup-final-note p{margin:0;color:#475569;line-height:1.5}
.theme-dark.setup-only-shell{background:#070d18}.theme-dark .setup-brandbar{background:#0b1220;border-color:#243044}.theme-dark .setup-progress,.theme-dark .setup-wizard-panel{background:#0f172a}.theme-dark .setup-final-note{background:#0c1e3a;border-color:#1e3a5f}.theme-dark .setup-final-note strong{color:#93c5fd}.theme-dark .setup-final-note p{color:#cbd5e1}
@media(max-width:700px){.setup-brandbar{height:60px;padding:0 16px}.setup-brandbar>small{display:none}.setup-only-main{width:min(100% - 20px,1040px);padding:22px 0 40px}.setup-intro h1{font-size:25px}.setup-progress{grid-template-columns:auto 1fr auto 1fr auto;padding:10px}.setup-progress button{gap:0}.setup-progress button span{display:none}.setup-wizard-panel{min-height:0;padding:18px}.setup-wizard-panel .form-grid{grid-template-columns:1fr}.setup-ready-list{grid-template-columns:1fr}.setup-wizard-actions{align-items:stretch}.setup-wizard-actions .btn{flex:1;padding-inline:10px}}

.dashboard-secondary-actions{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 20px}
.dashboard-secondary-actions a{font-size:12px;color:#475569;border:1px solid var(--line);border-radius:9px;background:#fff;padding:8px 11px;font-weight:750}
.dashboard-secondary-actions a:hover{color:var(--primary);border-color:#bfdbfe}

.category-tabs{display:inline-flex;gap:4px;padding:4px;margin-bottom:14px;border:1px solid var(--line);border-radius:12px;background:#eaf0f8}
.category-tabs button{border:0;border-radius:8px;background:transparent;color:#475569;padding:9px 14px;font-weight:800;cursor:pointer}
.category-tabs button.active{background:#fff;color:#1d4ed8;box-shadow:0 3px 10px rgba(15,23,42,.08)}
.category-section{margin-bottom:16px}
.category-section[hidden]{display:none!important}
.expense-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}

.report-section{margin-bottom:24px}
.report-section>.section-heading{margin:0 0 10px}
.report-section>.section-heading span{display:block;color:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.report-section>.section-heading h3{margin-top:3px;font-size:17px}
.report-menu-primary{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-menu-secondary{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.report-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.settings-tab-panel>.settings-section{margin-bottom:18px}
.settings-tab-panel>.settings-section+ .settings-section{margin-top:18px}
.settings-help-disclosure,.settings-add-disclosure,.automatic-backup-disclosure,.price-protection-disclosure,.checkout-note,.completion-document-actions{overflow:visible}
.settings-help-disclosure>summary,.settings-add-disclosure>summary,.automatic-backup-disclosure>summary,.price-protection-disclosure>summary,.checkout-note>summary,.completion-document-actions>summary{cursor:pointer;list-style:none}
.settings-help-disclosure>summary::-webkit-details-marker,.settings-add-disclosure>summary::-webkit-details-marker,.automatic-backup-disclosure>summary::-webkit-details-marker,.price-protection-disclosure>summary::-webkit-details-marker,.checkout-note>summary::-webkit-details-marker,.completion-document-actions>summary::-webkit-details-marker{display:none}
.settings-help-disclosure>summary{font-weight:850;color:#334155}
.settings-help-disclosure>summary:after,.price-protection-disclosure>summary:after,.checkout-note>summary:after{content:'+';float:right;color:#64748b}
.settings-help-disclosure[open]>summary:after,.price-protection-disclosure[open]>summary:after,.checkout-note[open]>summary:after{content:'−'}
.settings-help-disclosure>.permission-columns,.settings-help-disclosure>.warning-box,.settings-help-disclosure>.settings-stack{margin-top:16px}
.settings-add-disclosure>form,.unit-add-disclosure>form{margin-top:12px}
[data-receipt-settings]{margin-top:12px;padding:14px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff}
.automatic-backup-disclosure{margin-top:22px!important;border-style:dashed}
.role-help{min-height:38px;color:var(--muted);font-size:12px}

.stock-more-menu{position:relative}
.stock-more-menu>div{right:0;left:auto;min-width:210px}
.stock-entry-form{max-width:880px}
.stock-product-picker{position:relative}
.stock-product-results{position:absolute;z-index:12;top:76px;left:0;right:0;max-height:270px;overflow:auto;border:1px solid #bfdbfe;border-radius:11px;background:#fff;box-shadow:0 18px 38px rgba(15,23,42,.16)}
.stock-product-results button{width:100%;display:grid;gap:3px;padding:10px 12px;text-align:left;border:0;border-bottom:1px solid #eef2f7;background:#fff;color:#0f172a;cursor:pointer}
.stock-product-results button:last-child{border-bottom:0}
.stock-product-results button:hover,.stock-product-results button:focus{background:#eff6ff}
.stock-product-results button small,.stock-product-current{color:var(--muted)}
.price-protection-disclosure{grid-column:1/-1;border:1px dashed #cbd5e1;border-radius:11px;background:#f8fafc;padding:11px 12px}
.price-protection-disclosure>summary{font-size:12px;font-weight:850;color:#334155}
.price-protection-disclosure>summary span,.checkout-note>summary span{color:var(--muted);font-weight:600}
.price-protection-disclosure>.form-group{margin:12px 0 0}

.pos-status-banner{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:10px 12px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed}
.pos-status-banner>div{display:grid;gap:1px;flex:1}
.pos-status-banner small{color:#7c2d12}
.pos-status-banner .status-pill{margin-left:auto}
.pos-secondary-action{display:flex;justify-content:flex-start;margin-top:11px}
.pos-secondary-action .outside-shop-trigger{box-shadow:none;background:#fff!important;font-size:12px}
.checkout-note{margin:10px 0;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.checkout-note>summary{padding:10px 11px;color:#475569;font-size:12px;font-weight:800}
.checkout-note>div{padding:0 10px 2px}
.checkout-breakdown>div{display:flex;justify-content:space-between;align-items:center;padding:4px 0;color:#64748b}
.checkout-discount-value{display:flex;align-items:center;gap:6px}
.checkout-discount-value button{width:24px;height:24px;border:0;border-radius:7px;background:#fee2e2;color:#b91c1c;cursor:pointer}
.pos-cancel-link{display:flex;justify-content:center;margin-top:12px;font-size:12px;color:#64748b}
.completion-document-actions>summary{margin:0}
.completion-document-actions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}
.completion-document-actions>div .btn{font-size:11px;padding:8px}
.cart-add-discount{border:0!important;width:auto!important;height:auto!important;padding:3px 0!important;background:transparent!important;color:#2563eb!important;font-size:11px!important;font-weight:800}

.ui-toast-region{position:fixed;z-index:120;right:18px;top:88px;width:min(360px,calc(100vw - 28px));display:grid;gap:9px;pointer-events:none}
.ui-toast{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#fff;color:#0f172a;box-shadow:0 16px 40px rgba(15,23,42,.18);animation:ui-toast-in .2s ease-out;pointer-events:auto}
.ui-toast>span{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-weight:900}
.ui-toast>strong{flex:1;font-size:13px;line-height:1.45;padding-top:2px}
.ui-toast>button{border:0;background:transparent;color:#64748b;font-size:20px;line-height:1;cursor:pointer}
.ui-toast-success>span{background:#dcfce7;color:#15803d}
.ui-toast-error{border-color:#fecaca}
.ui-toast-error>span{background:#fee2e2;color:#b91c1c}
.ui-toast-warning{border-color:#fed7aa}
.ui-toast-warning>span{background:#ffedd5;color:#9a3412}
.ui-toast.leaving{opacity:0;transform:translateY(-4px);transition:.18s ease}
@keyframes ui-toast-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.ui-dialog-backdrop{position:fixed;z-index:130;inset:0;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}
.ui-dialog{width:min(430px,100%);padding:22px;border-radius:16px;border:1px solid var(--line);background:#fff;box-shadow:0 28px 70px rgba(15,23,42,.3)}
.ui-dialog h2{margin:0 0 8px;font-size:20px}
.ui-dialog p{margin:0 0 16px;color:#475569;line-height:1.5}
.ui-dialog textarea{min-height:92px;margin-bottom:14px}
.ui-dialog-actions{display:flex;justify-content:flex-end;gap:9px}
.ui-dialog-icon{width:36px;height:36px;display:grid;place-items:center;margin-bottom:12px;border-radius:50%;background:#fee2e2;color:#b91c1c;font-size:20px;font-weight:900}

.icon-actions .action-edit{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.icon-actions .action-deactivate{color:#a16207;background:#fefce8;border-color:#fde68a}
.icon-actions .action-activate{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}
.icon-actions .danger-icon{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.icon-actions [title*="View" i],.icon-actions [title*="Edit" i]{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.icon-actions [title*="Deactivate" i]{color:#a16207;background:#fefce8;border-color:#fde68a}
.icon-actions [title*="Activate" i],.icon-actions [title*="Restore" i]{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}
.icon-actions :where(a,button)[title^="View"]{color:#0369a1;background:#f0f9ff;border-color:#bae6fd}
.icon-actions :where(a,button)[title^="Edit"]{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.icon-actions :where(a,button)[title^="Download"]{color:#047857;background:#ecfdf5;border-color:#a7f3d0}
.icon-actions :where(a,button)[title^="Restore"]{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}
.icon-actions :where(a,button)[title^="Archive"],.icon-actions :where(a,button)[title^="Delete"]{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.icon-actions :where(a,button)[title^="Deactivate"]{color:#a16207;background:#fefce8;border-color:#fde68a}
.icon-actions :where(a,button)[title^="Activate"]{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}
.icon-actions .mini-link{width:auto;min-width:34px;padding-inline:10px}
body.theme-dark .category-tabs{background:#111827;border-color:#334155}
body.theme-dark .category-tabs button{color:#cbd5e1}
body.theme-dark .category-tabs button.active{background:#1e293b;color:#bfdbfe}
body.theme-dark .setup-ready-list span{background:#052e16;border-color:#166534;color:#bbf7d0}
body.theme-dark .dashboard-secondary-actions a,body.theme-dark .stock-product-results button,body.theme-dark .ui-dialog,body.theme-dark .ui-toast{background:#111827;color:#e2e8f0;border-color:#334155}
body.theme-dark .stock-product-results button:hover,body.theme-dark .stock-product-results button:focus{background:#172554}
body.theme-dark .price-protection-disclosure,body.theme-dark .checkout-note{background:#111827;border-color:#334155}
body.theme-dark [data-receipt-settings]{background:#0f172a;border-color:#1e40af}

@media(max-width:800px){
  .setup-ready-list{grid-template-columns:1fr}
  .category-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .category-tabs button{padding-inline:8px;font-size:12px}
  .expense-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .expense-summary-cards .summary-card:last-child{grid-column:1/-1}
  .report-menu-primary,.report-menu-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none}
  .dashboard-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-secondary-actions a{text-align:center}
  .completion-document-actions>div{grid-template-columns:1fr}
  .ui-toast-region{top:78px;right:14px}
  .ui-dialog{padding:18px}
  .ui-dialog-actions{display:grid;grid-template-columns:1fr 1fr}
  .ui-dialog-actions .btn{width:100%}
}
@media(max-width:420px){
  .report-menu-primary,.report-menu-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .expense-summary-cards{grid-template-columns:1fr!important}
  .expense-summary-cards .summary-card:last-child{grid-column:auto}
}

/* Hotfix 8.10: keep Inventory Sold and Status headers perfectly aligned with their row values. */
.inventory-overview-table th:nth-child(6),
.inventory-overview-table td:nth-child(6),
.inventory-overview-table th:nth-child(7),
.inventory-overview-table td:nth-child(7){
  text-align:center!important;
  vertical-align:middle!important;
}
.inventory-overview-table .inventory-sold-cell,
.inventory-overview-table .inventory-status-cell{
  text-align:center!important;
}
.inventory-overview-table .inventory-sold-stack{
  width:100%;
  justify-items:center!important;
  align-items:center;
  text-align:center;
}
.inventory-overview-table .inventory-status-cell .status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-inline:auto;
}


/* Hotfix 8.11: smooth mobile navigation, polished app drawer and compact action cards. */
.sidebar{
  display:flex;
  flex-direction:column;
  overscroll-behavior:contain;
}
.sidebar nav{flex:1}
.sidebar .nav-link{
  transition:background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.sidebar .nav-link:active{transform:scale(.985)}
.sidebar .nav-icon{
  color:#dbeafe;
  opacity:.9;
  font-size:13px;
}
.sidebar .nav-link.active .nav-icon{color:#fff;opacity:1}
.sidebar-footer{gap:9px}
.sidebar-logout{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  min-height:40px;
  padding:9px 10px;
  border:1px solid rgba(248,113,113,.48);
  border-radius:9px;
  background:rgba(127,29,29,.18);
  color:#fecaca;
}
.sidebar-logout:hover{background:rgba(127,29,29,.32);color:#fff}
.sidebar-overlay{
  display:block!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(1.5px);
  transition:opacity .2s ease,visibility 0s linear .2s;
}
.sidebar-overlay.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .2s ease,visibility 0s;
}
body.sidebar-open{overflow:hidden}

/* Keep the existing screen visible until the destination is ready. */
.main::before{
  content:"";
  position:fixed;
  z-index:80;
  top:0;
  left:260px;
  right:0;
  height:3px;
  pointer-events:none;
  opacity:0;
  transform:scaleX(.12);
  transform-origin:left;
  background:linear-gradient(90deg,#2563eb,#60a5fa,#7c3aed);
}
body.shell-navigating .main::before{
  opacity:1;
  animation:mauzotrack-nav-progress .85s ease-in-out infinite alternate;
}
@keyframes mauzotrack-nav-progress{
  from{transform:scaleX(.12)}
  to{transform:scaleX(.92)}
}
.content{view-transition-name:none!important}
::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(mauzotrack-content),
::view-transition-new(mauzotrack-content){animation:none!important}
.content.shell-content-settle{animation:mauzotrack-content-settle .15s ease-out}
@keyframes mauzotrack-content-settle{
  from{transform:translateY(2px)}
  to{transform:translateY(0)}
}

/* Dashboard quick actions: three columns on desktop, two columns on mobile. */
.quick-actions-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px;
}
.quick-actions-grid .quick-action-card{
  min-width:0;
  min-height:86px;
  padding:15px 16px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 18px;
  align-items:center;
  gap:13px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 8px 24px rgba(15,23,42,.035);
  transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease;
  -webkit-tap-highlight-color:transparent;
}
.quick-actions-grid .quick-action-card:hover{
  transform:translateY(-1px);
  border-color:#bfdbfe;
  box-shadow:0 12px 28px rgba(37,99,235,.09);
}
.quick-actions-grid .quick-action-card:active{transform:scale(.99)}
.quick-action-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:11px;
}
.quick-action-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.quick-action-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
.quick-action-copy strong{
  font-size:14px;
  line-height:1.2;
  color:#0f172a;
}
.quick-action-copy small{
  color:#64748b;
  font-size:12px;
  line-height:1.3;
}
.quick-action-arrow{
  color:#64748b;
  font-size:25px!important;
  line-height:1;
  justify-self:end;
}
.quick-tone-blue .quick-action-icon{background:#eff6ff;color:#2563eb}
.quick-tone-green .quick-action-icon{background:#ecfdf5;color:#16a34a}
.quick-tone-orange .quick-action-icon{background:#fff7ed;color:#f97316}
.quick-tone-purple .quick-action-icon{background:#f5f3ff;color:#7c3aed}
.quick-tone-cyan .quick-action-icon{background:#ecfeff;color:#0891b2}
.quick-tone-indigo .quick-action-icon{background:#eef2ff;color:#4f46e5}

/* Outside-shop product action should look intentionally different from catalog stock. */
.outside-shop-trigger{
  min-height:43px;
  border:1px solid #fdba74!important;
  background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 100%)!important;
  color:#9a3412!important;
  box-shadow:0 8px 18px rgba(234,88,12,.09);
  font-weight:850;
}
.outside-shop-trigger:hover{
  border-color:#fb923c!important;
  background:linear-gradient(135deg,#ffedd5 0%,#fed7aa 100%)!important;
  color:#7c2d12!important;
}
.outside-shop-trigger>span{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#fff;
  color:#ea580c;
  font-size:16px;
}
.manual-outside-panel{
  border:1px solid #fed7aa!important;
  background:linear-gradient(145deg,#fff 0%,#fffaf5 54%,#fff7ed 100%);
  box-shadow:inset 4px 0 0 #fb923c;
}
.manual-outside-panel .table-toolbar h3{color:#9a3412}
.manual-outside-panel .outside-helper{color:#7c2d12}

@media(max-width:800px){
  .sidebar{
    width:min(86vw,260px);
    transform:translateX(-104%);
    transition:transform .21s cubic-bezier(.22,.8,.28,1)!important;
    will-change:transform;
    box-shadow:18px 0 42px rgba(2,6,23,.2);
  }
  .sidebar.open{transform:translateX(0)}
  .mobile-account-panel{display:none!important}
  .main::before{left:0}
  .mobile-bottom-nav a{
    transition:color .15s ease,background-color .15s ease,transform .15s ease;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .mobile-bottom-nav a:active{transform:scale(.96)}
  .quick-actions-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px;
  }
  .quick-actions-grid .quick-action-card{
    grid-template-columns:40px minmax(0,1fr);
    gap:10px;
    min-height:84px;
    padding:12px;
  }
  .quick-action-icon{width:40px;height:40px}
  .quick-action-icon svg{width:22px;height:22px}
  .quick-action-copy strong{font-size:13px}
  .quick-action-copy small{font-size:10.5px}
  .quick-action-arrow{display:none}
}
@media(max-width:380px){
  .quick-actions-grid .quick-action-card{
    grid-template-columns:36px minmax(0,1fr);
    padding:10px;
    gap:8px;
  }
  .quick-action-icon{width:36px;height:36px}
  .quick-action-copy small{font-size:10px}
}

/* Pre-multishop shell finishing touches. */
.ui-dialog-backdrop[hidden],.ui-toast-region[hidden]{display:none!important}
.sidebar-user-panel{
  display:flex;
  align-items:center;
  gap:10px;
  margin:12px 5px 2px;
  padding:10px;
  border:1px solid rgba(148,163,184,.16);
  border-radius:11px;
  background:rgba(255,255,255,.04);
}
.sidebar-user-panel>span:last-child{min-width:0;display:grid;gap:2px}
.sidebar-user-panel strong{color:#f8fafc;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-user-panel small{color:#94a3b8;font-size:11px;text-transform:capitalize}
@media(max-width:800px){
  .sidebar-user-panel{display:none}
  .language-switch{display:block}
  .language-switch button{min-width:38px;min-height:34px;padding:6px 8px;font-size:11px}
}
@media(max-width:520px){
  .topbar-actions .sync-chip{display:none}
  .topbar{padding-inline:10px}
  .topbar-left{gap:8px;min-width:0}
  .topbar h1{max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:420px){
  .language-code{display:none}
  .language-switch button{width:32px;min-width:32px;height:32px;min-height:32px;padding:0}
  .avatar{width:34px;height:34px}
}
@media(prefers-reduced-motion:reduce){
  .sidebar,.sidebar-overlay,.nav-link,.quick-action-card,.mobile-bottom-nav a{transition:none!important}
  body.shell-navigating .main::before{animation:none;transform:scaleX(1)}
  .content.shell-content-settle{animation:none}
}

/* Hotfix 8.13: unified navigation icons, two-column mobile reports and simplified report/POS flows. */
.app-icon{
  width:1em;
  height:1em;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
.nav-icon{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px}
.nav-icon .app-icon{width:17px;height:17px}
.sidebar-footer .app-icon{width:17px;height:17px;flex:0 0 auto}
.mobile-bottom-nav> a>span{width:25px;height:25px;display:grid;place-items:center}
.mobile-bottom-nav .app-icon{width:21px;height:21px;stroke-width:2}
.mobile-bottom-nav .mobile-sale-link .app-icon{width:23px;height:23px}

.report-card-v13{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:166px!important;
  border-color:#dbeafe;
  background:linear-gradient(145deg,#fff 0%,#fff 54%,#eff6ff 100%);
  box-shadow:0 10px 26px rgba(37,99,235,.055);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.report-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-menu-secondary{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.report-card-v13::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:150px;
  height:150px;
  right:-62px;
  bottom:-72px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(96,165,250,.23) 0%,rgba(147,197,253,.08) 48%,transparent 70%);
}
.report-card-v13:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 16px 34px rgba(37,99,235,.12)}
.report-card-v13 .report-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  box-shadow:inset 0 0 0 1px currentColor;
}
.report-card-v13 .report-icon .app-icon{width:23px;height:23px}
.report-card-v13 .report-icon.blue{background:#eff6ff;color:#2563eb}
.report-card-v13 .report-icon.green{background:#ecfdf5;color:#16a34a}
.report-card-v13 .report-icon.red{background:#fff1f2;color:#dc2626}
.report-card-v13 .report-icon.purple{background:#f5f3ff;color:#7c3aed}
.report-card-v13 h3{color:#0f172a}
.report-card-arrow{margin-top:auto;color:#2563eb;font-size:11px;font-weight:850}

.quick-action-menu{position:relative;min-width:0;z-index:1}
.quick-action-menu[open]{z-index:15}
.quick-action-menu>summary{list-style:none;cursor:pointer}
.quick-action-menu>summary::-webkit-details-marker{display:none}
.quick-action-menu[open] .quick-action-arrow{transform:rotate(90deg)}
.quick-action-options{
  position:absolute;
  z-index:20;
  top:calc(100% + 8px);
  left:0;
  right:0;
  display:grid;
  gap:7px;
  padding:9px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 38px rgba(15,23,42,.18);
}
.quick-actions-grid .quick-action-options a{
  min-height:0;
  padding:10px;
  display:grid;
  gap:3px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#f8fafc;
}
.quick-actions-grid .quick-action-options a:hover{border-color:#93c5fd;background:#eff6ff;box-shadow:none}
.quick-action-options strong{font-size:12px}
.quick-action-options small{color:#64748b;font-size:10px}

.pos-source-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  width:min(560px,100%);
  padding:5px;
  margin:0 0 16px;
  border:1px solid #dbe4f0;
  border-radius:13px;
  background:#edf2f8;
}
.pos-source-tabs button{
  min-width:0;
  min-height:43px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#475569;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}
.pos-source-tabs button .app-icon{width:18px;height:18px}
.pos-source-tabs button.active{background:#fff;color:#1d4ed8;box-shadow:0 4px 12px rgba(15,23,42,.09)}
#catalogProductsPanel[hidden]{display:none!important}

.financial-waterfall-card{min-height:0!important;padding:20px}
.waterfall-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.waterfall-heading span{display:block;margin-bottom:4px;color:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.waterfall-heading h3{margin:0!important;font-size:19px}
.waterfall-heading small{color:#64748b;font-size:11px;text-align:right}
.financial-waterfall{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;align-items:stretch}
.waterfall-stage{position:relative;min-width:0;padding:13px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;display:grid;align-content:start;gap:10px}
.waterfall-stage-head{display:flex;align-items:center;gap:7px;min-height:32px}
.waterfall-stage-head>span{width:23px;height:23px;display:grid;place-items:center;flex:0 0 auto;border-radius:7px;background:#e2e8f0;color:#475569;font-size:10px;font-weight:900}
.waterfall-stage-head strong{font-size:12px;line-height:1.2}
.waterfall-meter{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.waterfall-meter i{display:block;height:100%;min-width:5%;border-radius:inherit;background:#2563eb}
.waterfall-stage>b{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.waterfall-connector{position:absolute;left:-20px;top:50%;width:20px;transform:translateY(-50%);color:#94a3b8;font-size:20px;font-weight:900;text-align:center}
.waterfall-orange .waterfall-meter i{background:#f59e0b}.waterfall-orange .waterfall-stage-head>span{background:#fef3c7;color:#b45309}
.waterfall-purple .waterfall-meter i{background:#7c3aed}.waterfall-purple .waterfall-stage-head>span{background:#ede9fe;color:#6d28d9}
.waterfall-red .waterfall-meter i{background:#dc2626}.waterfall-red .waterfall-stage-head>span{background:#fee2e2;color:#b91c1c}
.waterfall-green .waterfall-meter i{background:#16a34a}.waterfall-green .waterfall-stage-head>span{background:#dcfce7;color:#15803d}
.waterfall-blue .waterfall-stage-head>span{background:#dbeafe;color:#1d4ed8}
.waterfall-stage.is-result{background:#fff}

body.theme-dark .report-card-v13{background:linear-gradient(145deg,#111827 0%,#111827 55%,#172554 100%);border-color:#334155}
body.theme-dark .report-card-v13 h3{color:#f8fafc}
body.theme-dark .quick-action-options,body.theme-dark .quick-actions-grid .quick-action-options a,body.theme-dark .pos-source-tabs button.active,body.theme-dark .waterfall-stage{background:#111827;color:#e5e7eb;border-color:#334155}
body.theme-dark .pos-source-tabs{background:#0f172a;border-color:#334155}
body.theme-dark .waterfall-stage.is-result{background:#172033}

@media(max-width:800px){
  .report-menu-grid,.report-menu-primary,.report-menu-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important;gap:9px!important}
  .report-menu-grid .report-card-v13{min-height:142px!important;padding:11px!important;gap:5px!important}
  .report-card-v13 .report-icon{width:35px!important;height:35px!important;border-radius:10px}
  .report-card-v13 .report-icon .app-icon{width:19px;height:19px}
  .report-menu-grid .report-card-v13 h3{font-size:13px!important;line-height:1.18!important;white-space:normal!important}
  .report-menu-grid .report-card-v13 p{font-size:10px!important;line-height:1.3!important;-webkit-line-clamp:2}
  .report-card-arrow{font-size:9px}
  .report-section>.section-heading h3{font-size:15px}
  .quick-action-menu>.quick-action-card{grid-template-columns:40px minmax(0,1fr);gap:10px;min-height:84px;padding:12px}
  .pos-source-tabs{width:100%;margin-bottom:12px}
  .pos-source-tabs button{min-height:41px;gap:6px;font-size:11px;padding-inline:7px}
  .financial-waterfall-card{padding:14px}
  .waterfall-heading{align-items:flex-start;flex-direction:column;gap:5px;margin-bottom:14px}
  .waterfall-heading small{text-align:left}
  .financial-waterfall{grid-template-columns:1fr;gap:9px}
  .waterfall-stage{grid-template-columns:minmax(0,1fr) minmax(95px,.7fr) auto;align-items:center;gap:10px;padding:10px 11px}
  .waterfall-stage-head{min-height:0}.waterfall-stage>b{font-size:11px;text-align:right}
  .waterfall-connector{left:50%;top:-10px;width:22px;transform:translateX(-50%);font-size:14px;background:var(--bg)}
}
@media(max-width:360px){
  .report-menu-grid,.report-menu-primary,.report-menu-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .report-menu-grid .report-card-v13{min-height:136px!important;padding:9px!important}
  .report-menu-grid .report-card-v13 p{font-size:9.5px!important}
  .report-card-arrow{display:none}
  .waterfall-stage{grid-template-columns:minmax(0,1fr) 72px}.waterfall-stage>b{grid-column:1/-1;text-align:left}
}
@media(max-width:520px){
  .topbar-actions .sync-chip:not([hidden]){display:flex}
  .topbar-actions:has(#pendingSyncChip:not([hidden])) .connection-chip{display:none}
  #pendingSyncBadge{white-space:nowrap;font-size:10px}
}

/* MauzoTrack Hotfix 8.14 — professional summary cards and reports */
.pro-stat-card{
  --stat-color:#2563eb;
  --stat-soft:#eff6ff;
  min-width:0;
  min-height:106px;
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center;
  gap:14px!important;
  padding:15px 16px!important;
  overflow:hidden;
  border:1px solid #dfe6ef!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff 0%,#fff 72%,color-mix(in srgb,var(--stat-soft) 28%,#fff) 100%)!important;
  box-shadow:0 6px 18px rgba(15,23,42,.045)!important;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.pro-stat-card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--stat-color) 34%,#dfe6ef)!important;box-shadow:0 11px 24px rgba(15,23,42,.075)!important}
.pro-stat-card::before{left:0!important;right:0!important;top:0!important;bottom:auto!important;width:auto!important;height:3px!important;background:var(--stat-color)!important;opacity:.95}
.pro-stat-card.tone-blue{--stat-color:#2563eb;--stat-soft:#dbeafe}
.pro-stat-card.tone-cyan{--stat-color:#0891b2;--stat-soft:#cffafe}
.pro-stat-card.tone-green{--stat-color:#16a34a;--stat-soft:#dcfce7}
.pro-stat-card.tone-purple{--stat-color:#7c3aed;--stat-soft:#ede9fe}
.pro-stat-card.tone-orange{--stat-color:#d97706;--stat-soft:#fef3c7}
.pro-stat-card.tone-red{--stat-color:#dc2626;--stat-soft:#fee2e2}
.pro-stat-card.tone-slate{--stat-color:#475569;--stat-soft:#e2e8f0}
.pro-stat-icon{width:46px;height:46px;display:grid!important;place-items:center;flex:0 0 auto;border-radius:12px;background:var(--stat-soft);color:var(--stat-color)!important}
.pro-stat-icon .app-icon{width:23px;height:23px;stroke-width:1.9}
.pro-stat-copy{display:grid!important;gap:4px!important;min-width:0;color:inherit!important}
.pro-stat-label{font-size:12px!important;line-height:1.25!important;color:#64748b!important;font-weight:780!important;letter-spacing:0!important;text-transform:none!important}
.pro-stat-value{margin:0!important;color:#0f172a;font-size:clamp(18px,1.55vw,24px)!important;line-height:1.12!important;letter-spacing:-.025em;font-weight:900!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.pro-stat-hint{margin:0;color:#64748b;font-size:11px;line-height:1.25}

.dashboard-top,.daily-summary-stats,.report-five-stats,.low-stock-stats{gap:14px}
.dashboard-top.six .pro-stat-card,.pnl-metrics-pro .pro-stat-card{min-height:124px;flex-direction:column;align-items:flex-start;gap:10px!important}
.route-dashboard .dashboard-top.six .pro-stat-card{min-height:124px!important;padding:14px!important;gap:9px!important}
.route-dashboard .dashboard-top.six .pro-stat-card .pro-stat-label{white-space:normal!important;font-size:11px!important}
.route-dashboard .dashboard-top.six .pro-stat-card .pro-stat-value{white-space:normal!important;font-size:clamp(16px,1.3vw,20px)!important}
.pro-report-stats{align-items:stretch}
.report-five-stats .pro-stat-card,.low-stock-stats .pro-stat-card{padding:15px 16px;min-height:106px}
.items-sold-card .pro-stat-value{font-size:18px!important}
.expense-summary-cards .pro-stat-card:last-child{grid-column:auto!important}

.filter-card{
  border-color:#dfe6ef;
  border-radius:15px;
  background:#fff;
  box-shadow:0 5px 16px rgba(15,23,42,.035);
  padding:14px 15px;
}
.filter-card input,.filter-card select{min-height:44px;border-color:#dbe3ee;background:#fff}
.filter-card label{display:block;margin-bottom:6px;color:#334155;font-size:12px;font-weight:800}
.filter-card .btn{min-height:42px}
.page-heading,.page-header{margin-bottom:16px}
.page-heading h2,.page-title{color:#0f172a;font-weight:900}
.page-heading .page-subtitle,.page-header .page-subtitle{display:block!important;margin-top:5px;color:#64748b;font-size:12px}
.heading-actions .btn-secondary,.header-actions .btn-secondary,.heading-actions .quick-link,.header-actions .quick-link{background:#fff;color:#1e3a8a;border:1px solid #dbe3ee;box-shadow:0 2px 7px rgba(15,23,42,.025)}
.heading-actions .app-icon{width:16px;height:16px}

.settings-tabs-pro{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:6px;margin-bottom:20px;overflow:visible;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.settings-tabs-pro button{min-width:0;min-height:48px;padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;color:#475569;background:transparent;border:1px solid transparent}
.settings-tabs-pro button .app-icon{width:18px;height:18px;flex:0 0 auto}
.settings-tabs-pro button:hover{background:#fff;border-color:#dbe3ee;color:#1d4ed8}
.settings-tabs-pro button.active{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 7px 16px rgba(37,99,235,.2)}
.settings-tabs-pro .danger-tab{color:#b91c1c}
.settings-tabs-pro .danger-tab:hover{color:#b91c1c;background:#fff1f2;border-color:#fecaca}

.pnl-metrics-pro{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}
.pnl-metrics-pro .pro-stat-card{min-height:123px;padding:13px!important}
.pnl-metrics-pro .pro-stat-icon{width:40px;height:40px;border-radius:11px}
.pnl-metrics-pro .pro-stat-icon .app-icon{width:20px;height:20px}
.pnl-metrics-pro .pro-stat-value{font-size:clamp(15px,1.15vw,20px)!important}
.pnl-bar-card{padding:22px;margin-bottom:18px;overflow:hidden;border-color:#dfe6ef;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.pnl-bar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.pnl-bar-heading>div:first-child>span{display:block;margin-bottom:4px;color:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.11em}
.pnl-bar-heading h3{margin:0;color:#0f172a;font-size:20px}
.pnl-bar-heading p{margin:4px 0 0;color:#64748b;font-size:12px}
.pnl-legend{max-width:52%;display:flex;align-items:center;justify-content:flex-end;gap:9px 13px;flex-wrap:wrap;color:#475569;font-size:10px;font-weight:750}
.pnl-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.pnl-legend i{width:8px;height:8px;border-radius:3px;background:#2563eb}
.pnl-legend .legend-cyan i{background:#0891b2}.pnl-legend .legend-purple i{background:#7c3aed}.pnl-legend .legend-red i{background:#dc2626}.pnl-legend .legend-green i{background:#16a34a}
.pnl-chart-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px;align-items:stretch}
.pnl-plot{min-width:0;display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;min-height:350px}
.pnl-y-axis{height:305px;display:flex;flex-direction:column;justify-content:space-between;padding:0 0 2px;color:#64748b;font-size:10px;text-align:right;font-variant-numeric:tabular-nums}
.pnl-plot-area{position:relative;min-width:0;height:335px;padding-bottom:30px}
.pnl-grid-lines{position:absolute;z-index:0;inset:0 0 30px;display:flex;flex-direction:column;justify-content:space-between}
.pnl-grid-lines i{width:100%;border-top:1px dashed #dbe3ee}
.pnl-bars{position:relative;z-index:1;height:100%;display:grid;grid-template-columns:repeat(5,minmax(75px,1fr));gap:clamp(12px,2.5vw,38px);align-items:end;padding:0 12px}
.pnl-bar-item{height:100%;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 28px;align-items:end;justify-items:center;gap:0;color:#2563eb}
.pnl-bar-track{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center}
.pnl-bar-track>i{position:relative;width:min(78%,82px);height:var(--bar-size);min-height:7px;display:block;border-radius:9px 9px 3px 3px;background:linear-gradient(180deg,color-mix(in srgb,currentColor 84%,#fff),currentColor);box-shadow:0 8px 18px color-mix(in srgb,currentColor 18%,transparent);transition:height .35s ease}
.pnl-bar-value{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);color:#1e293b;font-size:10px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.pnl-bar-item>span{max-width:100%;align-self:end;color:#334155;font-size:10px;font-weight:800;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pnl-bar-item.pnl-tone-blue{color:#2563eb}.pnl-bar-item.pnl-tone-cyan{color:#0891b2}.pnl-bar-item.pnl-tone-purple{color:#7c3aed}.pnl-bar-item.pnl-tone-red{color:#dc2626}.pnl-bar-item.pnl-tone-green{color:#16a34a}
.pnl-insight{min-width:0;padding:24px 18px;border-left:1px solid #e2e8f0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#15803d}
.pnl-insight-icon{width:58px;height:58px;margin-bottom:12px;display:grid;place-items:center;border-radius:50%;background:#dcfce7}.pnl-insight-icon .app-icon{width:27px;height:27px}
.pnl-insight small{color:#475569;font-size:12px;font-weight:800}.pnl-insight>strong{margin-top:6px;color:#166534;font-size:26px;line-height:1.15;font-variant-numeric:tabular-nums}.pnl-insight hr{width:100%;margin:20px 0;border:0;border-top:1px solid #e2e8f0}.pnl-insight>b{margin-top:5px;font-size:31px}.pnl-insight em{margin-top:17px;padding:7px 10px;border-radius:999px;background:#dcfce7;color:#166534;font-size:10px;font-style:normal;font-weight:850}.pnl-insight em span{margin-right:5px}
.pnl-insight.is-negative{color:#dc2626}.pnl-insight.is-negative .pnl-insight-icon,.pnl-insight.is-negative em{background:#fee2e2;color:#991b1b}.pnl-insight.is-negative>strong{color:#b91c1c}

body.theme-dark .pro-stat-card{background:linear-gradient(145deg,#111827,#111827 72%,color-mix(in srgb,var(--stat-color) 12%,#111827))!important;border-color:#334155!important}
body.theme-dark .pro-stat-value,body.theme-dark .pnl-bar-heading h3{color:#f8fafc}body.theme-dark .pro-stat-label,body.theme-dark .pro-stat-hint{color:#94a3b8!important}
body.theme-dark .settings-tabs-pro,body.theme-dark .filter-card{background:#0f172a;border-color:#334155}body.theme-dark .settings-tabs-pro button{color:#cbd5e1}body.theme-dark .settings-tabs-pro button.active{color:#fff}
body.theme-dark .pnl-grid-lines i{border-color:#334155}body.theme-dark .pnl-bar-value,body.theme-dark .pnl-bar-item>span{color:#cbd5e1}body.theme-dark .pnl-insight{border-color:#334155}body.theme-dark .pnl-insight small{color:#94a3b8}

@media(max-width:1180px){
  .pro-stat-card{gap:10px!important;padding:13px!important}.pro-stat-icon{width:40px;height:40px}.pro-stat-icon .app-icon{width:20px;height:20px}.pro-stat-value{font-size:18px!important}
  .pnl-metrics-pro{grid-template-columns:repeat(3,minmax(0,1fr))}.pnl-metrics-pro .pro-stat-card{min-height:100px;flex-direction:row;align-items:center}
  .pnl-chart-layout{grid-template-columns:minmax(0,1fr) 200px}.pnl-bars{gap:14px}
}
@media(max-width:800px){
  .pro-stat-card,.dashboard-top.six .pro-stat-card,.pnl-metrics-pro .pro-stat-card,.route-dashboard .dashboard-top.six .pro-stat-card{min-height:116px!important;padding:11px!important;flex-direction:column;align-items:flex-start;gap:8px!important}
  .pro-stat-icon{width:38px;height:38px;border-radius:10px}.pro-stat-icon .app-icon{width:19px;height:19px}.pro-stat-value{font-size:clamp(16px,4.4vw,20px)!important}.pro-stat-label{font-size:10.5px!important}.pro-stat-hint{font-size:9.5px}
  .report-five-stats.pro-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.report-five-stats.pro-report-stats .items-sold-card{grid-column:auto;min-height:116px!important}
  .settings-tabs-pro{display:flex;overflow-x:auto;padding:5px}.settings-tabs-pro button{flex:0 0 auto;min-height:43px;padding:9px 11px;font-size:11px}.settings-tabs-pro button .app-icon{width:16px;height:16px}
  .pnl-metrics-pro{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pnl-bar-card{padding:15px}.pnl-bar-heading{display:grid;gap:10px;margin-bottom:16px}.pnl-legend{max-width:none;justify-content:flex-start}
  .pnl-chart-layout{grid-template-columns:1fr;gap:16px}.pnl-plot{grid-template-columns:46px minmax(520px,1fr);min-height:320px;overflow-x:auto;padding-bottom:8px}.pnl-y-axis{position:sticky;left:0;z-index:3;height:275px;padding-right:5px;background:var(--panel)}.pnl-plot-area{height:305px}.pnl-bars{grid-template-columns:repeat(5,minmax(88px,1fr));gap:15px}.pnl-insight{border-left:0;border-top:1px solid #e2e8f0;padding:18px;display:grid;grid-template-columns:auto 1fr;gap:5px 14px;text-align:left;align-items:center;justify-items:start}.pnl-insight-icon{grid-row:1/5;margin:0}.pnl-insight hr{display:none}.pnl-insight>strong,.pnl-insight>b{font-size:20px;margin:0}.pnl-insight em{grid-column:1/-1;margin-top:7px}
}
@media(max-width:380px){
  .pro-stat-card{min-height:108px!important}.pro-stat-value{font-size:16px!important}.pro-stat-icon{width:35px;height:35px}.pro-stat-icon .app-icon{width:17px;height:17px}
  .settings-tabs-pro button{padding:8px 9px}
}
@media print{
  .pro-stat-card{box-shadow:none!important;transform:none!important;background:#fff!important}.pnl-bar-card{box-shadow:none}.pnl-insight{break-inside:avoid}
}

/* MauzoTrack Hotfix 8.16 — balanced monetary type, readable settings and aligned completion actions */
.pro-stat-value{
  max-width:100%;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  font-size:clamp(16px,1.32vw,22px)!important;
  font-weight:700!important;
  letter-spacing:-.018em!important;
}
.route-dashboard .dashboard-top.six .pro-stat-card .pro-stat-value{white-space:nowrap!important;font-size:clamp(15px,1.22vw,20px)!important;font-weight:700!important}
.pnl-metrics-pro .pro-stat-value{font-size:clamp(15px,1.12vw,20px)!important;font-weight:700!important}
.settings-tabs-pro{grid-template-columns:.75fr 1.55fr 1.1fr 1.2fr .9fr}
.settings-tabs-pro button{gap:5px;padding:9px 7px;font-size:clamp(11.5px,.95vw,13px);font-weight:700;letter-spacing:-.012em;white-space:nowrap}
.settings-tabs-pro button .app-icon{width:16px;height:16px}

.success-action-buttons .success-history-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;width:100%;padding:10px 12px;border:1px solid #2563eb;border-radius:10px;background:#2563eb;color:#fff;font-weight:750;text-decoration:none;box-shadow:0 5px 12px rgba(37,99,235,.16)}
.success-action-buttons .success-history-button:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}

/* The generic legacy .bar-* helpers must never paint the P&L item container. */
.pnl-bar-item{background:transparent!important}

@media(max-width:800px){
  .pro-stat-value,.route-dashboard .dashboard-top.six .pro-stat-card .pro-stat-value,.pnl-metrics-pro .pro-stat-value{font-size:clamp(14px,4vw,18px)!important;font-weight:700!important}
  .settings-tabs-pro{display:flex}.settings-tabs-pro button{font-size:11.5px;padding:8px 10px}
}

/* MauzoTrack Hotfix 8.17 — quick-add POS, persistent cart and +2px settings tabs */
.settings-tabs-pro button{font-size:clamp(13.5px,calc(.95vw + 2px),15px)}

.quick-pos-form{margin-top:14px}
.quick-pos-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,380px);gap:16px;align-items:start}
.quick-pos-layout .pos-product-explorer{margin-top:0;min-width:0}
.quick-pos-heading>span{background:#e8f0ff;color:#2563eb}
.quick-pos-heading>span .app-icon{width:18px;height:18px}
.quick-pos-layout .pos-paged-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick-product-card{position:relative;min-width:0;padding:11px;border:1px solid #dce4ef;border-radius:14px;background:#fff;display:grid;gap:10px;box-shadow:0 3px 10px rgba(15,23,42,.025);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.quick-product-card:hover{border-color:#93b4f7;box-shadow:0 10px 22px rgba(37,99,235,.09);transform:translateY(-1px)}
.quick-product-card.out-of-stock{background:#f8fafc;opacity:.78}
.quick-product-main{display:flex;align-items:center;gap:9px;min-width:0}
.quick-product-main .product-tile-image{width:52px;height:52px;flex:0 0 52px;border-radius:11px}
.quick-product-copy{display:grid;gap:2px;min-width:0}
.quick-product-copy>strong{font-size:13px;line-height:1.2;color:#0f172a;overflow-wrap:anywhere}
.quick-product-copy>small{font-size:10px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-product-copy .tile-stock{font-size:10px;color:#475569;line-height:1.25}
.quick-product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.quick-product-actions:has(>button:only-child){grid-template-columns:1fr}
.quick-product-actions button{min-width:0;min-height:36px;padding:4px 7px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;gap:0;cursor:pointer;font:inherit;transition:.14s ease}
.quick-product-actions button:hover{border-color:#2563eb;background:#2563eb;color:#fff}
.quick-product-actions button.wholesale{border-color:#c7d2fe;background:#eef2ff;color:#5b21b6}
.quick-product-actions button.wholesale:hover{border-color:#6d28d9;background:#6d28d9;color:#fff}
.quick-product-actions button:disabled{border-color:#e2e8f0;background:#f1f5f9;color:#94a3b8;cursor:not-allowed}
.quick-product-actions button span{max-width:100%;font-size:10px;font-weight:850;line-height:1.12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-product-actions button strong{font-size:9px;font-weight:700;line-height:1.12;white-space:nowrap}
.product-cart-badge{position:absolute;z-index:2;right:8px;top:8px;padding:3px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:9px;font-weight:850;box-shadow:0 2px 5px rgba(22,101,52,.12)}

.quick-pos-cart{position:sticky;top:82px;min-width:0;max-height:calc(100vh - 102px);padding:16px;display:flex;flex-direction:column;overflow:hidden}
.quick-pos-cart .cart-list{max-height:min(38vh,390px);overflow:auto;padding-right:2px}
.current-sale-head-actions{display:flex;align-items:center;gap:7px}
.mobile-cart-close{display:none}
.quick-pos-cart .cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;padding:10px}
.quick-pos-cart .cart-row-actions{display:grid!important;grid-template-columns:auto auto;justify-items:end;align-items:center;gap:6px!important}
.quick-pos-cart .cart-row-actions .qty-stepper{grid-column:1/3}
.quick-pos-cart .cart-row-actions>b{grid-column:1/3;font-size:13px}
.quick-pos-cart .cart-row-actions .cart-edit-button,.quick-pos-cart .cart-row-actions .cart-remove{width:auto;min-width:34px;height:28px;padding:0 8px;border-radius:7px;font-size:10px;font-weight:800}
.quick-pos-cart .cart-row-actions .cart-edit-button{background:#dbeafe;color:#1d4ed8}
.quick-pos-cart .cart-row-actions .cart-remove{background:#fee2e2;color:#b91c1c;font-size:16px}
.quick-pos-cart .checkout{flex:0 0 auto}

.cart-edit-modal{position:fixed;z-index:90;inset:0;padding:18px;background:rgba(15,23,42,.58);display:grid;place-items:center}
.cart-edit-modal .pos-item-config{width:min(570px,100%);max-height:calc(100dvh - 36px);padding:20px;overflow:auto;box-shadow:0 24px 70px rgba(15,23,42,.28)}
.cart-edit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.cart-edit-head h2{margin:2px 0 0;font-size:21px}.cart-edit-head p{margin:3px 0 0;color:#64748b;font-size:12px}
.mobile-cart-overlay{display:none}
.mobile-cart-dock-actions{display:flex;align-items:center;gap:7px}

body.theme-dark .quick-product-card{background:#111827;border-color:#334155}body.theme-dark .quick-product-copy>strong{color:#f8fafc}body.theme-dark .quick-product-copy>small,body.theme-dark .quick-product-copy .tile-stock{color:#94a3b8}

@media(max-width:1180px){
  .quick-pos-layout{grid-template-columns:minmax(0,1fr) 350px}.quick-pos-layout .pos-paged-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .settings-tabs-pro button{font-size:13.5px;padding:8px 10px}
  .quick-pos-form{margin-top:10px}.quick-pos-layout{display:block}.quick-pos-layout .pos-product-explorer{padding:13px}
  .quick-pos-layout .pos-paged-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  .quick-product-card{padding:8px;gap:7px;border-radius:12px}.quick-product-main{align-items:flex-start;gap:7px}.quick-product-main .product-tile-image{width:42px;height:42px;flex-basis:42px}.quick-product-copy>strong{font-size:12px}.quick-product-copy>small,.quick-product-copy .tile-stock{font-size:9px}.quick-product-actions{grid-template-columns:1fr!important}.quick-product-actions button{min-height:34px;padding:3px 5px}.quick-product-actions button span{font-size:9.5px}.quick-product-actions button strong{font-size:8.5px}.product-cart-badge{right:5px;top:5px;font-size:8px}
  .quick-pos-cart{position:fixed!important;z-index:62;left:8px;right:8px;top:auto;bottom:8px;width:auto;max-height:min(82dvh,720px);padding:14px;border-radius:18px;overflow-y:auto;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(calc(100% + 20px));transition:transform .22s ease,opacity .18s ease,visibility .22s}
  .quick-pos-cart.mobile-cart-open{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
  .quick-pos-cart .cart-list{max-height:none;overflow:visible}.quick-pos-cart .checkout{padding-bottom:5px}
  .mobile-cart-close{display:grid}.mobile-cart-overlay:not([hidden]){position:fixed;z-index:61;inset:0;display:block;background:rgba(15,23,42,.55)}
  body.pos-cart-sheet-open{overflow:hidden}
  .mobile-cart-dock:not([hidden]){z-index:60;padding:8px 9px 8px 12px}.mobile-cart-dock .btn{padding:8px 9px;font-size:10px}.mobile-cart-dock .btn-secondary{border-color:#475569;background:#1e293b;color:#fff}
  .cart-edit-modal{padding:10px}.cart-edit-modal .pos-item-config{max-height:calc(100dvh - 20px);padding:15px}.cart-edit-head h2{font-size:18px}
}
@media(max-width:380px){
  .quick-product-main{display:grid}.quick-product-main .product-tile-image{width:38px;height:38px}.quick-product-actions button{min-height:34px}.mobile-cart-dock-actions{gap:4px}.mobile-cart-dock .btn{padding-inline:7px}
}
@media print{.mobile-cart-overlay,.cart-edit-modal{display:none!important}}

/* MauzoTrack Hotfix 8.18 — two-stage professional POS */
.pos-flow-bar{width:min(560px,100%);margin:12px auto 16px;display:grid;grid-template-columns:auto minmax(40px,1fr) auto;align-items:center;gap:10px;color:#94a3b8}
.pos-flow-bar>div{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.pos-flow-bar>div span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#64748b;font-weight:900}.pos-flow-bar>div strong{font-weight:800}.pos-flow-bar>i{height:2px;background:#e2e8f0;border-radius:999px}.pos-flow-bar>div.active{color:#1d4ed8}.pos-flow-bar>div.active span{background:#2563eb;color:#fff;box-shadow:0 5px 12px rgba(37,99,235,.22)}.pos-flow-bar>div.complete{color:#15803d}.pos-flow-bar>div.complete span{background:#dcfce7;color:#15803d}.pos-flow-bar:has(>div.complete)>i{background:#86efac}

.quick-pos-layout{grid-template-columns:minmax(0,1fr) minmax(390px,420px)}
.quick-pos-cart{top:76px;max-height:calc(100dvh - 92px);padding:0;border-color:#d9e2ef;box-shadow:0 16px 36px rgba(15,23,42,.08)}
.quick-pos-cart .current-sale-head{padding:15px 16px 12px;margin:0;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#fbfdff)}
.quick-pos-cart .current-sale-head h3{font-size:19px}.quick-pos-cart .current-sale-head small{display:block;margin-top:2px;color:#64748b;font-size:10px}.quick-pos-cart .current-sale-head .btn{min-height:34px;padding:7px 11px;font-size:11px}
.quick-pos-cart .cart-list{flex:1 1 auto;min-height:110px;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px;gap:7px;background:#f8fafc}
.quick-pos-cart .cart-list>.empty-state{min-height:160px;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;color:#64748b}
.quick-pos-cart .cart-row{grid-template-columns:minmax(0,1fr) auto;padding:9px 10px;border-radius:11px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.025)}
.quick-pos-cart .cart-row>div:first-child{gap:1px;min-width:0}.quick-pos-cart .cart-row>div:first-child>strong{font-size:12px;line-height:1.2;overflow-wrap:anywhere}.quick-pos-cart .cart-row small{font-size:9.5px;line-height:1.25}
.quick-pos-cart .cart-line-discount,.quick-pos-cart .cart-add-discount{margin-top:3px;font-size:9px}.quick-pos-cart .cart-line-discount button{height:auto;min-height:20px;width:auto;padding:2px 5px}.quick-pos-cart .cart-discount-editor{grid-template-columns:minmax(70px,1fr) auto auto;gap:4px;margin-top:4px}.quick-pos-cart .cart-discount-editor input{min-width:0;height:29px;padding:5px 7px;font-size:10px}
.quick-pos-cart .cart-row-actions{grid-template-columns:auto auto auto!important;gap:5px!important}.quick-pos-cart .cart-row-actions .qty-stepper{grid-column:1/4}.quick-pos-cart .cart-row-actions>b{grid-column:1/4;font-size:12px;white-space:nowrap}.quick-pos-cart .cart-row-actions .cart-edit-button{grid-column:1/3}.quick-pos-cart .cart-row-actions .cart-remove{grid-column:3}.quick-pos-cart .qty-stepper{height:28px}.quick-pos-cart .qty-stepper button{width:25px;height:26px}.quick-pos-cart .qty-stepper span{min-width:27px;font-size:11px}
.cart-build-footer{flex:0 0 auto;padding:11px 14px 14px;border-top:1px solid #dfe7f1;background:#fff;box-shadow:0 -7px 18px rgba(15,23,42,.035)}.cart-build-totals{display:grid;gap:5px}.cart-build-totals>div{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:11px}.cart-build-totals strong{color:#334155;font-size:12px}.cart-build-totals .cart-build-total{margin-top:3px;padding-top:8px;border-top:1px solid #e2e8f0;font-size:15px;color:#0f172a}.cart-build-totals .cart-build-total strong{font-size:18px;color:#0f172a}.cart-build-footer .checkout-meta{display:flex;justify-content:space-between;gap:10px;margin:5px 0 8px}.cart-build-footer .checkout-meta small{font-size:9px;color:#64748b}.cart-build-footer #reviewSaleBtn{margin:0;min-height:45px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px}.cart-build-footer #reviewSaleBtn span{font-size:18px;line-height:1}

.sale-review-stage{margin-top:4px}.review-stage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.review-stage-head h2{margin:2px 0 3px;font-size:24px}.review-stage-head p{margin:0;color:#64748b;font-size:12px}.sale-review-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,380px);gap:16px;align-items:start}.review-products-card,.payment-summary-card{padding:0;overflow:hidden}.review-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e2e8f0}.review-card-head h3{margin:0;font-size:17px}.review-card-head p{margin:2px 0 0;color:#64748b;font-size:10px}.review-table-head{display:grid;grid-template-columns:minmax(180px,1.45fr) minmax(100px,.8fr) minmax(115px,.8fr) minmax(100px,.8fr) minmax(100px,.8fr) 80px;gap:10px;padding:9px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.045em}.review-items-list{display:grid;max-height:calc(100dvh - 300px);overflow-y:auto}.review-item-row{display:grid;grid-template-columns:minmax(180px,1.45fr) minmax(100px,.8fr) minmax(115px,.8fr) minmax(100px,.8fr) minmax(100px,.8fr) 80px;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #edf1f6}.review-item-row:last-child{border-bottom:0}.review-item-row>div{display:grid;gap:2px;min-width:0}.review-item-row strong{font-size:11px;color:#0f172a}.review-item-row small{font-size:9px;color:#64748b}.review-item-product>strong{font-size:12px;overflow-wrap:anywhere}.review-line-total{font-size:12px!important}.review-item-row .qty-stepper{display:flex;gap:0;height:30px}.review-item-row .qty-stepper button{width:28px;height:28px}.review-item-row .qty-stepper span{min-width:30px;font-size:11px}.review-row-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:5px}.review-row-actions button{height:29px;padding:0 8px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.review-row-actions button:last-child{width:29px;padding:0;border-color:#fecaca;background:#fff1f2;color:#dc2626;font-size:15px}

.payment-summary-card{position:sticky;top:76px;padding:18px}.payment-summary-head{padding-bottom:12px;border-bottom:1px solid #e2e8f0}.payment-summary-head h3{margin:2px 0 0;font-size:19px}.payment-breakdown{display:grid;gap:8px;padding:14px 0}.payment-breakdown>div{display:flex;justify-content:space-between;gap:12px;color:#64748b;font-size:11px}.payment-breakdown strong{color:#334155}.overall-discount-toggle{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid #dbe5f1;border-radius:11px;background:#f8fafc;cursor:pointer}.overall-discount-toggle input{margin-top:2px}.overall-discount-toggle span{display:grid;gap:2px}.overall-discount-toggle strong{font-size:11px}.overall-discount-toggle small{font-size:9px;color:#64748b}.overall-discount-control{margin-top:9px;padding:11px;border:1px solid #dbeafe;border-radius:11px;background:#f8fbff}.overall-discount-control label{display:block;margin-bottom:6px;font-size:10px;font-weight:800}.overall-discount-control>small{display:block;margin-top:5px;color:#64748b;font-size:9px}.overall-discount-control .field-alert{color:#b91c1c}.review-grand-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:14px 0;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.review-grand-total span{font-size:14px;font-weight:750}.review-grand-total strong{font-size:22px;color:#0f172a}.payment-summary-card .form-group{margin-bottom:10px}.payment-summary-card .checkout-note{margin-bottom:11px}.payment-summary-card .review-complete-button{min-height:48px;margin-top:4px;font-size:14px}.review-edit-sale,.payment-summary-card .pos-cancel-link{display:block;width:100%;margin-top:8px;text-align:center;font-size:10px}.review-edit-sale{border:0;background:transparent;color:#2563eb;cursor:pointer}

body.theme-dark .quick-pos-cart .cart-list,body.theme-dark .review-table-head{background:#0f172a}body.theme-dark .quick-pos-cart .cart-row,body.theme-dark .cart-build-footer,body.theme-dark .quick-pos-cart .current-sale-head{background:#111827}body.theme-dark .review-item-row strong,body.theme-dark .review-grand-total strong{color:#f8fafc}body.theme-dark .overall-discount-toggle{background:#111827;border-color:#334155}

@media(max-width:1100px){.quick-pos-layout{grid-template-columns:minmax(0,1fr) 365px}.sale-review-layout{grid-template-columns:minmax(0,1fr) 340px}.review-table-head,.review-item-row{grid-template-columns:minmax(150px,1.25fr) 90px 105px 90px 95px 70px}}
@media(max-width:800px){
  .pos-flow-bar{width:100%;margin:8px auto 10px;padding:0 4px}.pos-flow-bar>div{font-size:10px}.pos-flow-bar>div span{width:25px;height:25px}.pos-flow-bar>i{min-width:28px}
  .quick-pos-cart{padding:0!important;max-height:min(86dvh,760px);overflow:hidden}.quick-pos-cart .current-sale-head{padding:13px}.quick-pos-cart .cart-list{max-height:calc(86dvh - 250px);overflow-y:auto;padding:8px}.quick-pos-cart .cart-row{padding:8px}.cart-build-footer{padding:10px 12px 12px}
  .progressive-pos.review-mode .mobile-cart-dock{display:none!important}.sale-review-stage{margin-top:0}.review-stage-head{position:sticky;z-index:8;top:0;align-items:center;margin:0 -2px 10px;padding:10px 2px;background:var(--bg)}.review-stage-head h2{font-size:19px}.review-stage-head p{display:none}.review-stage-head .btn{padding:8px 9px;font-size:9px}
  .sale-review-layout{display:block}.review-products-card{border-radius:14px}.review-card-head{padding:13px}.review-card-head h3{font-size:15px}.review-table-head{display:none}.review-items-list{max-height:none;overflow:visible}.review-item-row{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:11px 12px}.review-item-row>div{display:grid}.review-item-product{grid-column:1/4}.review-item-row>div:nth-child(2){grid-column:1}.review-item-row>div:nth-child(3){grid-column:2}.review-item-row>div:nth-child(4){grid-column:1}.review-item-row>div:nth-child(5){grid-column:2}.review-item-row .review-row-actions{grid-column:3;grid-row:2/4;align-self:center}.review-item-row>div[data-label]::before{content:attr(data-label);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8}.review-item-row .qty-stepper{margin-top:1px}.payment-summary-card{position:static;margin-top:10px;padding:15px 13px 110px;border-radius:14px}.payment-summary-card .review-complete-button{position:fixed;z-index:55;left:10px;right:10px;bottom:calc(var(--mobile-nav-height,72px) + 8px);width:auto;box-shadow:0 10px 30px rgba(22,163,74,.28)}.review-edit-sale,.payment-summary-card .pos-cancel-link{font-size:11px}
}
@media(max-width:380px){.pos-flow-bar>div strong{display:none}.review-item-row{grid-template-columns:minmax(0,1fr) auto}.review-item-product{grid-column:1/3}.review-item-row .review-row-actions{grid-column:2;grid-row:2/5}.review-item-row>div:nth-child(2),.review-item-row>div:nth-child(4){grid-column:1}.review-item-row>div:nth-child(3),.review-item-row>div:nth-child(5){grid-column:1}}
@media print{.pos-flow-bar,.sale-review-stage{display:none!important}}

/* MauzoTrack 1.0.15 — Payment confirmation + Smart Outside Product */
.outside-smart-search{position:relative;margin-bottom:12px}.outside-name-field{position:relative}.outside-suggestions{position:absolute;z-index:45;left:0;right:0;top:calc(100% - 17px);background:var(--surface,#fff);border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 16px 34px rgba(15,23,42,.14);max-height:320px;overflow:auto;padding:6px}.outside-suggestions[hidden]{display:none!important}.outside-suggestion{appearance:none;width:100%;border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:10px 11px;border-radius:9px;cursor:pointer}.outside-suggestion:hover,.outside-suggestion:focus-visible{background:#f1f5f9;outline:none}.outside-suggestion span{display:grid;gap:2px;min-width:0}.outside-suggestion strong,.outside-suggestion small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outside-suggestion small{color:#64748b}.outside-suggestion em{font-style:normal;font-size:11px;font-weight:800;white-space:nowrap;border-radius:999px;padding:4px 7px}.outside-stock-out_of_stock{background:#fee2e2;color:#991b1b}.outside-stock-low_stock{background:#fef3c7;color:#92400e}.outside-stock-in_stock{background:#dcfce7;color:#166534}.outside-no-match{padding:10px 11px;color:#64748b;font-size:13px}.outside-selected-product{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:start;padding:10px 12px;border:1px solid #bae6fd;background:#f0f9ff;border-radius:11px}.outside-selected-product[hidden]{display:none!important}.outside-selected-product>div{display:grid;gap:2px}.outside-selected-product small{color:#475569}.outside-selected-product p{grid-column:1/-1;margin:2px 0 0;color:#0369a1;font-size:12px;font-weight:700}.payment-status-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}.payment-status-choice label{display:flex;align-items:flex-start;gap:9px;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;cursor:pointer;background:#fff}.payment-status-choice input{margin-top:3px}.payment-status-choice span{display:grid;gap:2px}.payment-status-choice small{color:#64748b;font-size:12px;line-height:1.35}.payment-status-choice label:has(input:checked){border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.1)}body.theme-dark .outside-suggestions{background:#172033;border-color:#334155}body.theme-dark .outside-suggestion:hover,body.theme-dark .outside-suggestion:focus-visible{background:#1e293b}body.theme-dark .outside-selected-product{background:#0c2c40;border-color:#075985}body.theme-dark .outside-selected-product small{color:#cbd5e1}body.theme-dark .outside-selected-product p{color:#7dd3fc}body.theme-dark .payment-status-choice label{background:#172033;border-color:#475569}body.theme-dark .payment-status-choice label:has(input:checked){border-color:#60a5fa;box-shadow:0 0 0 2px rgba(96,165,250,.14)}body.theme-dark .payment-status-choice small{color:#cbd5e1}@media(max-width:620px){.payment-status-choice{grid-template-columns:1fr}.outside-suggestions{position:relative;top:auto;margin-top:6px;max-height:250px}}

.sale-status-pair{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px}.payment-confirmation-card{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;border-color:#fed7aa;background:#fffaf5}.payment-confirmation-card h3{margin:3px 0 5px}.payment-confirmation-card p{margin:0;color:#7c2d12;max-width:670px}.payment-confirmation-actions{display:flex;align-items:flex-end;gap:10px;min-width:min(100%,430px)}.payment-confirmation-actions .form-group{margin:0;flex:1}.payment-pending-summary{margin-bottom:14px}body.theme-dark .payment-confirmation-card{background:#291b15;border-color:#7c2d12}body.theme-dark .payment-confirmation-card p{color:#fdba74}@media(max-width:800px){.payment-confirmation-card,.payment-confirmation-actions{align-items:stretch;flex-direction:column}.payment-confirmation-actions{min-width:0;width:100%}}
