:root{--navy:#071c34;--navy2:#0e2e4d;--ink:#10263d;--muted:#66788a;--bg:#f3f6f8;--white:#fff;--mint:#67e5b2;--mint2:#22ba7d;--coral:#ff806c;--blue:#82b9ff;--line:#dce5eb;--danger:#c93636;--shadow:0 12px 40px #0b263d10;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-size:16px}body{background:var(--bg);line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}.skip-link{position:fixed;top:-60px;left:16px;padding:10px 15px;background:var(--mint);z-index:999}.skip-link:focus{top:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:var(--navy);color:#fff;padding:25px 16px 18px;display:flex;flex-direction:column;z-index:40}.app-brand{display:flex;align-items:center;gap:10px;font-size:1.22rem;font-weight:850;letter-spacing:-.04em;padding:0 9px}.brand-bars{width:29px;height:29px;background:var(--mint);border-radius:8px;padding:6px;display:flex;gap:2px;align-items:flex-end;justify-content:center}.brand-bars i{width:3px;background:var(--navy);border-radius:2px}.brand-bars i:nth-child(1){height:8px}.brand-bars i:nth-child(2){height:15px}.brand-bars i:nth-child(3){height:11px}.side-nav{display:flex;flex-direction:column;gap:5px;margin-top:42px}.side-nav a{padding:11px 12px;border-radius:9px;color:#b9cad7;font-size:.9rem;font-weight:650;display:flex;align-items:center;gap:12px}.side-nav a span{font-size:1rem;width:18px;text-align:center}.side-nav a:hover,.side-nav a.active{color:#fff;background:#173855}.side-nav .pos-link{background:#0e4b49;color:#d0f9e7}.side-nav .pos-link.active{background:var(--mint);color:var(--navy)}.side-user{margin-top:auto;border-top:1px solid #29425a;padding:18px 5px 0;display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:9px}.avatar{width:35px;height:35px;border-radius:9px;background:#254760;display:grid;place-items:center;font-weight:850}.side-user>span:nth-child(2){display:flex;min-width:0;flex-direction:column}.side-user b{font-size:.77rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-user small{font-size:.66rem;color:#91a7b8}.side-user form{margin:0}.side-user button{border:0;background:transparent;color:#91a7b8;font-size:1.1rem;cursor:pointer}.main-content{margin-left:232px;padding:36px 42px 70px;min-height:100vh}.main-content.no-sidebar{margin:0;padding:0}.mobile-header{display:none}.page-header{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:34px}.page-header h1,.pos-header h1{font-size:2.35rem;letter-spacing:-.055em;margin:3px 0}.page-header p,.pos-header p{margin:0}.kicker{font-size:.7rem;letter-spacing:.13em;font-weight:850;color:#788999;margin:0;text-transform:uppercase}.kicker.light{color:#9fb5c5}.muted{color:var(--muted)}.primary-button,.secondary-button{border:0;border-radius:10px;padding:14px 19px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:25px;cursor:pointer}.primary-button{background:var(--mint);color:var(--navy)}.primary-button:hover{background:#7defc2}.primary-button.compact{padding:13px 18px}.primary-button.full,.secondary-button{width:100%}.secondary-button{border:1px solid var(--line);background:#fff}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat-card{min-height:160px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;display:flex;flex-direction:column;position:relative;box-shadow:var(--shadow)}.stat-card>span{font-size:.78rem;color:var(--muted);font-weight:680}.stat-card strong{font-size:1.85rem;letter-spacing:-.045em;margin-top:12px}.stat-card small{font-size:.67rem;color:#8997a5;margin-top:auto}.stat-card.featured{background:var(--navy);color:#fff;border:0}.stat-card.featured>span,.stat-card.featured small{color:#aebfcd}.stat-glyph{font-style:normal;position:absolute;right:20px;top:20px;width:30px;height:30px;border-radius:8px;background:var(--mint);color:var(--navy);display:grid;place-items:center}.dashboard-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:14px;margin-top:14px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px;box-shadow:var(--shadow);min-height:285px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start}.panel-head h2{font-size:1.25rem;margin:4px 0}.panel-head a{font-size:.73rem;font-weight:750;color:#3e637e}.payment-list{margin-top:24px}.payment-list>div{display:flex;justify-content:space-between;padding:13px 0;border-top:1px solid #edf1f4;font-size:.88rem}.payment-list span{display:flex;align-items:center;gap:9px}.method-dot{width:9px;height:9px;border-radius:50%;background:#a6b4bf}.method-card{background:var(--mint2)}.method-cash{background:var(--coral)}.method-invoice{background:var(--blue)}.empty-state{min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--muted)}.empty-state b{color:var(--ink)}.empty-state span{font-size:.78rem}.shift-panel{display:flex;flex-direction:column}.shift-status{display:flex;gap:13px;align-items:center;padding:18px;background:#f3f6f8;border-radius:11px;margin:18px 0 auto}.shift-status>i{width:11px;height:11px;border-radius:50%;background:#a9b5be}.shift-status.open>i{background:var(--mint2);box-shadow:0 0 0 5px #d9f7ea}.shift-status span{display:flex;flex-direction:column}.shift-status b{font-size:.84rem}.shift-status small{font-size:.7rem;color:var(--muted)}.quick-section{margin-top:32px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.quick-grid a{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;display:grid;grid-template-columns:36px 1fr auto;gap:11px;align-items:center}.quick-grid a>b{width:36px;height:36px;border-radius:8px;background:#edf3f6;display:grid;place-items:center}.quick-grid span{display:flex;flex-direction:column;font-size:.82rem;font-weight:800}.quick-grid small{font-size:.66rem;color:var(--muted);font-weight:500}.quick-grid i{font-style:normal}.toast{position:fixed;right:25px;bottom:25px;background:var(--navy);color:#fff;border-radius:10px;padding:12px 18px;box-shadow:0 12px 35px #0003;z-index:80;font-size:.84rem;opacity:0;pointer-events:none;transform:translateY(12px);transition:.2s}.toast.show{opacity:1;transform:none}.login-layout{min-height:100vh;display:grid;grid-template-columns:minmax(460px,46%) 1fr;background:#fff}.login-panel{padding:35px 7vw;display:flex;flex-direction:column}.login-brand{color:var(--navy);padding:0}.login-form-wrap{width:min(410px,100%);margin:auto}.login-form-wrap h1{font-size:2.8rem;letter-spacing:-.055em;line-height:1;margin:13px 0 19px}.login-form-wrap>.muted{font-size:.93rem;margin-bottom:27px}.stack-form{display:flex;flex-direction:column;gap:17px}.stack-form label,.form-field{font-size:.77rem;font-weight:740;display:flex;flex-direction:column;gap:7px}.stack-form input,.stack-form select,.form-field input,.form-field select,.form-field textarea{border:1px solid #ccd8e0;background:#fff;border-radius:9px;padding:12px 13px;min-height:45px;outline:0}.stack-form input:focus,.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#228965;box-shadow:0 0 0 3px #67e5b230}.back-link{display:inline-block;margin-top:28px;color:var(--muted);font-size:.77rem;font-weight:650}.alert{padding:12px 14px;border-radius:9px;font-size:.8rem;margin:12px 0}.alert.error{background:#fff0ee;color:#a72828;border:1px solid #f4c4bd}.alert.hidden{display:none}.login-art{margin:13px 13px 13px 0;border-radius:22px;background:var(--navy);position:relative;overflow:hidden;color:#fff;padding:7vw}.login-grid{position:absolute;inset:0;background-image:linear-gradient(#ffffff0b 1px,transparent 1px),linear-gradient(90deg,#ffffff0b 1px,transparent 1px);background-size:52px 52px}.login-art-copy{position:relative;max-width:560px}.login-art-copy h2{font-size:clamp(2.4rem,4vw,4rem);line-height:1.05;letter-spacing:-.055em;margin:15px 0}.login-stat-card{position:absolute;left:12%;right:12%;bottom:10%;background:#fff;color:var(--ink);border-radius:18px;padding:25px;box-shadow:0 22px 55px #0005;display:flex;flex-direction:column}.login-stat-card>span{font-size:.7rem;color:var(--muted)}.login-stat-card>strong{font-size:2.15rem;letter-spacing:-.05em;margin:6px 0}.login-stat-card small{font-size:.68rem;color:#27805f}.login-stat-card small i{display:inline-block;width:7px;height:7px;background:var(--mint2);border-radius:50%;margin-right:5px}.mini-chart{height:75px;display:flex;gap:8px;align-items:flex-end;margin-top:16px;border-bottom:1px solid var(--line)}.mini-chart b{flex:1;background:var(--mint);border-radius:4px 4px 0 0}.mini-chart b:nth-child(1){height:32%}.mini-chart b:nth-child(2){height:48%}.mini-chart b:nth-child(3){height:40%}.mini-chart b:nth-child(4){height:75%}.mini-chart b:nth-child(5){height:62%}.mini-chart b:nth-child(6){height:88%}
/* POS */.pos-body-page .main-content{padding:0;height:100vh;overflow:hidden}.pos-page{height:100vh;display:grid;grid-template-columns:minmax(520px,1fr) 390px}.catalog-pane{padding:25px 28px;overflow:auto}.pos-header{display:flex;justify-content:space-between;align-items:center}.register-control{display:flex;flex-direction:column;gap:3px}.register-control label{font-size:.65rem;color:var(--muted);font-weight:750}.register-control select,.customer-select select{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 11px}.mock-banner{display:flex;gap:10px;align-items:center;background:#fff4cd;border:1px solid #ecd988;color:#66551c;border-radius:9px;padding:9px 12px;font-size:.72rem;margin:15px 0}.mock-banner span{color:#78692f}.product-search{height:50px;background:#fff;border:1px solid #ccd9e1;border-radius:11px;display:flex;align-items:center;padding:0 13px;gap:10px;margin:14px 0}.product-search:focus-within{border-color:#29956f;box-shadow:0 0 0 3px #67e5b22e}.product-search input{border:0;outline:0;flex:1;background:transparent}.product-search kbd,.pay-button kbd{font-size:.6rem;border:1px solid #cfd9df;background:#f0f4f6;border-radius:4px;padding:3px 6px}.category-tabs{display:flex;gap:7px;overflow:auto;padding-bottom:8px}.category-tabs button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 12px;font-size:.72rem;font-weight:750;white-space:nowrap;cursor:pointer}.category-tabs button.active{background:var(--navy);color:#fff;border-color:var(--navy)}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;margin-top:12px}.product-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:16px;text-align:left;min-height:120px;cursor:pointer;display:flex;flex-direction:column}.product-card:hover{border-color:#82a597;box-shadow:0 7px 20px #10263d12}.product-card .product-initial{width:34px;height:34px;border-radius:8px;background:#d9f5e9;display:grid;place-items:center;font-weight:850;margin-bottom:12px}.product-card:nth-child(4n+2) .product-initial{background:#ffe2dd}.product-card:nth-child(4n+3) .product-initial{background:#deecff}.product-card:nth-child(4n+4) .product-initial{background:#fff0bb}.product-card b{font-size:.77rem}.product-card small{font-size:.61rem;color:var(--muted)}.product-card strong{font-size:.84rem;margin-top:auto}.loading-card{color:var(--muted);font-size:.8rem}.cart-pane{background:#fff;border-left:1px solid var(--line);padding:23px;display:flex;flex-direction:column;min-width:0}.cart-title{display:flex;justify-content:space-between;align-items:flex-start}.cart-title>div{display:flex;align-items:baseline;gap:9px}.cart-title h2{font-size:1.25rem;margin:0}.cart-title span{font-size:.66rem;color:var(--muted)}.link-button{background:transparent;border:0;color:#617485;font-size:.68rem;font-weight:740;cursor:pointer}.customer-select{display:flex;flex-direction:column;font-size:.68rem;font-weight:750;gap:4px;margin-top:15px}.customer-select select{width:100%;font-size:.76rem}.cart-lines{flex:1;overflow:auto;margin:14px -4px 5px;padding:0 4px;min-height:120px}.empty-cart{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}.empty-cart>span{width:48px;height:48px;border-radius:12px;background:#eef3f5;display:grid;place-items:center;font-size:1.3rem}.empty-cart b{font-size:.84rem;color:var(--ink);margin-top:10px}.empty-cart small{font-size:.67rem;max-width:210px}.cart-item{border-top:1px solid #e9eef1;padding:11px 0;display:grid;grid-template-columns:1fr auto;gap:7px}.cart-item:first-child{border-top:0}.cart-item-head{display:flex;flex-direction:column}.cart-item-head b{font-size:.76rem}.cart-item-head small{font-size:.6rem;color:var(--muted)}.cart-item-price{font-size:.77rem;font-weight:800}.cart-item-controls{grid-column:1/-1;display:flex;align-items:center;gap:7px}.qty-control{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}.qty-control button{border:0;background:#f1f4f6;width:28px;height:27px;cursor:pointer}.qty-control input{width:40px;border:0;text-align:center;font-size:.68rem}.cart-item-controls label{font-size:.58rem;color:var(--muted);display:flex;align-items:center;gap:4px}.cart-item-controls label input{width:58px;border:1px solid var(--line);border-radius:6px;padding:5px;font-size:.65rem}.remove-line{margin-left:auto;border:0;background:transparent;color:#a13b3b;cursor:pointer}.manual-line{border:1px dashed #b9c7d0;background:#f9fbfc;border-radius:8px;padding:8px;font-size:.68rem;cursor:pointer}.cart-summary{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.cart-summary>div{display:flex;justify-content:space-between;font-size:.68rem;color:var(--muted);padding:2px 0}.cart-summary .grand-total{font-size:.91rem;color:var(--ink);padding:8px 0 4px}.grand-total b{font-size:1.15rem}.pay-button{border:0;border-radius:10px;background:var(--mint);color:var(--navy);padding:14px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;font-weight:850;cursor:pointer}.pay-button b{font-size:1rem}.pay-button kbd{justify-self:end}.pay-button:disabled{background:#e5ebee;color:#8796a1;cursor:not-allowed}.modal{border:0;border-radius:18px;padding:26px;width:min(520px,calc(100% - 28px));box-shadow:0 25px 80px #0005}.modal::backdrop{background:#071c34a6}.modal-close{position:absolute;right:16px;top:14px;border:0;background:#eff3f5;border-radius:50%;width:30px;height:30px;font-size:1.1rem;cursor:pointer}.modal-head h2{font-size:1.65rem;letter-spacing:-.04em;margin:4px 0}.modal-head strong{font-size:2.2rem;display:block;margin:14px 0}.payment-methods{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:14px 0}.payment-methods button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:15px;text-align:left;display:flex;align-items:center;gap:10px;font-weight:750;cursor:pointer}.payment-methods button.selected{border-color:#238d68;background:#e9faf3;box-shadow:0 0 0 2px #67e5b24a}.payment-methods i{font-style:normal;width:30px;height:30px;background:#edf2f5;border-radius:7px;display:grid;place-items:center}.payment-extra{margin:10px 0}.extra-field{display:flex;flex-direction:column;gap:5px;font-size:.72rem;font-weight:750}.extra-field input,.extra-field select{border:1px solid var(--line);border-radius:8px;padding:10px}.success-modal{text-align:center}.success-check{width:62px;height:62px;border-radius:50%;background:#d8f8e9;color:#168358;font-size:1.8rem;display:grid;place-items:center;margin:0 auto}.success-modal h2{font-size:1.7rem;margin:15px 0 4px}.success-modal p{color:var(--muted)}.success-modal>b{font-size:.8rem}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:25px}
/* Generic back office */.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:16px}.search-form{display:flex;gap:8px}.search-form input{min-width:280px;border:1px solid var(--line);border-radius:9px;padding:10px 12px}.small-button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 13px;font-size:.74rem;font-weight:750;cursor:pointer}.data-panel{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:var(--shadow)}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:12px 15px;text-align:left;border-bottom:1px solid #e9eef1;font-size:.75rem}.data-table th{font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:#718292;background:#f8fafb}.data-table tr:last-child td{border-bottom:0}.status-pill{display:inline-flex;padding:3px 8px;border-radius:20px;background:#e0f7ec;color:#16754f;font-size:.6rem;font-weight:800}.status-pill.inactive{background:#eef1f3;color:#778794}.details-editor summary{cursor:pointer;color:#286184;font-weight:750}.inline-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:7px;align-items:end;padding:12px;background:#f7f9fa}.inline-form input,.inline-form select{width:100%;border:1px solid var(--line);border-radius:7px;padding:8px;font-size:.7rem}.form-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;margin-bottom:18px}.form-card h2{font-size:1.08rem;margin:0 0 17px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.form-grid .wide{grid-column:span 2}.form-actions{display:flex;gap:8px;align-items:center;margin-top:16px}.checkbox{display:flex;flex-direction:row;align-items:center;gap:7px;font-size:.72rem;font-weight:700}.report-filters{display:flex;gap:10px;align-items:end}.report-filters label{font-size:.66rem;font-weight:750;display:flex;flex-direction:column;gap:4px}.report-filters input{border:1px solid var(--line);border-radius:8px;padding:9px}.report-sections{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:17px}.report-sections .panel{min-height:0}.compact-list>div{display:flex;justify-content:space-between;border-top:1px solid #edf1f3;padding:9px 0;font-size:.74rem}.compact-list>div:first-child{border-top:0}.receipt-shell{max-width:760px;margin:auto}.receipt-actions{display:flex;gap:9px;margin-bottom:14px}.receipt-paper{background:#fff;padding:42px;border:1px solid var(--line);box-shadow:var(--shadow)}.receipt-company{text-align:center}.receipt-meta{display:flex;justify-content:space-between;border-top:1px dashed #bfcbd3;border-bottom:1px dashed #bfcbd3;padding:14px 0;margin:22px 0;font-size:.75rem}.receipt-line{display:grid;grid-template-columns:1fr auto;gap:3px;padding:9px 0;border-bottom:1px solid #edf1f3;font-size:.78rem}.receipt-line small{grid-column:1/-1;color:var(--muted)}.receipt-totals{margin-left:auto;width:min(320px,100%);padding-top:17px}.receipt-totals>div{display:flex;justify-content:space-between;font-size:.75rem;padding:3px}.receipt-totals .receipt-grand{font-size:1rem;border-top:2px solid var(--ink);margin-top:7px;padding-top:9px}.receipt-footer{text-align:center;margin-top:30px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.audit-list{max-height:420px;overflow:auto}.audit-row{padding:10px 0;border-top:1px solid #edf1f3;display:grid;grid-template-columns:135px 1fr auto;gap:10px;font-size:.7rem}.audit-row small{color:var(--muted)}
@media(max-width:1100px){.stat-grid{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.pos-page{grid-template-columns:minmax(430px,1fr) 350px}.report-sections,.settings-grid{grid-template-columns:1fr}}
@media(max-width:780px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:none}.mobile-header{display:flex;height:58px;align-items:center;gap:12px;background:var(--navy);color:#fff;padding:0 15px;position:sticky;top:0;z-index:35}.mobile-header button{background:transparent;border:0;color:#fff;font-size:1.2rem}.main-content,.pos-body-page .main-content{margin-left:0;padding:22px 15px 50px;height:auto;overflow:visible}.page-header{align-items:flex-start}.page-header h1{font-size:1.9rem}.stat-grid{grid-template-columns:1fr 1fr}.login-layout{grid-template-columns:1fr}.login-panel{min-height:100vh;padding:28px 22px}.login-art{display:none}.pos-page{height:auto;display:flex;flex-direction:column}.catalog-pane{padding:0;overflow:visible}.cart-pane{border:1px solid var(--line);border-radius:14px;margin-top:18px;min-height:600px}.pos-header{align-items:flex-start}.product-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.toolbar{align-items:stretch;flex-direction:column}.search-form input{min-width:0;width:100%}.data-panel{overflow:auto}.data-table{min-width:650px}.report-filters{flex-wrap:wrap}.receipt-paper{padding:24px 18px}.payment-methods{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.stat-grid{grid-template-columns:1fr}.page-header{flex-direction:column}.report-sections{grid-template-columns:1fr}.modal-actions{grid-template-columns:1fr}.form-card{padding:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.refund-card{margin-top:16px}
.alert.success{background:#e9faf3;color:#16754f;border:1px solid #bcebd5}
.receipt-links{display:flex;flex-direction:column;gap:5px;margin-top:18px;font-size:.8rem}.receipt-links a{color:#286184;font-weight:750}.delete-sale-form{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#f0c3c3}.delete-sale-form p{margin:3px 0 0}.danger-button{border:1px solid #c93636;background:#fff;color:#a72828;border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer;white-space:nowrap}.danger-button:hover{background:#fff0ee}
.receipt-custom-text{white-space:pre-wrap;text-align:center}.receipt-header-text{margin:18px 0}

/* Thermal receipt preview */
.receipt-shell{max-width:520px;margin:auto}.receipt-actions{width:min(100%,96mm);margin:0 auto 14px}.receipt-paper{box-sizing:border-box;width:min(100%,96mm);margin:auto;padding:7mm;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);color:#000}.thermal-receipt{font:13px/1.32 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-variant-numeric:tabular-nums}.thermal-receipt-title{margin:0 0 6mm;text-align:center;font:800 1rem/1.1 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;letter-spacing:.08em}.receipt-identity{display:flex;justify-content:space-between;gap:8px;margin-bottom:5mm}.receipt-identity>div{display:flex;flex-direction:column}.receipt-label{font-size:.78em}.receipt-datetime{text-align:right}.receipt-header-block,.thermal-receipt-footer{white-space:pre-wrap;overflow-wrap:anywhere}.receipt-header-block{margin-bottom:3mm;text-align:left}.receipt-operator-block{margin-bottom:3mm}.receipt-rule{border-top:1px dashed #000;margin:3mm 0}.receipt-product-table,.receipt-vat-table{width:100%;border-collapse:collapse;table-layout:fixed}.receipt-product-table .product-column{width:43%}.receipt-product-table .quantity-column{width:12%}.receipt-product-table .price-column{width:23%}.receipt-product-table .sum-column{width:22%}.receipt-product-table th,.receipt-vat-table th{padding:0 0 2mm;text-align:left;font-size:.83em;vertical-align:bottom}.receipt-product-table th:not(:first-child),.receipt-vat-table th:not(:first-child){text-align:right}.receipt-product-table td,.receipt-vat-table td{padding:1.2mm 0;vertical-align:top}.receipt-product-table td:first-child{padding-right:2mm;overflow-wrap:anywhere}.receipt-product-table .number,.receipt-vat-table .number{text-align:right;white-space:nowrap}.receipt-discount-row td{padding-top:0;font-size:.88em}.receipt-discount-row td:first-child{padding-left:2mm}.receipt-vat-table th:first-child,.receipt-vat-table td:first-child{text-align:left}.receipt-vat-table th,.receipt-vat-table td{width:25%}.receipt-summary{width:72%;margin:4mm 0 0 auto}.receipt-summary-separator{border-top:2px solid #000;margin-bottom:2mm}.receipt-summary-row{display:flex;justify-content:space-between;gap:5px;padding:.6mm 0;text-align:right}.receipt-summary-row span{white-space:nowrap}.receipt-summary-row strong{font-weight:700;white-space:nowrap}.receipt-summary-total{font-size:1.05em}.receipt-card-details,.receipt-refund-reason{margin-top:4mm;padding-top:3mm;border-top:1px dashed #000;overflow-wrap:anywhere}.thermal-receipt-footer{margin-top:7mm;text-align:center}.receipt-links{width:min(100%,96mm);margin:14px auto 18px}

@media(max-width:420px){.receipt-paper{padding:5mm 4mm}.thermal-receipt{font-size:12px}.receipt-summary{width:78%}}

/* Open-price products */
.open-price-choice{align-self:end;min-height:45px}.field-hint{color:var(--muted);font-size:.7rem;font-weight:500}.form-field input:disabled,.inline-form input:disabled{background:#eef2f4;color:#7b8993}.open-product-modal{width:min(430px,calc(100% - 28px))}.open-product-modal .extra-field{margin-top:16px;font-size:.82rem}.open-product-modal .extra-field input{min-height:46px;border:1px solid #ccd8e0;border-radius:9px;padding:11px 13px;font-size:1rem;outline:0}.open-product-modal .extra-field input:focus{border-color:#228965;box-shadow:0 0 0 3px #67e5b230}.open-product-tax-info{min-height:1.3em;margin:14px 0 0;color:var(--muted);font-size:.78rem}.open-product-tax-info+label[hidden]{display:none}.open-product-modal .modal-actions{margin-top:20px}
.login-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:.7rem}.login-divider::before,.login-divider::after{content:"";height:1px;background:var(--line);flex:1}.demo-start-form{display:block}.demo-start-button{width:100%;min-height:45px;display:flex;align-items:center;justify-content:space-between;padding:12px 14px}.demo-banner{margin:0 0 18px;padding:9px 13px;border:1px solid #ecd988;border-radius:9px;background:#fff8da;color:#66551c;font-size:.74rem;font-weight:700}
.form-section-title{grid-column:1/-1;margin:8px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:.9rem}.invoice-payment-dialog{width:min(720px,calc(100% - 28px));max-height:calc(100dvh - 24px);overflow:auto}.invoice-form-intro{margin:4px 0 10px;font-size:.82rem;font-weight:800}.invoice-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.invoice-field-grid .invoice-wide{grid-column:1/-1}.invoice-field-grid+.field-hint{margin:11px 0 4px}.invoice-field-grid .extra-field input{min-height:42px;font-size:.88rem}
@media(min-width:781px){.pos-body-page .main-content{height:100vh;height:100dvh;display:flex;flex-direction:column}.pos-page{height:auto;min-height:0;flex:1 1 auto}.catalog-pane,.cart-pane{min-height:0}.cart-pane{height:100%;overflow:hidden}.cart-lines{min-height:0;flex:1 1 auto;overscroll-behavior:contain}.cart-checkout{position:sticky;bottom:0;z-index:1;flex:0 0 auto;background:#fff}.cart-checkout .pay-button{width:100%}}
@media(max-width:480px){.delete-sale-form{align-items:stretch;flex-direction:column}.danger-button{width:100%}}
@media(max-width:560px){.invoice-field-grid{grid-template-columns:1fr}.invoice-field-grid .invoice-wide{grid-column:auto}}

/* Lightweight sales ledger */
.receivable-toolbar{justify-content:flex-start}.receivable-search select{border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fff}.receivable-table{min-width:980px}.status-overdue{background:#fff0ee;color:#a72828}.status-partial{background:#fff4cd;color:#725e13}.status-paid,.status-credited{background:#e0f7ec;color:#16754f}.status-credit_note{background:#eef1f3;color:#596976}.receivable-detail{width:210mm;max-width:100%;margin:18px auto}.receivable-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.receivable-heading h2{margin:3px 0}.receivable-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.receivable-summary>div{display:flex;flex-direction:column;padding:13px;border:1px solid var(--line);border-radius:10px}.receivable-summary span{font-size:.7rem;color:var(--muted)}.receivable-summary strong,.receivable-summary b{margin-top:4px}.receivable-credit-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.receivable-credit-links a{color:#286184}.receivable-payment-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:780px){.receivable-summary{grid-template-columns:1fr 1fr}.receivable-search{flex-wrap:wrap}.receivable-search input,.receivable-search select{width:100%}}

/* Demo-only Verifone simulator states */
.nexi-demo-banner{background:#e9faf3;border-color:#9bdcc1;color:#095c3d}.nexi-demo-banner span{color:#8c2020;font-weight:850}.nexi-payment-notice{display:flex;flex-direction:column;gap:5px;border:2px solid #55c79b;background:#ecfbf5;border-radius:10px;padding:14px;margin:12px 0}.nexi-payment-notice b{font-size:.9rem}.nexi-payment-notice strong{color:#a32626;font-size:.82rem}.nexi-payment-notice span{font-size:.72rem;color:#526b61}.nexi-payment-notice.processing{border-color:#82b9ff;background:#eef6ff}.nexi-payment-notice.processing strong{color:#174f87}.nexi-receipt-details{white-space:pre-wrap;font:inherit;border-top:1px dashed #adb9c1;margin:7px 0 0;padding-top:7px}
.split-payment-hint{margin:4px 0 10px;color:var(--muted);font-size:.72rem}.split-payment-summary{border:1px solid #b9d8cc;background:#f2fbf7;border-radius:10px;padding:10px 12px;margin:4px 0 12px}.split-payment-summary>b{display:block;font-size:.72rem;margin-bottom:5px}.split-payment-summary>div{display:flex;justify-content:space-between;gap:12px;font-size:.72rem;padding:2px 0}.split-payment-summary .split-payment-remaining{border-top:1px solid #cde3da;margin-top:5px;padding-top:7px;font-weight:850}.split-payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.payment-methods button:disabled{opacity:.45;cursor:not-allowed}.alert.success{background:#e9faf3;border-color:#9bdcc1;color:#095c3d}
.payment-plan-modal{width:min(560px,calc(100% - 28px));max-height:calc(100vh - 30px);overflow:auto}.payment-total-label{display:block;color:var(--muted);font-size:.68rem;font-weight:750;margin-top:12px}.payment-plan-modal .modal-head strong{margin:0 0 14px}.split-payment-summary.ready{border-color:#7fc8aa;background:#ecfaf4}.planned-payment-row{align-items:center;border-top:1px solid #dce9e4;padding:6px 0!important}.planned-payment-row:first-of-type{border-top:0}.planned-payment-actions{display:flex;gap:5px}.planned-payment-actions button{border:0;background:transparent;color:#176e53;font-size:.65rem;font-weight:750;cursor:pointer}.planned-payment-actions button[data-plan-remove]{color:#9b3434}.payment-plan-selected-total{border-top:1px solid #b9d8cc;margin-top:6px;padding-top:8px!important;font-weight:850}.payment-plan-actions{display:flex;gap:9px;margin-top:12px}.payment-plan-actions button{flex:1;margin:0}.payment-plan-actions button[hidden],.payment-methods[hidden],#payment-extra[hidden]{display:none!important}.payment-plan-cancel{display:block;margin:10px auto 0}.payment-plan-status{font-size:.72rem;margin:8px 0 0}.payment-plan-status.ready{color:#126a4d;font-weight:750}.payment-plan-status.incomplete{color:#8a4d12}.payment-plan-status.locked{color:#315b86;font-weight:750}

/* Compact per-line discount unit */
.cart-item-controls{gap:5px}.discount-control{min-width:0}.discount-input{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}.cart-item-controls .discount-input input{width:46px;border:0;border-radius:0;padding:5px}.discount-input select{width:37px;border:0;border-left:1px solid var(--line);background:#f1f4f6;padding:0 2px;font-size:.65rem;font-weight:750;cursor:pointer}.discount-input input:focus,.discount-input select:focus{outline:2px solid #67e5b2;outline-offset:-2px}


.demo-start-button:not(:disabled){
  background:var(--mint);
  border-color:var(--mint2);
  color:var(--navy);
  font-weight:800;
}
.demo-start-button:not(:disabled):hover{
  background:#7defc2;
}
.demo-start-button:disabled{
  background:#eef2f4;
  border-color:#dce5eb;
  color:#8796a1;
  cursor:not-allowed;
}
.queue-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.queue-filters .active{border-color:#1a8c64;background:#e9faf3;color:#126648}.request-queue-table{min-width:940px}.table-link{color:#1d6085}.data-table td small{color:var(--muted)}.status-processing{background:#fff4cd;color:#725e13}.status-completed,.notification-sent{background:#e0f7ec;color:#16754f}.notification-failed{background:#fff0ee;color:#a72828}.notification-pending,.notification-sending{background:#eef6ff;color:#245f91}.request-detail-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:17px;align-items:start}.request-details dl{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin:0 0 28px}.request-details dl>div{padding:10px 0;border-bottom:1px solid #edf1f3}.request-details dt{font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.request-details dd{margin:3px 0 0;font-size:.84rem;font-weight:700;overflow-wrap:anywhere}.request-details dd a{color:#1d6085}.request-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border-radius:10px;background:#f7f9fa;font-size:.84rem}.notification-card small{display:block;color:var(--muted)}.notification-meta,.handled-meta{color:var(--muted);font-size:.7rem}.handled-meta{padding:0 4px}.stack-form select,.stack-form textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff}.stack-form textarea{resize:vertical}
@media(max-width:980px){.request-detail-grid{grid-template-columns:1fr}}
@media(max-width:560px){.request-details dl{grid-template-columns:1fr}}

/* auth-entry-disabled-state */
#login-submit-button:disabled,
#login-submit-button:disabled:hover {
    background: #eef2f4;
    color: #8796a1;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}


/* webkassa-public-request-delete */
.request-delete-button {
    background: #b42318;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
}
.request-delete-button:hover {
    background: #92180f;
}

/* Unavailable POS products remain visible but cannot be sold. */
.product-card:disabled {
    background: #f2f4f4;
    color: #7b8589;
    cursor: not-allowed;
    box-shadow: none;
}
.product-card:disabled .product-initial {
    background: #e1e4e5;
}

/* Product registry filters */
.product-filters {
    flex-wrap: wrap;
}
.product-filters select {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    background: #fff;
}

/* Product form prices 20260924 */
.form-grid .product-price-row,.form-grid .product-category-row,
.product-inline-form .product-price-row,.product-inline-form .product-category-row{grid-column:1/-1}
.product-price-row,.product-category-row{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.product-price-row>label:not(.checkbox){display:flex;flex-direction:column;gap:6px;flex:0 1 170px;min-width:125px}
.product-price-row>.product-vat-field{flex-basis:110px!important;min-width:95px!important}
.product-price-row>label.checkbox{flex:0 0 145px;align-self:center}
.product-price-row input:not([type=checkbox]){width:100%;min-width:0}
.product-category-row>label{display:flex;flex-direction:column;gap:6px;flex:1 1 220px;max-width:290px}
.product-category-row input,.product-category-row select{width:100%;min-width:0}
[data-product-form] [data-target-margin]{max-width:135px}

/* Product editor 20260924 */
.product-inline-form[data-product-form]{grid-template-columns:minmax(210px,2fr) minmax(115px,1fr) minmax(125px,1fr);gap:14px;align-items:start}
.product-inline-form[data-product-form]>label:not(.checkbox){display:flex;flex-direction:column;gap:6px;min-width:0}
.product-inline-form[data-product-form] .product-margin-row,
.product-inline-form[data-product-form] .product-actions-row{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.product-margin-row>label{display:flex;flex-direction:column;gap:6px;flex:0 1 235px}
.product-margin-row>.form-field{flex:1 1 280px;min-width:190px}
.product-margin-row>button{align-self:center}
.product-actions-row>.checkbox{flex:0 1 auto}
.product-actions-row>button{width:auto}
.product-price-row>.checkbox{white-space:nowrap}
@media(max-width:780px){.product-inline-form[data-product-form]{grid-template-columns:minmax(0,1fr)}}

/* Product create sections 20260924 */
.product-create-form>.product-create-heading{grid-column:1/-1;font-size:1rem;margin:4px 0 0}
.product-create-form>.product-section{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;padding:19px 0 3px;border-top:1px solid var(--line)}
.product-create-form>.product-section>h2{grid-column:1/-1;font-size:1rem;margin:0;color:var(--navy)}
.product-create-form .product-price-row,
.product-create-form .product-margin-row,
.product-create-form .product-category-row,
.product-create-form .product-settings-row{grid-column:1/-1}
.product-create-form .product-margin-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px}
.product-create-form .product-margin-row>.form-field{flex:1 1 270px;min-width:220px}
.product-create-form .product-category-row{max-width:760px}
.product-create-form .product-details>.wide{grid-column:1/-1;max-width:760px}
.product-create-form .product-settings-row{display:flex;align-items:center;flex-wrap:wrap;gap:14px 28px}
.product-create-form .product-stock>.form-field{width:min(100%,230px)}
.product-create-form .product-stock>.form-actions{grid-column:1/-1;margin:2px 0 8px}
@media(max-width:700px){
  .product-create-form>.product-section{grid-template-columns:1fr}
  .product-create-form .product-margin-row>.form-field{min-width:0}
}
/* Shared physical register: accounting stays tenant-scoped; only the drawer view is combined. */
.shared-register-card,.shared-shift-card{border:1px solid var(--border,#d8dee8);border-radius:14px;padding:1rem;margin-top:1rem;background:#fff}
.shared-shift-card>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.shared-shift-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin:1rem 0}
.shared-shift-totals>div{display:flex;flex-direction:column;gap:.25rem;padding:.75rem;border-radius:10px;background:#f5f7fa}
.shared-shift-totals span{font-size:.82rem;color:#586579}
.seller-company-control{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:.75rem;border:1px solid #b8c8dc;border-radius:12px;background:#f4f8fc}
.seller-company-control label{display:flex;flex-direction:column;gap:.3rem;font-weight:700}
.seller-company-control small{color:#4b5b70}
