:root{--bg:#f5f7f6;--paper:#fff;--ink:#20332d;--muted:#819087;--line:#e6ece8;--brand:#17674e;--brand-dark:#104b39;--soft:#edf5ef;--orange:#c08737;--red:#c0544b;--shadow:0 10px 35px #173d2710}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #77b49c;outline-offset:3px}a{color:var(--brand);text-decoration:none}button{color:inherit;background:white;border:1px solid var(--line);border-radius:8px;padding:9px 14px;transition:background .15s}button:hover{background:#f0f5f2}button.primary{background:var(--brand);color:white;border-color:var(--brand)}button.primary:hover{background:var(--brand-dark)}button.dark{background:#1e352d;color:white}button.danger{color:var(--red);border-color:#efd8d3}button.ghost{background:transparent;border-color:transparent}button.small{padding:5px 10px;font-size:12px}button.icon{padding:7px;display:inline-grid;place-items:center}button.link{border:none;background:none;padding:2px;color:var(--brand);font-size:13px}input,select,textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid #dfe6e1;border-radius:7px;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#629e82;box-shadow:0 0 0 3px #16654d0a}input[type=checkbox]{width:17px;min-height:17px;height:17px;accent-color:var(--brand)}input[type=number]{font-variant-numeric:tabular-nums}textarea{resize:vertical}label.field{display:block;color:#6f7e75;font-size:12px}label.field>input,label.field>select,label.field>textarea{margin-top:6px;color:var(--ink);font-size:14px}h1,h2,h3,p{margin:0}h1{font-size:26px;font-weight:650;letter-spacing:-.6px}h2{font-size:17px;font-weight:650}h3{font-size:14px;font-weight:650}.muted{color:var(--muted)}.tiny{font-size:11px}.small-text{font-size:12px}.number{font-variant-numeric:tabular-nums;letter-spacing:.1px}.green{color:var(--brand)}.red{color:var(--red)}.amber{color:var(--orange)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:#8a9890}.icon-svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;width:208px;height:100vh;background:#193d30;color:#c2d3c9;padding:28px 16px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:10px;color:#fff;padding:0 9px;margin-bottom:35px}.brandmark{width:36px;height:36px;background:#ddecbe;color:#224c35;border-radius:10px;display:grid;place-items:center;font-size:24px;line-height:1;font-weight:700}.brand b{font-size:20px;letter-spacing:-.7px}.brand small{display:block;font-size:9px;letter-spacing:2.4px;color:#8aa995;margin-top:-3px}.nav-caption{font-size:10px;letter-spacing:1.4px;color:#789b89;margin:18px 14px 8px}.nav-item{width:100%;display:flex;gap:12px;align-items:center;color:#b8cfc0;padding:11px 14px;margin:3px 0;border:0;background:transparent;border-radius:7px;font-size:13px;text-align:left}.nav-item:hover{background:#234d3d}.nav-item.active{background:#d9e9bd;color:#213c2a;font-weight:650}.nav-item .nav-dot{margin-left:auto;font-size:10px;background:#325c48;padding:0 6px;border-radius:6px;color:#cfe2d4}.nav-foot{margin-top:auto;border-top:1px solid #315140;padding:20px 10px 0}.avatar{display:inline-grid;place-items:center;background:#ebf3e7;color:#456144;border-radius:9px;width:34px;height:34px;font-size:12px;font-weight:650}.nav-foot .avatar{background:#355743;color:#d9e5d7}.main{grid-column:2;min-width:0}.topbar{height:66px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:10px}.crumb{font-size:12px;color:#8a968e}.crumb span{color:#354a3d;margin-left:9px}.top-status{display:flex;align-items:center;gap:16px;font-size:11px;color:#849389}.status-dot{width:6px;height:6px;border-radius:50%;background:#669373;display:inline-block;margin-right:5px}.badge{display:inline-flex;align-items:center;border-radius:5px;padding:3px 7px;font-size:11px;line-height:1.55;background:#edf4ed;color:#5b7c60;white-space:nowrap}.badge.warn{background:#fbf2e3;color:#ab7c35}.badge.danger{background:#faece9;color:#b96155}.badge.gray{background:#f0f2f0;color:#7e8a82}.workspace{padding:24px 30px 30px;max-width:1720px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:15px}.page-heading p{color:#8b978e;font-size:12px;margin-top:3px}.row{display:flex;align-items:center;gap:10px}.spread{display:flex;align-items:center;justify-content:space-between;gap:10px}.stack{display:grid;gap:14px}.gap6{gap:6px}.wrap{flex-wrap:wrap}.trialbar{font-size:11px;color:#858f82;background:#f0f3e9;border:1px solid #e7ebde;border-radius:6px;padding:8px 12px;margin-bottom:18px}.trialbar b{color:#526846;font-weight:550}.panel{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;box-shadow:0 2px 5px #244f351;} .panel-pad{padding:20px}.panel-title{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-title span{font-size:11px;color:var(--muted)}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.kpi{padding:21px 22px;background:#fff;border:1px solid var(--line);border-radius:10px}.kpi .klabel{display:flex;justify-content:space-between;align-items:center;color:#849188;font-size:12px}.kpi strong{display:block;font-size:28px;font-weight:600;margin:8px 0 5px;letter-spacing:-.8px;line-height:1.3}.kpi small{font-size:11px;color:#95a098}.kpi.featured{background:#e8efe0;border-color:#d9e5cd}.two-col{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}.empty{padding:50px 20px;text-align:center;color:#96a297}.empty b{display:block;font-weight:500;font-size:15px;color:#6c8172;margin-bottom:6px}.empty .icon-svg{width:36px;height:36px;margin-bottom:12px;color:#b1c4b2}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{background:#f8faf8;color:#8c978e;font-weight:500;text-align:left;font-size:11px;padding:11px 17px;border-bottom:1px solid var(--line)}td{padding:13px 17px;border-bottom:1px solid #eef2ee;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcf9}th.right,td.right{text-align:right}td.product{white-space:normal;min-width:170px}.product b{display:block;font-weight:500;font-size:12px;line-height:1.6}.product .sub{font-size:10px;color:#9ba59d}.table-total{background:#f9fbf8;font-weight:600}.toolbar{padding:15px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.toolbar .search{flex:1;max-width:430px}.search{position:relative}.search>.icon-svg{position:absolute;left:12px;top:12px;color:#a2aea4;width:17px;height:17px}.search input{padding-left:37px}.search kbd{position:absolute;right:9px;top:10px}kbd{font:10px ui-monospace,monospace;border:1px solid #dde5dd;border-bottom-width:2px;border-radius:4px;padding:1px 5px;color:#8d9b8f;background:#fbfcfa}.pos-context{background:white;border:1px solid var(--line);border-radius:10px;padding:15px 19px;display:grid;grid-template-columns:minmax(205px,1.5fr) 1fr .8fr .6fr;gap:17px;margin-bottom:16px}.customer-control{position:relative}.customer-control button{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;margin-top:6px;height:40px}.customer-control .customer-popup{position:absolute;top:70px;left:0;width:340px;max-height:360px;overflow:auto;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);z-index:9;padding:10px}.customer-option{padding:10px 8px;cursor:pointer;border-radius:6px}.customer-option:hover{background:var(--soft)}.customer-hint{grid-column:1/-1;font-size:11px;border-top:1px dashed var(--line);padding-top:9px;margin-top:-3px;color:#8a958b}.customer-hint strong{font-weight:500;margin-right:18px}.pos-grid{display:grid;grid-template-columns:minmax(340px,1fr) minmax(400px,1.13fr);gap:17px;align-items:start}.catalog .search{margin:16px 17px 12px}.categories{display:flex;overflow:auto;gap:6px;padding:0 17px 13px}.chip{white-space:nowrap;padding:4px 11px;border:1px solid #e9eee7;background:white;color:#83907f;font-size:11px;border-radius:5px}.chip.active{background:#edf4e8;color:#55723c;border-color:#dbe8d2}.catalog-table{max-height:467px;overflow:auto}.catalog-table thead{position:sticky;top:0;z-index:1}.catalog-table tr{cursor:pointer}.catalog-table tr.selected{background:#eff5e9}.catalog-table td,.catalog-table th{padding:11px 13px}.catalog-table .add-product{font-size:17px;color:#718668;border:1px solid #e0e8d9;width:25px;height:25px;padding:0;border-radius:5px;line-height:20px}.catalog-footer{padding:11px 16px;border-top:1px solid var(--line);font-size:10px;color:#9aa593}.order-top{background:#f8fbf5;display:flex;justify-content:space-between;padding:19px 21px;border-bottom:1px solid #e8eee1}.order-top h2{font-size:15px}.order-total{text-align:right}.order-total .label{font-size:10px;color:#9aa38f}.order-total .value{font-size:31px;line-height:1.4;font-weight:620;color:#496333;letter-spacing:-1.1px}.order-total .value small{font-size:12px;letter-spacing:0;font-weight:400;color:#889976}.order-total .chinese-amount{font-size:10px;color:#90a079}.cart-table{min-height:206px;max-height:318px;overflow:auto}.cart-table td,.cart-table th{padding:10px 12px}.qty{display:flex;align-items:center;border:1px solid #e2e8dd;border-radius:5px;width:92px;overflow:hidden;flex:none}.qty button{border:0;padding:2px 7px;border-radius:0;font-size:13px;background:#fafcf8}.qty input{border:0;padding:2px;width:40px;min-height:28px;text-align:center;border-radius:0;-moz-appearance:textfield;box-shadow:none}.qty input::-webkit-inner-spin-button{-webkit-appearance:none}.remove{border:0;background:none;padding:0 4px;color:#aab2a3;font-size:18px}.cart-empty{height:206px;display:grid;place-content:center;text-align:center;color:#a6b19f;font-size:12px}.cart-empty strong{font-size:26px;color:#c9d6c1;font-weight:400}.cart-summary{padding:13px 21px;border-top:1px solid var(--line);font-size:11px;color:#8b9885;display:grid;gap:5px}.checkout{padding:17px 20px 19px;border-top:1px solid var(--line)}.payment-options{display:grid;grid-template-columns:1fr 1fr 1fr .8fr;gap:7px;margin:10px 0 12px}.payment-option{padding:10px 2px;border:1px solid #e5eae0;border-radius:7px;background:#fff;font-size:12px;color:#8b9582}.payment-option.active{border-color:#729267;background:#eef5e8;color:#41613b}.payment-option span{display:block;font-size:9px;opacity:.7}.checkout-hint{background:#f7f9f4;padding:9px 11px;color:#849477;font-size:11px;border-radius:6px;min-height:35px;margin:12px 0}.submit-row{display:grid;grid-template-columns:1fr 1.45fr;gap:9px}.submit-row button{padding:11px 5px;font-size:13px}.split-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .full{grid-column:1/-1}.selectable tr.selected{background:#f2f7ee}.account-layout{display:grid;grid-template-columns:310px 1fr;gap:18px}.customer-list{max-height:700px;overflow:auto}.customer-card{display:block;width:100%;text-align:left;padding:15px 17px;border:0;border-radius:0;border-bottom:1px solid var(--line)}.customer-card.active{background:#eef4e8;border-left:3px solid #769565;padding-left:14px}.customer-card .name{font-size:13px;font-weight:500}.customer-card .amount{font-size:17px;margin-top:7px;font-weight:550}.account-hero{padding:22px;border-bottom:1px solid var(--line)}.account-hero h2{font-size:21px}.account-numbers{display:flex;gap:35px;margin:18px 0 0}.account-numbers small{display:block;font-size:11px;color:#95a08f}.account-numbers b{font-size:23px;font-weight:550}.tabs{display:flex;gap:20px;padding:0 20px;border-bottom:1px solid var(--line)}.tabs button{border:none;border-radius:0;padding:13px 0;background:none;color:#8c9986;font-size:12px}.tabs button.active{color:#55793e;border-bottom:2px solid #729461;font-weight:600}.due-label{font-size:10px;color:#b88340}.notice{background:#f6f8f1;border:1px solid #e9ecdf;color:#81906e;font-size:12px;padding:11px 13px;border-radius:7px}.notice.warning{background:#fff8ec;border-color:#f1e5cf;color:#ad8645}.notice.error{background:#fff0ee;border-color:#f2d8d1;color:#b75b50}.steps{display:flex;align-items:center;gap:15px;margin-bottom:18px;color:#90a083;font-size:11px}.steps b{background:#e8efde;width:23px;height:23px;display:inline-grid;place-items:center;border-radius:50%;font-size:10px;margin-right:6px;color:#678355}.reconcile-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px}.reconcile-card{padding:20px;border:1px solid var(--line);border-radius:9px;background:#fff}.reconcile-card h3{margin-bottom:15px}.reconcile-lines{display:grid;gap:10px;font-size:12px;color:#84917c;margin-bottom:18px}.reconcile-lines b{color:#4d6040;font-weight:500}.reconcile-lines .final{padding-top:10px;border-top:1px solid var(--line);font-weight:600}.difference{padding:14px;background:#f4f7ee;border-radius:7px;margin-top:15px}.difference b{font-size:22px}.timeline{padding:6px 20px}.timeline-item{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.timeline-item:last-child{border-bottom:0}.timeline-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#f0f4e9;color:#82956c;flex:none}.timeline-item p{font-size:10px;color:#9ca690}.stock-low{width:70px;height:4px;background:#eaf0e4;border-radius:3px;margin-top:5px;overflow:hidden}.stock-low i{height:4px;background:#bfbe7a;display:block}.modal-backdrop{position:fixed;inset:0;background:#14312760;backdrop-filter:blur(3px);z-index:30;display:grid;place-items:center;padding:25px}.modal{background:white;border:1px solid #e7ebe2;border-radius:13px;box-shadow:0 25px 100px #10342444;width:620px;max-width:100%;max-height:90vh;display:flex;flex-direction:column}.modal.wide{width:880px}.modal-header{padding:21px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-header h2{font-size:19px}.modal-body{padding:22px 25px;overflow:auto}.modal-footer{padding:17px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.modal-footer .help{margin-right:auto;align-self:center;font-size:11px;color:#91a083}.modal .table-wrap{max-height:270px;overflow:auto;border:1px solid var(--line);border-radius:7px}.modal th,.modal td{padding:10px}.form-error{display:none}.form-error:not(:empty){display:block;background:#fff2ee;color:#ac5d4a;padding:9px 12px;border-radius:6px;font-size:12px;margin-bottom:15px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);opacity:0;background:#224d39;color:#fff;padding:12px 23px;border-radius:9px;box-shadow:var(--shadow);font-size:13px;z-index:60;transition:.2s;pointer-events:none;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#a85646}.receipt-preview{max-width:560px;margin:auto;padding:26px;border:1px solid #e0e4dd;color:#262d26;background:#fff;font-size:12px}.receipt-preview h1{text-align:center;font-size:24px}.receipt-preview h2{text-align:center;margin:12px 0 20px}.receipt-preview table{font-size:11px;white-space:normal}.receipt-preview th{background:#d2d8cb;color:#333}.receipt-preview td,.receipt-preview th{border:1px solid #a8b49e;padding:7px 8px}.receipt-preview .invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:4px;font-size:10px;margin-bottom:12px}.receipt-preview .receipt-total{font-size:16px;font-weight:650;border-top:2px solid #616f56;margin-top:15px;padding-top:10px}.receipt-preview .footnote{font-size:10px;text-align:center;margin-top:30px;color:#8a937f}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.link-card{border:1px solid var(--line);border-radius:8px;padding:17px;display:flex;justify-content:space-between;gap:12px}.link-card p{font-size:11px;color:#94a08a}.boot{padding:80px;text-align:center;color:#6a7c69}#print-root{display:none}.date-input{width:150px!important}.pagination{display:flex;justify-content:space-between;padding:12px 18px;font-size:11px;color:#8d9984;border-top:1px solid var(--line)}
@media(min-width:1600px){.workspace{padding:30px 40px}.catalog-table{max-height:570px}.cart-table{min-height:300px}.cart-empty{height:300px}}
@media(max-width:1150px){.sidebar{width:174px;padding:25px 11px}.shell{grid-template-columns:174px 1fr}.workspace{padding:20px}.topbar{padding:0 20px}.pos-grid{grid-template-columns:minmax(280px,1fr) minmax(355px,1.12fr);gap:12px}.pos-context{gap:10px;grid-template-columns:1.3fr 1fr .8fr .65fr;padding:12px}.account-layout{grid-template-columns:240px 1fr}.kpis{gap:10px}.kpi{padding:16px}.kpi strong{font-size:24px}.reconcile-grid{grid-template-columns:1fr 1fr}.reconcile-card:last-child{grid-column:1/-1}.catalog-table th,.catalog-table td{padding:10px}.hide-medium{display:none}.top-status{gap:9px}}
@media(max-width:850px){.shell{grid-template-columns:66px 1fr}.sidebar{width:66px;padding:22px 7px}.brand{padding:0 8px}.brand b,.brand small,.nav-label,.nav-caption,.nav-dot,.nav-foot .name{display:none!important}.brand{gap:0}.brandmark{width:36px;height:36px}.nav-item{padding:13px;justify-content:center}.nav-foot{padding:16px 7px}.pos-grid{grid-template-columns:1fr}.pos-context{grid-template-columns:1fr 1fr}.catalog-table{max-height:255px}.kpis{grid-template-columns:1fr 1fr}.two-col,.settings-grid{grid-template-columns:1fr}.account-layout{grid-template-columns:1fr}.customer-list{display:flex;max-height:150px;overflow:auto}.customer-card{min-width:200px;border-left:0!important}.account-numbers{gap:20px}.top-status .hide-mobile{display:none}.topbar{height:56px}.page-heading{align-items:flex-start}.page-heading h1{font-size:22px}.page-heading>.row{flex-wrap:wrap;justify-content:flex-end}.workspace{padding:17px}.reconcile-grid{grid-template-columns:1fr}.reconcile-card:last-child{grid-column:auto}}
@media(max-width:520px){.topbar{padding:0 14px}.crumb{font-size:11px}.top-status{display:none}.workspace{padding:13px}.trialbar{line-height:1.7}.kpi strong{font-size:21px}.kpi{padding:14px}.form-grid{grid-template-columns:1fr}.modal-backdrop{padding:10px}.modal-header,.modal-body,.modal-footer{padding:17px}.pos-context{grid-template-columns:1fr 1fr}.pos-context>.field:first-child{grid-column:1/-1}.account-numbers{flex-wrap:wrap}.toolbar{flex-wrap:wrap}.toolbar .search{min-width:180px}.page-heading{gap:8px}.page-heading p{font-size:10px}.page-heading .row button{font-size:11px;padding:7px}.modal-footer .help{display:none}}
.receipt-preview table{font-size:var(--invoice-font,11px)}.receipt-preview th{background:var(--header-bg,#d2d8cb);color:var(--header-ink,#222)}.receipt-preview .invoice-meta{font-size:.85em}.print-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:20px}.print-stage{background:#edf0e9;border:1px solid #e0e6d9;border-radius:10px;padding:25px;overflow:auto}.print-stage .receipt-preview{box-shadow:0 8px 30px #30482513;min-height:520px}.import-flow{display:grid;grid-template-columns:1fr 1fr;gap:18px}.filedrop{padding:28px;background:#f8faf5;border:1.5px dashed #b8c7ab;border-radius:9px;text-align:center}.filedrop input{padding:12px;margin-top:16px;background:white;font-size:12px}.filedrop .icon-svg{width:29px;height:29px;color:#869b70}.import-counts{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:15px 0}.import-counts>div{padding:12px;border:1px solid var(--line);background:#fff;border-radius:7px;font-size:11px;color:#8e9a84}.import-counts b{display:block;font-size:21px;color:#4b633a}.import-result{padding:20px;border:1px solid #d8e7cc;border-radius:9px;background:#f0f6e9}.receipt-preview td{overflow-wrap:anywhere}.receipt-preview h1{overflow-wrap:anywhere}
@media(max-width:950px){.print-layout,.import-flow{grid-template-columns:1fr}.import-counts{grid-template-columns:repeat(3,1fr)}}
@media print{@page{size:A5;margin:9mm}body{background:white;color:black}#app,#overlay,#toast{display:none!important}#print-root{display:block!important}.receipt-preview{padding:0;border:0;max-width:none}.receipt-preview table{width:100%;table-layout:auto}.receipt-preview thead{display:table-header-group}.receipt-preview tr{break-inside:avoid}.receipt-preview .receipt-total{break-inside:avoid}.receipt-preview th{-webkit-print-color-adjust:exact;print-color-adjust:exact}.receipt-preview .footnote{margin-top:12px}.receipt-preview .invoice-meta{font-size:.85em}}

.sidebar{overflow-y:auto}.nav-item{flex-shrink:0}.receipt-preview tbody tr:last-child td{border-bottom:1px solid #a8b49e}

/* Fast keyword entry remains visible and independent of category browsing. */
.pos-search-block{padding:16px 17px 12px;background:#f3f8f4;border-bottom:1px solid var(--line)}.pos-search-label{display:block;font-size:13px;font-weight:650;color:var(--brand);margin-bottom:8px}.pos-search-row{display:flex;gap:8px;align-items:center;margin-bottom:7px}.catalog .pos-search-row .search{flex:1;min-width:0;margin:0}.pos-search-row input{height:46px;border-color:#8eb49e;font-size:14px}.pos-search-row>button{white-space:nowrap;font-size:12px;padding:12px 10px}.search-summary{padding:0 17px 10px;color:#748477;font-size:11px}.pos-search-row input:focus{box-shadow:0 0 0 3px #17674e20;border-color:var(--brand)}
@media(max-width:1050px){.pos-search-row{flex-wrap:wrap}.catalog .pos-search-row .search{flex-basis:100%}.pos-search-row>button{width:100%;padding:8px}}

/* Editable transaction prices follow the keyboard entry sequence. */
.line-price{width:102px}.line-price input{padding:7px 6px;min-height:34px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums}.price-meta{display:flex;justify-content:space-between;gap:4px;font-size:9px;white-space:nowrap;margin-top:3px}.price-meta button.link{font-size:9px;padding:0}.price-meta button[hidden]{display:none}.cart-table table{min-width:520px}.cart-table input:focus{outline:2px solid #84aa93;outline-offset:1px}.cart-table td.product{min-width:130px}.cart-table th,.cart-table td{padding:11px 9px}.pos-grid{grid-template-columns:minmax(280px,.85fr) minmax(490px,1.15fr)}
@media(max-width:1100px){.pos-grid{grid-template-columns:1fr}.catalog-table{max-height:280px}}

.setup-guide{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:18px 20px;margin:16px 0 24px;background:#edf5ed;border:1px solid #d3e3d5;border-radius:10px}.setup-guide b{font-size:14px;color:#28513c}.setup-guide p{font-size:12px;color:#627c69;margin:6px 0 0}.setup-guide .row{flex-wrap:wrap}.setup-guide button{font-size:12px;white-space:nowrap}@media(max-width:1100px){.setup-guide{align-items:flex-start;flex-direction:column}}

/* Named accounts keep the counter flow focused and prices controlled. */
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(340px,1.05fr) minmax(400px,.95fr);background:#f5f7f1}.login-story{background:#154a3b;color:#fff;padding:52px 62px;display:flex;flex-direction:column;justify-content:space-between;gap:60px;background-image:radial-gradient(ellipse at 95% 15%,#346752 0,transparent 62%)}.login-brand{display:flex;align-items:center;gap:14px;font-size:22px;font-weight:650;letter-spacing:.04em}.login-brand .brandmark{background:#dce8c1;color:#154a3b;width:46px;height:46px;font-size:28px}.login-eyebrow{color:#cfddbd;font-size:12px;letter-spacing:.13em}.login-story h1{font-size:clamp(32px,3.6vw,54px);line-height:1.45;font-weight:550;letter-spacing:.025em;margin:23px 0}.login-story p{font-size:15px;color:#c1d5c9;line-height:1.9;max-width:400px}.login-story>small{letter-spacing:.18em;color:#88b19d;font-size:10px}.login-steps{display:flex;gap:20px;flex-wrap:wrap;color:#e0eacb;margin-top:36px;font-size:12px}.login-steps span{padding-top:13px;border-top:1px solid #4d7864}.login-card-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{width:100%;max-width:365px}.login-card h2{font-size:28px;margin:20px 0 10px;color:#183f32}.login-card>p{font-size:13px;margin:0 0 28px}.login-card .field{margin-top:19px;font-size:13px}.login-card input{height:48px;background:#fff;border-color:#cbd6c8;font-size:14px}.login-card>button{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;margin-top:25px;min-height:48px;font-size:14px}.login-card .form-error:not(:empty){display:block;padding:12px 14px;background:#fff0e9;border:1px solid #f0ceba;border-radius:8px;line-height:1.6;color:#8a3d25}.login-help{border-top:1px solid #dce2d5;padding-top:22px;margin-top:28px;font-size:12px;color:#6d7d70;line-height:1.7}.login-help b{display:block;color:#485f50;font-size:12px;margin-bottom:4px}.logout-button{padding:6px 9px;background:#ffffff0d;color:#d6e6d7;border-color:#4a6854;font-size:11px;margin-left:auto}.logout-button:hover{background:#ffffff1b}.nav-foot .name{min-width:0;flex:1}.nav-foot .name .small-text{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.locked-price{min-width:96px;text-align:right;line-height:1.6}.locked-price b{font-weight:650;font-size:13px}.locked-price span{display:block;color:#809080;font-size:9px;white-space:nowrap}.pos-context select:disabled,.pos-context input[readonly]{color:#526750;background:#f1f4ed;border-color:#dce3d7;opacity:1;cursor:default}.customer-defaults{font-size:11px;color:#6b7c68;margin-top:10px}.permission-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.permission-cards h3{margin:14px 0 7px}.permission-cards p{font-size:12px;color:#71816f;line-height:1.8;margin-bottom:0}.customer-option.keyboard-active{background:#e3eedf;outline:1px solid #8eae8b;outline-offset:-1px}
@media(max-width:850px){.login-page{grid-template-columns:1fr}.login-story{padding:28px;gap:28px}.login-story h1{font-size:28px;margin:12px 0}.login-story h1 br{display:none}.login-story p,.login-story>small,.login-steps{display:none}.login-card-wrap{padding:35px 25px 50px}.login-card{max-width:430px}.permission-cards{grid-template-columns:1fr}}

.locked-field>span{display:block;color:#6f7e75;font-size:12px}.locked-value{margin-top:6px;min-height:40px;padding:9px 11px;border:1px solid #dce3d7;border-radius:7px;background:#f1f4ed;color:#526750;display:flex;gap:8px;align-items:center;justify-content:space-between}.locked-value b{font-size:14px;font-weight:500}.locked-value small{font-size:10px;color:#84917c}

/* Product records remain visible until pricing, activation and real stock are ready. */
.product-issues{display:flex;flex-wrap:wrap;gap:4px;max-width:245px;margin-top:5px}.product-issues .badge{font-size:10px;white-space:nowrap}.product-repair{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:6px}.product-repair button.link{font-size:11px;padding:0}.catalog-table tr.product-unavailable{cursor:default}.catalog-table tr.product-unavailable.selected{background:#fcf4e7}.catalog-table .add-product:disabled{color:#b9bcb1;cursor:not-allowed;background:#f2f2ed}.catalog-footer>.link{font-size:11px;padding:0;margin-bottom:7px}.catalog-guidance{margin:0 0 18px;line-height:1.8}.catalog-count-line{padding:12px 18px;font-size:12px;color:#627963;border-bottom:1px solid var(--line)}.product-register{max-height:620px;overflow:auto}.product-register table{min-width:850px}.product-register thead{position:sticky;top:0;z-index:1}.product-register td.product{min-width:200px;max-width:350px;white-space:normal}.product-register .product-issues{min-width:145px}.product-actions{display:flex;gap:6px;justify-content:flex-end}.product-pagination{align-items:center;gap:10px;flex-wrap:wrap}.product-pagination button{min-width:52px}#product-register-filter{width:155px}.import-result .notice{margin-top:15px;line-height:1.8}.import-next-steps{font-size:12px;line-height:1.8;padding-left:24px;margin:18px 0}.import-next-steps li{margin:7px 0}.import-result-actions{margin-top:16px;flex-wrap:wrap}.import-activation{padding:15px 18px;border-top:1px solid var(--line);background:#fafbf7;font-size:12px}.import-activation p{margin:7px 0 0;line-height:1.8}.import-activation input{flex:none}

/* Offline work is visible at the counter and in the reconciliation queue. */
.login-card input[type=checkbox]{height:16px;width:16px;flex:none}.offline-opt-in{margin-top:18px;align-items:flex-start;line-height:1.65;font-size:12px;color:#526750}.offline-opt-in input{margin-top:3px}.offline-login-note{font-size:11px;color:#71816f;line-height:1.75;margin-top:12px}.connection-indicator{border:0;background:transparent;display:flex;align-items:center;gap:7px;padding:4px 0;color:#41654b;font-size:12px}.connection-indicator.offline{color:#9a5b12}.connection-indicator.error{color:#a4432e}.connection-indicator.offline .status-dot{background:#d99b36}.connection-indicator.error .status-dot{background:#bd5c42}.offline-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 17px;margin:14px 0 20px;border:1px solid #dfd8c1;background:#fff9e9;border-radius:9px;color:#79571e;font-size:12px;line-height:1.75}.offline-banner.ready{background:#edf5ef;border-color:#d1e1d3;color:#3c6747}.offline-banner.error{background:#fff0eb;border-color:#e9c9bc;color:#9c4730}.offline-banner b{display:block;font-size:13px}.offline-banner .row{flex-shrink:0;flex-wrap:wrap}.offline-banner button{font-size:11px;white-space:nowrap}.offline-badge{margin-left:5px}.sync-overview{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;margin-bottom:22px}.sync-device{padding:24px}.sync-device h2{font-size:20px;margin:10px 0 12px}.sync-device p{color:#6e7d6c;font-size:12px;line-height:1.9}.sync-device .row{margin-top:20px;flex-wrap:wrap}.sync-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-content:center}.sync-count{padding:23px 14px;border:1px solid var(--line);background:#fff;border-radius:10px;text-align:center}.sync-count strong{display:block;font-size:29px;line-height:1.5;font-weight:550}.sync-count span{font-size:11px;color:#71816f}.sync-table{overflow:auto}.sync-table table{min-width:760px}.sync-table td{vertical-align:top}.sync-message{font-size:11px;line-height:1.65;max-width:270px;white-space:normal;margin-top:6px;color:#996139}.sync-table .sync-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.sync-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:22px;padding:22px}.sync-guide b{display:block;font-size:12px;margin-bottom:7px}.sync-guide p{font-size:11px;line-height:1.85;color:#72806d;margin:0}.offline-invoice-notice{padding:8px 10px;border:1px dashed #a58b55;font-size:11px;line-height:1.65;margin:12px 0;color:#75551d}.offline-stock-note{font-size:11px;color:#8b6730;margin:8px 0}.draft-storage-note{font-size:11px;color:#78876c}.login-mode-button{margin-top:12px!important;min-height:40px!important;background:transparent}.sync-readonly{padding:25px;line-height:1.9;color:#7e6b44}.sync-readonly h2{font-size:17px;margin-bottom:10px}@media(max-width:1000px){.sync-overview{grid-template-columns:1fr}.sync-guide{grid-template-columns:1fr}.offline-banner{align-items:flex-start;flex-direction:column}.sync-counts{gap:10px}.sync-count{padding:15px 10px}.top-status .connection-indicator{font-size:11px}}@media print{.offline-banner,.connection-indicator{display:none!important}.offline-invoice-notice{color:#000;border-color:#000}}

/* Keep counter entry above supporting notices without changing login or print layouts. */
@media screen {
  .workspace:has(#view .pos-grid) {
    display:flex;
    flex-direction:column;
    max-width:1600px;
    padding-top:16px;
  }
  .workspace:has(#view .pos-grid)>#view {order:0;min-width:0}
  .workspace:has(#view .pos-grid)>.trialbar {order:3;margin:12px 0 0}
  .workspace:has(#view .pos-grid)>.setup-guide {order:2;margin:12px 0 0}
  .workspace:has(#view .pos-grid)>#offline-banner {order:0}
  .workspace:has(#view .pos-grid)>#offline-banner:has(.offline-banner.ready) {order:1}
  .workspace:has(#view .pos-grid) .offline-banner {padding:9px 13px;margin:0 0 12px;gap:12px;font-size:11px}
  .workspace:has(#view .pos-grid) .offline-banner.ready {margin:12px 0 0}
  .workspace:has(#view .pos-grid) .offline-banner b {display:inline;font-size:12px;margin-right:7px}
  #view:has(.pos-grid)>.page-heading {margin-bottom:12px}
  #view:has(.pos-grid)>.page-heading h1 {font-size:23px}
  #view:has(.pos-grid)>.page-heading p {margin-top:1px}
  .pos-context {padding:11px 15px;gap:10px 14px;margin-bottom:12px}
  .pos-context .customer-hint {padding-top:7px;margin-top:0;line-height:1.5}
  .pos-grid {gap:14px}
  .pos-grid .panel-title {padding:11px 15px;gap:9px;flex-wrap:wrap}
  .pos-grid .panel-title h2 {font-size:15px}
  .pos-search-block {padding:11px 15px 10px}
  .pos-search-label {font-size:12px;margin-bottom:6px}
  .pos-search-row {margin-bottom:5px}
  .catalog {min-width:0}
  .catalog .categories {
    display:flex;
    flex-flow:row nowrap;
    align-items:center;
    gap:6px;
    width:100%;
    min-width:0;
    max-width:100%;
    padding:9px 15px 6px;
    overflow-x:scroll;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    scroll-padding-inline:15px;
    scrollbar-width:thin;
    scrollbar-color:#91aa9b #edf3ef;
    background:
      linear-gradient(to right,#fff 30%,#fff0) left center / 30px 100% local no-repeat,
      linear-gradient(to left,#fff 30%,#fff0) right center / 30px 100% local no-repeat,
      linear-gradient(to right,#527c6240,#527c6200) left center / 12px 100% scroll no-repeat,
      linear-gradient(to left,#527c6240,#527c6200) right center / 12px 100% scroll no-repeat;
  }
  .catalog .categories>.chip {flex:0 0 auto;white-space:nowrap}
  .catalog .categories::-webkit-scrollbar {height:8px}
  .catalog .categories::-webkit-scrollbar-track {background:#edf3ef;border-radius:4px}
  .catalog .categories::-webkit-scrollbar-thumb {background:#91aa9b;border:2px solid #edf3ef;border-radius:4px}
  .catalog .categories::-webkit-scrollbar-thumb:hover {background:#5b806b}
  .catalog .search-summary {padding:0 15px 8px}
  .catalog-footer {padding:9px 15px;line-height:1.7}
  .order-top {padding:12px 16px;gap:12px}
  .order-total .value {font-size:27px;line-height:1.3}
  .cart-table {min-height:132px;max-height:340px}
  .cart-empty {height:92px}
  .cart-summary {padding:9px 16px;gap:4px}
  .checkout {padding:12px 16px 14px}
  .payment-options {margin:8px 0 10px}
  .payment-option {padding:7px 2px}
  .checkout-hint {padding:7px 10px;min-height:31px;margin:9px 0}
  .submit-row button {padding:9px 5px}
}
@media screen and (min-width:961px) {
  .main:has(.pos-grid)>.topbar {height:56px}
  .workspace:has(#view .pos-grid) {padding-right:24px;padding-left:24px}
  .workspace:has(#view .pos-grid) .offline-banner {flex-direction:row;align-items:center}
  .pos-grid {grid-template-columns:minmax(240px,.88fr) minmax(490px,1.12fr)}
  .catalog-table {max-height:clamp(220px,37vh,480px)}
  .cart-table {max-height:clamp(180px,30vh,340px)}
  .cart-table table {min-width:490px}
}
@media screen and (min-width:961px) and (max-width:1150px) {
  .workspace:has(#view .pos-grid) {padding-right:16px;padding-left:16px}
  .pos-grid {gap:12px}
  .pos-grid .panel-title>span {font-size:10px}
  .catalog .pos-search-row {flex-wrap:wrap}
  .catalog .pos-search-row .search {flex-basis:100%}
  .catalog .pos-search-row>button {width:100%;padding:7px 10px}
}
@media screen and (max-width:960px) {
  .pos-grid {grid-template-columns:minmax(0,1fr)}
  .catalog-table {max-height:220px}
  .cart-table {max-height:320px}
  .pos-context {grid-template-columns:1fr 1fr;padding:11px 13px}
  .customer-control .customer-popup {width:min(340px,calc(100vw - 110px))}
}
@media screen and (max-width:520px) {
  .workspace:has(#view .pos-grid) {padding-top:12px}
  #view:has(.pos-grid)>.page-heading h1 {font-size:21px}
  .pos-context .customer-hint strong {display:inline-block;margin-right:10px}
  .pos-grid .panel-title {align-items:flex-start}
  .order-top {padding:12px}
  .checkout,.cart-summary {padding-right:12px;padding-left:12px}
}
