:root{--ink:#172033;--muted:#667085;--brand:#176b5b;--brand2:#0f574a;--bg:#f5f7fb;--card:#fff;--line:#dfe4ea;--danger:#b42318;--shadow:0 8px 24px rgba(16,24,40,.06)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}.top{min-height:60px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 14px;position:sticky;top:0;z-index:10}.brand{font-weight:900}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500}.wrap{max-width:1240px;margin:auto;padding:16px}.hero,.card{background:var(--card);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.hero{padding:24px;display:flex;justify-content:space-between;gap:20px;align-items:center}.hero h1,h1,h2,h3{margin:4px 0 8px}.hero p{color:var(--muted);margin:0}.count{border:1px solid var(--line);border-radius:12px;padding:14px 20px;text-align:center}.count strong{font-size:24px;display:block}.count small{color:var(--muted)}.card{padding:18px;margin-top:14px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.08em;color:var(--brand2)}.muted{color:var(--muted);font-size:13px}.btn,button{border:0;border-radius:9px;padding:9px 13px;font-weight:800;cursor:pointer;text-decoration:none}.primary{background:var(--brand);color:#fff}.secondary{background:#eef4f2;color:var(--brand2)}.danger{background:var(--danger);color:#fff}.full{width:100%}.notice{padding:11px 13px;border-radius:10px;background:#fff;border:1px solid var(--line);margin-top:12px}.notice.ok{background:#f1faf7;border-color:#9bc9bb}.notice.warn{background:#fff7ed;border-color:#f2c48a}.hidden{display:none!important}.menu-section h2{margin-bottom:2px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.product-card{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:7px;text-align:left;min-height:120px}.product-card strong{font-size:17px;color:var(--brand)}.product-card .primary{margin-top:auto;text-align:center}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.public-footer{display:flex;justify-content:space-between;padding:24px 2px;color:var(--muted);font-size:12px}.pos-layout{display:grid;grid-template-columns:1.7fr .9fr;gap:14px}.sale-panel{border-left:1px solid var(--line);padding-left:14px}.input{width:100%;border:1px solid #cbd3dd;border-radius:9px;padding:10px;font:inherit;margin:5px 0 9px;background:#fff}.chips{display:flex;gap:7px;overflow:auto;padding:4px 0 10px}.chip,.pay{background:#eef4f2;color:var(--brand2);white-space:nowrap}.chip.active,.pay.active{background:var(--brand);color:#fff}.cart-line{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:9px 0}.cart-line small{color:var(--muted)}.cart-line button{padding:5px 8px;background:#eef4f2}.totals{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin:12px 0}.totals .input{margin:0}.pay-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.form-grid label{font-size:12px;font-weight:800}.form-grid .input{margin-top:6px}.wide{grid-column:1/-1}.actions{display:flex;gap:8px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:9px;border-bottom:1px solid var(--line);text-align:left}@media(max-width:900px){.product-grid{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:1fr}.sale-panel{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:14px}.form-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.top{align-items:flex-start;gap:8px;flex-direction:column}.top nav{width:100%}.wrap{padding:10px}.hero{padding:18px;align-items:flex-start}.product-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.actions{display:grid;grid-template-columns:1fr}.pay-grid{grid-template-columns:1fr 1fr 1fr}}
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);padding:1rem;z-index:50;align-items:center;justify-content:center}.modal.open{display:flex}.modal-card{background:#fff;border-radius:18px;max-width:620px;width:100%;max-height:92vh;overflow:auto;padding:1.25rem;box-shadow:0 20px 60px rgba(0,0,0,.2)}.modal-card label{display:block;margin:.7rem 0}.modal-card input,.modal-card textarea{display:block;width:100%;box-sizing:border-box;margin-top:.35rem;padding:.75rem;border:1px solid #d6dce5;border-radius:10px}.modal-card textarea{min-height:80px}.radio{display:flex!important;gap:.5rem;align-items:center}.radio input{width:auto!important;margin:0!important}.status-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:.35rem;margin:1rem 0}.status-steps span{font-size:.7rem;text-align:center;padding:.45rem .2rem;border-radius:8px;background:#eef1f5;color:#657080}.status-steps span.done{background:#dff3e8;color:#17653b}.status-steps span.current{font-weight:700;outline:2px solid #17653b}.narrow{max-width:760px;margin:auto}.error{background:#fde8e8!important;color:#9b1c1c!important}
.order-list{display:grid;gap:14px}.order-card{border:1px solid #e5e7eb;border-radius:16px;padding:18px;background:#fff}.order-main{display:flex;justify-content:space-between;gap:20px}.order-main h2{margin:.25rem 0}.order-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.order-meta{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0;color:#64748b;font-size:.9rem}.order-actions{display:flex;gap:8px;flex-wrap:wrap}.order-actions button,.order-actions a{min-width:110px}.details{margin-top:14px;padding-top:14px;border-top:1px solid #e5e7eb}.detail-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.detail-list li{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #f1f5f9}.status-new{background:#eff6ff}.status-verified{background:#f0fdf4}.status-preparing{background:#fff7ed}.status-ready{background:#ecfeff}.status-completed{background:#f0fdf4}.status-rejected,.status-cancelled{background:#fef2f2}@media(max-width:700px){.order-main{flex-direction:column}.order-right{align-items:flex-start}.order-actions button{width:100%}}
.status{display:inline-block;padding:6px 10px;border-radius:999px;background:#eef4f2;color:var(--brand2);font-size:12px;font-weight:900}.form-grid form{display:contents}.form-grid>button{align-self:end}

.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%)}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.table-wrap{overflow:auto}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.toolbar input{flex:1;min-width:220px}.badge.active{background:#d9f7e3}.badge.inactive,.badge.suspended{background:#f1e5e5}.modal.show{display:grid}.radio{display:block;margin:8px 0}.config-value{min-width:240px}.danger{border:1px solid #d99}.ok{border:1px solid #9c9}.modal{z-index:50}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-card{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink);background:#fff;transition:transform .12s ease,box-shadow .12s ease}.module-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.module-card strong{color:var(--brand2);font-size:16px}.module-card span{color:var(--muted);font-size:13px}@media(max-width:800px){.module-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.module-grid{grid-template-columns:1fr}}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stats-grid .count{min-height:74px}@media(max-width:800px){.stats-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.stats-grid{grid-template-columns:1fr}}

/* ================================================================
   DEM CAFETERIA — PHASE 13 UI POLISH
   Presentation-only layer. No business logic or markup dependencies.
   ================================================================ */
:root{
  --ink:#10233f;
  --muted:#61708a;
  --brand:#147565;
  --brand2:#0d5d50;
  --brand-soft:#eaf6f2;
  --brand-soft-2:#f3faf8;
  --bg:#f3f6fa;
  --card:#ffffff;
  --line:#dbe3ec;
  --line-strong:#c8d3df;
  --danger:#b42318;
  --danger-soft:#fff0ee;
  --warning:#a15c00;
  --warning-soft:#fff6e5;
  --success:#13795b;
  --success-soft:#eaf8f2;
  --info:#1769aa;
  --info-soft:#edf6ff;
  --shadow:0 10px 30px rgba(16,35,63,.07);
  --shadow-hover:0 16px 36px rgba(16,35,63,.11);
  --radius:16px;
}

html{scroll-behavior:smooth}
body{
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 0%,rgba(20,117,101,.045),transparent 30%),
    radial-gradient(circle at 90% 10%,rgba(23,105,170,.035),transparent 28%),
    var(--bg);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

button,input,textarea,select{font:inherit}
a{color:var(--brand2)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid rgba(20,117,101,.20);
  outline-offset:2px;
}

.top{
  min-height:68px;
  padding:0 max(18px,calc((100vw - 1280px)/2));
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(203,214,225,.9);
  box-shadow:0 2px 14px rgba(16,35,63,.04);
  backdrop-filter:blur(10px);
}
.brand{
  color:var(--ink);
  font-size:18px;
  letter-spacing:-.02em;
  line-height:1.1;
}
.brand small{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.01em;
}
.top nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.top nav .btn{border:1px solid transparent}

.wrap{max-width:1280px;padding:22px 18px 40px}
.hero{
  padding:28px;
  min-height:140px;
  border-radius:18px;
  border-color:#d9e2eb;
  box-shadow:var(--shadow);
  background:linear-gradient(135deg,#fff 0%,#fff 68%,#f7fbfa 100%);
}
.hero h1{
  font-size:clamp(28px,4vw,40px);
  line-height:1.08;
  letter-spacing:-.035em;
  color:#0e2849;
}
.hero p{max-width:760px;font-size:15px}
.eyebrow{color:var(--brand2);font-size:11px;letter-spacing:.1em}
.count{
  min-width:104px;
  border-color:#d5e0e9;
  background:linear-gradient(180deg,#fff,#f8fbfc);
  box-shadow:0 4px 12px rgba(16,35,63,.035);
}
.count strong{color:#102b4c}

.card{
  margin-top:16px;
  padding:20px;
  border-radius:var(--radius);
  border-color:#dbe3ec;
  box-shadow:var(--shadow);
}
.card h2{font-size:23px;letter-spacing:-.025em;color:#102b4c}
.card h3{color:#11314e}
.section-head{margin-bottom:10px}

.btn,button{
  border-radius:10px;
  padding:10px 14px;
  font-size:13px;
  line-height:1.15;
  transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease,border-color .12s ease;
}
.btn:hover,button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 14px rgba(16,35,63,.10)}
button:disabled{opacity:.55;cursor:not-allowed}
.primary{background:linear-gradient(135deg,var(--brand),#0f6b5a);color:#fff;box-shadow:0 4px 10px rgba(20,117,101,.16)}
.primary:hover:not(:disabled){background:linear-gradient(135deg,#106b5c,#0b5c4e)}
.secondary{background:var(--brand-soft);color:var(--brand2);border-color:#d8ebe5}
.secondary:hover{background:#e1f1ed}
.danger{background:var(--danger);color:#fff}

.notice{border-radius:11px;padding:12px 14px}
.notice.ok{background:var(--success-soft);border-color:#b6e1cf;color:#17664f}
.notice.warn{background:var(--warning-soft);border-color:#f0ce91;color:#805000}
.error{background:var(--danger-soft)!important;color:#9b1c1c!important;border-color:#efb6b0!important}

.input,.modal-card input,.modal-card textarea,.modal-card select,
select,input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="tel"],textarea{
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  transition:border-color .12s ease,box-shadow .12s ease;
}
.input:hover,.modal-card input:hover,.modal-card textarea:hover,select:hover,input:hover,textarea:hover{border-color:#aebdcb}
.input:focus,.modal-card input:focus,.modal-card textarea:focus,select:focus,input:focus,textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(20,117,101,.10);
  outline:none;
}

.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.product-card{
  min-height:170px;
  padding:16px;
  border-radius:14px;
  border-color:#dce5ed;
  background:linear-gradient(180deg,#fff 0%,#fcfefe 100%);
  box-shadow:0 4px 14px rgba(16,35,63,.035);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
}
.product-card:hover{transform:translateY(-3px);border-color:#bcd8d1;box-shadow:var(--shadow-hover)}
.product-card strong{font-size:18px;color:var(--brand2)}
.product-card .muted{min-height:20px}
.product-card .primary{margin-top:auto}

.menu-section{padding:22px}
.menu-section>h2{margin-bottom:0}
.menu-section>.muted{margin-top:0}

.chips{gap:8px}
.chip,.pay{border:1px solid #d6e6e1;background:var(--brand-soft);color:var(--brand2)}
.chip:hover,.pay:hover{background:#e0f2ed}
.chip.active,.pay.active{background:var(--brand);color:#fff;border-color:var(--brand)}

.cart-line{padding:12px 0}
.totals{padding-top:6px}
.pay-grid{gap:9px}

.form-grid{gap:14px}
.form-grid label,.modal-card label{color:#334966}

.table-wrap{border:1px solid #dce5ed;border-radius:12px;background:#fff}
table{font-size:13px}
th{font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#52647b;background:#f7f9fb}
th,td{padding:12px 11px;border-bottom-color:#e5ebf1}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fbfdfd}

.status{border:1px solid transparent;padding:5px 10px;font-size:11px;letter-spacing:.025em}
.status-new{background:#edf5ff;color:#1d5f9c;border-color:#cfe4fa}
.status-verified{background:#eaf8f1;color:#17694e;border-color:#c9eadb}
.status-preparing{background:#fff5e7;color:#8a5600;border-color:#f2d4a0}
.status-ready{background:#e9f9fa;color:#116d73;border-color:#c7e9eb}
.status-completed{background:#eaf8f1;color:#17694e;border-color:#c9eadb}
.status-rejected,.status-cancelled{background:#fff0ee;color:#9b2b21;border-color:#efc4bf}

.badge.active{background:#dff5e9;color:#17694e}
.badge.inactive,.badge.suspended{background:#fff0ee;color:#9b2b21}

.module-grid{gap:14px}
.module-card{
  min-height:108px;
  padding:19px;
  border-color:#dbe4ec;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfdfd);
  box-shadow:0 3px 12px rgba(16,35,63,.025);
  position:relative;
  overflow:hidden;
}
.module-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--brand);
  opacity:.9;
}
.module-card:hover{transform:translateY(-3px);border-color:#bdd8d2;box-shadow:var(--shadow-hover)}
.module-card strong{font-size:16px;color:#0e6758}
.module-card span{line-height:1.45}

.stats-grid{gap:14px}
.stats-grid .count{background:#fff}

.order-list{gap:12px}
.order-card{border-color:#dce5ed;box-shadow:0 4px 14px rgba(16,35,63,.035)}
.order-card:hover{box-shadow:var(--shadow);border-color:#cbd9e5}
.order-main h2{color:#102b4c}
.order-meta{color:#64748b}
.order-actions button,.order-actions a{min-width:116px}

.modal{background:rgba(9,24,41,.58);backdrop-filter:blur(3px)}
.modal-card{border:1px solid #d9e3eb;box-shadow:0 24px 80px rgba(9,24,41,.24)}

.auth-wrap{
  background:radial-gradient(circle at 50% 15%,rgba(20,117,101,.10),transparent 35%),var(--bg);
}
.auth-card{box-shadow:0 18px 50px rgba(16,35,63,.10)}

.toolbar{align-items:center}
.toolbar input{min-height:42px}

.public-footer{border-top:1px solid #dbe3eb;margin-top:20px}

@media(max-width:900px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{padding:24px}
}
@media(max-width:600px){
  .top{min-height:64px;padding:12px 14px}
  .top nav{width:100%;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}
  .top nav .btn{flex:0 0 auto}
  .wrap{padding:12px 10px 28px}
  .hero{padding:20px;min-height:0;flex-direction:column}
  .hero .count{align-self:stretch}
  .hero h1{font-size:29px}
  .card{padding:16px}
  .menu-section{padding:17px}
  .product-grid{grid-template-columns:1fr 1fr;gap:10px}
  .product-card{min-height:158px;padding:13px}
  .product-card strong{font-size:16px}
  .public-footer{flex-direction:column;gap:8px}
}
@media(max-width:430px){
  .product-grid{grid-template-columns:1fr}
  .module-grid{grid-template-columns:1fr}
  .product-card{min-height:145px}
  .hero h1{font-size:26px}
}

/* ================================================================
   DEM CAFETERIA — PHASE 14 FUNCTIONAL UI POLISH
   ================================================================ */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.stats>div{padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbfc);box-shadow:0 4px 14px rgba(16,35,63,.035)}
.stats strong{display:block;font-size:24px;line-height:1.1;color:#102b4c}.stats span{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.sale-panel-card{padding:0;overflow:hidden}.sale-panel-card>.pos-layout{padding:0}.sale-cart{padding:20px}.sale-panel{padding:20px;background:linear-gradient(180deg,#fbfdfd,#f5faf8);border-left:1px solid var(--line)}
.sale-panel label{display:block;font-size:12px;font-weight:800;color:#334966}.sale-panel .input{margin-top:6px}
.cart-list{min-height:50px}.cart-line{grid-template-columns:minmax(0,1fr) auto auto;gap:14px}.cart-line>div:first-child{min-width:0}.cart-line strong{display:block}.cart-line small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.qty-controls{display:flex;align-items:center;gap:6px}.qty-controls button{min-width:32px;padding:7px 9px;background:var(--brand-soft);color:var(--brand2)}.qty-controls span{min-width:24px;text-align:center;font-weight:800}
.product-card{position:relative}.product-card .product-name{font-size:16px;font-weight:850;color:#102b4c}.product-card .stock-note{font-size:11px;color:var(--muted);margin-top:auto}.product-card .product-add{display:block;text-align:center;background:var(--brand);color:#fff;border-radius:8px;padding:8px;font-size:12px;font-weight:850}.product-card.out-of-stock{opacity:.62;cursor:not-allowed}.product-card.out-of-stock .product-add{background:#8a95a3}.product-card[hidden]{display:none!important}
.empty-state{display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;text-align:center;padding:30px 20px;border:1px dashed #c9d5df;border-radius:14px;background:#fbfcfd;color:var(--muted);margin-top:14px}.empty-state strong{color:#243b55}.empty-state.compact{min-height:150px;margin:0}.empty-state .btn{margin-top:8px}
.toolbar{margin-bottom:4px}.toolbar .input{margin:0}.full{display:block;text-align:center}
@media(max-width:900px){.stats{grid-template-columns:1fr 1fr}.sale-panel-card>.pos-layout{grid-template-columns:1fr}.sale-panel{border-left:0;border-top:1px solid var(--line)}}
@media(max-width:600px){.stats{grid-template-columns:1fr}.sale-cart,.sale-panel{padding:16px}.cart-line{grid-template-columns:1fr auto}.qty-controls{grid-column:1/-1;justify-content:flex-end}.product-card .product-name{font-size:15px}}

/* ================================================================
   DEM CAFETERIA — PHASE 15 CUSTOM POS WORKSTATION
   POS-only presentation layer. Business logic remains server-side.
   ================================================================ */
.pos-page{background:linear-gradient(135deg,#f2f7f5 0%,#f5f7fb 52%,#eef5f8 100%)}
.pos-top{padding:0 22px;min-height:66px}.pos-top .brand{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#147565,#0d5d50);color:#fff;font-size:11px;font-weight:950;letter-spacing:.04em}.pos-top nav{display:flex;align-items:center;gap:8px}.pos-operator{font-size:12px;color:#52647b;margin-right:4px}.operator-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16a36f;margin-right:6px}.pos-shell{max-width:1500px;margin:auto;padding:16px 20px 26px}.pos-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px;padding:18px 20px}.pos-toolbar h1{font-size:25px;margin:2px 0 3px}.pos-toolbar p{margin:0}.pos-top-actions{display:flex;align-items:center;gap:10px}.register-badge{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:#fff;min-width:245px}.register-badge strong{display:block;font-size:12px}.register-badge small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.register-dot{width:10px;height:10px;border-radius:50%;background:#a15c00;box-shadow:0 0 0 4px #fff6e5}.register-badge.open .register-dot{background:#15966d;box-shadow:0 0 0 4px #e6f7ef}.register-badge.open strong{color:#12664f}.register-badge.closed strong{color:#8a5600}.pos-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(370px,.78fr);gap:14px;align-items:start}.pos-catalog,.pos-sale{margin:0}.pos-catalog{padding:18px;min-height:690px}.pos-sale{padding:18px;position:sticky;top:82px;min-height:690px;display:flex;flex-direction:column}.pos-search-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-top:12px}.pos-search{position:relative}.pos-search>span{position:absolute;left:13px;top:11px;color:#7890a8;font-size:20px;z-index:1}.pos-search .input{padding-left:39px}.catalog-count{border:1px solid var(--line);border-radius:11px;padding:8px 13px;text-align:center;background:#fbfdfd}.catalog-count strong{font-size:18px;display:block;color:var(--brand2)}.catalog-count span{font-size:10px;color:var(--muted)}.pos-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pos-products .product-card{min-height:184px;position:relative;cursor:pointer}.product-card:disabled{cursor:not-allowed;opacity:.58;transform:none!important}.product-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--brand-soft);color:var(--brand2);font-weight:900}.product-add{margin-top:auto;display:flex;justify-content:space-between;align-items:center;padding-top:9px;border-top:1px dashed #dce5ed;color:var(--brand2);font-size:11px;font-weight:900}.product-add b{font-size:17px}.out-of-stock .product-add{color:#9b2b21}.sale-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px}.sale-heading h2{display:flex;align-items:center;gap:7px}.cart-pill{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 7px;border-radius:999px;background:var(--brand-soft);color:var(--brand2);font-size:12px}.sale-empty{display:flex;flex:1;min-height:155px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px dashed #cad7e1;border-radius:13px;background:#fbfcfd;margin:12px 0}.sale-empty-icon{font-size:27px;opacity:.7}.sale-empty strong{font-size:14px}.sale-empty span:last-child{font-size:11px;color:var(--muted)}.cart-list{max-height:315px;overflow:auto}.cart-line{grid-template-columns:1fr auto auto;gap:10px;padding:12px 2px}.cart-item-main{display:flex;align-items:center;gap:8px;min-width:0}.cart-item-main>div{min-width:0}.cart-item-main strong,.cart-item-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cart-item-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f0f5f7;color:var(--brand2);flex:0 0 auto}.qty-controls{display:flex;align-items:center;gap:5px}.qty-controls button{width:27px;height:27px;padding:0;border:1px solid #d6e1e7}.qty-controls span{min-width:18px;text-align:center;font-size:12px;font-weight:900}.sale-customer{border-top:1px solid var(--line);margin-top:10px;padding-top:12px}.mini-heading{font-size:10px;font-weight:950;letter-spacing:.08em;color:#52647b;margin-bottom:7px}.sale-customer label{font-size:11px;font-weight:800}.sale-customer .input{margin-top:4px;margin-bottom:7px}.sale-summary{border-top:1px solid var(--line);padding-top:11px;margin-top:2px;display:grid;gap:7px}.sale-summary>div{display:flex;justify-content:space-between;align-items:center;font-size:12px}.sale-summary label{display:flex;justify-content:space-between;align-items:center;font-size:12px}.sale-summary label .input{width:145px;margin:0}.sale-total{padding-top:7px;margin-top:2px;border-top:1px dashed #d7e0e7}.sale-total strong{font-size:14px;color:var(--brand2)}.pay-grid{margin:9px 0;gap:7px}.pay{min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px}.pay span{font-size:15px}.payment-help{font-size:9px;color:var(--muted);background:#f7f9fb;border-radius:7px;padding:5px 7px;margin-bottom:5px}.sale-submit{min-height:44px;font-size:13px}.sale-submit:disabled{opacity:.55;cursor:not-allowed}.receipt-link{text-align:center;margin-top:5px}.register-modal{max-width:430px}.modal.open{display:flex}.hidden{display:none!important}
@media(max-width:1100px){.pos-workspace{grid-template-columns:minmax(0,1.35fr) minmax(340px,.8fr)}.pos-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.pos-top{padding:10px 14px}.pos-top nav{overflow:auto}.pos-toolbar{align-items:flex-start;flex-direction:column}.pos-top-actions{width:100%}.register-badge{flex:1}.pos-workspace{grid-template-columns:1fr}.pos-sale{position:static;min-height:auto}.pos-catalog{min-height:auto}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pos-shell{padding:10px}.pos-toolbar,.pos-catalog,.pos-sale{padding:14px}.pos-top-actions{align-items:stretch;flex-direction:column}.pos-top-actions .btn{width:100%}.pos-products{grid-template-columns:1fr 1fr}.product-card{min-height:165px}.pos-search-row{grid-template-columns:1fr}.catalog-count{display:none}.pay-grid{grid-template-columns:1fr 1fr 1fr}.sale-summary label .input{width:120px}}

/* Public online-ordering UX refinements */

.top .brand{
  font-size:14px;
  line-height:1.2;
}

.top .brand small{
  font-size:10px;
  margin-top:2px;
}

.hero{
  padding:18px 20px;
}

.hero h1{
  font-size:22px;
  line-height:1.2;
}

.hero p{
  font-size:13px;
}

.menu-section{
  padding:15px;
}

.product-card{
  padding:10px;
  min-height:112px;
  gap:5px;
}

.product-card h3{
  font-size:15px;
  line-height:1.25;
  margin:2px 0 4px;
}

.product-card .muted{
  font-size:11px;
}

.product-card strong{
  font-size:15px;
}

.product-card .primary{
  padding:7px 9px;
  font-size:12px;
}

.cart-line{
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:6px;
  padding:7px 0;
  font-size:12px;
}

.cart-line small{
  font-size:10px;
}

.cart-line strong{
  font-size:12px;
  white-space:nowrap;
}

.cart-line button{
  padding:4px 7px;
  font-size:12px;
}

.cart-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%,12px);
  background:var(--brand);
  color:#fff;
  padding:10px 15px;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(16,24,40,.18);
  font-size:13px;
  font-weight:800;
  z-index:9999;
  opacity:0;
  transition:opacity .18s ease,transform .18s ease;
  pointer-events:none;
}

.cart-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

@media(max-width:600px){
  .top .brand{
    font-size:13px;
  }

  .hero{
    padding:15px;
  }

  .hero h1{
    font-size:19px;
  }

  .product-card{
    min-height:125px;
    padding:9px;
  }

  .product-card h3{
    font-size:14px;
  }

  .cart-line{
    padding:6px 0;
  }
}

/* Compact public checkout */

#checkoutModal .modal-card{
  width:min(500px,calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  overflow-y:auto;
  padding:15px;
}

#checkoutModal .section-head{
  margin-bottom:8px;
}

#checkoutModal h2{
  font-size:18px;
  margin:2px 0 4px;
}

#checkoutModal form{
  display:grid;
  gap:6px;
}

#checkoutModal form>label{
  font-size:11px;
  font-weight:800;
}

#checkoutModal .input,
#checkoutModal input,
#checkoutModal textarea{
  margin:3px 0 4px;
  padding:7px 9px;
  font-size:13px;
}

#checkoutModal textarea{
  min-height:55px;
  resize:vertical;
}

#checkoutModal fieldset{
  margin:3px 0;
  padding:8px 10px;
}

#checkoutModal legend{
  font-size:11px;
  font-weight:900;
  padding:0 4px;
}

#checkoutModal .radio{
  font-size:12px;
  padding:3px 0;
}

#checkoutModal #momoBox{
  padding:8px 10px;
  margin-top:2px;
  font-size:11px;
}

#checkoutModal #momoBox label{
  display:block;
  font-size:11px;
  font-weight:800;
  margin-top:5px;
}

#checkoutModal #submitOrder{
  min-height:40px;
  padding:8px 12px;
  font-size:13px;
  margin-top:2px;
}

#checkoutModal #closeCheckout{
  padding:7px 10px;
  font-size:11px;
}

@media(max-width:600px){
  #checkoutModal .modal-card{
    width:calc(100vw - 16px);
    max-height:calc(100vh - 16px);
    padding:12px;
  }

  #checkoutModal h2{
    font-size:16px;
  }

  #checkoutModal form{
    gap:4px;
  }

  #checkoutModal input,
  #checkoutModal textarea{
    padding:6px 8px;
    font-size:12px;
  }

  #checkoutModal textarea{
    min-height:45px;
  }

  #checkoutModal fieldset{
    padding:6px 8px;
  }
}

/* Public payment option buttons */

#checkoutModal .payment-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:4px 0 6px;
}

#checkoutModal .payment-option{
  position:relative;
  display:block;
  cursor:pointer;
  margin:0;
}

#checkoutModal .payment-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

#checkoutModal .payment-option-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  text-align:center;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease;
}

#checkoutModal .payment-option-inner strong{
  font-size:13px;
  line-height:1.2;
}

#checkoutModal .payment-option-inner small{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}

#checkoutModal .payment-option input:checked + .payment-option-inner{
  border-color:var(--brand);
  background:var(--brand-soft);
  color:var(--brand2);
  box-shadow:0 0 0 2px rgba(20,117,101,.08);
}

#checkoutModal .payment-option input:checked + .payment-option-inner small{
  color:var(--brand2);
}

#checkoutModal .payment-option:hover .payment-option-inner{
  border-color:var(--brand);
}

@media(max-width:380px){
  #checkoutModal .payment-options{
    gap:6px;
  }

  #checkoutModal .payment-option-inner{
    min-height:44px;
    padding:6px;
  }

  #checkoutModal .payment-option-inner strong{
    font-size:12px;
  }
}

/* DEM Cafeteria login page */

.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at top left, rgba(20,117,101,.08), transparent 35%),
    linear-gradient(135deg,#f4f8f7,#f5f7fb);
}

.auth-card{
  width:min(430px,100%);
  margin:0;
  padding:30px;
  border:1px solid #dce5e2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 18px 50px rgba(16,35,63,.10);
}

.auth-card .eyebrow{
  display:block;
  margin-bottom:8px;
  font-size:11px;
  letter-spacing:.1em;
}

.auth-card h1{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.15;
  color:#102b4c;
}

.auth-card>p.muted{
  margin:0 0 20px;
  font-size:13px;
}

.auth-card form{
  display:grid;
  gap:13px;
  margin-top:4px;
}

.auth-card form>label{
  display:block;
  width:100%;
  margin:0;
  color:#334966;
  font-size:12px;
  font-weight:800;
}

.auth-card form>label input{
  display:block;
  width:100%;
  height:44px;
  margin:6px 0 0;
  padding:10px 12px;
  border:1px solid #cbd5df;
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}

.auth-card form>label input:hover{
  border-color:#aebdcb;
}

.auth-card form>label input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(20,117,101,.10);
}

.auth-card form .primary{
  height:44px;
  margin-top:2px;
  border-radius:10px;
  font-size:13px;
  font-weight:850;
  box-shadow:0 5px 14px rgba(20,117,101,.16);
}

.auth-card .notice{
  margin:0 0 16px;
  font-size:12px;
}

.auth-card>p:last-child{
  margin:18px 0 0;
  padding-top:16px;
  border-top:1px solid #edf0f2;
}

.auth-card>p:last-child a{
  color:var(--brand2);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.auth-card>p:last-child a:hover{
  text-decoration:underline;
}

@media(max-width:600px){
  .auth-wrap{
    padding:14px;
  }

  .auth-card{
    padding:24px 20px;
    border-radius:15px;
  }

  .auth-card h1{
    font-size:26px;
  }

  .auth-card form>label input{
    height:42px;
  }
}

/* Super Admin settings UX */

.admin-section-heading{
  margin-bottom:4px;
}

.admin-search{
  display:flex;
  align-items:center;
  gap:8px;
  margin:16px 0 12px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f9fbfc;
}

.admin-search-field{
  position:relative;
  flex:1;
}

.admin-search-icon{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-52%);
  color:#7890a8;
  font-size:20px;
  line-height:1;
  pointer-events:none;
}

.admin-search-field input{
  width:100%;
  height:42px;
  padding:9px 12px 9px 38px;
  border:1px solid #cbd5df;
  border-radius:9px;
  background:#fff;
  font:inherit;
  outline:none;
}

.admin-search-field input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(20,117,101,.10);
}

.admin-search>.primary,
.admin-search>.secondary{
  min-height:42px;
  white-space:nowrap;
}

.settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}

.settings-card{
  margin:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--shadow);
}

.settings-wide{
  grid-column:1/-1;
}

.settings-card-head{
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid #edf1f3;
}

.settings-card-head h3{
  margin:3px 0 3px;
  font-size:17px;
}

.settings-card-head p{
  margin:0;
}

.settings-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

.settings-form-grid label,
.settings-field{
  display:block;
  font-size:11px;
  font-weight:850;
  color:#44566d;
}

.settings-wide-field{
  grid-column:1/-1;
}

.settings-form-grid .input,
.settings-field .input{
  margin:5px 0 0;
}

.settings-field{
  margin-top:12px;
}

.settings-field small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:500;
}

.toggle-list{
  display:grid;
  gap:0;
}

.toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:11px 0;
  border-bottom:1px solid #edf1f3;
}

.toggle-row:first-child{
  padding-top:2px;
}

.toggle-row:last-child{
  border-bottom:0;
  padding-bottom:2px;
}

.toggle-row strong{
  display:block;
  font-size:12px;
  color:var(--ink);
}

.toggle-row small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
}

.switch{
  position:relative;
  width:52px;
  height:28px;
  flex:0 0 auto;
  cursor:pointer;
}

.switch input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}

.switch-slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#d7dee5;
  transition:.18s ease;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
}

.switch-slider:before{
  content:"";
  position:absolute;
  width:22px;
  height:22px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 5px rgba(16,24,40,.18);
  transition:.18s ease;
}

.switch input:checked + .switch-slider{
  background:var(--brand);
}

.switch input:checked + .switch-slider:before{
  transform:translateX(24px);
}

.settings-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:15px;
  padding-top:12px;
  border-top:1px solid #edf1f3;
}

.settings-status{
  color:var(--muted);
  font-size:11px;
}

.settings-status.ok{
  color:var(--brand2);
  font-weight:800;
}

.settings-status.error{
  color:var(--danger);
  font-weight:800;
}

.settings-numbers{
  margin-top:10px;
}

.advanced-settings{
  margin-top:0;
}

.advanced-settings .table-wrap{
  border:1px solid var(--line);
  border-radius:10px;
}

.advanced-settings .config-value{
  width:100%;
  min-width:180px;
  height:38px;
  border:1px solid #cbd5df;
  border-radius:8px;
  padding:7px 9px;
  font:inherit;
}

@media(max-width:800px){
  .settings-grid{
    grid-template-columns:1fr;
  }

  .settings-wide{
    grid-column:auto;
  }
}

@media(max-width:600px){
  .admin-search{
    align-items:stretch;
    flex-direction:column;
  }

  .admin-search>.primary,
  .admin-search>.secondary{
    width:100%;
  }

  .settings-card{
    padding:14px;
  }

  .settings-form-grid{
    grid-template-columns:1fr;
  }

  .settings-wide-field{
    grid-column:auto;
  }

  .settings-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .settings-actions button{
    width:100%;
  }
}

/* Super Admin users polish v2 */

.user-search-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:15px 0 0;
  padding:0 2px;
}

.user-search-head strong{
  display:block;
  color:var(--ink);
  font-size:13px;
}

.user-search-head span:not(.user-result-count){
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}

.user-result-count{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:4px 10px;
  border:1px solid #d8e6e1;
  border-radius:999px;
  background:#f1f8f5;
  color:var(--brand2);
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}

.admin-search{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0 12px;
  padding:10px;
  border:1px solid #dce7e4;
  border-radius:12px;
  background:#f7faf9;
}

.admin-search-field{
  position:relative;
  flex:1;
}

.admin-search-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#7890a8;
  font-size:19px;
  line-height:1;
  pointer-events:none;
}

.admin-search-field input{
  width:100%;
  height:40px;
  padding:8px 12px 8px 36px;
  border:1px solid #cbd5df;
  border-radius:9px;
  background:#fff;
  font:inherit;
  outline:none;
}

.admin-search-field input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(20,117,101,.10);
}

.admin-search>.primary,
.admin-search>.secondary{
  min-height:40px;
  padding:8px 14px;
  white-space:nowrap;
}

.user-table{
  border:1px solid #dce5ed;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.user-table table{
  font-size:12px;
}

.user-table thead{
  background:#f7f9fb;
}

.user-table th{
  padding:10px 11px;
  color:#52647b;
  font-size:10px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  border-bottom:1px solid #dce5ed;
}

.user-table td{
  padding:12px 11px;
  vertical-align:middle;
}

.user-table tbody tr{
  transition:background .15s ease;
}

.user-table tbody tr:hover{
  background:#fbfdfc;
}

.user-table td:first-child strong{
  color:#102b4c;
  font-size:12px;
}

.role-pills{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.role-pill{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:3px 8px;
  border-radius:999px;
  background:#eef4f2;
  color:var(--brand2);
  font-size:9px;
  font-weight:900;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:3px 9px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.03em;
}

.status-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}

.status-pill.active{
  color:#087443;
  background:#e8f7ef;
}

.status-pill.inactive{
  color:#667085;
  background:#eef1f4;
}

.status-pill.suspended{
  color:#a12b22;
  background:#fdeceb;
}

.user-actions{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.user-actions .btn{
  padding:7px 9px;
  font-size:10px;
  white-space:nowrap;
}

@media(max-width:850px){
  .user-table{
    overflow-x:auto;
  }

  .user-table table{
    min-width:760px;
  }
}

@media(max-width:600px){
  .user-search-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-search{
    align-items:stretch;
    flex-direction:column;
  }

  .admin-search>.primary,
  .admin-search>.secondary{
    width:100%;
  }

  .user-actions{
    flex-direction:column;
  }

  .user-actions .btn{
    width:100%;
  }
}

/* =========================================================
   SUPER ADMIN — EDIT USER MODAL
   ========================================================= */

#adminModal{
    padding:20px;
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}

#adminModal .modal-card{
    width:min(760px,100%);
    max-width:760px;
    max-height:calc(100vh - 40px);
    overflow:hidden;
    padding:0;
    border:1px solid rgba(215,225,232,.9);
    border-radius:24px;
    background:#ffffff;
    box-shadow:0 28px 80px rgba(17,34,51,.25);
}

#adminModal .modal-card > .section-head{
    display:none;
}

.edit-user-modal{
    max-height:calc(100vh - 40px);
    overflow:auto;
    padding:30px 34px 28px;
    scrollbar-width:thin;
    scrollbar-color:#b8c9d3 transparent;
}

.edit-user-modal::-webkit-scrollbar{
    width:8px;
}

.edit-user-modal::-webkit-scrollbar-track{
    background:transparent;
}

.edit-user-modal::-webkit-scrollbar-thumb{
    background:#c5d2da;
    border-radius:999px;
}

.edit-user-intro{
    display:flex;
    align-items:center;
    gap:17px;
    margin-bottom:28px;
    padding-bottom:22px;
    border-bottom:1px solid #e8eef2;
}

.edit-user-avatar{
    width:58px;
    height:58px;
    flex:0 0 58px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:#e8f6f2;
    color:#0f766e;
    font-size:28px;
    box-shadow:inset 0 0 0 1px rgba(15,118,110,.08);
}

.edit-user-title h3{
    margin:0;
    color:#142b45;
    font-size:27px;
    line-height:1.15;
    font-weight:850;
    letter-spacing:-.025em;
}

.edit-user-title p{
    margin:6px 0 0;
    color:#66788b;
    font-size:13px;
}

.edit-user-form{
    display:grid;
    gap:18px;
}

.edit-user-field{
    min-width:0;
}

.edit-user-field label{
    display:flex;
    align-items:center;
    gap:4px;
    margin-bottom:7px;
    color:#243d59;
    font-size:14px;
    font-weight:750;
}

.required-mark{
    color:#dc2626;
    font-weight:900;
}

.optional-mark{
    color:#73859a;
    font-weight:500;
    font-size:12px;
}

.edit-user-field small{
    display:block;
    margin-top:6px;
    color:#718399;
    font-size:11px;
    line-height:1.4;
}

.edit-user-input-wrap,
.edit-user-select-wrap{
    position:relative;
    display:flex;
    align-items:center;
    width:100%;
    min-height:50px;
    border:1px solid #cbd8e2;
    border-radius:12px;
    background:#fff;
    transition:border-color .18s ease,
               box-shadow .18s ease,
               background .18s ease;
}

.edit-user-input-wrap:focus-within,
.edit-user-select-wrap:focus-within{
    border-color:#15947f;
    box-shadow:0 0 0 4px rgba(21,148,127,.10);
}

.edit-user-input-wrap.locked{
    background:#f7f9fb;
}

.edit-user-icon{
    width:46px;
    flex:0 0 46px;
    display:grid;
    place-items:center;
    color:#71849a;
    font-size:18px;
}

.edit-user-input-wrap input{
    flex:1;
    min-width:0;
    width:100%;
    height:48px;
    padding:0 13px 0 0;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#18324f;
    font-size:14px;
    font-weight:500;
}

.edit-user-input-wrap input::placeholder{
    color:#9aa9b7;
}

.edit-user-input-wrap.locked input{
    color:#52667c;
}

.edit-user-lock{
    width:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    color:#e11d48;
    font-size:14px;
}

.edit-user-select-wrap{
    padding-left:13px;
}

.edit-user-select-wrap select{
    flex:1;
    width:100%;
    min-height:48px;
    padding:0 36px 0 4px;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#18324f;
    font-size:14px;
    font-weight:600;
    appearance:auto;
}

.status-select{
    padding-left:12px;
}

.status-select select{
    padding-left:8px;
}

.edit-status-dot{
    width:10px;
    height:10px;
    flex:0 0 10px;
    border-radius:50%;
    background:#9ca3af;
}

.edit-status-dot.active{
    background:#15966d;
    box-shadow:0 0 0 4px #e7f7ef;
}

.edit-status-dot.inactive{
    background:#9b6a00;
    box-shadow:0 0 0 4px #fff5d9;
}

.edit-status-dot.suspended{
    background:#c23b32;
    box-shadow:0 0 0 4px #fdecea;
}

.edit-user-two-col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.password-visibility{
    width:44px;
    min-height:44px;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#637990!important;
    box-shadow:none!important;
    font-size:16px!important;
    font-weight:700!important;
}

.password-visibility:hover{
    color:#0f766e!important;
}

.edit-user-footer{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    margin-top:8px;
    padding-top:22px;
    border-top:1px solid #e5edf1;
}

.edit-user-cancel{
    min-width:112px;
    min-height:44px;
    border:1px solid #dce7eb!important;
    border-radius:12px!important;
    background:#edf8f5!important;
    color:#116b5b!important;
    font-weight:800!important;
}

.edit-user-cancel:hover{
    background:#e2f3ef!important;
}

.edit-user-save{
    min-width:150px;
    min-height:44px;
    border-radius:12px!important;
    font-weight:850!important;
    box-shadow:0 7px 18px rgba(15,118,110,.18);
}

.edit-user-save.saving{
    opacity:.72;
    cursor:wait;
}

@media(max-width:700px){

    #adminModal{
        padding:10px;
    }

    #adminModal .modal-card{
        width:100%;
        max-height:calc(100vh - 20px);
        border-radius:20px;
    }

    .edit-user-modal{
        max-height:calc(100vh - 20px);
        padding:22px 20px 20px;
    }

    .edit-user-intro{
        gap:12px;
        margin-bottom:22px;
        padding-bottom:18px;
    }

    .edit-user-avatar{
        width:48px;
        height:48px;
        flex-basis:48px;
        border-radius:15px;
        font-size:23px;
    }

    .edit-user-title h3{
        font-size:22px;
    }

    .edit-user-title p{
        font-size:12px;
    }

    .edit-user-two-col{
        grid-template-columns:1fr;
        gap:18px;
    }

    .edit-user-footer{
        position:sticky;
        bottom:-20px;
        margin-left:-20px;
        margin-right:-20px;
        padding:14px 20px 20px;
        background:rgba(255,255,255,.96);
        backdrop-filter:blur(8px);
        -webkit-backdrop-filter:blur(8px);
    }

    .edit-user-cancel,
    .edit-user-save{
        flex:1;
    }
}

@media(max-width:430px){

    .edit-user-footer{
        flex-direction:column-reverse;
    }

    .edit-user-cancel,
    .edit-user-save{
        width:100%;
    }
}


/* =========================================================
   DEM CAFETERIA — ACCESS CONTROL MODALS
   Roles + Permissions
   ========================================================= */

#adminModal{
    padding:20px;
    background:rgba(8,22,35,.48);
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
}

#adminModal .modal-card{
    width:min(780px,100%);
    max-width:780px;
    max-height:calc(100vh - 40px);
    padding:0;
    overflow:hidden;
    border:1px solid rgba(215,225,232,.92);
    border-radius:24px;
    background:#fff;
    box-shadow:
        0 32px 90px rgba(8,28,45,.28),
        0 8px 28px rgba(8,28,45,.10);
}

#adminModal .modal-card > .section-head{
    display:none;
}


/* =========================================================
   MODAL CONTAINER
   ========================================================= */

.access-modal{
    display:flex;
    flex-direction:column;
    max-height:calc(100vh - 40px);
    overflow:hidden;
    color:#18324f;
}


/* =========================================================
   HEADER
   ========================================================= */

.access-modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:27px 30px 23px;
    border-bottom:1px solid #e7eef2;
    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #fbfdfd 100%
    );
}

.access-modal-heading{
    display:flex;
    align-items:center;
    gap:15px;
    min-width:0;
}

.access-modal-icon{
    width:54px;
    height:54px;
    flex:0 0 54px;
    display:grid;
    place-items:center;
    border-radius:17px;
    font-size:25px;
    font-weight:800;
    box-shadow:
        inset 0 0 0 1px rgba(15,118,110,.08);
}

.access-modal-icon.roles{
    background:#e9f7f3;
    color:#0f766e;
}

.access-modal-icon.permissions{
    background:#edf2ff;
    color:#4f46a5;
}

.access-modal-heading h3{
    margin:0;
    color:#142b45;
    font-size:25px;
    line-height:1.15;
    font-weight:850;
    letter-spacing:-.025em;
}

.access-modal-heading p{
    margin:5px 0 0;
    color:#718196;
    font-size:12.5px;
    line-height:1.45;
}

.access-modal-close{
    width:40px;
    height:40px;
    flex:0 0 40px;
    display:grid;
    place-items:center;
    padding:0!important;
    border:1px solid #e0e8ed!important;
    border-radius:12px!important;
    background:#f8fafb!important;
    color:#60758a!important;
    font-size:26px!important;
    line-height:1!important;
    font-weight:400!important;
    box-shadow:none!important;
    cursor:pointer;
    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.access-modal-close:hover{
    background:#edf7f5!important;
    border-color:#c9e5df!important;
    color:#0f766e!important;
    transform:rotate(4deg);
}


/* =========================================================
   IDENTITY / ROLE CARD
   ========================================================= */

.access-identity-card,
.permission-role-card{
    display:flex;
    align-items:center;
    gap:14px;
    margin:22px 30px 0;
    padding:15px 17px;
    border:1px solid #dfe9ee;
    border-radius:16px;
    background:linear-gradient(
        135deg,
        #f7fbfb 0%,
        #f2f8f8 100%
    );
}

.access-identity-avatar{
    width:46px;
    height:46px;
    flex:0 0 46px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#dff2ed;
    color:#0f766e;
    font-size:19px;
    font-weight:850;
    text-transform:uppercase;
}

.access-identity-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.access-identity-text strong{
    color:#1a344e;
    font-size:14px;
    font-weight:800;
}

.access-identity-text span{
    color:#718397;
    font-size:11px;
}

.access-selection-count{
    margin-left:auto;
    min-width:92px;
    text-align:right;
}

.access-selection-count strong{
    display:block;
    color:#0f766e;
    font-size:19px;
    line-height:1.1;
    font-weight:850;
}

.access-selection-count span{
    display:block;
    margin-top:3px;
    color:#7b8b9b;
    font-size:10px;
}


/* =========================================================
   PERMISSION ROLE CARD
   ========================================================= */

.permission-role-card{
    align-items:flex-start;
    background:linear-gradient(
        135deg,
        #f7f8ff 0%,
        #f5f7ff 100%
    );
    border-color:#dfe3f2;
}

.permission-role-icon{
    width:45px;
    height:45px;
    flex:0 0 45px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:#e7eaff;
    color:#5148a5;
    font-size:20px;
    font-weight:800;
}

.permission-role-card > div:last-child{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.permission-role-card strong{
    color:#263654;
    font-size:14px;
    font-weight:800;
}

.permission-role-card span{
    color:#738198;
    font-size:11px;
    line-height:1.45;
}


/* =========================================================
   SEARCH
   ========================================================= */

.access-search{
    display:flex;
    align-items:center;
    gap:10px;
    margin:20px 30px 0;
    min-height:47px;
    padding:0 14px;
    border:1px solid #d3dfe6;
    border-radius:13px;
    background:#fff;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.access-search:focus-within{
    border-color:#15947f;
    box-shadow:0 0 0 4px rgba(21,148,127,.09);
}

.access-search > span{
    flex:0 0 auto;
    color:#8495a5;
    font-size:20px;
    line-height:1;
}

.access-search input{
    flex:1;
    min-width:0;
    height:45px;
    padding:0;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#1d3852;
    font-size:13px;
}

.access-search input::placeholder{
    color:#9aa9b7;
}

.access-search > strong{
    flex:0 0 auto;
    color:#73869a;
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
}

.access-search > strong span{
    color:#4f6175;
    font-size:11px;
}

.permission-search{
    margin-top:16px;
}


/* =========================================================
   SCROLLABLE FORM AREA
   ========================================================= */

.access-form{
    min-height:0;
    overflow:auto;
    padding:22px 30px 0;
    scrollbar-width:thin;
    scrollbar-color:#c5d2da transparent;
}

.access-form::-webkit-scrollbar{
    width:8px;
}

.access-form::-webkit-scrollbar-track{
    background:transparent;
}

.access-form::-webkit-scrollbar-thumb{
    background:#c7d3db;
    border-radius:999px;
}

.access-section-label{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.access-section-label span{
    color:#60758a;
    font-size:10px;
    font-weight:850;
    letter-spacing:.09em;
}

.access-section-label small{
    color:#91a0ae;
    font-size:10px;
}


/* =========================================================
   ROLE CARDS
   ========================================================= */

.role-list{
    display:grid;
    gap:9px;
}

.role-choice{
    position:relative;
    display:flex;
    align-items:center;
    gap:13px;
    min-height:65px;
    padding:11px 14px;
    border:1px solid #e0e8ed;
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.role-choice:hover{
    border-color:#b9dcd5;
    background:#fbfefd;
    transform:translateY(-1px);
    box-shadow:0 5px 16px rgba(20,65,78,.06);
}

.role-choice.selected{
    border-color:#86cbbd;
    background:#f0faf7;
    box-shadow:
        inset 0 0 0 1px rgba(15,118,110,.07),
        0 5px 18px rgba(15,118,110,.06);
}

.role-choice input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.role-choice-check,
.permission-check{
    width:22px;
    height:22px;
    flex:0 0 22px;
    display:grid;
    place-items:center;
    border:1.5px solid #c7d5dd;
    border-radius:7px;
    background:#fff;
    color:transparent;
    font-size:13px;
    font-weight:900;
    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease,
        transform .16s ease;
}

.role-choice.selected .role-choice-check,
.permission-choice.selected .permission-check{
    border-color:#15947f;
    background:#15947f;
    color:#fff;
    transform:scale(1.03);
}

.role-choice-content{
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.role-choice-content strong{
    color:#203a55;
    font-size:13px;
    font-weight:800;
}

.role-choice-content small{
    color:#8190a0;
    font-size:10px;
}

.role-choice-arrow{
    color:#a0afbb;
    font-size:22px;
    line-height:1;
    transition:color .18s ease,transform .18s ease;
}

.role-choice:hover .role-choice-arrow{
    color:#0f766e;
    transform:translateX(2px);
}

.role-choice.selected .role-choice-arrow{
    color:#15947f;
}


/* =========================================================
   PERMISSION GROUPS
   ========================================================= */

#permissionGroups{
    display:grid;
    gap:15px;
}

.permission-group{
    display:grid;
    gap:9px;
}

.permission-group-head{
    display:flex;
    align-items:center;
    gap:10px;
    padding:3px 2px;
}

.permission-group-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    font-size:15px;
    font-weight:800;
}

.permission-group-icon.accounting{
    background:#edf7ee;
    color:#3d7c46;
}

.permission-group-icon.inventory{
    background:#fff5e8;
    color:#a46319;
}

.permission-group-icon.pos{
    background:#eaf5ff;
    color:#2c6eae;
}

.permission-group-icon.portals{
    background:#f2edff;
    color:#7052a8;
}

.permission-group-icon.users{
    background:#eaf7f5;
    color:#0f766e;
}

.permission-group-icon.system{
    background:#f2f4f6;
    color:#657483;
}

.permission-group-head > div:last-child{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.permission-group-head strong{
    color:#29425c;
    font-size:12px;
    font-weight:850;
}

.permission-group-head small{
    color:#8392a1;
    font-size:10px;
}

.permission-group-items{
    display:grid;
    gap:7px;
}

.permission-choice{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    min-height:61px;
    padding:10px 13px;
    border:1px solid #e1e8ed;
    border-radius:13px;
    background:#fff;
    cursor:pointer;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.permission-choice:hover{
    border-color:#cbd9e0;
    background:#fbfdfd;
}

.permission-choice.selected{
    border-color:#b9ded6;
    background:#f4fbf9;
}

.permission-choice input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.permission-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.permission-copy strong{
    color:#263e58;
    font-size:12px;
    font-weight:800;
}

.permission-copy small{
    color:#7c8d9d;
    font-size:10px;
    line-height:1.4;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.access-empty{
    min-height:120px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    border:1px dashed #ccd9e0;
    border-radius:14px;
    background:#fafcfd;
    text-align:center;
}

.access-empty strong{
    color:#50657a;
    font-size:13px;
}

.access-empty span{
    color:#8797a6;
    font-size:11px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.access-modal-footer{
    position:sticky;
    bottom:0;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    margin-top:20px;
    padding:16px 0 20px;
    border-top:1px solid #e4ecef;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    z-index:5;
}

.access-cancel{
    min-width:112px;
    min-height:44px;
    padding:0 18px;
    border:1px solid #d8e5e9!important;
    border-radius:12px!important;
    background:#edf8f5!important;
    color:#116b5b!important;
    font-size:13px!important;
    font-weight:800!important;
    box-shadow:none!important;
}

.access-cancel:hover{
    background:#e2f3ef!important;
    border-color:#c5dfd9!important;
}

.access-save{
    min-width:155px;
    min-height:44px;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:7px;
    border-radius:12px!important;
    font-size:13px!important;
    font-weight:850!important;
    box-shadow:0 7px 18px rgba(15,118,110,.18);
}

.access-save.saving{
    opacity:.7;
    cursor:wait;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:700px){

    #adminModal{
        padding:10px;
    }

    #adminModal .modal-card{
        width:100%;
        max-height:calc(100vh - 20px);
        border-radius:20px;
    }

    .access-modal{
        max-height:calc(100vh - 20px);
    }

    .access-modal-header{
        padding:20px 18px 17px;
    }

    .access-modal-icon{
        width:46px;
        height:46px;
        flex-basis:46px;
        border-radius:14px;
        font-size:21px;
    }

    .access-modal-heading{
        gap:11px;
    }

    .access-modal-heading h3{
        font-size:21px;
    }

    .access-modal-heading p{
        font-size:11px;
    }

    .access-modal-close{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .access-identity-card,
    .permission-role-card{
        margin-left:18px;
        margin-right:18px;
    }

    .access-search{
        margin-left:18px;
        margin-right:18px;
    }

    .access-form{
        padding-left:18px;
        padding-right:18px;
    }

    .access-selection-count{
        display:none;
    }

    .permission-search > strong{
        display:none;
    }

    .access-modal-footer{
        padding-bottom:18px;
    }
}

@media(max-width:430px){

    .access-modal-header{
        padding:17px 15px 15px;
    }

    .access-modal-heading p{
        display:none;
    }

    .access-identity-card,
    .permission-role-card{
        margin-top:16px;
        margin-left:15px;
        margin-right:15px;
    }

    .access-search{
        margin-left:15px;
        margin-right:15px;
    }

    .access-form{
        padding-left:15px;
        padding-right:15px;
    }

    .access-modal-footer{
        flex-direction:column-reverse;
        gap:8px;
    }

    .access-cancel,
    .access-save{
        width:100%;
    }

    .permission-choice{
        min-height:67px;
    }
}


/* =========================================================
   ASSIGN ROLES — ROLE OBJECT CARDS
   ========================================================= */

.role-list{
    display:grid;
    gap:10px;
}

.role-object{
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    min-height:78px;
    padding:12px 15px;
    border:1px solid #e0e8ed;
    border-radius:15px;
    background:#fff;
    cursor:pointer;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.role-object:hover{
    border-color:#b8dcd4;
    background:#fbfefd;
    transform:translateY(-1px);
    box-shadow:0 7px 20px rgba(20,65,78,.07);
}

.role-object.selected{
    border-color:#7fc8ba;
    background:linear-gradient(
        135deg,
        #f1faf7 0%,
        #f7fcfb 100%
    );
    box-shadow:
        inset 0 0 0 1px rgba(15,118,110,.06),
        0 7px 22px rgba(15,118,110,.07);
}

.role-object input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.role-object-icon{
    width:48px;
    height:48px;
    flex:0 0 48px;
    display:grid;
    place-items:center;
    border-radius:14px;
    font-size:21px;
    font-weight:800;
}

.role-object-icon.accountant{
    background:#eaf7ee;
    color:#3d7c46;
}

.role-object-icon.administrator{
    background:#edf2ff;
    color:#4f5fa8;
}

.role-object-icon.inventory{
    background:#fff3e2;
    color:#a56319;
}

.role-object-icon.kitchen{
    background:#fff0ea;
    color:#bd5c2c;
}

.role-object-icon.pos{
    background:#e8f5ff;
    color:#2770aa;
}

.role-object-icon.super-admin{
    background:#f2eaff;
    color:#7046aa;
}

.role-object-icon.supervisor{
    background:#eaf7f5;
    color:#0f766e;
}

.role-object-icon.vendor{
    background:#f1f3f5;
    color:#667685;
}

.role-object-icon.default{
    background:#f0f3f5;
    color:#687888;
}

.role-object-content{
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.role-object-content strong{
    color:#1d3854;
    font-size:14px;
    line-height:1.2;
    font-weight:850;
}

.role-object-content small{
    color:#75879a;
    font-size:10.5px;
    line-height:1.35;
}

.role-object-content em{
    margin-top:1px;
    color:#a0acb7;
    font-size:9px;
    font-style:normal;
    font-weight:650;
    letter-spacing:.03em;
}

.role-object-state{
    width:30px;
    flex:0 0 30px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
}

.role-object-check{
    width:23px;
    height:23px;
    display:grid;
    place-items:center;
    border:1.5px solid #cbd7de;
    border-radius:7px;
    background:#fff;
    color:transparent;
    font-size:13px;
    font-weight:900;
    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.role-object-arrow{
    display:none;
    color:#15947f;
    font-size:21px;
}

.role-object.selected .role-object-check{
    border-color:#15947f;
    background:#15947f;
    color:#fff;
}

.role-object.selected .role-object-arrow{
    display:none;
}

@media(max-width:700px){

    .role-object{
        min-height:72px;
        padding:10px 12px;
    }

    .role-object-icon{
        width:43px;
        height:43px;
        flex-basis:43px;
        border-radius:12px;
        font-size:18px;
    }

    .role-object-content strong{
        font-size:13px;
    }

    .role-object-content small{
        font-size:10px;
    }
}


/* DEM_ORDERS_KITCHEN_UI_V2 */
body:has(.order-kitchen-page){
  background:
    radial-gradient(circle at 10% 0%,rgba(18,145,121,.08),transparent 32%),
    radial-gradient(circle at 95% 10%,rgba(53,113,190,.07),transparent 28%),
    #f4f8fb;
}

.order-kitchen-page{
  max-width:1320px;
  margin:0 auto;
  padding:28px 28px 44px;
}

.order-kitchen-hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  padding:8px 4px 24px;
}

.order-kitchen-title-row{
  display:flex;
  align-items:center;
  gap:18px;
}

.order-kitchen-icon{
  width:64px;height:64px;flex:0 0 64px;
  display:grid;place-items:center;
  border-radius:20px;
  background:linear-gradient(145deg,#e8faf4,#d8f3ea);
  border:1px solid #c9ebdf;
  box-shadow:0 10px 24px rgba(20,100,90,.10);
  font-size:30px;
}

.order-kitchen-hero h1{
  margin:2px 0 6px;
  font-size:clamp(30px,3.2vw,44px);
  line-height:1.05;
  letter-spacing:-.035em;
}

.order-kitchen-hero p{
  margin:0;
  max-width:760px;
  color:#60738c;
  font-size:15px;
}

.order-kitchen-live{
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:flex-end;
  white-space:nowrap;
}

.order-kitchen-live .live-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 15px;
  border-radius:999px;
  background:#eaf8f2;
  border:1px solid #d0eee1;
  color:#087b5f;
  font-weight:800;
  font-size:13px;
}

.order-kitchen-live .live-dot{
  width:8px;height:8px;border-radius:50%;
  background:#0aa57e;
  box-shadow:0 0 0 4px rgba(10,165,126,.10);
}

.order-kitchen-clock{
  color:#65778e;
  font-size:13px;
  font-weight:700;
}

.order-kitchen-refresh{
  min-width:42px;
  min-height:42px;
  padding:0 12px;
  font-size:20px;
  line-height:1;
}

.order-kitchen-tabs{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}

.order-kitchen-tab{
  min-height:108px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 17px;
  border:1px solid #dbe5ed;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  color:#173452;
  text-decoration:none;
  box-shadow:0 5px 16px rgba(30,60,90,.045);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}

.order-kitchen-tab:hover{
  transform:translateY(-1px);
  box-shadow:0 9px 22px rgba(30,60,90,.08);
}

.order-kitchen-tab.active{
  border-color:#a9dfd0;
  box-shadow:0 9px 24px rgba(15,122,96,.10);
  background:linear-gradient(145deg,#f4fcf9,#eaf8f3);
}

.order-kitchen-tab:nth-child(4).active{
  border-color:#f0d49d;
  background:linear-gradient(145deg,#fffaf0,#fff4dc);
}

.tab-icon{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  border-radius:12px;
  background:#eef4f8;
  color:#187c70;
  font-size:21px;
  font-weight:900;
}

.order-kitchen-tab:nth-child(2) .tab-icon{color:#3977bd}
.order-kitchen-tab:nth-child(3) .tab-icon{color:#158b6d}
.order-kitchen-tab:nth-child(4) .tab-icon{color:#b97812}
.order-kitchen-tab:nth-child(5) .tab-icon{color:#7656a8}

.tab-copy{
  min-width:0;
  display:grid;
  gap:1px;
}

.tab-label{
  font-size:13px;
  font-weight:800;
  color:#52677f;
}

.tab-count{
  font-size:27px;
  line-height:1.05;
  font-weight:900;
  color:#102d4b;
}

.tab-help{
  font-size:11px;
  color:#8292a4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.order-kitchen-workspace{
  padding:0;
  overflow:hidden;
}

.order-kitchen-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px 18px;
  border-bottom:1px solid #e4ebf1;
}

.order-kitchen-list-title{
  display:flex;
  align-items:center;
  gap:12px;
}

.list-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:12px;
  background:#eef8f5;
  color:#087b5f;
  font-size:22px;
  font-weight:900;
}

.order-kitchen-list-title h2{
  margin:0;
  font-size:19px;
  letter-spacing:-.015em;
}

.order-kitchen-list-title p{
  margin:3px 0 0;
  color:#7a8ca0;
  font-size:12px;
}

.order-kitchen-tools{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:420px;
}

.order-kitchen-search-wrap{
  position:relative;
  flex:1;
  min-width:240px;
}

.order-kitchen-search-icon{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:#8192a4;
  font-size:20px;
  pointer-events:none;
}

.order-kitchen-search{
  width:100%;
  padding-left:39px!important;
}

.order-kitchen-sort{
  width:155px;
}

.order-kitchen-list{
  padding:0 24px 20px;
}

.order-kitchen-list .order-card{
  border:1px solid #e1e9ef;
  border-radius:15px;
  margin-top:12px;
  padding:18px;
  box-shadow:0 4px 13px rgba(25,58,90,.035);
  transition:box-shadow .16s ease,border-color .16s ease;
}

.order-kitchen-list .order-card:hover{
  border-color:#c9d9e4;
  box-shadow:0 8px 20px rgba(25,58,90,.07);
}

.order-kitchen-list .order-main{
  gap:20px;
}

.order-kitchen-list .order-main h2{
  margin:4px 0 5px;
  font-size:18px;
}

.order-kitchen-list .order-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:13px;
}

.order-kitchen-list .order-meta span{
  padding:6px 9px;
  border-radius:8px;
  background:#f4f7fa;
  color:#5f7287;
  border:1px solid #e5ebf0;
  font-size:11px;
  font-weight:700;
}

.order-kitchen-list .order-actions{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.order-kitchen-list .order-actions button{
  min-height:38px;
}

.order-kitchen-list .details{
  margin-top:14px;
}

.order-kitchen-list .empty{
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:7px;
  text-align:center;
  color:#7b8c9f;
  border:1px dashed #d7e2ea;
  border-radius:14px;
  margin-top:14px;
  background:#fbfdfe;
}

.order-kitchen-list .empty:before{
  content:"▱";
  width:52px;height:52px;
  display:grid;place-items:center;
  border-radius:16px;
  background:#eef5f8;
  color:#7d95a9;
  font-size:27px;
  margin-bottom:3px;
}

.order-kitchen-list .empty strong{
  color:#304c68;
  font-size:15px;
}

.order-kitchen-list .empty span{
  font-size:12px;
}

.order-card.is-filtered-out{
  display:none!important;
}

.order-kitchen-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:16px 0 0;
  color:#7b8b9d;
  font-size:12px;
}

.order-kitchen-footer .pagination{
  display:flex;
  gap:7px;
}

.order-kitchen-footer button{
  min-height:34px;
  padding:0 12px;
}

@media(max-width:1050px){
  .order-kitchen-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .order-kitchen-hero{grid-template-columns:1fr}
  .order-kitchen-live{justify-content:flex-start}
}

@media(max-width:720px){
  .order-kitchen-page{padding:18px 14px 30px}
  .order-kitchen-title-row{align-items:flex-start}
  .order-kitchen-icon{width:52px;height:52px;flex-basis:52px;border-radius:16px}
  .order-kitchen-hero h1{font-size:31px}
  .order-kitchen-live{flex-wrap:wrap}
  .order-kitchen-tabs{grid-template-columns:1fr 1fr}
  .order-kitchen-list-head{align-items:stretch;flex-direction:column}
  .order-kitchen-tools{width:100%;min-width:0}
  .order-kitchen-search-wrap,.order-kitchen-sort{min-width:0;width:100%}
  .order-kitchen-list .order-main{grid-template-columns:1fr}
  .order-kitchen-list .order-right{align-items:flex-start}
}

@media(max-width:480px){
  .order-kitchen-tabs{grid-template-columns:1fr}
  .order-kitchen-tools{flex-direction:column}
  .order-kitchen-list{padding:0 14px 18px}
  .order-kitchen-list-head{padding:18px 14px 15px}
  .order-kitchen-footer{align-items:flex-start;flex-direction:column}
}


/* =========================================================
   DEM_INVENTORY_UI_POLISH_V1
   Aesthetic-only inventory receiving / adjustment refinement.
   No transaction, API, database or business-rule changes.
========================================================= */

body.inventory-page{
    background:
        radial-gradient(circle at 8% 0%,rgba(18,145,121,.075),transparent 30%),
        radial-gradient(circle at 96% 12%,rgba(54,113,190,.055),transparent 28%),
        #f4f8fb;
}

body.inventory-page main.wrap{
    max-width:1280px;
    padding:28px 24px 48px;
}

body.inventory-page main.wrap > .card{
    position:relative;
    overflow:hidden;
    margin:0 0 22px;
    padding:0;
    border:1px solid #dfe8ef;
    border-radius:20px;
    background:rgba(255,255,255,.97);
    box-shadow:0 10px 28px rgba(27,57,86,.065);
}

body.inventory-page main.wrap > .card::before{
    content:"";
    display:block;
    height:4px;
    background:linear-gradient(90deg,#0b8b70,#39b494);
}

body.inventory-page main.wrap > .card:nth-of-type(2)::before{
    background:linear-gradient(90deg,#dc2c25,#ef6b63);
}

body.inventory-page main.wrap > .card .section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:24px 26px 18px;
    margin:0;
    border-bottom:1px solid #edf2f6;
}

body.inventory-page main.wrap > .card .section-head h1,
body.inventory-page main.wrap > .card .section-head h2{
    margin:3px 0 5px;
    color:#102d4b;
    letter-spacing:-.025em;
}

body.inventory-page main.wrap > .card .section-head p{
    margin:0;
    color:#718399;
}

body.inventory-page .form-grid{
    gap:16px;
    padding:20px 26px;
    align-items:end;
}

body.inventory-page .form-grid label{
    color:#38516b;
    font-size:12px;
    font-weight:750;
}

body.inventory-page .input,
body.inventory-page select,
body.inventory-page textarea{
    min-height:44px;
    border:1px solid #cbd8e3;
    border-radius:10px;
    background:#fff;
    color:#183653;
    box-shadow:inset 0 1px 2px rgba(30,60,90,.025);
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}

body.inventory-page textarea{
    min-height:92px;
    resize:vertical;
}

body.inventory-page .input:focus,
body.inventory-page select:focus,
body.inventory-page textarea:focus{
    border-color:#39a990;
    box-shadow:0 0 0 3px rgba(28,151,124,.10);
    outline:none;
}

body.inventory-page .form-grid .wide{
    grid-column:1/-1;
}

body.inventory-page button,
body.inventory-page .btn{
    min-height:40px;
    border-radius:10px;
    font-weight:800;
}

body.inventory-page button.primary,
body.inventory-page .primary{
    box-shadow:0 7px 16px rgba(11,126,99,.13);
}

body.inventory-page button.danger,
body.inventory-page .danger{
    box-shadow:0 6px 14px rgba(190,36,29,.10);
}

body.inventory-page .table-wrap{
    margin:0 26px 24px;
    overflow:auto;
    border:1px solid #e1e9ef;
    border-radius:14px;
    background:#fff;
}

body.inventory-page .table-wrap table{
    min-width:720px;
}

body.inventory-page .table-wrap thead th{
    background:#f5f8fa;
    color:#60758c;
    font-size:10px;
    font-weight:850;
    letter-spacing:.05em;
    text-transform:uppercase;
    border-bottom:1px solid #e0e8ee;
}

body.inventory-page .table-wrap tbody td{
    padding:12px 13px;
}

body.inventory-page .form-grid button,
body.inventory-page .form-grid .btn{
    width:max-content;
    min-width:135px;
}

body.inventory-page .form-grid .danger,
body.inventory-page .form-grid button.danger{
    min-width:155px;
}

body.inventory-page main.wrap > .card:nth-of-type(2){
    border-color:#eadfe0;
}

body.inventory-page main.wrap > .card:nth-of-type(2) .section-head{
    background:linear-gradient(180deg,#fffafa,#fff);
}

body.inventory-page main.wrap > .card:nth-of-type(2) .eyebrow{
    color:#c72d27;
}

body.inventory-page main.wrap > .card:nth-of-type(2) .primary,
body.inventory-page main.wrap > .card:nth-of-type(2) button[type="submit"]{
    background:#d62f28;
    border-color:#d62f28;
    color:#fff;
}

body.inventory-page .notice{
    border-radius:12px;
    margin:0 26px 18px;
}

@media(max-width:800px){
    body.inventory-page main.wrap{
        padding:18px 13px 34px;
    }

    body.inventory-page main.wrap > .card{
        border-radius:16px;
    }

    body.inventory-page main.wrap > .card .section-head{
        padding:20px 18px 15px;
    }

    body.inventory-page .form-grid{
        padding:16px 18px;
        grid-template-columns:1fr!important;
    }

    body.inventory-page .form-grid .wide{
        grid-column:auto;
    }

    body.inventory-page .form-grid button,
    body.inventory-page .form-grid .btn{
        width:100%;
    }

    body.inventory-page .table-wrap{
        margin:0 18px 18px;
    }
}

@media(max-width:520px){
    body.inventory-page main.wrap > .card .section-head{
        align-items:flex-start;
        flex-direction:column;
    }

    body.inventory-page .input,
    body.inventory-page select{
        min-height:46px;
    }
}


/* DEM_ORDERS_STAGE_CARDS_V2 */

body:has(.order-kitchen-page) .order-kitchen-tabs{
    gap:12px;
    margin:0 0 22px;
}

body:has(.order-kitchen-page) .order-kitchen-tab{
    position:relative;
    min-height:112px;
    padding:16px 16px 14px;
    border:1px solid #dce6ed;
    border-radius:16px;
    background:#fff;
    box-shadow:0 3px 12px rgba(23,51,76,.05);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

body:has(.order-kitchen-page) .order-kitchen-tab:hover{
    transform:translateY(-1px);
    box-shadow:0 7px 18px rgba(23,51,76,.09);
}

body:has(.order-kitchen-page) .order-kitchen-tab.active{
    transform:none;
    box-shadow:0 7px 20px rgba(23,51,76,.10);
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-copy{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    min-width:0;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-label{
    font-size:14px;
    font-weight:800;
    line-height:1.2;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-count{
    margin-top:5px;
    font-size:27px;
    font-weight:900;
    line-height:1;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-help{
    margin-top:5px;
    font-size:10px;
    line-height:1.35;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-view-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    margin-top:9px;
    padding:0 11px;
    border-radius:8px;
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
    background:#edf8f5;
    color:#087563;
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="ACTIVE"]{
    border-color:#b9e8dc;
    background:linear-gradient(145deg,#f5fcfa,#ffffff);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="ACTIVE"].active{
    border-color:#79d3bf;
    box-shadow:0 7px 20px rgba(11,128,104,.13);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="NEW"]{
    border-color:#c9ddf4;
    background:linear-gradient(145deg,#f6faff,#ffffff);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="NEW"].active{
    border-color:#8bb8e8;
    box-shadow:0 7px 20px rgba(57,119,189,.12);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="VERIFIED"]{
    border-color:#c5e8dc;
    background:linear-gradient(145deg,#f5fcfa,#ffffff);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="VERIFIED"].active{
    border-color:#83ccb8;
    box-shadow:0 7px 20px rgba(21,139,109,.12);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="PREPARING"]{
    border-color:#efd9ae;
    background:linear-gradient(145deg,#fffaf0,#ffffff);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="PREPARING"].active{
    border-color:#e2b86c;
    box-shadow:0 7px 20px rgba(185,120,18,.13);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="READY"]{
    border-color:#ddd1ef;
    background:linear-gradient(145deg,#faf7ff,#ffffff);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="READY"].active{
    border-color:#bca4dc;
    box-shadow:0 7px 20px rgba(118,86,168,.13);
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="ACTIVE"] .tab-view-action{
    background:#e5f7f2;
    color:#087563;
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="NEW"] .tab-view-action{
    background:#edf5ff;
    color:#3977bd;
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="VERIFIED"] .tab-view-action{
    background:#e9f8f3;
    color:#158b6d;
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="PREPARING"] .tab-view-action{
    background:#fff4df;
    color:#a46808;
}

body:has(.order-kitchen-page) .order-kitchen-tab[data-status="READY"] .tab-view-action{
    background:#f2ecfa;
    color:#7656a8;
}

body:has(.order-kitchen-page) .order-kitchen-list-head{
    border-bottom:1px solid #e5edf2;
}

body:has(.order-kitchen-page) .order-kitchen-list{
    border-top:0;
}

@media (max-width:760px){
    body:has(.order-kitchen-page) .order-kitchen-tab{
        min-height:104px;
        padding:14px;
    }

    body:has(.order-kitchen-page) .order-kitchen-tab .tab-count{
        font-size:23px;
    }
}


/* DEM_ORDERS_COMPACT_STAGE_VIEW_V1 */

/* Give the five stage cards breathing room inside the workspace */
body:has(.order-kitchen-page) .order-kitchen-tabs{
    margin:0 9px 20px;
    gap:10px;
}

/* More compact stage cards */
body:has(.order-kitchen-page) .order-kitchen-tab{
    min-height:96px;
    padding:12px 13px 11px;
    border-radius:14px;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-icon{
    width:32px;
    height:32px;
    min-width:32px;
    border-radius:10px;
    font-size:16px;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-label{
    font-size:12px;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-count{
    margin-top:3px;
    font-size:23px;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-help{
    margin-top:3px;
    font-size:9px;
}

body:has(.order-kitchen-page) .order-kitchen-tab .tab-view-action{
    min-height:25px;
    margin-top:6px;
    padding:0 9px;
    font-size:9px;
}

/* Compact Orders & Kitchen hero */
body:has(.order-kitchen-page) .order-kitchen-hero{
    margin-bottom:18px;
    gap:14px;
}

body:has(.order-kitchen-page) .order-kitchen-title-row{
    gap:11px;
}

body:has(.order-kitchen-page) .order-kitchen-icon{
    width:44px;
    height:44px;
    flex-basis:44px;
    border-radius:13px;
    font-size:18px;
}

body:has(.order-kitchen-page) .order-kitchen-hero h1{
    font-size:27px;
    line-height:1.1;
    margin:2px 0 3px;
}

body:has(.order-kitchen-page) .order-kitchen-hero p{
    font-size:11px;
}

/* Queue header becomes a compact control bar */
body:has(.order-kitchen-page) .order-kitchen-list-head{
    align-items:center;
    gap:12px;
    padding:17px 20px 15px;
}

body:has(.order-kitchen-page) .order-kitchen-list-title h2{
    font-size:17px;
}

body:has(.order-kitchen-page) .order-kitchen-list-title p{
    font-size:10px;
}

body:has(.order-kitchen-page) .order-kitchen-queue-toggle{
    min-height:32px;
    padding:0 12px;
    font-size:10px;
    font-weight:800;
    white-space:nowrap;
    margin-left:auto;
}

/* Keep the queue itself completely hidden until requested */
body:has(.order-kitchen-page) .order-kitchen-list[hidden]{
    display:none!important;
}

@media(max-width:900px){
    body:has(.order-kitchen-page) .order-kitchen-tabs{
        margin-left:6px;
        margin-right:6px;
    }
}

@media(max-width:760px){
    body:has(.order-kitchen-page) .order-kitchen-tabs{
        margin-left:4px;
        margin-right:4px;
        gap:8px;
    }

    body:has(.order-kitchen-page) .order-kitchen-tab{
        min-height:91px;
        padding:11px;
    }

    body:has(.order-kitchen-page) .order-kitchen-hero h1{
        font-size:23px;
    }

    body:has(.order-kitchen-page) .order-kitchen-icon{
        width:40px;
        height:40px;
        flex-basis:40px;
    }

    body:has(.order-kitchen-page) .order-kitchen-list-head{
        align-items:stretch;
        flex-direction:column;
    }

    body:has(.order-kitchen-page) .order-kitchen-queue-toggle{
        width:100%;
        margin-left:0;
    }
}


/* DEM_POS_COMPACT_CHECKOUT_V1 */
body.pos-page .pos-sale #msg{
  padding:5px 7px;
  margin-top:4px;
  font-size:9px;
  line-height:1.25;
  border-radius:7px;
  max-height:34px;
  overflow:auto;
}

body.pos-page .pos-sale .sale-total strong{
  font-size:14px;
  font-weight:900;
}


/* DEM_POS_REPRINT_CENTER_V1 */

body.pos-page .pos-toolbar h1{
  font-size:17px;
  line-height:1.15;
}

body.pos-page .pos-catalog .section-head h2,
body.pos-page .pos-sale .sale-heading h2{
  font-size:12px;
  line-height:1.15;
}

body.pos-page .pos-title-block .muted{
  font-size:10px;
}

body.pos-page .pos-top-actions{
  align-items:center;
  gap:7px;
}

body.pos-page .pos-reprint-tools{
  display:flex;
  align-items:center;
  gap:6px;
}

body.pos-page .pos-reprint-tools .btn{
  min-height:34px;
  padding:7px 10px;
  font-size:10px;
  white-space:nowrap;
}

body.pos-page .pos-reprint-date{
  width:132px;
  min-height:34px;
  padding:7px 8px;
  font-size:10px;
}

body.pos-page .receipt-reprint-modal{
  width:min(680px,calc(100vw - 30px));
  max-width:680px;
}

body.pos-page .receipt-reprint-list{
  display:grid;
  gap:7px;
  max-height:55vh;
  overflow:auto;
}

body.pos-page .receipt-reprint-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
}

body.pos-page .receipt-reprint-row>div:first-child{
  min-width:0;
}

body.pos-page .receipt-reprint-row strong{
  display:block;
  font-size:11px;
}

body.pos-page .receipt-reprint-row small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}

body.pos-page .receipt-reprint-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

body.pos-page .receipt-reprint-meta strong{
  font-size:11px;
  color:var(--brand2);
}

body.pos-page .receipt-reprint-meta .btn{
  min-height:30px;
  padding:6px 9px;
  font-size:9px;
}

@media(max-width:1100px){
  body.pos-page .pos-reprint-tools{
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}

@media(max-width:820px){
  body.pos-page .pos-top-actions{
    width:100%;
  }

  body.pos-page .pos-reprint-tools{
    width:100%;
    justify-content:flex-start;
    overflow:auto;
  }

  body.pos-page .pos-reprint-date{
    flex:0 0 132px;
  }
}



/* =========================================================
   DEM PAYMENT VERIFICATION — COMPACT UI V1
   Scoped exclusively to the Payment Verification workspace.
   ========================================================= */

.payment-verification-workspace{
  max-width:920px;
  margin:0 auto;
  padding:1.35rem 1.4rem;
}

/* Main page heading */
.payment-verification-workspace > h1{
  margin:.15rem 0 .75rem;
  font-size:1.72rem;
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.02em;
}

/* Financial-control eyebrow */
.payment-verification-workspace > .eyebrow{
  font-size:.68rem;
  letter-spacing:.08em;
  font-weight:700;
}

/* Receipt toolbar */
.payment-verification-workspace .verification-receipt-toolbar{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:wrap;
  margin:.35rem 0 .65rem;
}

.payment-verification-workspace .verification-receipt-toolbar .btn{
  min-height:34px;
  padding:.45rem .78rem;
  font-size:.78rem;
  line-height:1;
  white-space:nowrap;
}

.payment-verification-workspace
.verification-receipt-toolbar
.verification-receipt-date{
  width:145px;
  min-width:145px;
  height:34px;
  padding:.35rem .55rem;
  font-size:.78rem;
  margin:0;
}

/* View controls */
.payment-verification-workspace .verification-summary{
  display:flex;
  align-items:center;
  gap:.45rem;
  flex-wrap:wrap;
  margin:.2rem 0 .8rem;
}

.payment-verification-workspace .verification-view-toggle{
  min-height:34px;
  padding:.45rem .78rem;
  font-size:.78rem;
  font-weight:600;
}

/* Verification panels */
.payment-verification-workspace .verification-panel{
  margin-top:.65rem;
}

.payment-verification-workspace .verification-panel[hidden]{
  display:none;
}

/* Section headings */
.payment-verification-workspace .section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin:.85rem 0 .6rem;
}

.payment-verification-workspace .section-heading .eyebrow{
  font-size:.64rem;
  letter-spacing:.08em;
  font-weight:700;
}

.payment-verification-workspace .section-heading h2{
  margin:.15rem 0 0;
  font-size:1.18rem;
  line-height:1.25;
  font-weight:600;
  letter-spacing:-.015em;
}

/* Pending/completed count */
.payment-verification-workspace .status-badge{
  font-size:.72rem;
  font-weight:600;
  padding:.32rem .58rem;
  border-radius:999px;
  white-space:nowrap;
}

/* Date used for completed verification records */
.payment-verification-workspace .verification-date{
  display:flex;
  align-items:flex-end;
  margin:.25rem 0 .65rem;
}

.payment-verification-workspace .verification-date label{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin:0;
  color:#526579;
  font-size:.76rem;
  font-weight:600;
}

.payment-verification-workspace
.verification-date
#completedVerificationDate{
  width:145px;
  min-width:145px;
  height:34px;
  padding:.35rem .55rem;
  font-size:.78rem;
}

/* Verification cards */
.payment-verification-workspace .verification-list{
  display:grid;
  gap:.55rem;
}

.payment-verification-workspace .order-card{
  border-radius:12px;
  padding:.78rem .9rem;
  box-shadow:0 2px 9px rgba(16,35,63,.035);
}

.payment-verification-workspace .order-card:hover{
  box-shadow:0 7px 20px rgba(16,35,63,.07);
}

/* Transaction headings */
.payment-verification-workspace .order-card .order-main h2{
  margin:0 0 .25rem;
  font-size:1rem;
  line-height:1.25;
  font-weight:600;
  letter-spacing:-.01em;
}

.payment-verification-workspace .order-card p{
  margin:.18rem 0;
  font-size:.78rem;
  line-height:1.4;
}

.payment-verification-workspace .order-card small{
  font-size:.69rem;
  color:#64748b;
}

/* Amount/status column */
.payment-verification-workspace .order-right{
  gap:.18rem;
}

.payment-verification-workspace .order-right strong{
  font-size:.9rem;
  font-weight:600;
}

.payment-verification-workspace .order-right small{
  font-size:.68rem;
}

/* Card action area */
.payment-verification-workspace .order-actions{
  margin-top:.55rem;
  gap:.4rem;
}

.payment-verification-workspace .order-actions .btn,
.payment-verification-workspace .order-actions button{
  min-height:32px;
  min-width:auto;
  padding:.4rem .68rem;
  font-size:.74rem;
}

/* Verification reference input */
.payment-verification-workspace .verification-actions{
  align-items:center;
}

.payment-verification-workspace .verification-actions .ref{
  flex:1 1 240px;
  min-width:180px;
  height:32px;
  padding:.35rem .55rem;
  font-size:.76rem;
}

/* Empty states */
.payment-verification-workspace .empty{
  padding:.75rem .8rem;
  border:1px dashed #d7e0e8;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
  font-size:.78rem;
}

/* Receipt reprint modal */
#verificationReceiptReprintModal .modal-card{
  max-width:680px;
  padding:1rem;
}

#verificationReceiptReprintModal .modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.7rem;
}

#verificationReceiptReprintModal .modal-head h2{
  margin:.12rem 0 0;
  font-size:1.15rem;
  font-weight:600;
}

#verificationReceiptReprintModal .receipt-list{
  display:grid;
  gap:.45rem;
}

#verificationReceiptReprintModal .receipt-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  padding:.65rem .7rem;
  border:1px solid #e3e9ef;
  border-radius:10px;
  background:#fff;
}

#verificationReceiptReprintModal .receipt-row strong{
  display:block;
  font-size:.78rem;
  font-weight:600;
}

#verificationReceiptReprintModal .receipt-row small{
  display:block;
  margin-top:.12rem;
  color:#64748b;
  font-size:.67rem;
}

#verificationReceiptReprintModal .receipt-row-right{
  display:flex;
  align-items:center;
  gap:.45rem;
  white-space:nowrap;
}

#verificationReceiptReprintModal .receipt-row-right > strong{
  font-size:.76rem;
}

/* Compact message area */
.payment-verification-workspace > #msg{
  margin:.45rem 0;
  padding:.55rem .7rem;
  font-size:.76rem;
}

/* Mobile */
@media(max-width:700px){

  .payment-verification-workspace{
    padding:1rem;
  }

  .payment-verification-workspace > h1{
    font-size:1.45rem;
  }

  .payment-verification-workspace .verification-receipt-toolbar{
    align-items:stretch;
  }

  .payment-verification-workspace
  .verification-receipt-toolbar
  .btn{
    flex:0 0 auto;
  }

  .payment-verification-workspace
  .verification-receipt-toolbar
  .verification-receipt-date{
    flex:1 1 145px;
    width:auto;
  }

  .payment-verification-workspace .section-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:.35rem;
  }

  .payment-verification-workspace .order-main{
    flex-direction:column;
    gap:.45rem;
  }

  .payment-verification-workspace .order-right{
    align-items:flex-start;
  }

  #verificationReceiptReprintModal .receipt-row{
    align-items:flex-start;
    flex-direction:column;
  }

  #verificationReceiptReprintModal .receipt-row-right{
    width:100%;
    justify-content:space-between;
  }

}


/* DEM PAYMENT VERIFICATION — HEADING SCALE V2 */

.payment-verification-workspace > h1{
  font-size:1.45rem;
  font-weight:600;
}

.payment-verification-workspace .section-heading h2{
  font-size:1.02rem;
  font-weight:600;
}

.payment-verification-workspace .order-card .order-main h2{
  font-size:.88rem;
  font-weight:600;
}


/* ================================================================
   DEM POS — MOMO VERIFICATION OVERLAY
   Presentation-only styling
   ================================================================ */

.pos-momo-verification-modal{
  max-width:560px;
}

.pos-momo-verification-modal .section-head h2{
  font-size:21px;
  letter-spacing:-.02em;
}

.pos-momo-verification-modal > .notice{
  margin:14px 0 16px;
}

.pos-momo-verification-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 16px;
}

.pos-momo-verification-detail{
  background:var(--brand-soft-2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 13px;
  min-width:0;
}

.pos-momo-verification-detail .eyebrow{
  display:block;
  margin-bottom:5px;
  font-size:10px;
}

.pos-momo-verification-detail strong{
  display:block;
  color:var(--ink);
  font-size:14px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pos-momo-verification-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.pos-momo-verification-actions .btn{
  min-width:125px;
}

#posMomoVerificationReferenceInput{
  margin-top:6px;
}

#posMomoVerificationStatus{
  font-weight:700;
}

@media(max-width:600px){
  .pos-momo-verification-modal{
    width:100%;
    max-width:none;
  }

  .pos-momo-verification-details{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .pos-momo-verification-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .pos-momo-verification-actions .btn{
    width:100%;
  }
}

@media(max-width:430px){
  .pos-momo-verification-details{
    grid-template-columns:1fr;
  }
}

/* END DEM POS — MOMO VERIFICATION OVERLAY */


/* =========================================================
   DEM SYSTEM HEALTH — DESIGN V1
   ========================================================= */

.system-health-page{
  max-width:1180px;
}

.system-health-hero{
  align-items:center;
  gap:24px;
}

.system-health-hero-content{
  min-width:0;
}

.system-health-hero h1{
  font-size:30px;
  line-height:1.1;
  letter-spacing:-.035em;
  margin:.25rem 0 .45rem;
}

.system-health-hero p{
  max-width:760px;
}

.system-health-result{
  min-width:145px;
  text-align:center;
  padding:16px 20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 24px rgba(9,24,41,.06);
}

.system-health-result strong{
  display:block;
  font-size:23px;
  line-height:1.1;
}

.system-health-result small{
  display:block;
  margin-top:6px;
}


.system-health-section{
  overflow:hidden;
}

.system-health-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:14px;
}

.system-health-section-head > div:first-child{
  min-width:0;
}

.system-health-section-head h2{
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.025em;
  margin:.25rem 0 .35rem;
}

.system-health-section-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.system-health-view-toggle{
  flex:0 0 auto;
  white-space:nowrap;
  min-width:185px;
}

.system-health-collapsible{
  padding-top:4px;
}

.system-health-collapsible[hidden]{
  display:none;
}


.system-health-summary-head{
  padding-bottom:16px;
}

.system-health-stats{
  margin-top:0;
}

.system-health-stats .count{
  min-height:82px;
}


.system-health-table-footer{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}


/* Smaller system-health table typography */
.system-health-section table th{
  font-size:10px;
}

.system-health-section table td{
  font-size:12px;
}

.system-health-section table code{
  font-size:11px;
}


/* Responsive */
@media (max-width:760px){

  .system-health-hero{
    align-items:stretch;
  }

  .system-health-result{
    width:100%;
  }

  .system-health-section-head{
    align-items:stretch;
    flex-direction:column;
  }

  .system-health-view-toggle{
    width:100%;
  }

  .system-health-section-head h2{
    font-size:19px;
  }

  .system-health-hero h1{
    font-size:27px;
  }

}

@media (max-width:520px){

  .system-health-hero h1{
    font-size:24px;
  }

  .system-health-section-head h2{
    font-size:18px;
  }

  .system-health-result strong{
    font-size:21px;
  }

}


/* =========================================================
   DEM SYSTEM HEALTH — AESTHETIC / STATUS V2
   ========================================================= */

/* Smaller section headings */
.system-health-section-head h2{
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:700;
}

.system-health-summary-head h2{
  font-size:18px;
}


/* Health result */
.system-health-result{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  min-width:165px;
  min-height:68px;
  padding:11px 16px;
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.system-health-status-object{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:800;
  border:1px solid currentColor;
}

.system-health-status-copy{
  text-align:left;
}

.system-health-status-copy strong{
  display:block;
  font-size:21px;
  line-height:1;
}

.system-health-status-copy small{
  display:block;
  margin-top:5px;
  font-size:11px;
}


/* PASS */
.system-health-result.health-state-pass{
  color:#087c68;
  background:#f0faf7;
  border-color:#bfe5db;
  box-shadow:0 8px 24px rgba(8,124,104,.08);
}

.system-health-result.health-state-pass
.system-health-status-object{
  background:#d9f3ec;
}


/* WARNING */
.system-health-result.health-state-warning{
  color:#a56500;
  background:#fff8e8;
  border-color:#efd59d;
  box-shadow:0 8px 24px rgba(165,101,0,.08);
}

.system-health-result.health-state-warning
.system-health-status-object{
  background:#ffedbf;
}


/* FAIL */
.system-health-result.health-state-fail{
  color:#b42318;
  background:#fff2f0;
  border-color:#efc0bb;
  box-shadow:0 8px 24px rgba(180,35,24,.08);
}

.system-health-result.health-state-fail
.system-health-status-object{
  background:#ffe0dc;
}


/* Decorative section objects */
.system-health-section-head{
  position:relative;
}

.system-health-section-head::before{
  content:'';
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:11px;
  background:var(--brand-soft-2);
  border:1px solid var(--line);
  box-shadow:0 5px 16px rgba(9,24,41,.05);
}


/*
 * Give each section its own subtle object.
 * The object is deliberately CSS-only so no external
 * icon package is required.
 */
.system-health-section:nth-of-type(2)
.system-health-section-head::after{
  content:'✓';
  position:absolute;
  left:10px;
  top:8px;
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--brand);
  font-size:13px;
  font-weight:800;
}

.system-health-section:nth-of-type(3)
.system-health-section-head::after{
  content:'◈';
  position:absolute;
  left:10px;
  top:8px;
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--brand);
  font-size:13px;
  font-weight:800;
}

.system-health-section:nth-of-type(4)
.system-health-section-head::after{
  content:'◷';
  position:absolute;
  left:10px;
  top:8px;
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--brand);
  font-size:15px;
  font-weight:800;
}


/* Slightly more visual depth */
.system-health-section{
  border:1px solid var(--line);
  box-shadow:0 8px 28px rgba(9,24,41,.045);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.system-health-section:hover{
  box-shadow:0 12px 34px rgba(9,24,41,.07);
}


/* Make the headings sit correctly beside the object */
.system-health-section-head > div:first-child{
  padding-left:0;
}


/* Better toggle buttons */
.system-health-view-toggle{
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  min-height:38px;
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.system-health-view-toggle:hover{
  transform:translateY(-1px);
}


/* Mobile */
@media(max-width:760px){

  .system-health-result{
    justify-content:flex-start;
  }

  .system-health-status-copy{
    text-align:left;
  }

  .system-health-section-head{
    padding-left:0;
  }

  .system-health-section-head h2,
  .system-health-summary-head h2{
    font-size:17px;
  }

}


/* =========================================================
   DEM SYSTEM HEALTH — FINAL VISUAL DESIGN V3
   ========================================================= */

/* ---------- PAGE ---------- */

.system-health-page{
  max-width:1180px;
}


/* ---------- HERO ---------- */

.system-health-hero{
  display:grid;
  grid-template-columns:88px minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  overflow:hidden;
  position:relative;
}

.system-health-hero::after{
  content:'';
  position:absolute;
  right:150px;
  top:-80px;
  width:360px;
  height:220px;
  border-radius:50%;
  background:rgba(35,190,160,.055);
  pointer-events:none;
}

.system-health-hero-icon{
  width:78px;
  height:78px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#087c68;
  background:#dcf6ee;
  border:1px solid #c1eadf;
  box-shadow:0 10px 28px rgba(8,124,104,.08);
  position:relative;
  z-index:1;
}

.system-health-hero-icon svg{
  width:48px;
  height:48px;
}

.system-health-hero-content{
  min-width:0;
  position:relative;
  z-index:1;
}

.system-health-hero h1{
  font-size:28px;
  line-height:1.1;
  letter-spacing:-.035em;
  margin:.2rem 0 .4rem;
}

.system-health-hero p{
  max-width:780px;
  margin:0;
}


/* ---------- DYNAMIC STATUS ---------- */

.system-health-result{
  min-width:168px;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  padding:11px 15px;
  border-radius:14px;
  position:relative;
  z-index:1;
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.system-health-status-object{
  width:35px;
  height:35px;
  flex:0 0 35px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:19px;
  font-weight:800;
  border:1px solid currentColor;
}

.system-health-status-copy{
  text-align:left;
}

.system-health-status-copy strong{
  display:block;
  font-size:20px;
  line-height:1;
}

.system-health-status-copy small{
  display:block;
  margin-top:5px;
  font-size:10px;
  white-space:nowrap;
}

.system-health-result.health-state-pass{
  color:#087c68;
  background:#f0faf7;
  border:1px solid #bfe5db;
  box-shadow:0 8px 24px rgba(8,124,104,.07);
}

.system-health-result.health-state-pass
.system-health-status-object{
  background:#d9f3ec;
}

.system-health-result.health-state-warning{
  color:#a56500;
  background:#fff8e8;
  border:1px solid #efd59d;
  box-shadow:0 8px 24px rgba(165,101,0,.07);
}

.system-health-result.health-state-warning
.system-health-status-object{
  background:#ffedbf;
}

.system-health-result.health-state-fail{
  color:#b42318;
  background:#fff2f0;
  border:1px solid #efc0bb;
  box-shadow:0 8px 24px rgba(180,35,24,.07);
}

.system-health-result.health-state-fail
.system-health-status-object{
  background:#ffe0dc;
}


/* ---------- GENERAL SECTIONS ---------- */

.system-health-section{
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 8px 28px rgba(9,24,41,.045);
}

.system-health-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.system-health-heading-group{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.system-health-heading-group > div:last-child{
  min-width:0;
}

.system-health-section-head h2,
.system-health-summary-heading h2{
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.025em;
  margin:.25rem 0 .3rem;
}

.system-health-section-head p,
.system-health-summary-heading p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}


/* ---------- SECTION ICON OBJECTS ---------- */

.system-health-section-icon{
  width:70px;
  height:70px;
  flex:0 0 70px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid;
}

.system-health-section-icon svg{
  width:42px;
  height:42px;
}


/* Health checks */
.health-check-icon{
  color:#078d77;
  background:#e1f7f0;
  border-color:#c4ebdf;
}


/* Operational summary */
.operational-icon{
  color:#1876d1;
  background:#e5f1ff;
  border-color:#cce2fa;
}


/* Audit */
.audit-icon{
  color:#6840c5;
  background:#f0e9ff;
  border-color:#ddd0fa;
}


/* ---------- OPERATIONAL SUMMARY ---------- */

.system-health-summary-heading{
  margin-bottom:16px;
}

.system-health-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.system-health-stat{
  min-width:0;
  min-height:102px;
  display:flex;
  align-items:center;
  gap:15px;
  padding:15px 18px;
  border:1px solid;
  border-radius:16px;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.system-health-stat:hover{
  transform:translateY(-2px);
}

.system-health-stat-icon{
  width:55px;
  height:55px;
  flex:0 0 55px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.system-health-stat-icon svg{
  width:34px;
  height:34px;
}

.system-health-stat strong{
  display:block;
  font-size:24px;
  line-height:1.1;
  letter-spacing:-.025em;
}

.system-health-stat span{
  display:block;
  margin-top:5px;
  font-size:12px;
  color:var(--muted);
}


/* Orders */
.stat-orders{
  color:#1876d1;
  background:#f1f8ff;
  border-color:#cfe5fb;
}

.stat-orders .system-health-stat-icon{
  background:#e0efff;
}


/* Sales */
.stat-sales{
  color:#087c68;
  background:#f1fbf7;
  border-color:#d1eee4;
}

.stat-sales .system-health-stat-icon{
  background:#ddf5ed;
}


/* Stock */
.stat-stock{
  color:#b06b00;
  background:#fff9ed;
  border-color:#f2dfb7;
}

.stat-stock .system-health-stat-icon{
  background:#fff0ce;
}


/* MoMo */
.stat-momo{
  color:#6840c5;
  background:#f8f4ff;
  border-color:#e4dafa;
}

.stat-momo .system-health-stat-icon{
  background:#eee5ff;
}


/* ---------- COLLAPSIBLE AREAS ---------- */

.system-health-collapsible{
  padding-top:18px;
}

.system-health-collapsible[hidden]{
  display:none;
}

.system-health-view-toggle{
  flex:0 0 auto;
  min-width:175px;
  min-height:38px;
  border-radius:10px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}


/* ---------- TABLES ---------- */

.system-health-section table th{
  font-size:10px;
}

.system-health-section table td{
  font-size:12px;
}

.system-health-section table code{
  font-size:11px;
}

.system-health-table-footer{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
}


/* ---------- RESPONSIVE ---------- */

@media(max-width:850px){

  .system-health-hero{
    grid-template-columns:70px minmax(0,1fr);
  }

  .system-health-result{
    grid-column:1 / -1;
    justify-content:flex-start;
  }

  .system-health-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}

@media(max-width:650px){

  .system-health-hero{
    grid-template-columns:1fr;
  }

  .system-health-hero-icon{
    width:64px;
    height:64px;
    border-radius:18px;
  }

  .system-health-hero-icon svg{
    width:40px;
    height:40px;
  }

  .system-health-hero h1{
    font-size:25px;
  }

  .system-health-section-head,
  .system-health-heading-group{
    align-items:flex-start;
  }

  .system-health-section-head{
    flex-direction:column;
  }

  .system-health-view-toggle{
    width:100%;
  }

  .system-health-section-icon{
    width:58px;
    height:58px;
    flex-basis:58px;
    border-radius:17px;
  }

  .system-health-section-icon svg{
    width:35px;
    height:35px;
  }

  .system-health-section-head h2,
  .system-health-summary-heading h2{
    font-size:17px;
  }

}

@media(max-width:480px){

  .system-health-stats{
    grid-template-columns:1fr;
  }

  .system-health-stat{
    min-height:88px;
  }

  .system-health-result{
    min-width:0;
    width:100%;
  }

}


/* =========================================================
   DEM SYSTEM HEALTH — FINAL ALIGNMENT CORRECTION V4
   ========================================================= */

/*
 * Remove the old decorative pseudo-objects.
 * The actual SVG objects in the markup are now responsible
 * for the section visuals.
 */
.system-health-section-head::before,
.system-health-section-head::after{
  content:none !important;
  display:none !important;
}


/*
 * Keep Health Checks and Audit content aligned directly
 * against the same card padding as Operational Summary.
 */
.system-health-section-head{
  width:100%;
  margin:0;
  padding:0;
}

.system-health-heading-group{
  margin:0;
  padding:0;
}


/*
 * The actual section object and its text now begin at the
 * card's normal left edge.
 */
.system-health-heading-group{
  justify-content:flex-start;
  align-items:center;
}

.system-health-heading-group > div:last-child{
  margin:0;
  padding:0;
}


/*
 * Match the visual left position of the Operational Summary
 * object and heading.
 */
.system-health-section > .system-health-section-head{
  margin-left:0;
}


/*
 * System Health main heading:
 * previous size ≈ 28px
 * new size = 19px (approximately 2/3)
 */
.system-health-hero h1{
  font-size:19px;
  line-height:1.15;
  letter-spacing:-.025em;
  margin:.2rem 0 .4rem;
}


/*
 * Keep the Health Checks and Audit headings compact.
 */
.system-health-section-head h2{
  font-size:18px;
  line-height:1.2;
}


/*
 * Maintain the same visual relationship between the
 * section object and text used by Operational Summary.
 */
.system-health-section-icon{
  margin:0;
  flex:0 0 70px;
}


/*
 * Prevent the heading group from becoming artificially
 * centered by flex sizing.
 */
.system-health-heading-group{
  flex:1 1 auto;
  min-width:0;
}


/*
 * Keep the action button at the far right.
 */
.system-health-section-head > .system-health-view-toggle{
  margin-left:auto;
}


/*
 * On smaller screens the object/text relationship remains
 * intact while the button moves below the heading.
 */
@media(max-width:650px){

  .system-health-heading-group{
    width:100%;
  }

  .system-health-section-head > .system-health-view-toggle{
    margin-left:0;
  }

}


/* =========================================================
   DEM STAFF PORTAL — COLOR MODULE DESIGN V1
   ========================================================= */

.staff-page{
  max-width:1180px;
}


/* ---------- HERO ---------- */

.staff-hero{
  display:grid;
  grid-template-columns:88px minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  overflow:hidden;
  position:relative;
}

.staff-hero::after{
  content:'';
  position:absolute;
  right:80px;
  top:-100px;
  width:480px;
  height:260px;
  border-radius:50%;
  background:rgba(35,190,160,.055);
  pointer-events:none;
}

.staff-hero-icon{
  width:78px;
  height:78px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#087c68;
  background:#dcf6ee;
  border:1px solid #c1eadf;
  box-shadow:0 10px 28px rgba(8,124,104,.08);
  position:relative;
  z-index:1;
}

.staff-hero-icon svg{
  width:48px;
  height:48px;
}

.staff-hero-content{
  position:relative;
  z-index:1;
}

.staff-hero h1{
  font-size:28px;
  line-height:1.1;
  letter-spacing:-.035em;
  margin:.2rem 0 .4rem;
}

.staff-hero p{
  margin:0;
}


/* ---------- NOTIFICATIONS ---------- */

.staff-notification{
  min-width:185px;
  min-height:70px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 15px;
  border:1px solid #bfe5db;
  border-radius:14px;
  background:#f2fbf8;
  color:#087c68;
  position:relative;
  z-index:1;
}

.staff-notification-icon{
  width:45px;
  height:45px;
  flex:0 0 45px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ddf5ed;
}

.staff-notification-icon svg{
  width:29px;
  height:29px;
}

.staff-notification strong{
  display:block;
  font-size:22px;
  line-height:1;
}

.staff-notification small{
  display:block;
  margin-top:5px;
  font-size:11px;
  color:var(--muted);
}


/* ---------- MODULE GRID ---------- */

.staff-module-section{
  padding:20px;
}

.staff-page .module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}


/* ---------- MODULE CARD BASE ---------- */

.staff-page .module-card{
  min-height:112px;
  position:relative;
  display:flex;
  align-items:center;
  gap:17px;
  padding:16px 17px;
  border:1px solid;
  border-radius:17px;
  text-decoration:none;
  overflow:hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.staff-page .module-card::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:currentColor;
}

.staff-page .module-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(9,24,41,.10);
}

.staff-page .module-card:focus-visible{
  outline:3px solid rgba(18,126,111,.20);
  outline-offset:2px;
}


/* ---------- MODULE ICON ---------- */

.staff-page .module-icon{
  width:68px;
  height:68px;
  flex:0 0 68px;
  border-radius:19px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.staff-page .module-icon svg{
  width:40px;
  height:40px;
}

.staff-page .module-copy{
  min-width:0;
  flex:1 1 auto;
}

.staff-page .module-copy strong{
  display:block;
  color:var(--ink);
  font-size:18px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.staff-page .module-copy span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.staff-page .module-arrow{
  flex:0 0 auto;
  font-size:31px;
  line-height:1;
  font-weight:300;
  color:currentColor;
  margin-left:auto;
}


/* ---------- POS — BLUE ---------- */

.staff-page .module-pos{
  color:#1876d1;
  background:#f1f8ff;
  border-color:#c9e1fb;
}

.staff-page .module-pos .module-icon{
  background:#deedff;
}


/* ---------- CASH & CREDIT — GREEN ---------- */

.staff-page .module-finance{
  color:#087c68;
  background:#f1fbf7;
  border-color:#ccece1;
}

.staff-page .module-finance .module-icon{
  background:#daf4eb;
}


/* ---------- ORDERS — ORANGE ---------- */

.staff-page .module-orders{
  color:#e66b00;
  background:#fff7ed;
  border-color:#f4d8b8;
}

.staff-page .module-orders .module-icon{
  background:#ffebd0;
}


/* ---------- KITCHEN — AMBER ---------- */

.staff-page .module-kitchen{
  color:#d98a00;
  background:#fff9e9;
  border-color:#f1ddb0;
}

.staff-page .module-kitchen .module-icon{
  background:#fff0ca;
}


/* ---------- INVENTORY — PURPLE ---------- */

.staff-page .module-inventory{
  color:#6840c5;
  background:#f8f4ff;
  border-color:#ddd0fa;
}

.staff-page .module-inventory .module-icon{
  background:#eee5ff;
}


/* ---------- RESTOCKING — RED/PINK ---------- */

.staff-page .module-restocking{
  color:#c52250;
  background:#fff2f5;
  border-color:#f1c8d5;
}

.staff-page .module-restocking .module-icon{
  background:#ffe1ea;
}


/* ---------- ACCOUNTING — TEAL ---------- */

.staff-page .module-accounting{
  color:#087c68;
  background:#f1fbf7;
  border-color:#ccece1;
}

.staff-page .module-accounting .module-icon{
  background:#daf4eb;
}


/* ---------- MOMO — BLUE ---------- */

.staff-page .module-momo{
  color:#1876d1;
  background:#f1f8ff;
  border-color:#c9e1fb;
}

.staff-page .module-momo .module-icon{
  background:#deedff;
}


/* ---------- PRODUCTS — PINK ---------- */

.staff-page .module-products{
  color:#c52267;
  background:#fff2f7;
  border-color:#f1cadb;
}

.staff-page .module-products .module-icon{
  background:#ffe1ec;
}


/* ---------- SUPER ADMIN — PURPLE ---------- */

.staff-page .module-admin{
  color:#6840c5;
  background:#f8f4ff;
  border-color:#ddd0fa;
}

.staff-page .module-admin .module-icon{
  background:#eee5ff;
}


/* ---------- SYSTEM HEALTH — GREEN ---------- */

.staff-page .module-health{
  color:#087c68;
  background:#f1fbf7;
  border-color:#ccece1;
}

.staff-page .module-health .module-icon{
  background:#daf4eb;
}


/* ---------- RESPONSIVE ---------- */

@media(max-width:900px){

  .staff-hero{
    grid-template-columns:72px minmax(0,1fr);
  }

  .staff-notification{
    grid-column:1 / -1;
    width:100%;
  }

  .staff-page .module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}

@media(max-width:620px){

  .staff-hero{
    grid-template-columns:1fr;
  }

  .staff-hero-icon{
    width:64px;
    height:64px;
    border-radius:18px;
  }

  .staff-hero-icon svg{
    width:40px;
    height:40px;
  }

  .staff-hero h1{
    font-size:25px;
  }

  .staff-page .module-grid{
    grid-template-columns:1fr;
  }

  .staff-module-section{
    padding:14px;
  }

}

@media(max-width:430px){

  .staff-page .module-card{
    min-height:100px;
    padding:14px;
  }

  .staff-page .module-icon{
    width:58px;
    height:58px;
    flex-basis:58px;
    border-radius:17px;
  }

  .staff-page .module-icon svg{
    width:34px;
    height:34px;
  }

  .staff-page .module-copy strong{
    font-size:17px;
  }

}


/* =========================================================
   DEM STAFF PORTAL — COMPACT MODULE CARDS V2
   ========================================================= */

.staff-page .module-grid{
  gap:12px;
}

.staff-page .module-card{
  min-height:88px;
  padding:12px 14px;
  gap:13px;
  border-radius:14px;
}

.staff-page .module-icon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:15px;
}

.staff-page .module-icon svg{
  width:32px;
  height:32px;
}

.staff-page .module-copy strong{
  font-size:16px;
  line-height:1.15;
}

.staff-page .module-copy span{
  margin-top:4px;
  font-size:11px;
  line-height:1.35;
}

.staff-page .module-arrow{
  font-size:25px;
}


/* Keep the compact proportions on smaller screens */
@media(max-width:430px){

  .staff-page .module-card{
    min-height:82px;
    padding:11px 12px;
  }

  .staff-page .module-icon{
    width:50px;
    height:50px;
    flex-basis:50px;
    border-radius:14px;
  }

  .staff-page .module-icon svg{
    width:30px;
    height:30px;
  }

  .staff-page .module-copy strong{
    font-size:15px;
  }

}


/* =========================================================
   DEM ADMIN — NOTIFICATIONS COMPACT DESIGN V1
   ========================================================= */

.admin-notifications-head{
  align-items:center;
  gap:18px;
}

.admin-notifications-head h2{
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.02em;
  margin:.2rem 0 .3rem;
}

.admin-notifications-subtitle{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

.admin-notifications-toggle{
  flex:0 0 auto;
  min-width:155px;
  min-height:36px;
  border-radius:10px;
  font-size:11px;
  font-weight:700;
}

.admin-notifications-panel{
  margin-top:16px;
}

.admin-notifications-panel[hidden]{
  display:none;
}

.admin-notifications-list{
  display:grid;
  gap:10px;
}

.admin-notification-card{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:13px 15px;
  margin:0;
  border-radius:14px;
  box-shadow:none;
}

.admin-notification-card.is-unread{
  border-left:3px solid var(--brand);
  background:#f8fcfb;
}

.admin-notification-card.is-read{
  opacity:.82;
}

.admin-notification-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.admin-notification-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#087c68;
  background:#e1f6ef;
  border:1px solid #c8eadf;
}

.admin-notification-icon svg{
  width:25px;
  height:25px;
}

.admin-notification-content{
  min-width:0;
}

.admin-notification-content strong{
  display:block;
  color:var(--ink);
  font-size:14px;
  line-height:1.25;
}

.admin-notification-content p{
  margin:4px 0 5px;
  color:#38516a;
  font-size:12px;
  line-height:1.4;
}

.admin-notification-content small{
  display:block;
  font-size:10px;
  line-height:1.3;
}

.admin-notification-read{
  flex:0 0 auto;
  min-height:32px;
  padding:6px 11px;
  font-size:10px;
  border-radius:9px;
}

@media(max-width:650px){

  .admin-notifications-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-notifications-toggle{
    width:100%;
  }

  .admin-notification-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-notification-read{
    margin-left:54px;
  }

}

/* DEM PUBLIC ORDER — CATEGORY BEAUTIFICATION V1 */

body:has(.public-menu-section){
  background:
    radial-gradient(circle at 8% 0%,rgba(22,132,110,.055),transparent 30%),
    linear-gradient(180deg,#f4f8fb 0%,#eef4f8 100%);
}

body:has(.public-menu-section) .top{
  min-height:58px;
  padding:0 max(18px,calc((100vw - 1280px)/2));
  background:rgba(255,255,255,.97);
}

body:has(.public-menu-section) .top .brand{
  font-size:15px;
  font-weight:850;
  color:#102b4c;
}

body:has(.public-menu-section) .top nav{
  gap:7px;
}

body:has(.public-menu-section) .top nav .btn{
  min-height:34px;
  padding:8px 12px;
  border-radius:9px;
  font-size:11px;
  font-weight:800;
}

body:has(.public-menu-section) .wrap{
  max-width:1280px;
  padding:18px 18px 34px;
}

body:has(.public-menu-section) .hero{
  position:relative;
  overflow:hidden;
  min-height:126px;
  padding:22px 24px;
  border:1px solid #d7e3eb;
  border-radius:17px;
  background:
    radial-gradient(circle at 88% 25%,rgba(28,151,125,.10),transparent 24%),
    linear-gradient(135deg,#ffffff 0%,#ffffff 62%,#f0faf7 100%);
  box-shadow:0 10px 28px rgba(16,35,63,.07);
}

body:has(.public-menu-section) .hero::after{
  content:"";
  position:absolute;
  right:-35px;
  bottom:-65px;
  width:180px;
  height:180px;
  border-radius:50%;
  border:28px solid rgba(20,117,101,.055);
  pointer-events:none;
}

body:has(.public-menu-section) .hero h1{
  margin:3px 0 5px;
  font-size:26px;
  font-weight:900;
  letter-spacing:-.035em;
  color:#0e2849;
}

body:has(.public-menu-section) .hero p{
  margin:0;
  max-width:680px;
  font-size:12px;
  line-height:1.45;
  color:#526a82;
}

body:has(.public-menu-section) .hero .eyebrow{
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}

body:has(.public-menu-section) .count{
  min-width:88px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid #d5e2eb;
  background:rgba(255,255,255,.84);
  box-shadow:0 5px 15px rgba(16,35,63,.05);
}

body:has(.public-menu-section) .count strong{
  font-size:20px;
}

body:has(.public-menu-section) .count small{
  font-size:9px;
}

body:has(.public-menu-section) main > .notice{
  margin-top:9px;
  padding:8px 12px;
  border-radius:9px;
  font-size:10px;
  box-shadow:none;
}

body:has(.public-menu-section) .public-menu-section{
  position:relative;
  overflow:hidden;
  margin-top:12px;
  padding:14px 15px 15px;
  border-radius:15px;
  box-shadow:0 7px 20px rgba(16,35,63,.045);
}

body:has(.public-menu-section) .public-menu-section::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:var(--category-accent);
}

body:has(.public-menu-section) .menu-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}

body:has(.public-menu-section) .menu-section-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

body:has(.public-menu-section) .menu-section-title > div{
  min-width:0;
}

body:has(.public-menu-section) .menu-section-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  background:var(--category-icon-bg);
  color:var(--category-accent);
}

body:has(.public-menu-section) .menu-section-icon::before{
  font-size:18px;
  line-height:1;
}

body:has(.public-menu-section) .menu-section-title h2{
  margin:0;
  font-size:17px;
  line-height:1.15;
  letter-spacing:-.02em;
  color:#102b4c;
}

body:has(.public-menu-section) .menu-section-title .muted{
  margin:3px 0 0;
  font-size:10px;
  line-height:1.3;
}

body:has(.public-menu-section) .menu-section-count{
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:999px;
  background:var(--category-count-bg);
  color:var(--category-accent);
  font-size:9px;
  font-weight:850;
}

body:has(.public-menu-section) .public-menu-section .product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

body:has(.public-menu-section) .public-menu-section .product-card{
  min-height:132px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  border:1px solid var(--category-card-border);
  border-radius:12px;
  background:rgba(255,255,255,.88);
  box-shadow:0 4px 12px rgba(16,35,63,.035);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
}

body:has(.public-menu-section) .public-menu-section .product-card:hover{
  transform:translateY(-2px);
  border-color:var(--category-accent);
  box-shadow:0 9px 20px rgba(16,35,63,.08);
}

body:has(.public-menu-section) .product-card-content{
  min-width:0;
  flex:1 1 auto;
}

body:has(.public-menu-section) .product-card h3{
  margin:0;
  font-size:13px;
  line-height:1.25;
  font-weight:850;
  color:#102b4c;
}

body:has(.public-menu-section) .product-card .muted{
  min-height:0;
  margin:4px 0 0;
  font-size:10px;
  line-height:1.35;
  color:#64778b;
}

body:has(.public-menu-section) .product-card-footer{
  display:grid;
  gap:7px;
  margin-top:auto;
}

body:has(.public-menu-section) .product-card-footer strong{
  display:block;
  font-size:14px;
  line-height:1;
  color:var(--category-accent);
}

body:has(.public-menu-section) .product-card-footer .add{
  width:100%;
  margin:0;
  min-height:30px;
  padding:7px 8px;
  border:0;
  border-radius:8px;
  background:var(--category-accent);
  color:#fff;
  font-size:10px;
  font-weight:850;
  box-shadow:none;
}

body:has(.public-menu-section) .product-card-footer .add:hover{
  filter:brightness(.96);
  transform:none;
}

/* FOOD */
body:has(.public-menu-section) .public-menu-section[data-category="food"]{
  --category-accent:#e87819;
  --category-icon-bg:#ffead5;
  --category-count-bg:#fff0e1;
  --category-card-border:#f2d3b6;
  background:linear-gradient(135deg,#fff8f1 0%,#fff3e7 100%);
  border-color:#f1d5bd;
}

body:has(.public-menu-section) .public-menu-section[data-category="food"] .menu-section-icon::before{
  content:"🍽";
}

/* DRINKS */
body:has(.public-menu-section) .public-menu-section[data-category="drinks"]{
  --category-accent:#1779dc;
  --category-icon-bg:#dceeff;
  --category-count-bg:#eaf4ff;
  --category-card-border:#c7def5;
  background:linear-gradient(135deg,#f2f8ff 0%,#e8f4ff 100%);
  border-color:#c9def2;
}

body:has(.public-menu-section) .public-menu-section[data-category="drinks"] .menu-section-icon::before{
  content:"🥤";
}

/* WATER */
body:has(.public-menu-section) .public-menu-section[data-category="water"]{
  --category-accent:#139574;
  --category-icon-bg:#d9f4e9;
  --category-count-bg:#e8f8f1;
  --category-card-border:#c3e5d8;
  background:linear-gradient(135deg,#f0fbf7 0%,#e5f7f0 100%);
  border-color:#c7e5da;
}

body:has(.public-menu-section) .public-menu-section[data-category="water"] .menu-section-icon::before{
  content:"💧";
}

/* SNACKS */
body:has(.public-menu-section) .public-menu-section[data-category="snacks"]{
  --category-accent:#7546d8;
  --category-icon-bg:#ebe2ff;
  --category-count-bg:#f1ebff;
  --category-card-border:#d9caf5;
  background:linear-gradient(135deg,#f8f4ff 0%,#f0e9ff 100%);
  border-color:#d9cdf2;
}

body:has(.public-menu-section) .public-menu-section[data-category="snacks"] .menu-section-icon::before{
  content:"🍿";
}

/* CART */
body:has(.public-menu-section) main > .card:last-of-type{
  margin-top:14px;
  padding:15px;
  border-radius:15px;
  box-shadow:0 8px 22px rgba(16,35,63,.06);
}

body:has(.public-menu-section) main > .card:last-of-type .section-head h2{
  font-size:17px;
}

body:has(.public-menu-section) #cartTotal{
  font-size:15px;
  color:var(--brand2);
}

/* RESPONSIVE */
@media(max-width:1050px){
  body:has(.public-menu-section) .public-menu-section .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px){
  body:has(.public-menu-section) .hero{
    padding:18px;
  }

  body:has(.public-menu-section) .hero h1{
    font-size:22px;
  }

  body:has(.public-menu-section) .public-menu-section .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  body:has(.public-menu-section) .wrap{
    padding:10px 10px 24px;
  }

  body:has(.public-menu-section) .top{
    padding:8px 12px;
  }

  body:has(.public-menu-section) .top nav{
    gap:4px;
  }

  body:has(.public-menu-section) .top nav .btn{
    padding:7px 9px;
    font-size:10px;
  }

  body:has(.public-menu-section) .hero{
    min-height:110px;
    padding:15px;
  }

  body:has(.public-menu-section) .hero h1{
    font-size:19px;
  }

  body:has(.public-menu-section) .hero p{
    font-size:10px;
  }

  body:has(.public-menu-section) .count{
    display:none;
  }

  body:has(.public-menu-section) .public-menu-section{
    padding:12px;
  }

  body:has(.public-menu-section) .menu-section-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
  }

  body:has(.public-menu-section) .menu-section-title h2{
    font-size:15px;
  }

  body:has(.public-menu-section) .public-menu-section .product-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  body:has(.public-menu-section) .public-menu-section .product-card{
    min-height:125px;
    padding:10px;
  }
}


/* DEM STAFF HOME — PERSISTENT NAVIGATION V1 */

.staff-home-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:34px;
  padding:7px 12px;
  border:1px solid #bfe8dc !important;
  border-radius:10px;
  background:linear-gradient(135deg,#e8fbf5 0%,#d8f5ec 100%) !important;
  color:#08735f !important;
  font-size:11px;
  font-weight:850;
  line-height:1;
  text-decoration:none;
  box-shadow:0 3px 10px rgba(10,112,91,.10);
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    border-color .14s ease,
    background .14s ease;
}

.staff-home-link:hover{
  transform:translateY(-1px);
  border-color:#8fd6c5 !important;
  background:linear-gradient(135deg,#dcf8ef 0%,#c9f0e4 100%) !important;
  color:#075d4d !important;
  box-shadow:0 6px 16px rgba(10,112,91,.16);
}

.staff-home-link:active{
  transform:translateY(0);
}

.staff-home-icon{
  width:17px;
  height:17px;
  flex:0 0 17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.staff-home-link span{
  white-space:nowrap;
}

@media(max-width:650px){
  .staff-home-link{
    min-height:32px;
    padding:7px 9px;
    gap:5px;
    font-size:10px;
  }

  .staff-home-icon{
    width:16px;
    height:16px;
    flex-basis:16px;
  }
}


/* DEM ORDER TRACKING — BEAUTIFICATION V1 */

.track-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 7% 25%,rgba(24,153,128,.075),transparent 24%),
    radial-gradient(circle at 94% 82%,rgba(30,167,202,.065),transparent 27%),
    linear-gradient(180deg,#f7fbfd 0%,#eef5f8 100%);
  color:#102b4c;
}

.track-top{
  min-height:60px;
  padding:7px max(18px,calc((100vw - 1280px)/2));
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #d7e4eb;
  box-shadow:0 3px 15px rgba(16,43,76,.045);
}

.track-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:850;
  line-height:1.15;
  color:#102b4c;
}

.track-brand small{
  display:block;
  margin-top:3px;
  color:#71839a;
  font-size:10px;
  font-weight:600;
}

.track-brand-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#fff;
  background:linear-gradient(145deg,#11a37f,#08735f);
  box-shadow:0 6px 14px rgba(8,115,95,.18);
}

.track-brand-icon svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.track-top nav{
  gap:8px;
}

.track-nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:35px;
  padding:8px 12px;
  border:1px solid #d5ebe5 !important;
  border-radius:10px;
  background:#eaf8f4 !important;
  color:#08735f !important;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
  box-shadow:none;
}

.track-nav-btn svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.track-nav-btn:hover{
  transform:translateY(-1px);
  background:#dff4ed !important;
  border-color:#b9dfd4 !important;
  color:#075d4d !important;
}

.track-login-btn{
  background:#e2f5ef !important;
}

.track-wrap{
  width:min(1280px,calc(100% - 32px));
  max-width:none;
  margin:0 auto;
  padding:34px 0 48px;
}

/* HERO */

.track-hero{
  position:relative;
  min-height:330px;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);
  align-items:center;
  overflow:hidden;
  padding:30px 50px;
  border:1px solid #d6e5eb;
  border-radius:22px;
  background:
    radial-gradient(circle at 78% 48%,rgba(19,157,126,.10),transparent 27%),
    linear-gradient(135deg,#ffffff 0%,#fbfefe 55%,#effaf7 100%);
  box-shadow:0 13px 35px rgba(16,43,76,.07);
}

.track-hero::before{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  left:-150px;
  bottom:-175px;
  border-radius:50%;
  border:45px solid rgba(35,165,207,.055);
}

.track-hero-copy{
  position:relative;
  z-index:3;
  max-width:680px;
}

.track-eyebrow{
  display:flex;
  align-items:center;
  gap:7px;
  color:#087c68;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
}

.track-eyebrow-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#16a27e;
  box-shadow:0 0 0 4px rgba(22,162,126,.11);
}

.track-hero h1{
  margin:7px 0 7px;
  color:#0d294b;
  font-size:39px;
  line-height:1.05;
  letter-spacing:-.045em;
  font-weight:900;
}

.track-hero-copy > p{
  max-width:670px;
  margin:0;
  color:#536a82;
  font-size:14px;
  line-height:1.55;
}

.track-hero-note{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:20px;
  padding:10px 14px;
  border:1px solid #c9ece1;
  border-radius:12px;
  background:#eaf9f4;
  color:#08735f;
  font-size:12px;
  font-weight:750;
}

.track-note-icon{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  flex:0 0 27px;
  border-radius:50%;
  color:#fff;
  background:#13a17d;
}

.track-note-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Decorative hero artwork */

.track-hero-art{
  position:relative;
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.track-art-circle{
  position:absolute;
  width:285px;
  height:285px;
  border-radius:50%;
  background:rgba(20,165,132,.075);
}

.track-food-bag{
  position:relative;
  z-index:4;
  width:190px;
  height:220px;
  transform:rotate(4deg);
  filter:drop-shadow(0 15px 15px rgba(16,73,65,.13));
}

.track-bag-paper{
  position:absolute;
  inset:20px 10px 0;
  border-radius:12px 12px 22px 22px;
  background:linear-gradient(135deg,#ffffff,#edf7f5);
  clip-path:polygon(9% 0,91% 4%,100% 100%,0 96%);
  box-shadow:inset 0 0 0 1px #dce9e7;
}

.track-receipt{
  position:absolute;
  top:-25px;
  left:68px;
  width:68px;
  height:72px;
  padding:17px 10px;
  background:#fff;
  transform:rotate(-4deg);
  clip-path:polygon(0 0,100% 6%,92% 100%,0 94%);
  box-shadow:0 3px 7px rgba(16,43,76,.08);
}

.track-receipt span{
  display:block;
  height:4px;
  margin-bottom:8px;
  border-radius:4px;
  background:#a9b9c7;
}

.track-receipt span:nth-child(2){width:80%;}
.track-receipt span:nth-child(3){width:60%;}

.track-food-logo{
  position:absolute;
  left:50%;
  top:50%;
  width:66px;
  height:66px;
  display:grid;
  place-items:center;
  transform:translate(-50%,-35%);
  border-radius:18px;
  color:#fff;
  background:linear-gradient(145deg,#12a17d,#08735f);
  box-shadow:0 8px 18px rgba(8,115,95,.18);
}

.track-food-logo svg{
  width:37px;
  height:37px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.track-leaf{
  position:absolute;
  z-index:2;
  width:72px;
  height:125px;
  border-radius:100% 0 100% 0;
  background:linear-gradient(145deg,#2aa980,#087c68);
  transform-origin:bottom center;
  opacity:.92;
}

.leaf-one{left:75px;top:83px;transform:rotate(-31deg);}
.leaf-two{left:116px;top:62px;transform:rotate(-8deg) scale(.9);}
.leaf-three{right:76px;top:87px;transform:rotate(30deg) scale(.92);}
.leaf-four{right:118px;top:72px;transform:rotate(7deg) scale(.78);}

.track-spark{
  position:absolute;
  z-index:5;
  width:7px;
  height:35px;
  border-radius:10px;
  background:#0e9d7b;
  transform:rotate(25deg);
}

.spark-one{right:42px;top:55px;}
.spark-two{right:18px;top:80px;transform:rotate(55deg);}
.spark-three{right:72px;top:32px;transform:rotate(15deg);}

.track-art-message{
  position:absolute;
  right:8px;
  bottom:30px;
  z-index:6;
  display:flex;
  flex-direction:column;
  color:#087c68;
  transform:rotate(-5deg);
}

.track-art-message strong{
  font-family:cursive;
  font-size:25px;
  line-height:1;
}

.track-art-message span{
  margin-top:4px;
  font-family:cursive;
  font-size:23px;
  line-height:1;
}

/* FORM */

.track-form-card{
  position:relative;
  z-index:10;
  margin:0 55px;
  padding:22px 28px 25px;
  border:1px solid #d6e4eb;
  border-radius:18px;
  background:rgba(255,255,255,.97);
  box-shadow:0 12px 30px rgba(16,43,76,.075);
}

.track-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.track-field{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:76px;
  padding:9px 14px;
  border:1px solid #d5e3eb;
  border-radius:13px;
  background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease;
}

.track-field:focus-within{
  border-color:#6bc6b0;
  box-shadow:0 0 0 3px rgba(20,157,126,.08);
}

.track-field-icon{
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  flex:0 0 45px;
  border-radius:13px;
  color:#0d9a78;
  background:#e5f7f1;
}

.track-field-icon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.track-field label{
  display:block;
  min-width:0;
  flex:1;
  margin:0;
}

.track-field label > span{
  display:block;
  margin-bottom:3px;
  color:#102b4c;
  font-size:11px;
  font-weight:800;
}

.track-field input{
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#263c55;
  font-size:15px;
  font-weight:600;
  box-shadow:none;
}

.track-field input::placeholder{
  color:#a4afbd;
  font-weight:500;
}

.track-submit{
  grid-column:1 / -1;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:2px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg,#11977b,#08735f);
  color:#fff;
  font-size:14px;
  font-weight:850;
  box-shadow:0 7px 17px rgba(8,115,95,.16);
  cursor:pointer;
  transition:transform .14s ease,box-shadow .14s ease,filter .14s ease;
}

.track-submit:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
  box-shadow:0 10px 22px rgba(8,115,95,.22);
}

.track-submit svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* RESULT */

.track-form-card #trackResult{
  margin-top:14px;
}

.track-form-card #trackResult:empty{
  display:none;
}

/* HOW IT WORKS */

.track-how{
  padding:36px 28px 10px;
}

.track-section-title{
  display:flex;
  align-items:center;
  gap:16px;
  color:#8093aa;
  font-size:11px;
  letter-spacing:.22em;
  font-weight:900;
}

.track-section-title span{
  height:1px;
  flex:1;
  background:#d1dfe7;
}

.track-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:35px;
  margin:27px 10px 28px;
}

.track-step{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.track-step-icon{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  flex:0 0 58px;
  border-radius:17px;
}

.track-step-icon svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.track-step-blue{
  color:#149ee1;
  background:#dff3ff;
}

.track-step-orange{
  color:#f0a018;
  background:#fff0d0;
}

.track-step-green{
  color:#0a9a78;
  background:#dcf6ee;
}

.track-step strong{
  display:block;
  margin:4px 0 5px;
  color:#102b4c;
  font-size:15px;
  line-height:1.2;
}

.track-step p{
  margin:0;
  color:#63768d;
  font-size:12px;
  line-height:1.5;
}

.track-help{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  max-width:1160px;
  margin:0 auto;
  padding:12px 18px;
  border:1px solid #c8ebe1;
  border-radius:13px;
  background:#e7f8f2;
  color:#08735f;
  font-size:12px;
  line-height:1.4;
  text-align:center;
}

.track-help-icon{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:50%;
  background:#0b9979;
  color:#fff;
  font-size:14px;
  font-weight:900;
}

/* RESPONSIVE */

@media(max-width:1000px){

  .track-hero{
    grid-template-columns:1fr;
    padding:30px 35px 15px;
  }

  .track-hero-art{
    min-height:230px;
    margin-top:5px;
  }

  .track-form-card{
    margin:0 25px;
  }
}

@media(max-width:760px){

  .track-top{
    padding:8px 14px;
  }

  .track-brand{
    font-size:13px;
  }

  .track-brand-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
  }

  .track-nav-btn span{
    display:none;
  }

  .track-nav-btn{
    width:36px;
    height:34px;
    padding:7px;
  }

  .track-nav-btn svg{
    width:18px;
    height:18px;
  }

  .track-wrap{
    width:calc(100% - 20px);
    padding-top:15px;
  }

  .track-hero{
    min-height:0;
    padding:25px 22px 5px;
    border-radius:17px;
  }

  .track-hero h1{
    font-size:29px;
  }

  .track-hero-copy > p{
    font-size:12px;
  }

  .track-hero-art{
    transform:scale(.84);
    margin-top:-5px;
    margin-bottom:-20px;
  }

  .track-form-card{
    margin:0;
    padding:16px;
    border-radius:15px;
  }

  .track-form{
    grid-template-columns:1fr;
  }

  .track-submit{
    grid-column:auto;
  }

  .track-steps{
    grid-template-columns:1fr;
    gap:18px;
    margin-left:0;
    margin-right:0;
  }

  .track-how{
    padding:28px 8px 5px;
  }

  .track-help{
    text-align:left;
  }
}

@media(max-width:480px){

  .track-brand > span:last-child{
    font-size:12px;
  }

  .track-brand small{
    font-size:9px;
  }

  .track-hero{
    padding:22px 17px 0;
  }

  .track-hero h1{
    font-size:25px;
  }

  .track-hero-note{
    font-size:10px;
  }

  .track-hero-art{
    transform:scale(.70);
    margin-top:-25px;
    margin-bottom:-50px;
  }

  .track-field{
    min-height:68px;
    padding:8px 11px;
  }

  .track-field-icon{
    width:39px;
    height:39px;
    flex-basis:39px;
  }

  .track-field input{
    font-size:13px;
  }

  .track-step-icon{
    width:50px;
    height:50px;
    flex-basis:50px;
    border-radius:14px;
  }

  .track-step strong{
    font-size:13px;
  }

  .track-step p{
    font-size:11px;
  }

  .track-help{
    padding:11px 12px;
    font-size:10px;
  }
}


/* DEM ORDER TRACKING — COMPACT HERO V2 */

/* Keep the hero aligned with the main tracking card */
.track-page .track-hero{
  margin:0 55px;
  min-height:255px;
  padding:24px 30px;
  border-radius:18px;
}

/* Reduce the main heading to approximately 2/3 of its original size */
.track-page .track-hero h1{
  font-size:26px;
  line-height:1.12;
  letter-spacing:-.035em;
  margin:5px 0 6px;
}

.track-page .track-hero-copy > p{
  max-width:610px;
  font-size:12px;
  line-height:1.45;
}

.track-page .track-eyebrow{
  font-size:10px;
}

.track-page .track-hero-note{
  margin-top:14px;
  padding:8px 11px;
  font-size:10px;
  border-radius:10px;
}

.track-page .track-note-icon{
  width:24px;
  height:24px;
  flex-basis:24px;
}

.track-page .track-note-icon svg{
  width:14px;
  height:14px;
}

/* Make the artwork proportionate to the smaller hero */
.track-page .track-hero-art{
  min-height:235px;
  transform:scale(.82);
  transform-origin:center;
}

.track-page .track-art-circle{
  width:245px;
  height:245px;
}

.track-page .track-food-bag{
  width:165px;
  height:195px;
}

.track-page .track-receipt{
  left:59px;
  width:60px;
  height:64px;
}

.track-page .track-food-logo{
  width:58px;
  height:58px;
  border-radius:16px;
}

.track-page .track-food-logo svg{
  width:32px;
  height:32px;
}

.track-page .track-art-message strong{
  font-size:22px;
}

.track-page .track-art-message span{
  font-size:20px;
}

/* Keep the tracking form aligned to the same card width */
.track-page .track-form-card{
  margin:0 55px;
}

/* Make the How It Works area follow the same visual width */
.track-page .track-how{
  margin:0 55px;
}

/* Tablet */
@media(max-width:1000px){
  .track-page .track-hero{
    margin:0 25px;
    min-height:245px;
  }

  .track-page .track-form-card{
    margin:0 25px;
  }

  .track-page .track-how{
    margin:0 25px;
  }
}

/* Mobile */
@media(max-width:760px){
  .track-page .track-hero{
    margin:0;
    min-height:0;
    padding:22px 20px 5px;
  }

  .track-page .track-hero h1{
    font-size:25px;
  }

  .track-page .track-form-card{
    margin:0;
  }

  .track-page .track-how{
    margin:0;
  }

  .track-page .track-hero-art{
    transform:scale(.76);
  }
}

@media(max-width:480px){
  .track-page .track-hero h1{
    font-size:23px;
  }

  .track-page .track-hero{
    padding:20px 16px 0;
  }
}


/* =========================================================
   PUBLIC ORDERING PAGE — BUTTON POLISH
   Scoped only to the public menu/order page.
   ========================================================= */

/* Continue to details */
body:has(.public-menu-section) #checkout{
  min-height:48px;
  padding:12px 20px;
  border-radius:12px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
  background:linear-gradient(135deg,var(--brand),#0f6b5a);
  color:#fff;
  box-shadow:0 6px 16px rgba(20,117,101,.18);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    opacity .18s ease;
}

body:has(.public-menu-section) #checkout:hover:not(:disabled){
  transform:translateY(-2px);
  background:linear-gradient(135deg,#106b5c,#0b5c4e);
  box-shadow:0 9px 20px rgba(20,117,101,.24);
}

body:has(.public-menu-section) #checkout:active:not(:disabled){
  transform:translateY(0);
  box-shadow:0 4px 10px rgba(20,117,101,.18);
}

body:has(.public-menu-section) #checkout:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

/* Public-page Staff Login */
body:has(.public-menu-section) .top nav a[href="/login.php"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 16px;
  border-radius:11px;
  background:#eef4f2;
  color:var(--brand2);
  border:1px solid transparent;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

body:has(.public-menu-section) .top nav a[href="/login.php"]:hover{
  transform:translateY(-1px);
  background:#e3efeb;
  color:#0d5145;
  box-shadow:0 5px 14px rgba(16,35,63,.10);
}

body:has(.public-menu-section) .top nav a[href="/login.php"]:active{
  transform:translateY(0);
  box-shadow:none;
}

/* Keep public-page navigation buttons visually consistent */
body:has(.public-menu-section) .top nav .btn{
  min-height:38px;
  border-radius:11px;
  padding:9px 16px;
  font-size:13px;
  font-weight:900;
}


/* =========================================================
   PUBLIC ORDERING — HIDE STOCK LEVELS
   Keep stock data available to JavaScript internally,
   but do not expose quantities to customers.
   ========================================================= */

body:has(.public-menu-section) .public-stock-note{
  display:none;
}

