.sync{font-size:12px;border-radius:20px;padding:3px 12px;display:inline-block}.sync.ok{background:#e1ecd8;color:#2f5a2c}.sync.wait{background:#f5ecd0;color:#7a5a12}.sync.off{background:#f3dad5;color:#8a2f22}
.tag{font-size:12px;background:#e5ebde;border-radius:20px;padding:4px 12px;margin-inline-end:8px}.dot{color:#d4802a}.alert.err{border-right-color:var(--danger);background:#f5e1dc}
a.btn{display:inline-block;padding:6px 12px;border:1px solid var(--green);border-radius:14px;font-size:12px;color:var(--green)}.danger-btn{background:var(--danger)}
.qty{width:70px;padding:4px 8px;display:inline-block}textarea{border:1px solid #cbd4c4;border-radius:12px;padding:12px;background:#fbfcf8;font:inherit}
main#app{max-width:1500px;margin:auto}.workspace{grid-template-columns:230px minmax(0,1fr)}td,th{white-space:normal}.table-wrap td{vertical-align:top}.pos{grid-template-columns:1.5fr 1fr}
.cart .meta input{margin:0 6px}@media(max-width:900px){.workspace{grid-template-columns:1fr}.sidebar{position:static;display:flex;overflow:auto;gap:4px;padding:6px}.sidebar h3,.sidebar small{display:none}.sidebar button{width:auto;white-space:nowrap}.pos{grid-template-columns:1fr}}
@media print{#app,header{display:none!important}}

/* ---- admin: tactile + glass, easy to use ---- */
.workspace{gap:22px}
.sidebar{background:linear-gradient(180deg,#ffffff8c,#f1e9d466);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid #ffffffd0;box-shadow:0 14px 34px #6b552a24,inset 0 1px 0 #fff;color:#2f4637;border-radius:30px;padding:18px 12px;top:96px}
.sidebar h3{font-size:12px;letter-spacing:3px;color:#9a7433;margin:4px 0 12px}
.sidebar button{display:flex;align-items:center;gap:12px;color:#4d5a49;background:transparent;box-shadow:none;text-shadow:none;border-radius:999px;font-weight:500;padding:11px 16px;margin:3px 0;filter:none;transition:background .25s,box-shadow .25s,color .25s}
.sidebar button:hover{background:#ffffff99;transform:none;box-shadow:0 3px 10px #4a3a1a14}
.sidebar button.active{background:linear-gradient(180deg,#fff,#f0e8d3);color:#2f4637;box-shadow:0 5px 14px #4a3a1a26,inset 0 1px 0 #fff;font-weight:700}
.sidebar button:active{transform:none}
.sidebar .ic{font-style:normal;font-size:18px;width:26px;text-align:center}
.sidebar small{color:#7a8274}
.toolbar{background:#ffffff59;border:1px solid #ffffffc0;border-radius:24px;padding:14px 20px;box-shadow:inset 0 2px 6px #6b552a14}
.toolbar h1{font-size:24px}
.quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:6px 0 22px}
.quick button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 10px;font-size:15px;border-radius:26px;background:linear-gradient(180deg,#fffdf6,#e9dfc6);color:#2f4637;text-shadow:0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff,inset 0 -3px 6px #8a734033,0 4px 0 #c9bb98,0 14px 24px #6b552a2a}
.quick button:hover{background:linear-gradient(180deg,#fff,#f0e6cd)}
.quick button:active{transform:translateY(4px);box-shadow:inset 0 3px 8px #8a734066,0 0 0 #c9bb98}
.quick i{font-style:normal;font-size:30px;line-height:1}
.metric,.panel{background:linear-gradient(180deg,#fffdf8,#f6efdd);border:1px solid #fff;border-radius:24px;box-shadow:inset 0 1px 0 #fff,0 12px 26px #6b552a1c,0 2px 4px #6b552a12}
.metric strong{font-family:'IBM Plex Sans Arabic',Georgia,serif;color:#2f4637}
input,select,textarea{background:#f7f1e1;border:1px solid #e1d6b9;border-radius:16px;box-shadow:inset 0 2px 5px #6b552a24;padding:13px 14px;font-size:15px;transition:box-shadow .2s,border-color .2s}
input:focus,select:focus,textarea:focus{background:#fffdf6;border-color:#b98f46;box-shadow:inset 0 2px 4px #6b552a14,0 0 0 4px #c9a15d33;outline:0}
label{font-weight:600;color:#4d5a49;font-size:13px}
th{background:#efe6cf;border-radius:0}
tr:hover td{background:#fff8e6}
td button,.table-wrap button{padding:7px 16px;font-size:13px}
.sync{box-shadow:inset 0 1px 3px #0000001a}
.pos .card{padding:10px}
.pos .product-bottom button{padding:10px 18px;font-size:14px}
.cart{border-radius:28px}
.cart .full{padding:16px;font-size:17px;margin-top:10px}
.total-row.big{font-size:26px}
.danger-btn{background:linear-gradient(180deg,#c2574a,#8f3326)!important;box-shadow:inset 0 1px 0 #ffffff40,0 3px 0 #6c2118,0 10px 18px #a33c2d33!important}
a.btn{background:linear-gradient(180deg,#fffdf6,#e6dcc4);color:#2f4637;border:0;text-shadow:0 1px 0 #fff;padding:8px 16px;font-size:13px;box-shadow:inset 0 1px 0 #fff,0 3px 0 #c9bb98}
@media(max-width:900px){
 body{padding-bottom:92px}
 .sidebar{position:fixed;inset:auto 10px 10px 10px;z-index:30;top:auto;display:flex;flex-direction:row;gap:2px;padding:6px;border-radius:30px;overflow-x:auto;box-shadow:0 14px 40px #4a3a1a47,inset 0 1px 0 #fff;background:#fffffff0}
 .sidebar h3,.sidebar small{display:none}
 .sidebar button{flex-direction:column;gap:2px;padding:8px 12px;min-width:68px;font-size:11px;border-radius:22px;white-space:nowrap;margin:0}
 .sidebar .ic{font-size:21px}
 .quick{grid-template-columns:repeat(2,1fr)}
}


/* ---- admin v3: matches the approved mockup (green sidebar, white cards, flat green actions) ---- */
body{background:#f4f1e9}
header{position:static;width:auto;margin:0;border-radius:0;background:#123B2C;border:0;box-shadow:none;backdrop-filter:none;color:#f4ecd8;padding:10px 3%}
header nav{display:none}
header button.outline{background:#ffffff1a;color:#f4ecd8;box-shadow:none;text-shadow:none;border:1px solid #ffffff33;padding:8px 18px;font-size:13px}
button,.btn{border-radius:12px;background:#123B2C;color:#fbf1d8;text-shadow:none;box-shadow:0 1px 2px #0003;font-weight:600;padding:11px 20px}
button:hover,.btn:hover{background:#1b5240;filter:none;transform:none}button:active,.btn:active{transform:scale(.98);box-shadow:none}
button.outline,a.btn{background:#fff;color:#123B2C;border:1px solid #d9d2bd;box-shadow:none;text-shadow:none;font-weight:600}
button.outline:hover,a.btn:hover{background:#f3eedf}
.sidebar{background:#123B2C;border:0;box-shadow:0 10px 30px #123b2c40;border-radius:22px;top:16px;color:#e8dfc8;backdrop-filter:none}
.sidebar h3{color:#e3b66d}.sidebar small{color:#9fb5a6}
.sidebar button{color:#d5e0d6;border-radius:12px;background:transparent;box-shadow:none}
.sidebar button:hover{background:#ffffff14;box-shadow:none}
.sidebar button.active{background:#f4efe1;color:#123B2C;box-shadow:none}
.toolbar{background:#fff;border:1px solid #ebe5d3;border-radius:18px;box-shadow:none}
.panel,.metric,.kpi{background:#fff;border:1px solid #ebe5d3;border-radius:18px;box-shadow:0 1px 3px #4a3a1a0d}
input,select,textarea{background:#fff;border:1px solid #d9d2bd;box-shadow:none;border-radius:12px}
input:focus,select:focus,textarea:focus{border-color:#C58A38;box-shadow:0 0 0 3px #c58a3830;background:#fff}
th{background:#f3eedf}tr:hover td{background:#faf7ee}
.quick button{background:#fff;color:#123B2C;border:1px solid #ebe5d3;border-radius:18px;box-shadow:0 1px 3px #4a3a1a0d;padding:16px 8px;font-size:14px}
.quick button:hover{background:#f6f1e3;transform:none}.quick button:active{box-shadow:none;transform:scale(.98)}
.quick i{background:#123B2C0f;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:26px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.kpis.small{grid-template-columns:repeat(2,minmax(0,1fr))}
.kpi{display:flex;gap:14px;align-items:center;padding:18px}.kpi>i{font-style:normal;background:#123B2C;color:#fff;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:22px;flex:none}
.kpi small{display:block;color:#6b7068;font-size:12px}.kpi strong{display:block;font-size:21px;line-height:1.4;color:#123B2C}.kpi em{font-style:normal;font-size:12px;color:#2f7a4a}
.cols{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin:18px 0}.cols .panel{margin:0}
.line{width:100%;height:auto;display:block;margin-bottom:10px}
.donut{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.donut svg{width:150px;height:150px}.donut ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}.donut li{display:flex;align-items:center;gap:8px}.donut li i{width:12px;height:12px;border-radius:4px;display:inline-block}
.rank{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eee7d3}.rank:last-child{border:0}.rank b{width:28px;height:28px;border-radius:50%;background:#123B2C;color:#fff;display:grid;place-items:center;font-size:13px;flex:none}.rank span{flex:1}.rank em{font-style:normal;color:#6b7068;font-size:12px}.rank.warn b{background:#c0392b}.rank button{padding:6px 14px;font-size:12px}
@media(max-width:900px){.sidebar{background:#123B2Cf5;border-radius:26px}.sidebar button{color:#cfdcd1}.sidebar button.active{background:#e3b66d;color:#1d1305}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cols{grid-template-columns:1fr}.kpi{padding:14px}.kpi strong{font-size:17px}}


/* ---- Arabic typography ---- */
:root{--font-body:'IBM Plex Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif;--font-head:'El Messiri','IBM Plex Sans Arabic',Tahoma,serif}
html{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-kerning:normal}
body{font-family:var(--font-body);line-height:1.85;letter-spacing:0;font-feature-settings:'kern','liga','calt'}
button,input,select,textarea{font-family:inherit;letter-spacing:0}
h1,h2,h3,.brand{font-family:var(--font-head);letter-spacing:0;font-weight:700}
h1,h2{line-height:1.45}
.price,.kpi strong,.metric strong,td,th{font-variant-numeric:lining-nums tabular-nums}
.eyebrow,.brand small,.sidebar h3{letter-spacing:2px}
.sidebar h3{letter-spacing:0}

/* ===== POS register (v4): one screen, big touch targets ===== */
.register{display:flex;flex-direction:column;gap:12px;max-width:1500px;margin:auto}
.reg-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border-radius:18px;padding:10px 14px;box-shadow:0 2px 10px #12261a14}
.reg-top .grow{flex:1}.reg-title{font-family:var(--font-head,inherit);font-size:20px;color:#123B2C}
.reg-top button{padding:10px 16px;min-height:44px}
.reg-menu{position:fixed;inset:0;background:#0a1a1366;z-index:50;display:flex;justify-content:flex-start}
.reg-menu>div{background:#fff;width:min(320px,86vw);height:100%;padding:16px;display:flex;flex-direction:column;gap:6px;overflow:auto}
.reg-menu button{display:flex;gap:10px;align-items:center;justify-content:flex-start;background:#f3f6ef;color:#123B2C;box-shadow:none;padding:14px;min-height:50px;font-size:16px;border-radius:14px;width:100%}
.reg-menu small{color:#6b7068;margin-top:auto;padding:8px 0}
.reg-open{display:grid;place-items:center;padding:40px 0}.reg-open .panel{max-width:440px;width:100%;text-align:center}.reg-open input{font-size:28px;text-align:center;padding:16px}
.reg-body{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:14px;align-items:start}
.reg-items{display:flex;flex-direction:column;gap:12px;min-width:0}
.reg-search input{width:100%;font-size:20px;padding:16px 20px;border-radius:18px;background:#fff;border:2px solid #d9e0d1;margin:0}
.reg-search input:focus{border-color:#C58A38;outline:none}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.chips button{flex:none;padding:10px 20px;min-height:44px;border-radius:999px;background:#fff;color:#2f4637;box-shadow:none;border:1px solid #d9e0d1;font-weight:500}
.chips button.active{background:#123B2C;color:#fff;border-color:#123B2C}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.tile{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:start;background:#fff;color:#1c2b22;border:2px solid transparent;border-radius:18px;padding:8px 8px 12px;box-shadow:0 2px 10px #12261a14;min-height:0;font-weight:400;transition:transform .12s,border-color .12s}
.tile:active{transform:scale(.97)}.tile.in{border-color:#C58A38}
.timg{display:grid;place-items:center;aspect-ratio:1/1;border-radius:12px;background:#f1ecdc;color:#C58A38;font-size:28px;overflow:hidden}.timg img{width:100%;height:100%;object-fit:cover}
.tn{font-weight:700;font-size:15px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:0 4px}
.tp{font-weight:700;color:#123B2C;font-size:16px;padding:0 4px}.tile small{color:#6b7068;padding:0 4px}
.tile em{position:absolute;top:12px;inset-inline-start:12px;background:#C58A38;color:#fff;font-style:normal;font-weight:700;min-width:28px;height:28px;border-radius:14px;display:grid;place-items:center;padding:0 6px}
.ticket{position:sticky;top:12px;background:#fff;border-radius:22px;box-shadow:0 6px 24px #12261a1f;display:flex;flex-direction:column;max-height:calc(100dvh - 100px);min-height:360px}
.ticket-h{display:flex;align-items:center;gap:8px;padding:14px 16px;border-bottom:1px solid #eee8d8}.ticket-h b{flex:1;font-size:18px}
.ghost{background:transparent;color:#8a6a2a;box-shadow:none;padding:8px 10px;min-height:0;font-weight:500}.ghost:hover{background:#f6efdc}
.sheet-x{display:none}
.alert.slim{margin:8px 12px 0;padding:8px 12px;font-size:14px}
.ticket-l{flex:1;overflow:auto;padding:6px 12px}
.tl{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px dashed #e8e2d0}
.tl-n{min-width:0}.tl-n b{display:block;font-size:15px;line-height:1.5}.tl-n small{color:#6b7068}.tl-t{font-size:15px;white-space:nowrap}
.step{display:flex;align-items:center;gap:2px;background:#f3f6ef;border-radius:14px}
.step button{width:38px;height:38px;min-height:0;padding:0;font-size:22px;background:transparent;color:#123B2C;box-shadow:none;border-radius:12px}
.step span{min-width:26px;text-align:center;font-weight:700}
.tl .x{width:34px;height:34px;min-height:0;padding:0;background:#f7ece8;color:#a33c2d;box-shadow:none;border-radius:50%;font-size:18px}
.ticket-f{padding:14px 16px;border-top:1px solid #eee8d8;display:flex;flex-direction:column;gap:10px}
.tt{display:flex;justify-content:space-between;align-items:baseline;font-size:18px}.tt b{font-size:28px;color:#123B2C}
.pay{width:100%;font-size:22px;font-weight:700;padding:18px;min-height:64px;border-radius:18px;background:linear-gradient(180deg,#d39a47,#b57a2a);color:#fff}
.pay:disabled{background:#d8d4c6;color:#fff}
.cartbar{display:none}
.payform{display:flex;flex-direction:column;gap:14px}
.pay-total{text-align:center;background:#f3f6ef;border-radius:18px;padding:14px}.pay-total small{display:block;color:#6b7068}.pay-total b{font-size:38px;color:#123B2C}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.seg button{padding:14px 6px;min-height:56px;font-size:16px;background:#fff;color:#2f4637;border:2px solid #d9e0d1;box-shadow:none;border-radius:16px}
.seg button.on{background:#123B2C;color:#fff;border-color:#123B2C}
.payform input[name=paid],.payform input[name=discount]{font-size:24px;padding:14px;text-align:center}
.amts{display:flex;flex-wrap:wrap;gap:8px}.amts button{flex:1;min-width:110px;padding:12px;min-height:48px;background:#f6efdc;color:#6b4a14;box-shadow:none;border-radius:14px;font-weight:600}
.pay-info{min-height:26px;text-align:center;font-size:18px}.pay-info b{color:#123B2C}
.payform .go{font-size:20px;padding:18px;min-height:62px}.payform .go:disabled{opacity:.45}
@media(max-width:900px){
  .reg-body{grid-template-columns:1fr}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reg-top .tag{display:none}.reg-title{font-size:17px}
  .ticket{position:fixed;inset:auto 0 0 0;top:auto;max-height:82dvh;border-radius:26px 26px 0 0;z-index:40;transform:translateY(105%);transition:transform .25s;box-shadow:0 -10px 40px #0a1a1366}
  .ticket.open{transform:none}.sheet-x{display:inline-block}
  .cartbar{display:flex;position:fixed;inset-inline:12px;bottom:12px;z-index:30;justify-content:space-between;align-items:center;gap:10px;padding:16px 20px;min-height:62px;border-radius:20px;background:#123B2C;color:#fff;font-size:17px;box-shadow:0 8px 24px #0a1a1366}
  .cartbar b{font-size:20px;color:#f2c986}.register{padding-bottom:84px}
}
@media(prefers-reduced-motion:reduce){.ticket,.tile{transition:none}}
/* ===== POS register: glass style (reference: Glassy Dashboard) ===== */
body.reg-mode{background:radial-gradient(900px 500px at 85% -10%,#c58a3850,transparent 60%),radial-gradient(700px 500px at 0% 100%,#2f8a6a40,transparent 60%),linear-gradient(160deg,#0c2a21,#123B2C 55%,#0a1f18)!important;background-attachment:fixed!important;color:#eef3ea;min-height:100vh}
body.reg-mode>header{display:none}
body.reg-mode .register{padding-top:6px}
.reg-mode .reg-top,.reg-mode .ticket,.reg-mode .tile,.reg-mode .reg-open .panel{background:#ffffff1f;backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);border:1px solid #ffffff3d;box-shadow:0 10px 36px #00000040,inset 0 1px 0 #ffffff40;color:#f4f7f1}
.reg-mode .reg-top{border-radius:26px}.reg-mode .reg-title{color:#fff}
.reg-mode .reg-top .outline,.reg-mode .ghost{background:#ffffff1a;color:#f4f7f1;border:1px solid #ffffff33;box-shadow:none}
.reg-mode .reg-top .tag{background:#c58a3833;color:#f6d9a2;border:1px solid #f6d9a255}
.reg-mode .reg-search input{background:#ffffff26;backdrop-filter:blur(16px);border:1px solid #ffffff40;color:#fff;border-radius:22px}
.reg-mode .reg-search input::placeholder{color:#cfe0d4}
.reg-mode .reg-search input:focus{border-color:#f2c986;box-shadow:0 0 0 4px #c58a3840,0 0 24px #c58a3866}
.reg-mode .chips button{background:#ffffff1a;color:#eaf1e6;border:1px solid #ffffff33;backdrop-filter:blur(10px)}
.reg-mode .chips button.active{background:linear-gradient(180deg,#d9a24f,#b57a2a);color:#fff;border-color:#f2c986;box-shadow:0 0 18px #c58a3877}
.reg-mode .tile{border-radius:24px;color:#fff;transition:transform .2s,box-shadow .2s,border-color .2s}
.reg-mode .tile:hover{transform:translateY(-3px);box-shadow:0 16px 40px #00000055,0 0 26px #c58a3855;border-color:#f2c98699}
.reg-mode .tile.in{border-color:#f2c986;box-shadow:0 0 0 2px #f2c98688,0 0 28px #c58a3877}
.reg-mode .timg{background:#ffffff1f;color:#f2c986;border-radius:18px}
.reg-mode .tp{color:#f6d9a2}.reg-mode .tile small{color:#bcd0c2}
.reg-mode .ticket{border-radius:28px}.reg-mode .ticket-h{border-color:#ffffff2e}.reg-mode .ticket-f{border-color:#ffffff2e}
.reg-mode .tl{border-color:#ffffff26}.reg-mode .tl-n small{color:#bcd0c2}
.reg-mode .step{background:#ffffff1f}.reg-mode .step button{color:#fff}
.reg-mode .tl .x{background:#ffffff1a;color:#ffb4a6}
.reg-mode .tt b{color:#f6d9a2}.reg-mode .empty{color:#bcd0c2}
.reg-mode .pay{background:linear-gradient(180deg,#e0aa56,#b57a2a);box-shadow:0 0 28px #c58a3888,inset 0 1px 0 #ffffff66}
.reg-mode .pay:disabled{background:#ffffff26;box-shadow:none;color:#ffffff88}
.reg-mode .cartbar{background:#123B2Ccc;backdrop-filter:blur(18px);border:1px solid #ffffff40}
.reg-mode .sync{color:#eaf1e6}.reg-mode .alert{background:#ffffff1f;color:#fff;border:1px solid #ffffff33}
.reg-mode .reg-open h1,.reg-mode .reg-open label{color:#fff}.reg-mode .reg-open input{background:#ffffff26;color:#fff;border:1px solid #ffffff40}
@media(max-width:900px){.reg-mode .ticket{background:#0f2d26e6}}
.cust{display:flex;flex-direction:column;gap:8px;background:#f3f6ef;border-radius:16px;padding:12px}
.cust b{color:#123B2C}.cust input,.cust select{margin:0}.cust .ghost{align-self:flex-start;color:#8a6a2a}
/* ===== register button system (consistent sizes / radii / states) ===== */
.register button,.payform button,.reg-menu button{font-family:inherit;font-size:15px;font-weight:600;line-height:1;letter-spacing:0;text-shadow:none;filter:none;border-radius:14px;min-height:46px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:background .15s,transform .1s,box-shadow .15s,border-color .15s;-webkit-tap-highlight-color:transparent}
.register button:active,.payform button:active{transform:scale(.97)}
.register button:focus-visible,.payform button:focus-visible{outline:3px solid #f2c986;outline-offset:2px}
.reg-top{min-height:64px;padding:9px 14px;gap:10px}
.reg-top button{height:46px}.reg-top .tag{height:46px;display:inline-flex;align-items:center;padding:0 16px;border-radius:14px;font-weight:600;font-size:14px}
.reg-top .sync{display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:999px;background:#ffffff1a;font-size:13px}
.reg-mode .reg-top .outline:hover,.reg-mode .ghost:hover{background:#ffffff2e}
.reg-mode .reg-top .outline[data-act=close-shift]{border-color:#e9a79a77;color:#ffd2c8}
.chips{padding:2px 2px 6px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}
.chips button{height:44px;min-height:44px;padding:0 22px}
.ticket-h{min-height:60px}.ticket-h .ghost{height:38px;min-height:38px;padding:0 12px;font-size:13px}
.step{padding:3px;gap:0}.step button{width:40px;height:40px;min-height:40px;padding:0;font-size:22px;border-radius:12px;background:#ffffff1f}.step button:disabled{opacity:.35}.step span{min-width:34px;font-size:16px}
.tl{grid-template-columns:minmax(0,1fr) auto auto 38px;gap:10px}.tl .x{width:38px;height:38px;min-height:38px;padding:0;font-size:20px;border-radius:12px}
.tl-t{min-width:84px;text-align:end}
.pay{height:64px;font-size:21px;border-radius:18px;letter-spacing:0}
.tile{min-height:0;padding:8px 8px 12px;border-radius:22px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;font-weight:400}
.tile .tn{font-size:15px;font-weight:700;text-align:start;min-height:46px}
.tile .tp,.tile small{text-align:start}
.cartbar{height:64px;border-radius:20px}
.seg{gap:10px}.seg button{height:58px;min-height:58px;font-size:16px;border-radius:16px;padding:0 6px}
.amts{gap:10px}.amts button{height:48px;flex:1 1 30%;min-width:0;padding:0 8px;font-size:14px;border-radius:14px}
.payform .go{height:62px;min-height:62px;font-size:20px;border-radius:18px}
.cust .ghost,.payform>.ghost{height:40px;min-height:40px;padding:0 12px;font-size:14px;background:#fff;border:1px dashed #c9bd9a;color:#7a5a1f}
.cust input,.cust select,.payform input,.payform select{height:50px;border-radius:14px;font-size:16px}
.reg-menu button{height:52px;justify-content:flex-start;padding:0 16px;font-size:16px}
.reg-open .full.big{height:60px;font-size:18px;border-radius:18px;margin-top:14px;background:linear-gradient(180deg,#e0aa56,#b57a2a);color:#fff}
@media(max-width:900px){.reg-top .reg-title{display:none}.reg-top button{padding:0 14px}.reg-top .grow{display:none}.reg-top{justify-content:space-between}}.register .cartbar{display:none}.register .sheet-x{display:none}
@media(max-width:900px){.register .cartbar{display:flex}.register .sheet-x{display:inline-flex}}
/* payment dialog: compact, sticky confirm */
.payform{gap:10px}
.pay-total{padding:10px}.pay-total b{font-size:34px}
.amts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.amts button{height:44px;min-height:44px;flex:none}
.seg button{height:52px;min-height:52px}
.payform input[name=paid],.payform input[name=discount]{height:54px;font-size:22px}
.cust{gap:6px;padding:10px}.cust label{font-size:13px}.cust input,.cust select{height:46px}
.pay-info{min-height:22px;font-size:16px}
.payform .go{position:sticky;bottom:0;box-shadow:0 -10px 16px #f8f3e4,0 6px 18px #b57a2a55;background:linear-gradient(180deg,#e0aa56,#b57a2a);color:#fff}
#dialog .close{width:40px;height:40px;min-height:40px;border-radius:50%;font-size:20px;padding:0}
/* payment dialog v2 */
.pay-total{position:relative}.pay-total .pay-info{min-height:22px;margin-top:2px;font-size:15px}
.disc-link{position:absolute;top:8px;inset-inline-end:8px;height:34px!important;min-height:34px!important;padding:0 12px!important;font-size:13px!important;background:#fff!important;border:1px dashed #c9bd9a!important;color:#7a5a1f!important}
.disc{position:absolute;top:8px;inset-inline-end:8px;display:flex;align-items:center;gap:6px;background:#fff;border-radius:12px;padding:4px 8px;border:1px solid #d9e0d1}.disc span{font-size:13px;color:#6b7068}.disc input{width:110px;height:34px!important;font-size:16px!important;padding:0 6px;text-align:center;border:0!important;margin:0}
.cust .row{display:flex;gap:8px;align-items:center}.cust .row select{flex:1;min-width:0}.cust .row b{flex:1}
.cust .two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cust .ghost{background:#fff!important;border:1px dashed #c9bd9a!important;color:#7a5a1f!important;height:46px!important;white-space:nowrap}
.payform .go{position:static;box-shadow:0 6px 18px #b57a2a55}
.pay-total .pay-info b{font-size:20px}.pay-total .pay-info .danger{font-size:17px}

/* ===== A4 invoice ===== */
#dialog:has(.inv){width:min(880px,96vw);max-width:96vw;background:#e9e6dc}
.inv-wrap{display:flex;flex-direction:column;gap:12px;align-items:center}
.inv{width:210mm;max-width:100%;min-height:297mm;background:#fff;color:#1c2b22;padding:14mm 13mm 12mm;box-shadow:0 8px 30px #0003;border-radius:4px;font-size:13px;line-height:1.7;display:flex;flex-direction:column;gap:14px;box-sizing:border-box;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.inv h1{margin:0;font-size:26px;color:#123B2C;line-height:1.2}.inv h1 small{font-size:12px;letter-spacing:3px;color:#b57a2a;font-family:inherit}
.inv h3{margin:0 0 4px;font-size:12px;color:#b57a2a;letter-spacing:0;border-bottom:1px solid #eadfc4;padding-bottom:3px}
.inv p{margin:0}
.inv-head{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(120deg,#0f3126,#1b5340);color:#fff;border-radius:14px;padding:14px 18px;border-bottom:4px solid #c58a38}
.inv-head h1,.inv-head h1 small{color:#fff}.inv-head h1 small{color:#f2c986}
.inv-brand{display:flex;align-items:center;gap:14px}.inv-brand img{border-radius:50%;background:#fff;object-fit:cover;border:2px solid #f2c986}.inv-brand p{color:#d7e4da;font-size:12.5px}
.inv-title{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:end}.inv-title b{font-size:22px;color:#f2c986}.inv-title span{font-size:15px;font-weight:700}
.inv-chip{display:inline-block;padding:2px 12px;border-radius:999px;font-size:12px;font-weight:700;margin-top:2px}.inv-chip.paid{background:#d9f2e3;color:#14633a}.inv-chip.due{background:#fde3d8;color:#a33c2d}
.inv-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px}.inv-meta>div{background:#faf6ea;border:1px solid #eadfc4;border-radius:12px;padding:10px 14px}
.inv-t{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e4dcc6;border-radius:12px;overflow:hidden}
.inv-t th{background:#123B2C;color:#fff;font-size:12px;padding:8px 6px;text-align:start;font-weight:600}
.inv-t td{padding:8px 6px;border-top:1px solid #efe8d4;vertical-align:top;font-size:12.5px}.inv-t tbody tr:nth-child(even){background:#fcfaf3}
.inv-t .c{text-align:center;width:1%;white-space:nowrap}.inv-t .n{white-space:nowrap;text-align:end}.inv-t .det{font-size:11.5px;color:#46544b;min-width:150px}.inv-t small{color:#6b7068}
.inv-img{display:grid;place-items:center;width:56px;height:56px;border-radius:10px;overflow:hidden;background:#f1ecdc;color:#c58a38}.inv-img img{width:100%;height:100%;object-fit:cover}
.inv-bottom{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-top:auto}
.inv-note{flex:1;display:flex;flex-direction:column;gap:12px}.inv-note .sign{display:flex;align-items:flex-end;gap:10px;font-size:12px;color:#6b7068}.inv-note .sign span{flex:1;border-bottom:1px dashed #9aa396;max-width:200px;height:24px}
.inv-sum{width:260px;border-collapse:collapse;font-size:13px;border:1px solid #e4dcc6;border-radius:12px;overflow:hidden}.inv-sum td{padding:7px 12px;border-top:1px solid #efe8d4}.inv-sum td:last-child{text-align:end;white-space:nowrap}
.inv-sum .grand td{background:#123B2C;color:#fff;font-size:16px;font-weight:700;border:0}.inv-sum .due td{background:#fde3d8;color:#a33c2d;font-weight:700}
.inv-foot{text-align:center;color:#6b7068;font-size:12px;border-top:2px solid #c58a38;padding-top:8px}
.inv-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.inv-actions button{height:46px;padding:0 20px;border-radius:14px}
@media(max-width:820px){.inv{padding:10px;font-size:12px;min-height:0}.inv-meta{grid-template-columns:1fr}.inv-head{flex-direction:column;align-items:flex-start}.inv-title{align-items:flex-start}.inv-t{display:block;overflow-x:auto}.inv-bottom{flex-direction:column}.inv-sum{width:100%}}
@page{size:A4;margin:0}
@media print{
  html,body{background:#fff!important}body.reg-mode{background:#fff!important}
  #app,body>header,#toast,.no-print,#dialog .close{display:none!important}
  #dialog{position:static!important;display:block!important;width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;background:#fff!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;inset:auto!important}
  #dialog::backdrop{display:none}#modal{padding:0!important;max-height:none!important;overflow:visible!important}
  .inv-wrap{display:block}.inv{width:210mm;min-height:297mm;box-shadow:none;border-radius:0;margin:0;page-break-inside:avoid}
}
/* ===== admin mobile fixes ===== */
@media(max-width:900px){
  .sidebar{top:auto!important;bottom:10px!important;inset-inline:10px!important;scrollbar-width:none;justify-content:flex-start}
  .sidebar::-webkit-scrollbar{display:none}
  body:not(.reg-mode){padding-bottom:104px}
  .toolbar h1{font-size:22px;margin:0}.toolbar{gap:10px}
  .quick{gap:10px}.quick button{flex-direction:row;justify-content:flex-start;padding:10px 12px;gap:10px;font-size:14px;min-height:56px;border-radius:18px}
  .quick button i{width:38px;height:38px;font-size:19px;display:grid;place-items:center}
  #toast{bottom:104px}
}@media(max-width:900px){
  .sidebar button{min-width:72px;max-width:92px}.sidebar button span{display:block;max-width:80px;overflow:hidden;text-overflow:ellipsis}
  .toolbar>div:first-child{flex:1;min-width:0}.toolbar h1{white-space:nowrap}.toolbar .sync{font-size:12px;padding:4px 10px}
  .toolbar .tag{font-size:12px}
  .kpi strong{font-size:16px;white-space:nowrap}.kpi small{font-size:12px}
}@media(max-width:900px){
  .workspace-main>.toolbar{flex-direction:column;align-items:stretch;gap:8px}
  .workspace-main>.toolbar>div:last-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
  .workspace-main>.toolbar>div:last-child .tag{flex:1}
  .table-wrap table{font-size:13px}.table-wrap th,.table-wrap td{padding:8px 8px}.table-wrap td:first-child{min-width:140px}.table-wrap td span[dir=ltr]{white-space:nowrap}
  .toolbar input#search{max-width:none!important;flex:1 1 100%}
  .toolbar>div button{min-height:44px}
}@media(max-width:900px){
  #view>.toolbar{flex-direction:column;align-items:stretch;gap:10px}
  #view>.toolbar>div{display:flex;flex-wrap:wrap;gap:8px}#view>.toolbar>div button{flex:1 1 auto}
  #view>.toolbar>button{width:100%}
}.held{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px 0}.held button{height:36px!important;min-height:36px!important;padding:0 12px!important;font-size:13px!important;background:#c58a3833;color:#f6d9a2;border:1px solid #f6d9a255;box-shadow:none}
/* ---- auth screen + visual polish v5 ---- */
body.auth-mode{background:radial-gradient(900px 500px at 15% 0,#4a6a52 0,transparent 60%),radial-gradient(700px 500px at 100% 100%,#c58a3840 0,transparent 60%),linear-gradient(160deg,#1f3427,#304737 55%,#1a2b21) fixed;min-height:100vh}
body.auth-mode>header{display:none}
.authbox{min-height:100vh;display:grid;place-items:center;padding:20px 16px}
.auth-card{width:100%;max-width:420px;background:#ffffff1f;border:1px solid #ffffff3a;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-radius:30px;padding:30px 26px;text-align:center;color:#fff;box-shadow:0 30px 70px #00000055,inset 0 1px 0 #ffffff44}
.auth-card img{border-radius:22px;margin-bottom:6px;box-shadow:0 8px 22px #0006}
.auth-card h1{margin:6px 0 4px;font-size:26px;color:#fff}
.auth-card .meta{color:#e7edd9;font-size:13px;line-height:1.7;margin:0 0 16px}
.auth-form{display:grid;gap:12px;text-align:start;margin-bottom:8px}
.auth-form label{color:#f2e3c0;font-size:13px}
.auth-form input{width:100%;background:#ffffff26;color:#fff;border:1px solid #ffffff40;box-shadow:none;margin-top:5px}
.auth-form input:focus{background:#ffffff38;border-color:#f2c986;box-shadow:0 0 0 4px #f2c98633}
.auth-card .full{width:100%;display:block;margin-top:8px}
.auth-card .big{padding:15px;font-size:17px;background:linear-gradient(180deg,#d9a24f,#a8742a);color:#1f2b1f;text-shadow:none;box-shadow:inset 0 1px 0 #ffffff66,0 4px 0 #7b5319,0 12px 24px #0005}
.auth-card .outline{background:#ffffff1f;color:#fff;text-shadow:none;border:1px solid #ffffff44;box-shadow:none}
.auth-card .outline:hover{background:#ffffff33}
.auth-card .ghost{background:none;border:0;box-shadow:none;color:#f2c986;text-shadow:none;padding:6px 10px;text-decoration:underline;font-weight:500}
.auth-card .or{display:flex;align-items:center;gap:10px;color:#cfd8c3;font-size:12px;margin:12px 0}
.auth-card .or:before,.auth-card .or:after{content:"";flex:1;height:1px;background:#ffffff3a}
.auth-card .gbtn b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#c0392b;margin-inline-end:8px;font-size:13px}
.auth-card .switch{margin:12px 0 0;font-size:13px;color:#e7edd9}
.metric{transition:transform .2s,box-shadow .2s}.metric:hover{transform:translateY(-2px)}
.panel h2{font-size:19px;margin-top:0}
:focus-visible{outline:3px solid #c9a15d88;outline-offset:2px}

/* ---- POS visual pass v6 (local review): layered glass, clearer hierarchy, identifiable pieces. CSS only; same palette ---- */
.reg-mode{--rg-edge:#ffffff2e;--rg-edge-hi:#ffffff59;--rg-panel:linear-gradient(165deg,#ffffff26,#ffffff0d);--rg-gold:#f2c986;--rg-gold-2:#c58a38;--rg-ink:#f7faf5;--rg-mute:#c9dacd;--rg-ok:#7fe0a8;--rg-warn:#ffcf8a}
body.reg-mode{background:radial-gradient(900px 520px at 88% -8%,#c58a3858,transparent 60%),radial-gradient(760px 520px at -4% 104%,#2f8a6a45,transparent 62%),radial-gradient(500px 360px at 50% 50%,#ffffff08,transparent 70%),linear-gradient(165deg,#0f2f23,#123B2C 45%,#0b241b) fixed}
/* panels: edge light + soft inner top highlight + depth shadow */
.reg-mode .reg-top,.reg-mode .ticket,.reg-mode .reg-search input{background:var(--rg-panel);border:1px solid var(--rg-edge);box-shadow:inset 0 1px 0 var(--rg-edge-hi),inset 0 -1px 0 #0000002e,0 18px 44px #00000040,0 2px 6px #0000002a}
.reg-mode .reg-top,.reg-mode .ticket{backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%)}
.reg-mode .reg-title{font-family:var(--font-head);font-size:19px;letter-spacing:.2px}
/* product tiles */
.reg-mode .tile{background:var(--rg-panel);border:1px solid var(--rg-edge);border-radius:22px;padding:8px 8px 12px;gap:5px;box-shadow:inset 0 1px 0 var(--rg-edge-hi),0 12px 28px #0000003a;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.reg-mode .tile:hover{transform:translateY(-2px);border-color:#f2c98688;box-shadow:inset 0 1px 0 var(--rg-edge-hi),0 16px 36px #0000004d,0 0 0 1px #f2c98644}
.reg-mode .tile.in{border-color:var(--rg-gold);background:linear-gradient(165deg,#c58a3840,#ffffff0d);box-shadow:inset 0 1px 0 #ffffff66,0 0 0 1px #f2c98699,0 14px 34px #0000004d}
.reg-mode .tile .tn{color:var(--rg-ink);font-size:15px;font-weight:700;line-height:1.45;min-height:0}
.reg-mode .tp{color:var(--rg-gold);font-size:17px;font-weight:800;padding:0 4px;font-variant-numeric:tabular-nums}
.tid{display:inline-block;align-self:flex-start;margin:0 4px;padding:1px 8px;border-radius:8px;background:#00000040;border:1px solid #ffffff2a;color:#fff;font:600 11.5px/1.7 ui-monospace,Consolas,'Segoe UI',monospace;letter-spacing:.4px}
.pm{display:flex;flex-wrap:wrap;gap:2px 8px;padding:0 4px;color:var(--rg-mute);font-size:12.5px;line-height:1.5}.pm b{color:#fff;font-weight:700}.pm i{font-style:normal;color:var(--rg-mute)}
.st{display:inline-block;align-self:flex-start;margin:2px 4px 0;padding:1px 9px;border-radius:999px;font-size:11.5px;font-weight:700;line-height:1.7}
.st.ok{background:#1f8f5a40;color:var(--rg-ok);border:1px solid #7fe0a855}.st.warn{background:#c58a3840;color:var(--rg-warn);border:1px solid #ffcf8a55}
.reg-mode .timg{border-radius:16px;box-shadow:inset 0 0 0 1px #ffffff1f}
/* cart */
.reg-mode .ticket-h b{font-family:var(--font-head);font-size:19px;color:var(--rg-ink)}
.reg-mode .ticket-l{padding:8px 10px;display:flex;flex-direction:column;gap:8px}
.reg-mode .tl{background:#00000030;border:1px solid #ffffff1f;border-radius:16px;padding:10px 12px;gap:10px;box-shadow:inset 0 1px 0 #ffffff14}
.reg-mode .tl-n b{color:var(--rg-ink);font-size:15px}.reg-mode .tl-n small{color:var(--rg-mute);font-size:12.5px;display:block;margin-top:2px;font-variant-numeric:tabular-nums}
.tl-m{display:flex;flex-wrap:wrap;align-items:center;gap:4px 2px;margin:3px 0 2px}.tl-m .tid,.tl-m .st{margin:0 2px}
.tl-n .pm{padding:0 2px}
.reg-mode .tl-t{color:var(--rg-gold);font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.reg-mode .ticket-f{background:linear-gradient(0deg,#0000002e,transparent)}
.reg-mode .tt b{font-size:26px;color:var(--rg-gold);font-variant-numeric:tabular-nums}.reg-mode .tt span{color:var(--rg-mute)}
.reg-mode .pay{border-radius:18px;font-size:18px;letter-spacing:.3px;transition:transform .15s,box-shadow .15s}
.reg-mode .pay:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 0 34px #c58a38aa,inset 0 1px 0 #ffffff80}
/* keyboard focus: always visible on the dark glass */
.reg-mode :is(button,input,select,textarea,a):focus-visible{outline:3px solid var(--rg-gold);outline-offset:2px;box-shadow:0 0 0 6px #f2c98640}
.reg-mode .tile:focus-visible{transform:translateY(-2px)}
@media(max-width:900px){
  .reg-mode .ticket{background:linear-gradient(165deg,#173f31f2,#0f2d26f7);border-radius:26px 26px 0 0;box-shadow:inset 0 1px 0 var(--rg-edge-hi),0 -20px 50px #0000007a}
  .reg-mode .tile .tn{font-size:14.5px}.reg-mode .tp{font-size:16px}
  .reg-mode .tl{grid-template-columns:minmax(0,1fr) auto 38px}.reg-mode .tl-t{grid-column:1;grid-row:2;justify-self:start;min-width:0}.reg-mode .tl .step{grid-column:2;grid-row:1}.reg-mode .tl .x{grid-column:3;grid-row:1}
}
@media(prefers-reduced-motion:reduce){.reg-mode .tile,.reg-mode .pay,.reg-mode .ticket{transition:none!important;animation:none!important}.reg-mode .tile:hover,.reg-mode .tile:focus-visible{transform:none}}

@media(max-width:900px){.reg-mode .register{padding-bottom:104px}}


/* Snober signed-in management workspace: evergreen backdrop, amber details, pale data surfaces. */
.workspace{--ws-forest:#103629;--ws-brass:#f2cf8e;--ws-muted:#b9cfc3;--ws-paper:#fffdf8;align-items:start;gap:clamp(14px,2vw,26px)}
body:has(.workspace):not(.reg-mode):not(.auth-mode){background:radial-gradient(ellipse at 95% 0,#426450 0,transparent 43%),linear-gradient(155deg,#16392d,#0e2b23 58%,#244638) fixed}
.workspace>.sidebar{padding:15px 13px;position:sticky;top:14px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;max-height:calc(100dvh - 28px);gap:12px;background:linear-gradient(164deg,#2c5545 0%,#173e31 55%,#112f25 100%);border:1px solid #a7cbbb44;box-shadow:inset 0 1px 0 #ffffff2e,0 16px 34px #071e1566}
.workspace .mobile-nav-hint{display:none}
.workspace .side-brand{display:flex;align-items:center;gap:10px;padding:8px 8px 14px;border-bottom:1px solid #ffffff26;color:#fff8e8}
.workspace .side-brand img{flex:none;border-radius:13px;box-shadow:0 3px 12px #071e1566}
.workspace .side-brand b{font:700 22px/1.2 var(--font-head,inherit);display:block}
.workspace .side-brand small,.workspace .side-account small{color:var(--ws-muted);display:block;margin:3px 0}
/* Reset the global storefront nav flex/pill styling inside the admin sidebar. */
.workspace .sidebar nav.side-links{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(42px,auto);align-content:start;align-items:stretch;width:100%;min-width:0;min-height:0;gap:3px;padding:2px 3px;background:none;border:0;border-radius:0;box-shadow:none;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
.workspace .sidebar nav.side-links>button{margin:0;min-width:0;white-space:normal;line-height:1.35}
.workspace .sidebar nav.side-links>button span{min-width:0;white-space:normal;overflow-wrap:anywhere}
.workspace .sidebar nav.side-links>button:focus-visible{outline-offset:-3px}
.workspace .sidebar button{width:100%;max-width:none;min-height:42px;min-width:0;padding:7px 9px;margin:0 0 3px;gap:8px;justify-content:flex-start;text-align:start;border-radius:12px;color:#e8f2eb;border:1px solid transparent;letter-spacing:0}
.workspace .sidebar button:hover{background:#ffffff19;color:#fff;transform:none}
.workspace .sidebar button.active{color:#24382a;background:linear-gradient(105deg,#f8e2ae,#efd2a0);border-color:#ffe4a2;box-shadow:0 5px 14px #061b1340,inset 0 1px 0 #ffffffb3}
.workspace .sidebar .ic{font-size:16px;flex:0 0 24px;width:24px}
.workspace .side-account{min-width:0;padding:12px 7px 0;border-top:1px solid #ffffff2b;overflow-wrap:anywhere}
.workspace .side-account button{min-height:34px;margin-top:8px;background:#ffffff0c}
.workspace-main{min-width:0}
.workspace .workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 16px;padding:clamp(16px,3vw,36px);border-color:#d4e4d438;background:radial-gradient(ellipse at 3% 30%,#aa824c55,transparent 42%),linear-gradient(115deg,#1a4838,#2f5d48);box-shadow:0 10px 35px #071e155e,inset 0 1px 0 #ffffff2a;color:white;text-shadow:none}
.workspace .workspace-heading h1{color:#fffaf0;margin:2px 0;font-size:clamp(24px,3vw,41px);white-space:normal}
.workspace .workspace-eyebrow{color:var(--ws-brass);font-size:12px;font-weight:700}
.workspace .workspace-caption{color:#e3efe7;margin:6px 0 0}
.workspace .workspace-state{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:9px}
.workspace .workspace-state button{min-height:44px;padding-inline:16px;background:linear-gradient(180deg,#ffe3a9,#edc47d);color:#24382a;text-shadow:none;box-shadow:0 7px 14px #081d175e}
.workspace .view-dashboard .quick{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.workspace .view-dashboard .quick button{min-width:0;min-height:58px;justify-content:flex-start;align-items:center;gap:8px;background:#f8f4e9;line-height:1.3;color:#1e4534}
.workspace .view-dashboard .quick button:hover{background:#fffaf0;box-shadow:0 5px 14px #0b281955}
.workspace .view-dashboard .quick i{flex:none;width:34px;height:34px;font-size:18px;border-radius:10px;background:#e9e6d6}
.workspace .view-dashboard :is(.kpi,.panel){background:linear-gradient(150deg,#fffdf7,#f6efe1);border:1px solid #fff9e5;border-radius:20px;box-shadow:inset 0 1px 0 #fff,0 6px 18px #051d153d}
.workspace .view-dashboard .kpi{min-width:0;gap:10px;align-items:flex-start}
.workspace .view-dashboard .kpi>div{min-width:0}
.workspace .view-dashboard .kpi>i{width:34px;height:34px;font-size:17px;background:#dce8dc;color:#173e31;border-radius:11px}
.workspace .view-dashboard .kpi strong{font-size:clamp(16px,1.45vw,24px);white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.workspace .view-dashboard .panel h2{color:#173e31;line-height:1.4;margin:0 0 12px}
.workspace .view-dashboard .line{width:100%;height:auto;display:block;border-radius:12px;background:#fffdf98c}
.workspace .view-dashboard .cols{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px}
.workspace .view-dashboard .donut{min-width:0;flex-wrap:wrap}
@media(max-width:1100px){.workspace .view-dashboard .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  body:has(.workspace):not(.reg-mode):not(.auth-mode){padding-bottom:20px}
  .workspace>.sidebar{position:static!important;inset:auto!important;display:block;width:auto;max-height:none;border-radius:18px;padding:9px 12px}
  .workspace .mobile-nav-hint{display:block}
  .workspace .mobile-nav-hint summary{padding:8px 4px;cursor:pointer;font-weight:700;color:#fff8e8;line-height:1.5}
  .workspace .sidebar .mobile-nav-hint:not([open])~:is(.side-brand,nav.side-links,.side-account){display:none}
  .workspace .side-brand{display:none}
  .workspace .sidebar nav.side-links{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(44px,auto);gap:4px;padding-block:6px;overflow:visible}
  .workspace .sidebar button{flex-direction:row;white-space:normal;line-height:1.25;min-height:44px;padding-inline:6px}
  .workspace .sidebar button span{max-width:none;white-space:normal;text-overflow:clip}
  .workspace .workspace-heading{align-items:start;gap:12px}
  .workspace .workspace-state{justify-content:flex-start}
  .workspace .view-dashboard .quick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace .view-dashboard .cols{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:390px){.workspace .view-dashboard .kpi{padding:12px;gap:8px}.workspace .view-dashboard .kpi>i{width:28px;height:28px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.workspace :is(button,.metric){transition:none!important;animation:none!important}}


/* Snober stable section navigation */
.workspace>.sidebar{align-self:start}
.workspace .sidebar nav.side-links{overflow-anchor:none;scroll-behavior:auto;overscroll-behavior-y:contain}
.workspace .sidebar nav.side-links>button{transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}
@media(prefers-reduced-motion:reduce){.workspace .sidebar nav.side-links>button{transition:none!important}}

/* POS mobile controls: keep totals and actions readable in a compact RTL cart. */
@media(max-width:900px){
  .reg-mode .register{padding-bottom:calc(106px + env(safe-area-inset-bottom,0px))}
  .register .cartbar{
    bottom:calc(12px + env(safe-area-inset-bottom,0px));
    padding:9px 12px;
    height:auto;
    min-height:62px;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
    gap:7px;
    text-align:start;
    white-space:normal;
  }
  .register .cartbar :is(span,b){min-width:0;overflow-wrap:anywhere;line-height:1.25}
  .register .cartbar b{font-size:clamp(14px,4.2vw,20px)}
  .register .cartbar span:last-child{padding:8px 10px;border-radius:12px;background:#f2c986;color:#123b2c;font-size:13px;font-weight:800}
  .register .ticket{box-sizing:border-box;visibility:hidden;min-height:0;max-height:min(86dvh,680px);padding-bottom:env(safe-area-inset-bottom,0px)}
  .register .ticket.open{visibility:visible}
  .register .ticket-h{flex-wrap:wrap;gap:6px;padding:8px 12px}
  .register .ticket-h b{min-width:0;overflow-wrap:anywhere}
  .register .ticket-h .ghost{min-height:44px;height:auto;padding-inline:10px}
  .register .ticket-h .sheet-x{min-width:44px}
  .register .ticket-l{min-height:0;overscroll-behavior:contain}
  .register .ticket-f{flex:none;padding:10px 12px}
  .register .tl{grid-template-columns:minmax(0,1fr) minmax(44px,40%);grid-template-areas:"name remove" "step total";gap:6px 10px}
  .register .tl-n{grid-area:name;overflow-wrap:anywhere}
  .register .tl .step{grid-area:step;justify-self:start;max-width:100%}
  .register .tl .step button,.register .tl .x{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
  .register .tl .x{grid-area:remove;justify-self:end}
  .register .tl-t{grid-area:total;justify-self:end;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .payform .seg{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .payform .seg button{height:auto;min-height:48px;padding:8px 4px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
}


/* Snober register refresh; presentation only. Never hide or reorder cashier actions. */
.reg-mode .register {
  --pos-focus: #ffdfa1;
  --pos-surface: #173d2e;
  --pos-surface-hi: #25503e;
  --pos-amber: #f2ce8d;
}
.reg-mode .reg-search {position:sticky;inset-block-start:0;z-index:12;padding-block:5px;background:#123426;border-radius:16px}
.reg-mode .reg-search input {
  min-height:52px;padding:11px 15px;
  font-size:17px;line-height:1.35;
  border-radius:13px;background:#204737;backdrop-filter:none;
}
.reg-mode .reg-search input:focus-visible {
  outline:2px solid var(--pos-focus);outline-offset:2px;box-shadow:none;
}
.reg-mode .register .chips {padding-block:4px 7px;overscroll-behavior-inline:contain}
.reg-mode .register .chips button {
  justify-content:center;padding-inline:14px;white-space:nowrap;min-height:44px;
}
.reg-mode .register .chips button.active {background:var(--pos-amber);color:#1a3125;box-shadow:none}
.reg-mode .register .tiles {gap:10px}
.reg-mode .register .tile {
  justify-content:flex-start;align-items:stretch;min-width:0;
  text-align:start;gap:6px;padding:7px 7px 10px;
  background:linear-gradient(155deg,var(--pos-surface-hi),var(--pos-surface));
  border:1px solid #ffffff35;border-radius:16px;
  backdrop-filter:none;box-shadow:0 4px 14px #0a251830;
}
.reg-mode .register .tile .timg {border-radius:11px}
.reg-mode .register .tile .tn {line-height:1.35;white-space:normal;overflow-wrap:anywhere;min-height:2.7em}
.reg-mode .register .tile .tp {margin-block-start:auto;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.reg-mode .register .tile small {line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.reg-mode .register .tile.in {border-color:var(--pos-focus);box-shadow:inset 0 0 0 1px var(--pos-focus)}
.reg-mode .register .tile em {background:var(--pos-amber);color:#192f24}
.reg-mode .register .tile:focus-visible {outline-color:var(--pos-focus)}
.reg-mode .reg-menu>div {padding-block-end:calc(16px + env(safe-area-inset-bottom,0px))}
.reg-mode .reg-menu button {white-space:normal;text-align:start;line-height:1.35}
@media(max-width:900px){
  .reg-mode .register :is(.tile,.chips button) {scroll-margin-block:66px 108px}
  .reg-mode .reg-top {border-radius:16px;gap:6px;padding:7px 9px}
  .reg-mode .reg-top button {padding-inline:9px}
  .reg-mode .register .cartbar {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"count action" "total action";
    row-gap:3px;padding-block:8px;
    min-height:64px;background:#153c2f;backdrop-filter:none;
  }
  .reg-mode .register .cartbar span:first-child {grid-area:count;color:#eef5ef}
  .reg-mode .register .cartbar b {grid-area:total}
  .reg-mode .register .cartbar span:last-child {
    grid-area:action;align-self:center;display:grid;place-items:center;
    min-height:44px;min-width:64px;padding:5px 9px;
  }
  .reg-mode .register .ticket.open {z-index:45}
  .reg-mode .register .ticket-f {position:relative;background:#123428}
  .reg-mode .register .ticket-f .pay:not(:disabled) {min-height:50px;background:var(--pos-amber);color:#1a3125;box-shadow:none}
}
@media(max-height:520px) and (max-width:900px){
  .reg-mode .reg-search {position:static}
}
@media(prefers-reduced-motion:reduce){
  .reg-mode .register .tile,.reg-mode .reg-search input{transition:none!important}
}
