/* Tikka N Roll POS — brand: red #d1342c, yellow #f6b71b, green #2f7d4a */
:root {
  --red: #d1342c; --red-d: #a8241e; --red-l: #fdecea;
  --gold: #f6b71b; --gold-d: #c98d00; --gold-l: #fff6dc;
  --green: #2f7d4a; --green-l: #e5f3ea;
  --blue: #2563eb; --blue-l: #e7efff;
  --ink: #221c17; --ink-2: #4a4036; --muted: #8a7d70;
  --bg: #f5f1ea; --card: #fff; --line: #e9e1d4; --line-2: #f2ece2;
  --side: #1d1814; --side-2: #2a231d;
  --r: 12px; --sh: 0 1px 2px rgba(40, 25, 10, .06), 0 4px 14px rgba(40, 25, 10, .06);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ok-t { color: var(--green); } .bad-t { color: var(--red); } .warn-t { color: var(--gold-d); }
code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .12s; user-select: none; }
.btn:hover { border-color: #d6cab8; background: #fffdf8; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.pri { background: var(--red); border-color: var(--red); color: #fff; }
.btn.pri:hover { background: var(--red-d); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2a1d00; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--red); border-color: #f1c4c0; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 12px 20px; font-size: 15.5px; border-radius: 11px; }
.btn.block { width: 100%; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font: inherit; background: #fff; color: var(--ink); outline: none; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 183, 27, .22); }
textarea.input { resize: vertical; min-height: 64px; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.chk { display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 500; }
.chk input { width: 17px; height: 17px; accent-color: var(--red); }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-art { position: relative; overflow: hidden; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  background: linear-gradient(160deg, rgba(29, 24, 20, .55), rgba(29, 24, 20, .92) 62%), url(../images/menu/deal-platter.jpg) center/cover; }
.login-art .brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 20px; }
.login-art .brand img { width: 74px; height: 74px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.login-art h1 { font-size: 40px; line-height: 1.1; max-width: 560px; }
.login-art h1 em { font-style: normal; color: var(--gold); }
.login-art p { color: #e9dfd2; max-width: 540px; line-height: 1.6; font-size: 15px; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 560px; }
.feats div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; backdrop-filter: blur(4px); }
.contact-strip { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #f3e6d4; }
.login-box { display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(circle at 80% 0, #fff4d6, transparent 50%), var(--bg); }
.login-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 10px 40px rgba(60, 35, 10, .12); border: 1px solid var(--line); }
.login-card h2 { font-size: 24px; }
.demo { margin-top: 20px; border: 2px dashed var(--gold); border-radius: 14px; padding: 12px; background: var(--gold-l); }
.demo h4 { font-size: 12px; letter-spacing: .06em; color: #7a5300; margin: 2px 4px 10px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.demo-row { background: #fff; border: 1px solid #f1dfae; border-radius: 10px; padding: 9px 10px; cursor: pointer; transition: .12s; display: flex; gap: 9px; align-items: center; }
.demo-row:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: var(--sh); }
.demo-row .ic { font-size: 22px; }
.demo-row b { font-size: 13px; display: block; }
.demo-row small { color: var(--muted); font-family: Consolas, monospace; font-size: 11.5px; }

/* shell */
.app { display: flex; min-height: 100vh; }
.side { width: 238px; background: var(--side); color: #d9cfc3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; z-index: 30; transition: width .18s; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.side .brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.side .brand b { color: #fff; font-size: 15.5px; display: block; }
.side .brand small { color: var(--gold); font-size: 11px; letter-spacing: .04em; }
.nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #85786b; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; color: #d9cfc3; padding: 9px 10px; border-radius: 9px; font-weight: 500; margin-bottom: 2px; white-space: nowrap; }
.nav a .ic { width: 22px; text-align: center; font-size: 16px; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(209, 52, 44, .35); }
.pill { margin-left: auto; background: var(--gold); color: #2a1d00; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #2a1d00; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.app.mini .side { width: 66px; }
.app.mini .side .brand div, .app.mini .nav a span.t, .app.mini .nav-sec, .app.mini .side-foot > div:not(.avatar), .app.mini .pill { display: none; }
.app.mini .nav a { justify-content: center; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 241, 234, .92); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); min-height: 58px; }
.top h1 { font-size: 18px; }
.clock { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.net { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--green-l); color: var(--green); white-space: nowrap; }
.net::before { content: "●"; margin-right: 5px; }
.net.off { background: var(--red-l); color: var(--red); }
.net.warn { background: var(--gold-l); color: var(--gold-d); }
.page { padding: 20px; flex: 1; }
.page.flush { padding: 0; }
.menu-btn { display: none; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-h h3 { font-size: 15px; }
.card-b { padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 24px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat .ic { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--gold-l); }
.stat.red .ic { background: var(--red-l); } .stat.green .ic { background: var(--green-l); } .stat.blue .ic { background: var(--blue-l); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.t-ok { background: var(--green-l); color: var(--green); } .t-bad { background: var(--red-l); color: var(--red); } .t-warn { background: var(--gold-l); color: #8a5d00; } .t-info { background: var(--blue-l); color: var(--blue); } .t-dark { background: #eee7dc; color: var(--ink-2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 20px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { width: auto; }

/* tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fcfaf6; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #fffbf1; }
.tbl tfoot td { font-weight: 800; background: var(--gold-l); }
.empty { text-align: center; padding: 30px; color: var(--muted); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.thumb { width: 40px; height: 32px; border-radius: 7px; object-fit: cover; vertical-align: middle; background: var(--line-2); }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(25, 18, 12, .55); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .15s; }
.modal.sm { max-width: 400px; } .modal.lg { max-width: 820px; } .modal.xl { max-width: 1060px; }
.modal-h { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { font-size: 16.5px; flex: 1; }
.modal-b { padding: 18px; overflow-y: auto; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: scale(.96); opacity: 0; } }
#toasts { position: fixed; top: 66px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-weight: 500; animation: pop .15s; max-width: 380px; }
.toast.err { background: var(--red); }

/* ============ POS ============ */
.pos { display: grid; grid-template-columns: 96px minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 58px); }
.pos-cats { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 8px 6px; }
.pos-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; cursor: pointer; font-size: 11.5px; font-weight: 700; text-align: center; color: var(--ink-2); margin-bottom: 4px; border: 2px solid transparent; }
.pos-cat .e { font-size: 24px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--line-2); }
.pos-cat:hover { background: #fffaf0; }
.pos-cat.on { border-color: var(--gold); background: var(--gold-l); color: var(--ink); }
.pos-cat.on .e { background: var(--gold); }
.pos-mid { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pos-search { padding: 12px 14px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); background: #fbf8f3; }
.pos-grid { flex: 1; overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; align-content: start; grid-auto-rows: max-content; }
.mi { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: .12s; position: relative; display: flex; flex-direction: column; }
.mi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 35, 10, .12); border-color: var(--gold); }
.mi:active { transform: scale(.98); }
.mi img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--line-2); }
.mi .b { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; }
.mi .n { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.mi .d { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi .p { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--red); font-size: 14px; }
.mi .tag { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.mi .qb { position: absolute; top: 8px; right: 8px; background: var(--green); color: #fff; font-weight: 800; min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-size: 13px; padding: 0 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.mi.off { opacity: .45; pointer-events: none; }
.mi.off::after { content: "Not available"; position: absolute; top: 34%; left: 0; right: 0; text-align: center; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 700; padding: 4px; }
.pos-cart { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.otype { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-bottom: 1px solid var(--line-2); }
.otype button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 4px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.otype button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cart-meta { padding: 10px 12px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; background: #fcfaf6; }
.cart-meta .input { padding: 7px 10px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 0; }
.cl { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px dashed var(--line); }
.cl .n { font-weight: 700; font-size: 13.5px; }
.cl .v { font-size: 11.5px; color: var(--muted); }
.cl .note { font-size: 11.5px; color: var(--red); font-style: italic; }
.cl .sent { font-size: 10.5px; color: var(--green); font-weight: 700; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: #fbf7f0; cursor: pointer; font-size: 17px; font-weight: 700; color: var(--ink-2); }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }
.cl .amt { font-weight: 800; min-width: 62px; text-align: right; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.cart-empty .big { font-size: 48px; opacity: .6; }
.totals { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.totals .tr { display: flex; justify-content: space-between; padding: 2px 0; }
.totals .grand { font-size: 21px; font-weight: 900; padding-top: 6px; margin-top: 4px; border-top: 1px dashed var(--line); }
.totals .grand span:last-child { color: var(--red); }
.cart-act { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line-2); }
.cart-act .wide { grid-column: span 2; }
.running { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line-2); background: #fffaf0; }
.running .chip { flex-shrink: 0; border: 1px solid #f0d99c; background: #fff; border-radius: 20px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.running .chip.on { background: var(--gold); border-color: var(--gold); }

.cart-fab { display: none; }
.var-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.var-btn { border: 2px solid var(--line); border-radius: 12px; padding: 14px 10px; background: #fff; cursor: pointer; text-align: center; font: inherit; }
.var-btn:hover, .var-btn.on { border-color: var(--red); background: var(--red-l); }
.var-btn b { display: block; font-size: 15px; } .var-btn span { color: var(--red); font-weight: 800; font-size: 16px; }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-methods button { border: 2px solid var(--line); border-radius: 12px; padding: 12px 6px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pay-methods button.on { border-color: var(--green); background: var(--green-l); color: var(--green); }
.pay-methods button .e { display: block; font-size: 22px; }
.quick-cash { display: flex; gap: 6px; flex-wrap: wrap; }
.big-due { background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.big-due b { font-size: 30px; color: var(--gold); }
.change { font-size: 20px; font-weight: 900; }

/* tables floor */
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tcard { border-radius: 16px; padding: 14px; cursor: pointer; border: 2px solid var(--line); background: #fff; transition: .12s; min-height: 128px; display: flex; flex-direction: column; position: relative; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.tcard .tn { font-size: 22px; font-weight: 900; }
.tcard .ts { font-size: 12px; color: var(--muted); }
.tcard.free { border-color: #bfe0ca; background: linear-gradient(180deg, #fff, var(--green-l)); }
.tcard.busy { border-color: #f0b5b0; background: linear-gradient(180deg, #fff, var(--red-l)); }
.tcard.bill { border-color: #f3d27a; background: linear-gradient(180deg, #fff, var(--gold-l)); }
.tcard .amt { margin-top: auto; font-weight: 900; font-size: 17px; }
.tcard .st { position: absolute; top: 12px; right: 12px; }
.sec-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 10px; }

/* kitchen */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kcol h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; border-radius: 12px; color: #fff; display: flex; justify-content: space-between; margin-bottom: 10px; }
.kcol.new h3 { background: var(--red); } .kcol.prep h3 { background: var(--gold-d); } .kcol.ready h3 { background: var(--green); }
.kt { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--sh); margin-bottom: 12px; overflow: hidden; border-top: 6px solid var(--green); }
.kt.amber { border-top-color: var(--gold); } .kt.late { border-top-color: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(209, 52, 44, .25); } }
.kt-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px dashed var(--line); }
.kt-h .tok { font-size: 22px; font-weight: 900; }
.kt-h .tm { font-weight: 800; font-variant-numeric: tabular-nums; }
.kt ul { list-style: none; margin: 0; padding: 8px 12px; }
.kt li { padding: 5px 0; font-size: 15px; display: flex; gap: 8px; border-bottom: 1px solid var(--line-2); }
.kt li:last-child { border: 0; }
.kt li b.q { background: var(--ink); color: #fff; border-radius: 6px; min-width: 28px; text-align: center; height: 24px; line-height: 24px; flex-shrink: 0; }
.kt li small { display: block; color: var(--muted); font-size: 12px; }
.kt li .note { color: var(--red); font-weight: 700; font-size: 12.5px; }
.kt li.done { text-decoration: line-through; opacity: .5; }
.kt .kt-f { padding: 8px 12px 12px; display: flex; gap: 8px; }
.kt .kt-f .btn { flex: 1; }
.kitchen-full .kds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* delivery */
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 6px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

/* menu admin */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; }
.mcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mcard .b { padding: 10px 12px; flex: 1; }
.mcard .f { padding: 8px 12px; border-top: 1px solid var(--line-2); display: flex; gap: 6px; align-items: center; }
.vrow { display: grid; grid-template-columns: 1fr 110px 80px 34px; gap: 6px; margin-bottom: 6px; }
.rrow { display: grid; grid-template-columns: 1fr 100px 34px; gap: 6px; margin-bottom: 6px; }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d8cfc2; border-radius: 22px; cursor: pointer; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }
.bar { height: 8px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.bar.low i { background: var(--red); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border: 0; }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-l); color: #7a5300; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.chart-box { position: relative; height: 270px; }
.heat { display: grid; grid-template-columns: 50px repeat(24, 1fr); gap: 2px; font-size: 10px; }
.heat div { height: 22px; border-radius: 3px; display: grid; place-items: center; }
.info-box { background: var(--gold-l); border: 1px solid #f1dca4; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.55; }

/* receipt print */
#print-area { display: none; }
@media print {
  @page { margin: 4mm; }
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area { display: block; position: absolute; left: 0; top: 0; width: 100%; }
  .modal-bg { display: none !important; }
}
.rcpt { width: 72mm; font-family: "Courier New", Consolas, monospace; font-size: 12px; color: #000; line-height: 1.35; }
.rcpt .c { text-align: center; }
.rcpt img { width: 30mm; height: 30mm; display: block; margin: 0 auto 2mm; filter: grayscale(1) contrast(1.4); }
.rcpt h2 { font-size: 17px; margin: 0; font-family: Arial, sans-serif; font-weight: 900; }
.rcpt hr { border: 0; border-top: 1px dashed #000; margin: 5px 0; }
.rcpt table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rcpt td { padding: 1px 0; vertical-align: top; }
.rcpt .r { text-align: right; }
.rcpt .tot td { font-size: 15px; font-weight: 900; }
.rcpt .tok { font-size: 30px; font-weight: 900; text-align: center; border: 2px solid #000; margin: 4px 0; font-family: Arial, sans-serif; }
.rcpt.kot { font-size: 14px; } .rcpt.kot td { font-size: 15px; font-weight: 700; padding: 3px 0; }
.slip { font-family: Arial, sans-serif; color: #000; }

/* responsive */
@media (max-width: 1200px) { .pos { grid-template-columns: 84px minmax(0, 1fr) 350px; } }
@media (max-width: 980px) {
  .login-wrap { grid-template-columns: 1fr; } .login-art { padding: 28px; } .login-art h1 { font-size: 28px; }
  .side { position: fixed; left: -260px; transition: left .2s; } .side.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .app.mini .side { width: 238px; }
  .app.mini .side .brand div, .app.mini .nav a span.t, .app.mini .nav-sec, .app.mini .side-foot > div:not(.avatar), .app.mini .pill { display: revert; }
  .menu-btn { display: inline-flex; } .hide-m { display: none !important; }
  .pos { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; } .pos-cats { display: flex; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); } .pos-cat { min-width: 76px; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 60vh; } .pos-cart { border: 0; border-top: 4px solid var(--gold); }
  .cart-fab { display: block; position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 40; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 30px; box-shadow: 0 8px 24px rgba(209, 52, 44, .45); cursor: pointer; white-space: nowrap; }
  .cart-fab.hidden { display: none; }
  .kds { grid-template-columns: 1fr; } .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .g2, .g3, .g4, .demo-grid, .feats { grid-template-columns: 1fr; } .page { padding: 12px; } .pay-methods { grid-template-columns: repeat(2, 1fr); } .top { padding: 8px 12px; } }
