:root{--bg:#f6f3ed;--panel:#fffdf9;--panel2:#fbf8f1;--line:#e8e0d5;--text:#171a16;--muted:#7e8279;--green:#109c52;--green2:#08753c;--red:#b64949;--shadow:0 18px 50px rgba(30,35,27,.07);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text)}body{min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#101812;color:#f6fbf7;border-right:1px solid #263129;padding:20px 16px;display:flex;flex-direction:column;overflow:auto}.brand{display:flex;align-items:center;gap:12px;padding:4px 4px 20px;border-bottom:1px solid #263129}.brand img{width:46px;height:46px;object-fit:contain}.brand-mark{width:46px;height:46px;border-radius:15px;background:#dff4e7;color:#0b8a46;display:grid;place-items:center;font-weight:950;font-size:22px}.brand-mark.small{width:40px;height:40px;border-radius:13px}.brand strong{display:block;font-size:15px}.brand small,.sidebar-user small{display:block;color:#a9b5ac;font-size:11px;margin-top:3px}.sidebar nav{padding:18px 0;display:flex;flex-direction:column;gap:5px;flex:1}.sidebar nav a{padding:11px 12px;border-radius:12px;color:#dce5df;font-size:13px;font-weight:750}.sidebar nav a:hover{background:#18231b;color:#fff}.nav-group{font-size:9px;text-transform:uppercase;letter-spacing:.14em;color:#78867c;font-weight:900;margin:14px 12px 4px}.sidebar-user{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #263129;padding-top:15px}.sidebar-user a{font-size:11px;border:1px solid #344038;padding:8px 10px;border-radius:10px}.app-main{min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);padding:0 26px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30}.topbar b{display:block;font-size:14px}.topbar small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.topbar-actions{display:flex;align-items:center;gap:10px}.online-dot{font-size:10px;font-weight:850;background:#e6f7ec;color:#0c7b40;padding:8px 10px;border-radius:999px}.page-wrap{padding:24px}.page-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{font-size:28px;line-height:1.05;margin:4px 0 7px}.page-head p{margin:0;color:var(--muted);font-size:13px}.eyebrow{display:block;color:var(--green);font-size:10px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:10px 14px;border-radius:12px;font-weight:850;cursor:pointer}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.primary:hover{background:var(--green2)}.btn.ghost{background:#fff}.btn.small{padding:7px 9px;font-size:10px}.btn.wide{width:100%}.card{background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:18px}.card.grow{min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.card-head h2{font-size:17px;margin:0}.card-head span{font-size:11px;color:var(--muted)}.split{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.integration-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid{display:grid;gap:13px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid label,.filters label,.install-grid label{display:grid;gap:6px;font-size:11px;font-weight:850;color:#42463f}.form-grid input,.form-grid select,.form-grid textarea,.filters input,.install-grid input,.install-grid select{width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px 11px;color:var(--text);outline:none}.form-grid textarea{min-height:90px;resize:vertical}.check{display:flex!important;align-items:center;grid-template-columns:none!important;gap:8px!important}.check input{width:auto!important}.alert{padding:12px 14px;border-radius:12px;margin-bottom:16px;font-size:12px;font-weight:800}.alert.success{background:#e9f8ef;color:#0a7140;border:1px solid #c5ecd4}.alert.error{background:#fff0f0;color:#9b3434;border:1px solid #f0c5c5}.hint{margin-top:14px;font-size:11px;color:var(--muted)}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:640px}.table-wrap th,.table-wrap td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;font-size:11px;vertical-align:middle}.table-wrap th{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.table-wrap td small{display:block;color:var(--muted);margin-top:3px}.pill{border:0;border-radius:999px;padding:7px 9px;font-size:9px;font-weight:900}.pill.ok{background:#e7f7ed;color:#08753c}.pill.off{background:#f2eeee;color:#8d5b5b}.inline-form{display:flex;gap:6px}.inline-form input{width:130px;border:1px solid var(--line);border-radius:8px;padding:7px}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.kpi-grid.three{grid-template-columns:repeat(3,1fr);margin:0}.kpi{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:18px}.kpi span{display:block;color:var(--muted);font-size:10px}.kpi strong{display:block;font-size:24px;margin-top:7px}.kpi small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.filters{display:flex;align-items:end;gap:12px;margin-bottom:18px}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.report-grid .monthly{grid-column:1/-1}.auth-screen,.install-screen{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 20% 20%,#dbf0e4 0,transparent 30%),linear-gradient(145deg,#f6f3ed,#eef4ef)}.auth-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 25px 80px rgba(31,44,34,.12)}.auth-card h1,.install-card h1{margin:8px 0}.auth-card p,.install-card p{color:var(--muted);font-size:13px}.auth-badge{display:inline-flex;background:#e6f7ec;color:#08753c;border-radius:999px;padding:7px 9px;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.stack{display:grid;gap:14px;margin:22px 0}.stack label{display:grid;gap:6px;font-size:11px;font-weight:800}.stack input{border:1px solid var(--line);border-radius:12px;padding:12px}.muted{color:var(--muted)}.install-card{width:min(1100px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 25px 80px rgba(31,44,34,.12)}.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.install-grid fieldset{border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;gap:11px}.install-grid legend{font-weight:900;padding:0 6px}.install-grid small{color:var(--muted)}.install-grid .wide{grid-column:1/-1}
/* POS */
.pos-screen{position:fixed;inset:0;background:var(--bg);z-index:200;overflow:hidden}.pos-toolbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:240px minmax(280px,1fr) 220px 190px 42px;gap:14px;align-items:center;padding:0 22px}.pos-title{display:flex;align-items:center;gap:10px}.pos-title strong{display:block}.pos-title small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.pos-search{width:100%;height:46px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:0 15px;font-size:14px;outline:none}.pos-staff,.pos-customer{display:grid;gap:3px;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.pos-staff select,.pos-customer select{height:39px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 8px;color:var(--text);font-size:11px;text-transform:none;letter-spacing:0}.pos-layout{height:calc(100vh - 78px);display:grid;grid-template-columns:190px minmax(0,1fr) 360px;gap:16px;padding:16px}.pos-browse{display:flex;flex-direction:column;gap:9px}.pos-browse>.eyebrow{padding:4px 6px}.browse-btn{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:11px;display:flex;align-items:center;gap:11px;text-align:left;color:var(--text);cursor:pointer}.browse-btn.active{background:#15251b;color:#fff;border-color:#15251b}.browse-btn i{width:44px;height:44px;border-radius:14px;background:#e6f7ec;color:#0c9550;display:grid;place-items:center;font-style:normal;font-size:20px}.browse-btn.active i{background:rgba(255,255,255,.13);color:#7ee7a5}.browse-btn b{display:block;font-size:13px}.browse-btn small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.browse-btn.active small{color:#c4d3c8}.product-grid{min-width:0;overflow:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;align-content:start;padding-right:3px}.product-card{background:var(--panel);border:1px solid var(--line);border-radius:19px;overflow:hidden;cursor:pointer;transition:.16s}.product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.product-photo{height:165px;background:linear-gradient(145deg,#f8f4ec,#ece6da);position:relative;display:grid;place-items:center}.product-photo img{width:100%;height:100%;object-fit:contain;padding:16px}.product-photo em{position:absolute;left:10px;top:10px;background:#fff;color:#1c3e28;border-radius:999px;padding:6px 8px;font-size:8px;font-style:normal;font-weight:900}.packshot{width:82px;height:116px;border-radius:18px;position:relative;box-shadow:0 12px 22px rgba(29,37,30,.12)}.packshot.beverages{background:#0c9f75;border-radius:24px 24px 18px 18px}.packshot.snacks{background:#f3b821;clip-path:polygon(8% 0,92% 0,100% 100%,0 100%)}.packshot.other{background:#5d6c62}.packshot:after{content:"";position:absolute;left:17px;right:17px;top:42px;height:27px;background:rgba(255,255,255,.83);border-radius:6px}.packshot span{position:absolute;width:46px;height:8px;background:rgba(10,16,12,.18);bottom:-15px;left:18px;border-radius:50%}.product-copy{padding:12px}.category-label{font-size:8px;color:var(--green);font-weight:950;text-transform:uppercase;letter-spacing:.08em}.product-copy h3{font-size:14px;margin:5px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.barcode-line{font-size:9px;color:var(--muted);font-weight:750;margin-bottom:11px}.product-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-foot strong{font-size:14px}.add-product{width:34px;height:34px;border:0;border-radius:11px;background:var(--green);color:#fff;font-size:20px;cursor:pointer}.add-product:disabled{opacity:.4}.basket-panel{height:100%;background:var(--panel);border:1px solid var(--line);border-radius:21px;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow)}.basket-head{padding:17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center}.basket-head h2{font-size:19px;margin:4px 0 0}.basket-actions{display:flex;align-items:center;gap:8px}.clear-cart{border:1px solid var(--line);background:#fff5f5;color:#b14a4a;border-radius:9px;padding:7px 9px;font-size:9px;font-weight:900}.clear-cart:disabled{opacity:.35}.count-badge{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e7f7ed;color:#08753c;font-size:10px;font-weight:900}.basket-items{flex:1;min-height:0;overflow:auto;padding:10px 14px}.basket-empty{height:100%;display:grid;place-items:center;text-align:center;color:var(--muted)}.basket-empty b{display:block;color:var(--text);font-size:14px}.basket-empty span{display:block;margin-top:5px}.cart-line{padding:12px 2px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:9px}.cart-line strong{font-size:12px}.cart-line small{display:block;color:var(--muted);margin-top:3px}.qty-row{display:flex;align-items:center;gap:7px;margin-top:8px}.qty-row button{width:26px;height:26px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);font-weight:950}.qty-row span{min-width:22px;text-align:center;font-weight:900;font-size:11px}.remove-line{border:0;background:transparent;color:var(--red);font-size:17px}.basket-foot{padding:16px;border-top:1px solid var(--line);background:var(--panel2)}.basket-total{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.basket-total span{color:var(--muted);font-size:11px}.basket-total strong{font-size:21px}.pay-btn{width:100%;height:50px;border:0;border-radius:14px;background:var(--green);color:#fff;font-weight:900}.pay-btn:disabled{opacity:.45}.basket-foot>small{display:block;text-align:center;color:var(--muted);font-size:9px;margin-top:8px}.no-products{grid-column:1/-1;padding:50px;text-align:center;color:var(--muted)}.modal{position:fixed;inset:0;background:rgba(11,17,12,.58);z-index:500;display:none;place-items:center;padding:20px;backdrop-filter:blur(4px)}.modal.open{display:grid}.dialog{width:min(720px,100%);background:#fff;border-radius:24px;padding:24px;position:relative;box-shadow:0 30px 90px rgba(0,0,0,.2)}.dialog h2{margin:0 0 20px}.dialog-close{position:absolute;right:16px;top:14px;border:0;background:transparent;font-size:28px;cursor:pointer}.payment-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.payment-choices button{border:1px solid var(--line);background:#fbfaf7;border-radius:18px;padding:18px;text-align:left;cursor:pointer}.payment-choices b,.payment-choices small{display:block}.payment-choices small{color:var(--muted);margin-top:6px;line-height:1.35}.pay-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#e8f7ed;color:#0b8f49;font-size:24px;margin-bottom:20px;animation:floatPay 1.8s ease-in-out infinite}.pay-icon.card{animation-delay:.2s}.pay-icon.wallet{animation-delay:.4s}@keyframes floatPay{50%{transform:translateY(-5px) scale(1.02)}}.cash-panel{display:grid;gap:14px}.cash-panel label{display:grid;gap:6px;font-size:11px;font-weight:800}.cash-panel input{border:1px solid var(--line);border-radius:12px;padding:13px}.amount-due,.change-row{display:flex;justify-content:space-between;align-items:center;background:#f6f4ef;border-radius:14px;padding:14px}.amount-due strong,.change-row strong{font-size:20px}.payment-working{display:grid;place-items:center;gap:10px;padding:40px}.spinner{width:32px;height:32px;border:3px solid #dce8df;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;background:#142119;color:#fff;padding:11px 15px;border-radius:999px;font-size:11px;font-weight:800;z-index:700;transition:.2s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
/* receipts */
.receipt-wrap{background:#eee;min-height:100vh;padding:20px}.receipt-copy{width:80mm;margin:0 auto 18px;background:#fff;color:#111;padding:8mm 6mm;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;page-break-after:always}.receipt-copy:last-child{page-break-after:auto}.receipt-logo{display:block;max-width:42mm;max-height:22mm;object-fit:contain;margin:0 auto 6px}.receipt-copy h1{text-align:center;font-size:18px;margin:0 0 3px}.receipt-label{text-align:center;font-size:10px;font-weight:900;letter-spacing:.08em;border-top:1px dashed #999;border-bottom:1px dashed #999;padding:5px 0;margin:8px 0}.receipt-copy dl{display:grid;grid-template-columns:1fr 1fr;gap:4px;font-size:9px}.receipt-copy dt{color:#555}.receipt-copy dd{text-align:right;margin:0}.receipt-table{width:100%;border-collapse:collapse;font-size:10px;margin:10px 0}.receipt-table td{padding:6px 0;border-bottom:1px dashed #bbb}.receipt-table td:last-child{text-align:right}.receipt-table small{display:block;color:#666;margin-top:2px}.receipt-total{display:flex;justify-content:space-between;font-size:14px;margin:10px 0}.receipt-footer{text-align:center;font-size:9px;margin-top:12px}
@media print{body{background:#fff}.receipt-wrap{padding:0;background:#fff}.receipt-copy{margin:0;box-shadow:none}.receipt-copy:not(:first-child){break-before:page}}
@media(max-width:1200px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.pos-toolbar{grid-template-columns:190px 1fr 170px 42px}.pos-customer{display:none}.pos-customer{display:none}.pos-layout{grid-template-columns:150px minmax(0,1fr) 320px}.product-grid{grid-template-columns:repeat(3,1fr)}.split{grid-template-columns:1fr}.form-grid.three{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.topbar{position:relative}.page-wrap{padding:16px}.kpi-grid,.report-grid,.integration-grid{grid-template-columns:1fr}.report-grid .monthly{grid-column:auto}.install-grid{grid-template-columns:1fr}.pos-screen{position:relative;min-height:100vh;overflow:auto}.pos-toolbar{height:auto;grid-template-columns:1fr;padding:12px}.pos-layout{height:auto;grid-template-columns:1fr;padding:12px}.pos-browse{display:grid;grid-template-columns:repeat(4,1fr)}.product-grid{overflow:visible;grid-template-columns:repeat(2,1fr)}.basket-panel{min-height:480px}.payment-choices{grid-template-columns:1fr}}
.dark-logo{display:none}.brand-logo{width:46px;height:46px;object-fit:contain}.pos-logo{width:44px;height:44px;object-fit:contain}.pos-theme{width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);cursor:pointer}
body.theme-dark{--bg:#080b09;--panel:#101411;--panel2:#151a16;--line:#293129;--text:#f2f5ef;--muted:#9ba29a;--shadow:0 18px 50px rgba(0,0,0,.25);background:var(--bg);color:var(--text)}body.theme-dark .light-logo{display:none!important}body.theme-dark .dark-logo{display:block!important}body.theme-dark .topbar,body.theme-dark .card,body.theme-dark .kpi,body.theme-dark .basket-panel,body.theme-dark .dialog,body.theme-dark .browse-btn,body.theme-dark .product-card{background:var(--panel);color:var(--text);border-color:var(--line)}body.theme-dark .btn.ghost,body.theme-dark input,body.theme-dark select,body.theme-dark textarea,body.theme-dark .pos-toolbar,body.theme-dark .pos-search,body.theme-dark .pos-staff select,body.theme-dark .pos-customer select{background:#0f1410;color:var(--text);border-color:var(--line)}body.theme-dark .pos-screen{background:var(--bg)}body.theme-dark .product-photo{background:linear-gradient(145deg,#171d18,#0f130f)}body.theme-dark .basket-foot,body.theme-dark .amount-due,body.theme-dark .change-row{background:var(--panel2)}body.theme-dark .payment-choices button{background:#121713;color:var(--text);border-color:var(--line)}

/* v1.0.3 POS toolbar refinement */
.pos-toolbar{grid-template-columns:230px minmax(320px,1fr) 210px 260px 44px;gap:12px;align-items:center}
.pos-search-wrap,.pos-staff-static,.pos-customer-control{min-width:0}
.pos-control-label{display:block;margin:0 0 5px 2px;color:var(--muted);font-size:9px;font-weight:950;line-height:1;text-transform:uppercase;letter-spacing:.08em}
.pos-static-value,.customer-picker-trigger{height:44px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 1px 0 rgba(22,32,25,.02);display:flex;align-items:center}
.pos-static-value{gap:9px;padding:0 13px;overflow:hidden}
.pos-static-value strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:850}
.pos-static-dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(15,157,82,.1);flex:0 0 auto}
.pos-customer-control{position:relative}
.customer-picker-trigger{width:100%;padding:0 11px 0 13px;justify-content:space-between;gap:10px;cursor:pointer;text-align:left}
.customer-picker-trigger:hover,.pos-customer-control.open .customer-picker-trigger{border-color:#b9c7bd;box-shadow:0 0 0 3px rgba(15,157,82,.07)}
.customer-picker-copy{min-width:0;display:grid;gap:2px}
.customer-picker-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-picker-copy small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-picker-chevron{font-size:20px;line-height:1;color:var(--muted);transform:translateY(-1px);transition:transform .16s ease}
.pos-customer-control.open .customer-picker-chevron{transform:rotate(180deg) translateY(1px)}
.customer-picker-menu{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:650;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:7px;box-shadow:0 22px 60px rgba(31,39,33,.18);max-height:360px;overflow:auto}
.customer-option{width:100%;border:0;background:transparent;color:var(--text);border-radius:11px;padding:10px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer}
.customer-option:hover{background:var(--panel2)}
.customer-option span{min-width:0;display:grid;gap:3px}
.customer-option strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-option small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-option>b{opacity:0;color:var(--green);font-size:13px}
.customer-option.selected{background:#edf9f1}
.customer-option.selected>b{opacity:1}
.customer-add-link{margin-top:6px;padding:10px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;color:var(--green);text-decoration:none;border-radius:10px}
.customer-add-link:hover{background:#eff9f2}
.customer-add-link span:last-child{display:grid;gap:2px}
.customer-add-link strong{font-size:11px}
.customer-add-link small{font-size:9px;color:var(--muted)}
.customer-add-icon{width:30px;height:30px;border-radius:9px;background:#e7f7ed;display:grid;place-items:center;font-size:18px;font-weight:900;flex:0 0 auto}
.pos-theme{align-self:end;margin-bottom:0;height:44px}
body.theme-dark .pos-static-value,body.theme-dark .customer-picker-trigger,body.theme-dark .customer-picker-menu{background:#0f1410;color:var(--text);border-color:var(--line)}
body.theme-dark .customer-option:hover{background:#171d18}
body.theme-dark .customer-option.selected{background:#14241a}
body.theme-dark .customer-add-link:hover{background:#14241a}
body.theme-dark .customer-add-icon{background:#183022}
@media(max-width:1280px){.pos-toolbar{grid-template-columns:190px minmax(240px,1fr) 175px 220px 44px;padding:0 14px;gap:10px}.pos-title small{display:none}.pos-static-value strong,.customer-picker-copy strong{font-size:11px}}
@media(max-width:1050px){.pos-toolbar{grid-template-columns:170px minmax(220px,1fr) 180px 44px}.pos-staff-static{display:none}.pos-customer-control{min-width:0}}
@media(max-width:900px){.pos-toolbar{grid-template-columns:1fr!important;align-items:stretch}.pos-staff-static{display:block}.pos-theme{align-self:auto}.customer-picker-menu{position:fixed;left:14px;right:14px;top:190px}}


/* v1.0.4 POS shell lock + aligned toolbar */
.pos-screen{
  position:fixed!important;
  inset:0!important;
  height:100vh!important;
  width:100vw!important;
  overflow:hidden!important;
  z-index:200!important;
  background:var(--bg);
}
.pos-toolbar{
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:82px!important;
  z-index:20!important;
  display:grid!important;
  grid-template-columns:minmax(220px,260px) minmax(360px,1fr) minmax(205px,230px) minmax(250px,290px) 48px!important;
  gap:14px!important;
  align-items:stretch!important;
  padding:10px 22px!important;
  background:var(--panel)!important;
  border-bottom:1px solid var(--line)!important;
  box-shadow:0 6px 20px rgba(25,33,27,.035);
}
.pos-title,.pos-search-wrap,.pos-staff-static,.pos-customer-control,.pos-theme{
  min-width:0;
}
.pos-title{
  height:60px;
  align-self:center;
  display:flex!important;
  align-items:center!important;
}
.pos-search-wrap{
  height:60px;
  align-self:center;
  display:flex;
  align-items:flex-end;
  padding-top:15px;
}
.pos-search{
  height:45px!important;
}
.pos-staff-static,.pos-customer-control{
  height:60px;
  align-self:center;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.pos-control-label{
  height:15px;
  margin:0 0 4px 2px!important;
  display:flex!important;
  align-items:center;
}
.pos-static-value,.customer-picker-trigger{
  height:41px!important;
  flex:0 0 41px;
}
.pos-theme{
  align-self:end!important;
  width:45px!important;
  height:45px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  cursor:pointer;
  transition:transform .16s ease, background .16s ease, border-color .16s ease;
}
.pos-theme:hover{transform:translateY(-1px);background:var(--panel2)!important}
.theme-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-icon-moon{display:block;fill:currentColor;stroke:currentColor}
.theme-icon-sun{display:none}
body.theme-dark .theme-icon-moon{display:none}
body.theme-dark .theme-icon-sun{display:block}
body.theme-dark .theme-icon-sun circle{fill:none}

.pos-layout{
  position:absolute!important;
  top:82px!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:190px minmax(0,1fr) 360px!important;
  gap:16px!important;
  padding:16px!important;
  overflow:hidden!important;
}
.pos-browse{
  height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  align-self:stretch!important;
}
.product-grid{
  height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.basket-panel{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  height:100%!important;
  min-height:0!important;
  align-self:stretch!important;
  overflow:hidden!important;
}
.basket-head,.basket-foot{flex:0 0 auto}
.basket-items{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
body:has(.pos-screen){overflow:hidden!important}

@media(max-width:1280px){
  .pos-toolbar{grid-template-columns:190px minmax(280px,1fr) 180px 220px 45px!important;padding:10px 14px!important;gap:10px!important}
  .pos-layout{grid-template-columns:160px minmax(0,1fr) 330px!important}
}
@media(max-width:1050px){
  .pos-toolbar{grid-template-columns:170px minmax(240px,1fr) 200px 45px!important}
  .pos-staff-static{display:none!important}
  .pos-layout{grid-template-columns:145px minmax(0,1fr) 310px!important;gap:12px!important;padding:12px!important}
}
@media(max-width:900px){
  .pos-screen{position:relative!important;height:auto!important;min-height:100vh!important;overflow:auto!important}
  .pos-toolbar{position:relative!important;height:auto!important;grid-template-columns:1fr!important;align-items:stretch!important;padding:12px!important}
  .pos-title,.pos-search-wrap,.pos-staff-static,.pos-customer-control{height:auto!important;padding-top:0!important}
  .pos-staff-static{display:flex!important}
  .pos-theme{align-self:auto!important}
  .pos-layout{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:auto!important;grid-template-columns:1fr!important;padding:12px!important;overflow:visible!important}
  .pos-browse{height:auto!important;overflow:visible!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important}
  .product-grid{height:auto!important;overflow:visible!important;grid-template-columns:repeat(2,1fr)!important}
  .basket-panel{height:auto!important;min-height:480px!important}
  body:has(.pos-screen){overflow:auto!important}
}

/* v1.0.5 — SERVORA-style administration shell */
.servora-admin-shell{grid-template-columns:250px minmax(0,1fr);background:#f7f5f2;min-height:100vh}
.servora-admin-shell .sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;height:100vh;background:#fff;color:#31342f;border-right:1px solid #ebe7e2;padding:14px 12px 12px;overflow:hidden;z-index:70;box-shadow:0 0 0 1px rgba(20,30,22,.015);display:flex;flex-direction:column}
.servora-admin-shell .brand{min-height:72px;padding:8px 10px 14px;border-bottom:1px solid #ece8e3;gap:11px;flex:0 0 auto}
.servora-admin-shell .brand img{width:48px;height:48px}
.servora-admin-shell .brand-mark{width:48px;height:48px;border-radius:15px;background:#e2f7e9;color:#07984b;font-size:22px}
.servora-admin-shell .brand-copy{min-width:0}
.servora-admin-shell .brand strong{color:#20221f;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.servora-admin-shell .brand small{color:#8b8e88;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.servora-admin-shell .sidebar nav{padding:10px 0 12px;gap:2px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d9ddd8 transparent}
.servora-admin-shell .nav-group{margin:14px 10px 5px;color:#93958f;font-size:8px;letter-spacing:.16em}
.servora-admin-shell .nav-link{height:42px;padding:0 10px!important;border-radius:12px!important;color:#656862!important;display:flex!important;align-items:center;gap:10px;font-size:12px!important;font-weight:760!important;transition:.15s ease}
.servora-admin-shell .nav-link:hover{background:#f5f5f4!important;color:#171a16!important}
.servora-admin-shell .nav-link.active{background:#f0f1ef!important;color:#08a14e!important}
.servora-admin-shell .nav-icon{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;color:#81857f;flex:0 0 auto}
.servora-admin-shell .nav-link.active .nav-icon{color:#0aa650;background:#e9f8ee}
.servora-admin-shell .nav-icon svg,.servora-admin-shell .sidebar-signout svg,.servora-admin-shell .topbar svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.servora-admin-shell .sidebar-user{min-height:66px;border:1px solid #e9e5df;border-radius:15px;padding:8px 9px;gap:9px;background:#fff;flex:0 0 auto}
.servora-admin-shell .user-avatar{width:38px;height:38px;border-radius:12px;background:#0aa14e;color:#fff;display:grid;place-items:center;font-weight:950;font-size:17px;flex:0 0 auto}
.servora-admin-shell .sidebar-user-copy{min-width:0;flex:1}
.servora-admin-shell .sidebar-user-copy strong{display:block;font-size:11px;color:#222520;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.servora-admin-shell .sidebar-user-copy small{color:#8c8f89;font-size:9px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.servora-admin-shell .sidebar-signout{width:32px;height:32px;border:1px solid #e4e0da;border-radius:10px!important;padding:0!important;display:grid;place-items:center;color:#565a54;background:#fff;flex:0 0 auto}
.servora-admin-shell .sidebar-signout:hover{background:#f4f4f2!important;color:#111!important}
.servora-admin-shell .app-main{margin-left:250px;width:calc(100% - 250px);min-height:100vh;background:#f8f6f4}
.servora-admin-shell .topbar{position:sticky;top:0;z-index:60;height:78px;padding:0 28px;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid #ebe7e2;display:flex;align-items:center;gap:20px}
.servora-admin-shell .admin-search{height:48px;flex:1;max-width:700px;border:1px solid #e7e3dd;border-radius:14px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 13px;color:#969994;box-shadow:0 1px 0 rgba(20,30,22,.015)}
.servora-admin-shell .admin-search>svg{width:16px;height:16px;color:#494c47}
.servora-admin-shell .admin-search span{font-size:12px;font-weight:700;white-space:nowrap}
.servora-admin-shell .admin-search b{margin-left:auto;background:#edf8f0;color:#079a49;border-radius:8px;padding:6px 9px;font-size:9px;font-weight:900;white-space:nowrap}
.servora-admin-shell .topbar-actions{margin-left:auto;gap:9px}
.servora-admin-shell .online-dot{height:38px;padding:0 12px;background:#eef8f1;color:#238650;display:flex;align-items:center;gap:6px}
.servora-admin-shell .online-dot i{width:7px;height:7px;border-radius:50%;background:#39bd73;box-shadow:0 0 0 4px #dff3e6}
.servora-admin-shell .date-chip{height:42px;padding:0 13px;border:1px solid #e7e3dd;border-radius:13px;background:#fff;display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;color:#4e524d;white-space:nowrap}
.servora-admin-shell .date-chip svg{color:#08a14e}
.servora-admin-shell .theme-btn{width:42px;height:42px;border:1px solid #e7e3dd;border-radius:13px;background:#fff;color:#151815;display:grid;place-items:center;cursor:pointer}
.servora-admin-shell .theme-btn .sun{display:none}.servora-admin-shell .theme-btn .moon{display:block;fill:currentColor;stroke:currentColor}
body.theme-dark .servora-admin-shell .theme-btn .sun{display:block}body.theme-dark .servora-admin-shell .theme-btn .moon{display:none}
.servora-admin-shell .open-pos-btn{height:42px;display:flex;align-items:center;border-radius:13px;background:#fff;border-color:#e7e3dd}
.servora-admin-shell .page-wrap{padding:30px 32px 42px;max-width:1600px;width:100%;margin:0 auto}
.servora-admin-shell .page-head{margin:0 0 22px}.servora-admin-shell .page-head h1{font-size:30px;letter-spacing:-.035em;color:#282a27}.servora-admin-shell .page-head p{font-size:12px;color:#7f827d}.servora-admin-shell .eyebrow{color:#08a14e}
.servora-admin-shell .card,.servora-admin-shell .kpi{background:#fff;border-color:#e8e3dd;box-shadow:none;border-radius:18px}
.servora-admin-shell .card{padding:20px}.servora-admin-shell .kpi{padding:20px}
.servora-admin-shell .table-wrap table{min-width:680px}.servora-admin-shell .table-wrap th{color:#8a8d87}.servora-admin-shell .table-wrap th,.servora-admin-shell .table-wrap td{border-bottom-color:#eeeae5}
.servora-admin-shell .btn{border-color:#e7e3dd;border-radius:12px}.servora-admin-shell .btn.primary{border-color:#0aa14e;background:#0aa14e}.servora-admin-shell .btn.primary:hover{background:#087b3d}
.servora-admin-shell .form-grid input,.servora-admin-shell .form-grid select,.servora-admin-shell .form-grid textarea,.servora-admin-shell .filters input{border-color:#e5e0da;background:#fff;border-radius:12px}

body.theme-dark .servora-admin-shell{background:#0b0f0c}
body.theme-dark .servora-admin-shell .sidebar{background:#0d120e;color:#eef4ef;border-color:#222b24}
body.theme-dark .servora-admin-shell .brand{border-color:#222b24}
body.theme-dark .servora-admin-shell .brand strong,body.theme-dark .servora-admin-shell .sidebar-user-copy strong{color:#f5f7f5}
body.theme-dark .servora-admin-shell .brand small,body.theme-dark .servora-admin-shell .sidebar-user-copy small{color:#929b94}
body.theme-dark .servora-admin-shell .nav-group{color:#69736b}
body.theme-dark .servora-admin-shell .nav-link{color:#aeb8b0!important}
body.theme-dark .servora-admin-shell .nav-link:hover{background:#151c17!important;color:#fff!important}
body.theme-dark .servora-admin-shell .nav-link.active{background:#17231b!important;color:#52da8b!important}
body.theme-dark .servora-admin-shell .nav-link.active .nav-icon{background:#193222;color:#58dc90}
body.theme-dark .servora-admin-shell .sidebar-user{background:#101611;border-color:#253027}
body.theme-dark .servora-admin-shell .sidebar-signout{background:#121813;border-color:#29322b;color:#dbe4dd}
body.theme-dark .servora-admin-shell .app-main{background:#0d110e}
body.theme-dark .servora-admin-shell .topbar{background:rgba(13,18,14,.97);border-color:#252c26}
body.theme-dark .servora-admin-shell .admin-search,body.theme-dark .servora-admin-shell .date-chip,body.theme-dark .servora-admin-shell .theme-btn,body.theme-dark .servora-admin-shell .open-pos-btn{background:#121713;color:#e9efea;border-color:#2a322b}
body.theme-dark .servora-admin-shell .admin-search b{background:#183021;color:#5cdf91}
body.theme-dark .servora-admin-shell .page-head h1{color:#f0f4f0}
body.theme-dark .servora-admin-shell .card,body.theme-dark .servora-admin-shell .kpi{background:#111612;border-color:#283029}
body.theme-dark .servora-admin-shell .form-grid input,body.theme-dark .servora-admin-shell .form-grid select,body.theme-dark .servora-admin-shell .form-grid textarea,body.theme-dark .servora-admin-shell .filters input{background:#0e130f;border-color:#29312a;color:#edf3ee}

/* v1.0.5 POS cashier identity + sign out */
.pos-toolbar{grid-template-columns:minmax(210px,245px) minmax(330px,1fr) minmax(210px,235px) minmax(245px,285px) 46px 94px!important}
.pos-cashier-copy{display:grid;min-width:0;gap:1px}.pos-cashier-copy strong{font-size:11px!important}.pos-cashier-copy small{font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:none;letter-spacing:0}
.pos-logout{align-self:end;height:45px;padding:0 13px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;font-weight:900;white-space:nowrap}
.pos-logout:hover{background:var(--panel2)}.pos-logout svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.theme-dark .pos-logout{background:#0f1410;border-color:var(--line);color:var(--text)}
@media(max-width:1280px){.pos-toolbar{grid-template-columns:180px minmax(250px,1fr) 180px 210px 45px 82px!important}.pos-logout{padding:0 9px}.pos-logout span{display:none}}
@media(max-width:1050px){.pos-toolbar{grid-template-columns:165px minmax(230px,1fr) 195px 45px 45px!important}.pos-staff-static{display:none!important}.pos-logout{width:45px;padding:0}.pos-logout span{display:none}}
@media(max-width:900px){.pos-toolbar{grid-template-columns:1fr!important}.pos-logout{width:100%;align-self:auto}.pos-logout span{display:inline}}

@media(max-width:980px){.servora-admin-shell{grid-template-columns:82px minmax(0,1fr)}.servora-admin-shell .sidebar{width:82px}.servora-admin-shell .brand-copy,.servora-admin-shell .nav-link>span:last-child,.servora-admin-shell .nav-group,.servora-admin-shell .sidebar-user-copy{display:none}.servora-admin-shell .brand{justify-content:center;padding-left:0;padding-right:0}.servora-admin-shell .nav-link{justify-content:center;padding:0!important}.servora-admin-shell .sidebar-user{justify-content:center}.servora-admin-shell .sidebar-signout{display:none}.servora-admin-shell .app-main{margin-left:82px;width:calc(100% - 82px)}.servora-admin-shell .admin-search span{display:none}.servora-admin-shell .date-chip{display:none}}

/* v1.0.6 — critical admin shell width recovery
   v1.0.5 made the sidebar fixed but left .app-shell as a two-column grid,
   then also added a 250px margin to .app-main. That double-offset the main
   workspace and collapsed every backend module into a narrow column. */
.servora-admin-shell{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:100vh!important;
  position:relative!important;
}
.servora-admin-shell .sidebar{
  position:fixed!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:250px!important;
  height:100vh!important;
}
.servora-admin-shell .app-main{
  display:block!important;
  margin-left:250px!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  min-height:100vh!important;
}
.servora-admin-shell .topbar{
  width:100%!important;
  min-width:0!important;
}
.servora-admin-shell .page-wrap{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
.servora-admin-shell .kpi-grid,
.servora-admin-shell .report-grid,
.servora-admin-shell .split,
.servora-admin-shell .integration-grid{
  width:100%;
  min-width:0;
}
.servora-admin-shell .kpi,
.servora-admin-shell .card{
  min-width:0;
}
@media(max-width:980px){
  .servora-admin-shell{display:block!important}
  .servora-admin-shell .sidebar{width:82px!important}
  .servora-admin-shell .app-main{margin-left:82px!important;width:auto!important}
}


/* v1.0.8 — SERVORA rental branding + receipt-only client branding */
.servora-admin-shell .servora-rental-brand{gap:10px!important}
.servora-admin-shell .servora-brand-logo{width:78px!important;height:48px!important;object-fit:contain!important;flex:0 0 auto}
.servora-admin-shell .brand-copy strong{font-size:13px!important}
.servora-admin-shell .brand-copy small{font-size:9px!important}
.pos-servora-logo{width:64px;height:44px;object-fit:contain;flex:0 0 auto}
.receipt-branding-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;align-items:start}
.receipt-branding-form .form-grid.two{grid-template-columns:1fr 1fr}
.receipt-contact-grid{gap:12px}
.receipt-mini-preview{width:min(100%,320px);margin:4px auto 10px;border:1px dashed var(--line);border-radius:16px;background:var(--panel2);padding:22px 18px;text-align:center;display:grid;gap:6px;color:var(--text)}
.receipt-mini-preview img{max-width:170px;max-height:75px;object-fit:contain;margin:0 auto 7px}
.receipt-mini-preview strong{font-size:17px}.receipt-mini-preview span{font-size:11px;color:var(--muted)}.receipt-mini-preview small{font-size:9px;color:var(--muted)}.receipt-mini-preview hr{border:0;border-top:1px dashed var(--line);width:100%;margin:8px 0}
.receipt-logo-placeholder{height:70px;border:1px dashed var(--line);border-radius:12px;display:grid;place-items:center;color:var(--muted);font-size:10px;font-weight:800;margin-bottom:5px}
body.theme-dark .receipt-mini-preview{background:#0e130f;border-color:#2a322b}
@media(max-width:900px){.receipt-branding-grid{grid-template-columns:1fr}.receipt-branding-form .form-grid.two{grid-template-columns:1fr}.servora-admin-shell .servora-brand-logo{width:52px!important}.servora-admin-shell .brand-copy{display:none}.pos-servora-logo{width:52px}}

/* v1.0.9 SaaS identity */
.servora-admin-shell .servora-brand-logo{display:block;max-width:82px;filter:none!important}
/* v1.0.10 — Master SERVORA SaaS branding */
.servora-rental-brand{position:relative}.servora-rental-brand .dark-logo{display:none!important}.servora-rental-brand .light-logo{display:block!important}
body.theme-dark .servora-rental-brand .light-logo{display:none!important}body.theme-dark .servora-rental-brand .dark-logo{display:block!important}
.pos-title .dark-logo{display:none!important}.pos-title .light-logo{display:block!important}body.theme-dark .pos-title .light-logo{display:none!important}body.theme-dark .pos-title .dark-logo{display:block!important}
.saas-logo-previews{display:grid;gap:16px}.saas-logo-preview{min-height:170px;border:1px solid var(--line);border-radius:18px;padding:18px;display:grid;place-items:center;gap:10px;text-align:center}.saas-logo-preview small{font-weight:800;text-transform:uppercase;letter-spacing:.08em}.saas-logo-preview img{max-width:220px;max-height:100px;object-fit:contain}.saas-logo-preview.light{background:#f8f8f4;color:#1b211c}.saas-logo-preview.dark{background:#0b0f0c;color:#eef5ef;border-color:#263029}
