:root{
  --g:#2f4f2f;--g2:#3d6b3d;--ink:#1b1b1b;--bg:#f4f1ea;--card:#fff;--line:#2f4f2f;
  --err:#8b1e1e;--ok:#1e5a32;--warn:#8a5a00;--bar:#111;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,Segoe UI,system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:16px}
a{color:inherit}
.wrap{max-width:1100px;margin:0 auto;padding:12px}
.top{background:var(--g);color:#fff;padding:10px 14px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.top a{color:#fff;text-decoration:none;margin-right:10px;opacity:.9}
.brand{font-weight:700}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;margin:10px 0}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;align-items:stretch}
body.cust .grid,body.cust .menu-grid{grid-template-columns:1fr 1fr;gap:10px}
.item-card{background:#fff;border-radius:14px;border:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.item-card .thumb{height:120px;background:linear-gradient(135deg,var(--g),#89a67a);display:block;width:100%;object-fit:cover}
.item-card .meta{padding:10px;display:flex;flex-direction:column;gap:6px;flex:1}
.item-card .meta .nama{font-weight:700;font-size:14px;line-height:1.3}
.item-card .meta .btn,.item-card .meta form{width:100%}
.item-card .meta .btn{text-align:center}
.btn{display:inline-block;border:0;border-radius:10px;padding:10px 14px;background:var(--g);color:#fff;font-weight:600;cursor:pointer;text-decoration:none}
.btn.sec{background:#e8efe8;color:var(--g)}
.btn.warn{background:#7a3b00}
.btn.danger{background:var(--err)}
.btn.big{padding:14px 18px;font-size:18px;width:100%}
input,select,textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit}
label{font-size:13px;color:#444;display:block;margin:8px 0 4px}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left;font-size:14px;vertical-align:middle}
.flash{padding:10px;border-radius:10px;margin:8px 0}
.flash.ok{background:#e5f4ea}
.flash.err{background:#f8e4e4}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#eee;font-size:12px}
.price{font-weight:700;color:var(--g)}
.nav-int a{display:inline-block;padding:6px 8px}
.muted{color:#666;font-size:13px}
.cust-bar{position:sticky;top:0;z-index:5;background:var(--g);color:#fff;padding:12px 14px;display:flex;justify-content:space-between}
.item-card{background:#fff;border-radius:14px;border:1px solid var(--line);overflow:hidden}
.thumb{height:92px;background:linear-gradient(135deg,var(--g),#89a67a);display:flex;align-items:flex-end;padding:8px;color:#fff;font-weight:700}
.item-card.habis{opacity:.45}
.bottom-cart{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:10px}
.kds{background:#111;color:#f5f5f5;min-height:100vh}
.kds .tabs a{display:inline-block;padding:10px 16px;margin:4px;border-radius:10px;background:#222;color:#fff;text-decoration:none}
.kds .tabs a.on{background:#3d6b3d}
.ticket{background:#1c1c1c;border:1px solid #333;border-radius:12px;padding:12px;margin:8px}
.ticket h3{margin:0 0 8px}
.print80{width:80mm;margin:0 auto;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#000;background:#fff}
@media print{
  body{background:#fff}
  .no-print{display:none!important}
  .print80{width:80mm}
}
@media (max-width:700px){
  .hide-sm{display:none}
}
body.pos-shell{
  display:flex;min-height:100vh;background:#121416;color:#e8eaed;
  --bg:#121416;--card:#1c1f22;--line:#2f4f2f;--ink:#e8eaed;--g:#2e7d4f;
}
body.pos-shell .side{
  width:232px;flex-shrink:0;background:#0e1113;border-right:1px solid #222;
  padding:14px 10px;display:flex;flex-direction:column;gap:2px;overflow:auto;
}
body.pos-shell .side a{display:block;color:#c9cdc8;text-decoration:none;padding:8px 10px;border-radius:8px;font-size:14px}
body.pos-shell .side a:hover{background:#1a2420;color:#fff}
body.pos-shell .side-brand{display:flex;gap:10px;align-items:center;padding:8px 8px 16px;color:#fff}
body.pos-shell .side-logo{width:36px;height:36px;border-radius:10px;background:#2e7d4f;display:flex;align-items:center;justify-content:center;font-weight:800}
body.pos-shell .side-sec{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#7d867f;padding:12px 10px 4px}
body.pos-shell .side-foot{margin-top:auto;padding:16px 10px 8px;font-size:12px;color:#9aa}
body.pos-shell .side-foot a{display:inline;color:#8fca9a}
body.pos-shell .main{flex:1;padding:18px 22px;overflow:auto}
body.pos-shell .card{background:#1c1f22;border:1px solid #2f4f2f;color:#e8eaed}
body.pos-shell table{background:transparent;color:#e8eaed;border:0}
body.pos-shell th,body.pos-shell td{border-color:#2f4f2f;vertical-align:middle}
body.pos-shell .td-actions{white-space:nowrap;width:1%;vertical-align:middle}
body.pos-shell .td-actions form{display:inline;margin:0}
body.pos-shell .td-actions .btn{margin:0 2px}
body.pos-shell input,body.pos-shell select,body.pos-shell textarea{background:#16181a;border-color:#2f4f2f;color:#e8eaed}
body.pos-shell .btn.sec{background:#243028;color:#cfe8d4}
body.pos-shell .muted{color:#9aa39a}
body.pos-shell .stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:12px 0}
body.pos-shell .stat{background:#1c1f22;border:1px solid #2f4f2f;border-radius:12px;padding:14px}
body.pos-shell .stat span{display:block;font-size:11px;color:#8b948b;letter-spacing:.04em}
body.pos-shell .stat b{font-size:20px}
body.pos-shell .dash-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.pos-shell .bars{display:flex;align-items:flex-end;gap:6px;height:150px;padding-top:10px}
body.pos-shell .bars-h{gap:2px}
body.pos-shell .bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
body.pos-shell .bar{width:100%;min-height:2px;background:#2e7d4f;border-radius:4px 4px 0 0}
body.pos-shell .bar-col span{font-size:10px;color:#8b948b;margin-top:4px}
body.pos-shell .meter{height:6px;background:#2a2e33;border-radius:99px;margin:4px 0 10px}
body.pos-shell .meter i{display:block;height:100%;background:#2e7d4f;border-radius:99px}
@media (max-width:900px){
  body.pos-shell{flex-direction:column}
  body.pos-shell .side{width:100%;flex-direction:row;flex-wrap:wrap;max-height:none}
  body.pos-shell .dash-2{grid-template-columns:1fr}
}

body.pos-shell .side-acc{border-bottom:1px solid #1c2220;padding:4px 0}
body.pos-shell .side-acc summary{cursor:pointer;list-style:none;padding:10px;color:#cfe3c8;text-transform:uppercase;font-size:13px;font-weight:700;letter-spacing:.08em}
body.pos-shell .side-acc summary::-webkit-details-marker{display:none}
body.pos-shell .side-acc summary::before{content:'▸ ';display:inline-block;width:1em}
body.pos-shell .side-acc[open] summary::before{content:'▾ '}
body.pos-shell .side-acc[open] summary{color:#8fca9a}
body.pos-shell .sales-split{display:grid;grid-template-columns:200px 1fr;gap:16px;margin-top:12px}
body.pos-shell .sales-sub a{display:block;padding:8px 10px;border-radius:8px;color:#c9cdc8;text-decoration:none;margin-bottom:2px}
body.pos-shell .sales-sub a.on{background:#2e7d4f;color:#fff}
body.pos-shell td.r{text-align:right}
@media (max-width:900px){body.pos-shell .sales-split{grid-template-columns:1fr}}

body.pos-shell a.side-top{display:block;padding:10px;margin:4px 0 8px;background:#2e7d4f;color:#fff;border-radius:10px;font-weight:700;text-align:center}
.tampil-wrap{display:grid;grid-template-columns:420px minmax(280px,1fr);gap:22px;align-items:start}
.phone{width:260px;background:#0a0c0d;border:8px solid #2f4f2f;border-radius:28px;padding:10px 8px 16px}
.phone-notch{width:90px;height:10px;background:#222;border-radius:8px;margin:0 auto 8px}
.phone-screen{background:#121416;min-height:420px;border-radius:16px;padding:8px}
.ph-block{background:#1c1f22;border:1px dashed #3a3f44;border-radius:10px;padding:8px;margin:6px 0;cursor:grab;color:#ddd}
.ph-block small{display:block;color:#8b948b;font-size:11px}
.ph-block.dragging{opacity:.4}
@media(max-width:900px){.tampil-wrap{grid-template-columns:1fr}}

body.pos-shell .side-logo-img{width:168px;height:auto;max-width:100%;object-fit:contain;background:transparent;border-radius:16px;padding:0}
.phone-lg{width:min(400px,100%);margin:0 auto 18px;border-width:10px;border-radius:36px}
.phone-lg .phone-screen{min-height:640px}

.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0 14px}
.toolbar input,.toolbar select{margin:0;flex:1;min-width:140px}
.pick{border:1px solid #2f4f2f;border-radius:10px;background:#141718}
.pick-q{margin:8px;width:calc(100% - 16px)}
.pick-list{max-height:220px;overflow:auto;padding:0 8px 8px}
.pick-row{display:flex;gap:8px;align-items:center;padding:6px 4px;color:#eee}
.receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.rec-paper{background:#fff;color:#111;padding:18px;text-align:center;border:1px solid #ddd}
.rec-paper img{height:64px;margin-bottom:8px}
@media(max-width:900px){.receipt-grid{grid-template-columns:1fr}}

.opt{display:flex;align-items:center;gap:8px;margin:8px 0}
.opt input{width:auto;margin:0}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:40;align-items:center;justify-content:center}
.modal-card{background:#16191c;border:1px solid #2f4f2f;border-radius:14px;padding:16px;width:min(520px,92vw);max-height:80vh;overflow:auto}
.pick-chips{display:flex;flex-wrap:wrap;gap:6px;min-height:36px;margin-bottom:8px}
.chip{background:#243028;color:#d7eadc;border-radius:999px;padding:4px 10px;font-size:13px}
.qr-card{min-width:220px}
.qr-card img{display:block;margin:8px auto}
.qr-card a{word-break:break-all;font-size:12px}
#qrs{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.dash-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.dash-logo{height:72px;width:auto;background:transparent}
.dash-filter{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.dash-filter input{width:200px}

body.pos-shell .flash.ok{background:#14532d;color:#ecfdf3;border:1px solid #22c55e;font-weight:700}
body.pos-shell .flash.err{background:#7f1d1d;color:#fee2e2;border:1px solid #ef4444;font-weight:700}
.side-brand-col{flex-direction:column;align-items:flex-start;gap:8px}
.side-outlet{display:block;font-size:14px;line-height:1.2}
.dash-logo{height:81px}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.modal-x{width:36px;height:36px;border:0;border-radius:10px;background:#2a2e33;color:#fff;font-size:20px;cursor:pointer}
.pick-cards{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow:auto;margin-top:10px}
.pick-card{display:block;width:100%;text-align:left;background:#1c1f22;border:1px solid #2f4f2f;border-radius:12px;padding:12px;color:#eee;cursor:pointer}
.pick-card small{display:block;color:#9aa39a}
.pick-card.on{border-color:#2e7d4f;background:#1a2a20}

.phone-live{width:100%;height:720px;border:0;border-radius:16px;background:#121416;display:block;overflow:hidden}
.bw,.bw-paper img{filter:grayscale(1);-webkit-filter:grayscale(1)}
.bw-paper{color:#000;background:#fff}
.bw-paper .muted{color:#333}

.dash-logo{height:122px}
.rec-center{text-align:center}
.rec-logo{height:128px;width:auto;display:block;margin:0 auto 8px}

.login-dark{background:#121416;color:#e8eaed;min-height:100vh}
.login-dark .card{background:#1c1f22;border-color:#2f4f2f;color:#e8eaed}
.login-dark h2{color:#fff;margin:0 0 12px}
.login-dark label,.login-dark .muted{color:#9aa39a}
.login-dark input{background:#16181a;border-color:#2f4f2f;color:#e8eaed}
.td-actions{white-space:nowrap;vertical-align:middle}
.td-actions form{margin:0;display:inline}
.item-name{display:flex;align-items:center;gap:10px}
.item-name img,.thumb-ph{width:40px;height:40px;object-fit:cover;border-radius:8px;flex-shrink:0}
.thumb-ph{display:inline-block;background:#2a2e33}
.chart-box{min-height:180px}
.pie-wrap{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.pie-leg{font-size:12px;color:#c9cdc8;display:flex;flex-direction:column;gap:4px}
.pie-leg i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px}
td.r,th.r{text-align:right}
.bahan-row{align-items:flex-end}
.bahan-row .btn-x{flex:0 0 36px;padding:8px 0;height:42px}
.sw{display:flex;align-items:center;gap:10px;margin:10px 0}
table .sw{margin:0}
.sw input{display:none}
.sw span{width:44px;height:24px;border-radius:999px;background:#3a3f44;position:relative}
.sw span:before{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:3px;left:3px;transition:.15s}
.sw input:checked + span{background:#2e7d4f}
.sw input:checked + span:before{left:23px}
.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.type-card{border:0;border-radius:12px;padding:12px;background:#16191c}
.type-card small{display:block;color:#9aa39a}
.acc-box{border:0;border-radius:12px;padding:10px 12px;margin:8px 0;background:#16191c}
.acc-box summary{cursor:pointer;font-weight:700}

.pos-desk{display:flex;gap:14px;min-height:calc(100vh - 48px);align-items:stretch}
.pos-left{flex:1;min-width:0;display:flex;flex-direction:column}
.pos-cats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.pos-cat{border:0;background:#1c1f22;color:#c9cdc8;border-radius:10px;padding:10px 14px;cursor:pointer;font-weight:700}
.pos-cat.on{background:#2e7d4f;color:#fff}
.pos-grid{display:none;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.pos-grid.on{display:grid}
.pos-grid .muted{grid-column:1/-1;padding:24px 8px}
.pos-tile{position:relative;border:0;padding:0;border-radius:12px;overflow:hidden;background:#1c1f22;cursor:pointer;aspect-ratio:1;color:#fff}
.pos-tile img{width:100%;height:100%;object-fit:cover;display:block}
.pos-tile span{position:absolute;left:0;right:0;bottom:0;padding:8px;font-size:12px;font-weight:700;background:linear-gradient(transparent,rgba(0,0,0,.75));text-align:left}
.pos-tile.habis{opacity:.35;cursor:not-allowed}
.pos-bill{width:340px;flex-shrink:0;background:#16191c;border:1px solid #2f4f2f;border-radius:14px;padding:12px;display:flex;flex-direction:column}
.pos-bill-top,.pos-bill-type,.pos-actions{display:flex;gap:8px;margin-bottom:8px}
.pos-ghost{color:#8fca9a;text-decoration:none;padding:8px 0}
.pos-lines{flex:1;overflow:auto;min-height:140px}
.pos-line{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #2f4f2f}
.pos-qty{display:flex;align-items:center;gap:8px;margin-top:4px}
.pos-qty button{width:24px;height:24px;border:0;border-radius:6px;background:#2a2e33;color:#fff;cursor:pointer}
.pos-sum{margin-top:8px}
.pos-sum div{display:flex;justify-content:space-between;padding:4px 0;color:#c9cdc8}
.pos-total{font-size:18px;color:#fff}
.pos-clear{background:none;border:0;color:#8b948b;cursor:pointer;padding:8px 0;text-align:right}
.pos-charge{width:100%;margin-top:8px;border:0;border-radius:12px;background:#2e7d4f;color:#fff;font-size:18px;font-weight:800;padding:16px;cursor:pointer}
@media (max-width:900px){.pos-desk{flex-direction:column}.pos-bill{width:auto}}
.grat-list{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.grat-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#1c1f22;border:1px solid #2f4f2f;border-radius:10px;color:#e8ebe6}
.grat-opt input{width:auto}
.grat-opt span{color:#8b948b}

.kas-wrap{overflow-x:auto;max-width:100%}
.kas-table{min-width:920px;font-size:12px}
.kas-table th,.kas-table td{white-space:nowrap;padding:8px 10px;text-align:right}
.kas-table th:first-child,.kas-table td:first-child{text-align:left}
