:root{font-synthesis:none;color:#111827;--blue:#2563eb;--muted:#6b7280;--border:#ececec;--red:#dc2626;--green:#16a34a;background:#fafafa;font-family:Inter,Segoe UI,system-ui,sans-serif;font-size:14px;line-height:1.5}*{box-sizing:border-box}body{margin:0}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:22px;font-weight:600}h2{margin-bottom:16px;font-size:16px;font-weight:600}strong{font-weight:600}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}input,select{font-size:14px}button,.button{min-height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-weight:400;text-decoration:none;display:inline-flex}button:hover:not(:disabled),.button:hover{background:#f0f2f5;text-decoration:none}button:disabled{opacity:.45;cursor:not-allowed}button.primary,.button.primary{background:var(--blue);color:#fff}button.primary:hover:not(:disabled),.button.primary:hover{background:#1d4ed8}button svg,a svg{flex-shrink:0}:focus-visible{outline:2px solid var(--blue);outline-offset:3px}input,select{width:100%;min-width:0;height:40px;color:inherit;background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-top:8px;padding:8px 12px;display:block}input:focus,select:focus{border-color:var(--blue);outline:3px solid #2563eb18}input::placeholder{color:#9ca3af}label{color:var(--muted);font-size:12px;display:block}input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue);margin:0;display:inline-block}fieldset{border:0;min-width:0;margin:0;padding:0}.icon-button{flex-shrink:0;width:36px;height:36px;min-height:36px;padding:8px}.icon-button svg{width:18px;height:18px}.topbar{display:none}.sidebar{border-right:1px solid var(--border);z-index:30;background:#fff;flex-direction:column;width:232px;padding:32px 16px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand{color:#111827;white-space:nowrap;align-items:center;gap:12px;margin-bottom:40px;padding:0 8px;font-size:16px;font-weight:600;display:flex}.brand:hover{text-decoration:none}.app-mark{background:var(--blue);color:#fff;border-radius:8px;flex-shrink:0;place-items:center;width:28px;height:28px;display:inline-grid}.app-mark svg{width:18px;height:18px}.side-nav{gap:8px;display:grid}.side-nav a{height:36px;color:var(--muted);white-space:nowrap;border-radius:8px;align-items:center;gap:12px;padding:0 12px;display:flex}.side-nav svg{width:18px;height:18px}.side-nav a:hover{background:#f6f7f9;text-decoration:none}.side-nav a[data-status=active],.side-nav a.nav-active{color:var(--blue);background:#eff4ff}.sidebar-bottom{margin-top:auto;padding-top:32px}.avatar-wrap{position:relative}.user-row{text-align:left;color:#111827;justify-content:start;gap:8px;width:100%;padding:8px 0}.avatar{width:32px;height:32px;color:var(--blue);background:#eff4ff;border-radius:50%;flex-shrink:0;place-items:center;display:inline-grid}.user-copy{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.user-copy small{color:var(--muted);font-size:12px;display:block}.user-more{color:var(--muted);margin-left:auto}.rail-toggle{margin-top:16px}.account-menu,.row-menu-items{z-index:60;background:#fff;border-radius:8px;min-width:168px;padding:8px;position:absolute;box-shadow:0 4px 24px #1118271f}.account-menu{bottom:56px;left:0}.account-menu a,.account-menu button,.row-menu-items a,.row-menu-items button{text-align:left;white-space:nowrap;color:#111827;justify-content:start;width:100%;padding:8px 12px;display:flex}.menu-dismiss{z-index:50;cursor:default;position:fixed;inset:0;background:0 0!important}main{min-width:0;padding:32px 32px 64px}.workspace{margin-left:232px}.workspace>section{max-width:1160px;margin:0 auto}.rail .sidebar{width:64px;padding:32px 8px 16px}.rail .brand{padding:0 10px}.rail .brand>span:last-child,.rail .side-nav a span,.rail .user-copy,.rail .user-more{display:none}.rail .side-nav a{padding:0 15px}.rail .user-row{justify-content:center}.rail .workspace{margin-left:64px}.scrim{display:none}.page-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:32px;display:flex}.page-heading>div>.eyebrow{margin:4px 0 0}.page-heading>div{flex-direction:column-reverse;display:flex}.eyebrow{color:var(--muted);margin-bottom:8px;font-size:12px}.section-heading{justify-content:space-between;align-items:center;gap:16px;margin:32px 0 16px;display:flex}.section-heading h2{margin:0}.compact-heading{margin:0 0 16px}.section-heading a{font-size:12px}.muted,.note{color:var(--muted)}.note{margin:16px 0 0;font-size:12px}.error,.danger,button.danger{color:var(--red)}.error{overflow-wrap:anywhere;margin:0 0 24px}.success{color:var(--green)}.numeric,.mono,.stats strong{font-variant-numeric:tabular-nums}.numeric{text-align:right;white-space:nowrap}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin-bottom:8px;padding:0 0 32px;display:grid}.stats>div{min-width:0}.stats span{color:var(--muted);margin-bottom:8px;font-size:12px;display:block}.stats strong{letter-spacing:-1px;white-space:nowrap;font-size:30px;font-weight:600;line-height:1.5}.stats small{color:var(--muted);margin-top:8px;font-size:12px;display:block}.report-stats{grid-template-columns:repeat(3,minmax(0,1fr));padding-top:16px}.panel{background:#fff;border-radius:8px;padding:24px}.report-panel{margin:0 0 32px}.report-tables,.dashboard-lists{grid-template-columns:1fr 1fr;gap:32px;display:grid}.report-tables>div{background:0 0;min-width:0;padding:0}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.search{width:320px;max-width:100%}.search input{margin:0}.segmented,.filter-chips,.tabs:not(.report-tabs){background:#f0f1f3;border-radius:8px;gap:4px;margin:0;padding:4px;display:inline-flex}.segmented button,.filter-chips button,.tabs:not(.report-tabs) a{min-height:28px;color:var(--muted);border:0;border-radius:6px;padding:4px 12px;font-size:12px}.segmented .selected,.filter-chips .selected,.tabs:not(.report-tabs) a.selected{color:#111827;background:#fff}.tabs a:hover{text-decoration:none}.report-tabs{border-bottom:1px solid var(--border);gap:24px;margin:-8px 0 24px;display:flex}.report-tabs a{color:var(--muted);padding:0 0 12px}.report-tabs a.selected{color:var(--blue);border-bottom:2px solid var(--blue)}.table-scroll{width:100%;overflow-x:auto}table{border-collapse:collapse;text-align:left;width:100%}th{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:400}th,td{border-bottom:1px solid var(--border);vertical-align:middle;height:44px;padding:8px 12px}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}tbody tr:hover{background:#f6f7f9}td.date{color:var(--muted);white-space:nowrap;font-size:12px}.cashier{color:var(--muted);font-size:12px;display:block}.invoice-table .cashier{display:none}.badge{white-space:nowrap;color:var(--muted);align-items:center;gap:6px;font-size:12px;display:inline-flex}.badge:before{content:"";background:currentColor;border-radius:50%;flex-shrink:0;width:6px;height:6px}.badge.paid,.badge.ok{color:var(--green)}.badge.unpaid,.badge.out{color:var(--red)}.badge.low{color:#d97706}.actions{text-align:right;width:40px}.row-menu{display:inline-block}.row-menu summary{cursor:pointer;width:32px;height:27px;color:var(--muted);border-radius:8px;place-items:center;font-size:22px;list-style:none;display:grid}.row-menu summary::-webkit-details-marker{display:none}.row-menu summary:hover{background:#f0f2f5}.row-menu-items{margin-top:-4px;right:32px}.empty{color:var(--muted);margin:0;padding:24px 0}.empty button{color:var(--blue)}.invoice-search{background:#fff;border:1px solid #e5e7eb;border-radius:8px;align-items:center;gap:8px;width:360px;max-width:100%;padding:0 8px 0 12px;display:flex}.invoice-search svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}.invoice-search input{border:0;flex:1;width:0;margin:0;padding-left:0}.invoice-search input:focus{outline:none}.invoice-search:focus-within{border-color:var(--blue);outline:3px solid #2563eb18}.invoice-results{transition:opacity .15s}.invoice-results.is-loading{opacity:.45;pointer-events:none}mark{color:var(--blue);background:#eff4ff}.invoice-empty{text-align:center;color:var(--muted);background:0 0;padding:48px 0}.pagination{color:var(--muted);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:24px;padding-top:16px;font-size:12px;display:flex}.pagination label{align-items:center;gap:8px;display:flex}.pagination select{border-color:var(--border);background:0 0;width:64px;height:32px;margin:0;padding:4px 8px}.range-arrows{display:flex}.report-toolbar{background:0 0;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:24px;padding:0;display:flex}.report-toolbar h2{flex:1;margin:0;font-size:14px;font-weight:600}.report-toolbar>.segmented{margin-left:auto}.custom-dates{align-items:end;gap:16px;width:100%;display:flex}.custom-dates label{flex:1;max-width:200px}.custom-dates span{padding-bottom:8px;font-size:12px}.inventory-table th button{min-height:28px;padding:0;font-size:12px}.inventory-table th:nth-child(n+3):not(:last-child){text-align:right}.chart-tooltip{height:24px;color:var(--muted);font-size:12px}.chart-scroll svg{width:100%;height:208px;display:block;overflow:visible}.chart-scroll text{fill:var(--muted);font-size:12px}.chart-legend{color:var(--muted);justify-content:center;gap:24px;padding-top:8px;font-size:12px;display:flex}.chart-legend span{align-items:center;gap:8px;display:flex}.chart-legend i{background:var(--blue);width:16px;height:2px}.chart-legend .out-dot{background:#9ca3af}.sale-layout{grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:32px;display:grid}.product-search{height:48px;margin:0}.product-list{margin-top:16px}.product-option{border-bottom:1px solid var(--border);text-align:left;color:#111827;border-radius:0;justify-content:space-between;gap:16px;width:100%;padding:16px 0;display:flex}.product-option small{color:var(--muted);margin-top:4px;font-size:12px;display:block}.product-meta{text-align:right;flex-shrink:0}.cart{background:#fff;border-radius:8px;padding:24px;position:sticky;top:32px}.cart h2{margin-bottom:8px}.cart fieldset{clear:both}.cart-item{border-bottom:1px solid var(--border);padding:16px 0}.cart-item-heading,.cart-item-details{justify-content:space-between;align-items:center;gap:8px;display:flex}.cart-item-heading{margin-bottom:8px}.cart-item-heading strong,.cart-item-details strong{font-size:14px}.stepper{background:#f6f7f9;border-radius:8px;align-items:center;gap:0;display:inline-flex}.stepper button{width:32px;min-height:32px;padding:4px}.stepper input{text-align:center;appearance:textfield;background:0 0;border:0;width:40px;height:32px;margin:0;padding:0}.stepper input::-webkit-inner-spin-button{appearance:none}.cart-customer{margin-top:24px}.checkbox{align-items:center;gap:8px;margin:16px 0;font-size:14px;display:flex}.switch input{appearance:none;background:#d1d5db;border:0;border-radius:20px;width:32px;height:20px;padding:3px}.switch input:before{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .15s;display:block}.switch input:checked{background:var(--blue)}.switch input:checked:before{transform:translate(12px)}.grand-total{justify-content:space-between;align-items:center;margin:24px 0;display:flex}.grand-total strong{letter-spacing:-1px;font-size:30px}.full-width{width:100%}.cart-bar,.cart-close{display:none}.form-grid,.stack-form{gap:16px;display:grid}.form-grid{grid-template-columns:1fr 1fr}.form-grid .wide,.form-grid .form-actions,.self-note{grid-column:1/-1}.form-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.form-grid .form-actions{padding-top:16px}.overlay-heading{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.overlay-heading h2{margin:0}dialog{color:#111827;background:#fff;border:0;max-height:100dvh;padding:32px;box-shadow:0 8px 40px #11182726}dialog::backdrop{background:#11182740}.drawer{width:420px;max-width:100%;height:100dvh;margin:0;position:fixed;inset:0 0 0 auto}.dialog{border-radius:12px;width:400px;max-width:calc(100% - 32px)}.drawer .form-grid{grid-template-columns:1fr}.drawer .form-grid>*{grid-column:1}.stock-stepper{margin-bottom:16px}.stock-stepper input{width:72px}.stack-form>button{justify-self:start}.stack-form>.full-width{justify-self:stretch}.document{max-width:720px!important}.document-toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:24px;display:flex}.document-toolbar>a{margin-right:auto}.invoice-sheet{background:#fff;padding:48px}.invoice-shop{align-items:center;gap:8px;margin-bottom:48px;font-weight:600;display:flex}.invoice-sheet .page-heading{margin-bottom:32px}.invoice-meta{flex-wrap:wrap;gap:24px 48px;margin:0 0 32px;display:flex}.invoice-meta dt{color:var(--muted);margin-bottom:8px;font-size:12px}.invoice-meta dd{margin:0}.invoice-sheet tfoot td,.invoice-sheet tfoot th{border:0;padding-top:32px;font-size:22px;font-weight:600}.public-main{place-items:center;min-height:100svh;padding:32px 16px;display:grid}.auth-card{background:0 0;width:100%;max-width:352px;padding:0}.auth-card .app-mark{margin-bottom:24px}.auth-description{color:var(--muted);margin:8px 0 32px}.profile{flex-wrap:wrap}.skeleton{gap:16px;padding:16px 0;display:grid}.skeleton i{background:linear-gradient(90deg,#eee,#f5f5f5,#eee) 0 0/200% 100%;border-radius:4px;height:28px;animation:1.5s infinite pulse;display:block}.skeleton i:nth-child(2n){width:80%}@keyframes pulse{to{background-position:-200% 0}}.sr-only,.skip-link:not(:focus){clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link:focus{z-index:100;background:#fff;padding:8px;position:fixed;top:8px;left:8px}@media (width>=900px) and (width<=1200px){.stats{gap:16px}.stats strong{font-size:26px}.sale-layout{grid-template-columns:minmax(0,1fr) 340px;gap:24px}}@media (width<=899px){.topbar{border-bottom:1px solid var(--border);z-index:25;background:#fff;align-items:center;gap:8px;height:56px;padding:0 12px;display:flex;position:fixed;inset:0 0 auto}.app-title{font-size:14px;font-weight:600}.sidebar,.rail .sidebar{visibility:hidden;width:232px;padding:32px 16px 16px;transform:translate(-100%)}.drawer-open .sidebar{visibility:visible;transform:none}.scrim{z-index:29;border:0;border-radius:0;display:block;position:fixed;inset:0;background:#11182740!important}.rail .brand{padding:0 8px}.rail .brand>span:last-child,.rail .side-nav a span,.rail .user-copy,.rail .user-more{display:block}.rail .side-nav a{padding:0 12px}.rail .user-row{justify-content:start}.rail-toggle{display:none}.workspace,.rail .workspace{margin:56px 0 0}main{padding:24px 16px 48px}.report-tables,.dashboard-lists,.sale-layout{grid-template-columns:1fr}.sale-layout>div{padding-bottom:72px}.cart{display:none}.cart.expanded{z-index:26;border-radius:0;padding:24px 16px 96px;display:block;position:fixed;inset:56px 0 0;overflow-y:auto}.cart-bar{border-top:1px solid var(--border);z-index:27;color:#111827;background:#fff;border-radius:0;justify-content:space-between;gap:16px;min-height:72px;padding:16px;display:flex;position:fixed;inset:auto 0 0}.cart-bar>span:last-child{color:var(--blue)}.cart-close{float:right;display:inline-flex}.chart-scroll svg{height:190px}}@media (width<=719px){.page-heading{gap:8px;margin-bottom:24px}.page-heading .button,.page-heading>button{white-space:nowrap;padding:8px 12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;padding-bottom:24px}.stats strong{font-size:30px}.report-stats{grid-template-columns:1fr 1fr}.report-stats>div:first-child{grid-column:1/-1}.stats span{margin-bottom:4px}.panel{padding:16px}.table-scroll{overflow:visible}th,td{padding:8px}.hide-mobile,.invoice-table th:nth-child(2),.invoice-table td:nth-child(2),.invoice-table th:nth-child(3),.invoice-table td:nth-child(3){display:none}.invoice-table td:first-child{overflow-wrap:anywhere}.invoice-table th,.invoice-table td{padding:8px 6px}.inventory-table th:first-child,.inventory-table td:first-child,.inventory-table th:nth-child(4),.inventory-table td:nth-child(4),.inventory-table th:nth-child(5),.inventory-table td:nth-child(5),.inventory-table th:nth-child(6),.inventory-table td:nth-child(6),.inventory-table th:nth-child(7),.inventory-table td:nth-child(7),.inventory-table th:nth-child(8),.inventory-table td:nth-child(8){display:none}.products-table td:nth-child(2){overflow-wrap:anywhere}.product-stock .badge{gap:4px}.invoice-search,.search{width:100%}.toolbar{gap:16px}.pagination{justify-content:space-between;gap:8px 16px}.pagination label{gap:0;font-size:0}.pagination select{font-size:12px}.report-toolbar h2{flex-basis:100%;order:-1;margin-bottom:8px}.report-toolbar>.segmented{margin-left:auto}.report-toolbar .segmented button{padding:4px 8px}.report-toolbar>button{padding:8px}.report-toolbar .icon-button{width:28px;padding:5px}.custom-dates{flex-wrap:wrap;gap:8px}.custom-dates span{display:none}.document-toolbar{gap:4px}.document-toolbar>a{width:100%;margin-bottom:8px}.invoice-sheet{padding:24px 16px}.invoice-shop{margin-bottom:32px}.invoice-meta{gap:24px}.invoice-sheet th,.invoice-sheet td{padding:8px 6px}.invoice-sheet td:first-child{overflow-wrap:anywhere}.invoice-sheet .item-price{display:none}.invoice-sheet tfoot th,.invoice-sheet tfoot td{font-size:22px}.drawer{width:100%;padding:24px 16px}.row-menu-items{right:16px}.chart-tooltip{height:32px;font-size:12px}.chart-scroll text{font-size:14px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media print{:root,body{color:#000;background:#fff}.no-print,.skip-link,button,.error{display:none!important}main,.workspace,.rail .workspace{margin:0;padding:0}.document{max-width:none!important}.invoice-sheet{padding:0}.invoice-sheet .item-price{display:table-cell}.invoice-table th,.invoice-table td{display:table-cell!important}tr{break-inside:avoid}@page{margin:18mm}}
