/* SULIT EATS app styles — brand: forest green #174B32, yellow #F6C453, red #B9212D */
:root {
  --g: #174B32; --gd: #0F3523; --g2: #1F5E40; --gl: #E8F3EC; --gll: #F3F7F4;
  --y: #F6C453; --yd: #E9AE2C; --yl: #FCEFC8; --r: #B9212D; --rl: #FBE4E6;
  --ink: #15201A; --mut: #4A5A51; --mut2: #6B7A71; --line: #E1E9E4; --bg: #FFFFFF; --bg2: #F6F8F6;
  --radius: 18px; --shadow: 0 10px 30px rgba(23,75,50,.10);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg2); color: var(--ink); font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--g); }
button, input, select, textarea { font: inherit; color: inherit; }
.disp { font-family: 'Barlow Condensed', 'Figtree', sans-serif; font-weight: 800; letter-spacing: -.2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(76px + var(--safe-b)); }
#app.admin-shell { max-width: none; padding-bottom: 0; background: var(--bg2); }
.topbar { background: var(--g); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font-size: 20px; flex: 1; font-weight: 800; text-align: center; }
.topbar.light { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex: none; text-decoration: none; }
.iconbtn:hover { background: rgba(0,0,0,.06); }
.topbar:not(.light) .iconbtn:hover { background: rgba(255,255,255,.1); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--r); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; line-height: 1; }
.logo b span { color: var(--y); }
.logo small { display: block; font-size: 9px; letter-spacing: 1.6px; font-weight: 700; color: #CFE3D6; margin-top: 2px; }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.bottomnav .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 9px; text-decoration: none; color: var(--mut2); font-size: 11px; font-weight: 600; min-height: 60px; position: relative; }
.bottomnav a.on { color: var(--g); font-weight: 800; }
.bottomnav a.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--g); }

.page { padding: 16px; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 12px; }
.section-h h2 { margin: 0; font-size: 22px; }
.section-h a { font-size: 14px; font-weight: 700; text-decoration: none; }

/* ---------- home hero ---------- */
.hero { background: var(--g); color: #fff; padding: 18px 16px 20px; }
.hero .hi { font-size: 15px; color: #D6E7DC; margin: 16px 0 2px; }
.hero h2 { margin: 0; font-size: 34px; line-height: 1; }
.hero p { margin: 6px 0 14px; color: #D6E7DC; font-size: 15px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 0 14px; color: var(--mut2); }
.search input { border: 0; outline: 0; flex: 1; padding: 13px 0; font-size: 15px; background: transparent; color: var(--ink); min-width: 0; }
.promo { margin: 16px; border-radius: 20px; background: var(--r); border: 3px solid var(--y); display: flex; overflow: hidden; min-height: 150px; text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.promo .tx { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.promo .tx small { font-weight: 800; font-size: 12px; letter-spacing: .5px; }
.promo .tx strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 40px; line-height: .9; color: var(--y); }
.promo .tx em { font-style: normal; font-weight: 800; font-size: 12px; }
.promo .tx span.btn { align-self: flex-start; margin-top: 8px; }
.promo img { width: 42%; object-fit: cover; }
.pointsbar { margin: 0 16px; display: flex; gap: 12px; align-items: center; background: var(--yl); border-radius: 16px; padding: 12px 16px; text-decoration: none; color: #5C4300; }
.pointsbar b { font-size: 22px; }

/* ---------- cards & products ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; }
.pcard .img { aspect-ratio: 4 / 3; background: var(--gll); position: relative; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .tag { position: absolute; top: 8px; left: 8px; background: var(--r); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }
.pcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard .name { font-weight: 800; font-size: 15px; line-height: 1.2; }
.pcard .desc { font-size: 12px; color: var(--mut2); }
.pcard .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.price { color: var(--g); font-weight: 800; font-size: 19px; }
.pts { color: #9A6A00; font-size: 12px; font-weight: 700; }
.addbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--g); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.addbtn:disabled { background: #B9C6BF; cursor: not-allowed; }
.soldout { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.soldout span { background: var(--ink); color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 10px; font-size: 13px; }

.mrow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mrow .thumb { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; flex: none; background: var(--gll); position: relative; }
.mrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mrow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mrow .name { font-weight: 800; font-size: 16px; }
.mrow .desc { font-size: 13px; color: var(--mut2); }
.qtyctl { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qtyctl button { width: 40px; height: 40px; border: 0; background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--g); }
.qtyctl span { min-width: 30px; text-align: center; font-weight: 800; }

/* chips / tabs */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; min-height: 42px; }
.chip.on { background: var(--g); border-color: var(--g); color: #fff; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: #EEF2EF; padding: 5px; border-radius: 14px; }
.seg button { border: 0; background: transparent; padding: 11px 6px; border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--mut); min-height: 44px; }
.seg button.on { background: var(--g); color: #fff; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 20px; min-height: 50px; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; background: var(--g); color: #fff; }
.btn:hover { background: var(--gd); color: #fff; }
.btn.block { width: 100%; }
.btn.y { background: var(--y); color: var(--g); } .btn.y:hover { background: var(--yd); }
.btn.ghost { background: #fff; color: var(--g); border: 1.5px solid var(--g); } .btn.ghost:hover { background: var(--gl); }
.btn.soft { background: var(--gl); color: var(--g); } .btn.soft:hover { background: #D8EBDF; }
.btn.red { background: var(--r); color: #fff; } .btn.red:hover { background: #961A24; }
.btn.sm { min-height: 40px; padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 12px; color: var(--mut2); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid #CBD7D0; border-radius: 12px; padding: 13px 14px; font-size: 16px; background: #fff; min-height: 50px; }
.input:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px rgba(23,75,50,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { width: 22px; height: 22px; accent-color: var(--g); flex: none; margin-top: 1px; }
.err { color: var(--r); font-size: 14px; font-weight: 600; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.muted { color: var(--mut2); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.hr { height: 1px; background: var(--line); margin: 12px 0; }
.dash { border-top: 1px dashed #CBD7D0; margin: 12px 0; }

/* early bird box */
.eb { background: var(--gl); border-radius: 16px; padding: 14px 16px; display: flex; gap: 14px; }
.eb.no { background: #F4F4F2; }
.eb ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.eb li { display: flex; gap: 6px; align-items: flex-start; }
.eb li.ok { color: var(--g); } .eb li.no { color: #8A4A00; }
.earn { background: var(--yl); border-radius: 14px; padding: 12px 14px; color: #5C4300; display: flex; gap: 10px; align-items: center; }

.paymethod { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; }
.paymethod.on { border-color: var(--g); background: var(--gll); }
.paymethod .pmic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.paymethod input { width: 22px; height: 22px; accent-color: var(--g); margin-left: auto; }
.testtag { background: #FFF1C2; color: #6B4E00; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; letter-spacing: .4px; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.green { background: var(--gl); color: var(--g); }
.pill.yellow { background: var(--yl); color: #6B4E00; }
.pill.red { background: var(--rl); color: var(--r); }
.pill.gray { background: #EEF0EE; color: #4A5A51; }
.pill.blue { background: #E3EEFB; color: #1F4E8C; }

/* confirmation screen */
.confirm-top { background: var(--g); color: #fff; text-align: center; padding: 30px 16px 70px; }
.confirm-top .tick { width: 84px; height: 84px; border-radius: 50%; background: #2F8A57; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.confirm-top h2 { margin: 0; font-size: 36px; }
.confirm-card { margin: -50px 16px 0; position: relative; }
.qrbox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: inline-block; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--mut); }
.kv span:last-child { font-weight: 700; text-align: right; }

/* modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(10,25,17,.55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 640px) { .modal-bg { align-items: center; } }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 440px; padding: 22px; max-height: 88vh; overflow: auto; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.modal h3 { margin: 0 0 8px; font-size: 21px; }
.modal p { margin: 0 0 16px; color: var(--mut); line-height: 1.5; }
.modal .actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .actions .btn { flex: 1; }
#toasts { position: fixed; top: 12px; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; max-width: 480px; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: auto; }
.toast.ok { background: var(--g); } .toast.bad { background: var(--r); }

.empty { text-align: center; padding: 40px 20px; color: var(--mut2); }
.empty .disp { color: var(--g); font-size: 26px; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, #EEF2EF 25%, #F6F8F6 50%, #EEF2EF 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(23,75,50,.2); border-top-color: var(--g); }
@keyframes spin { to { transform: rotate(360deg); } }
.banner-test { background: #FFF1C2; color: #6B4E00; text-align: center; font-size: 12px; font-weight: 800; padding: 6px; letter-spacing: .4px; }

/* rewards */
.rwcard { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; background: #fff; }
.rwcard .img { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex: none; background: var(--gll); display: flex; align-items: center; justify-content: center; }
.rwcard .img img { width: 100%; height: 100%; object-fit: cover; }
.voucher { background: var(--r); color: var(--y); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 24px; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ptsbig { background: var(--y); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; color: var(--g); }
.ptsbig b { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; line-height: 1; }

/* profile */
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--y); color: var(--g); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; flex: none; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; text-decoration: none; color: var(--ink); font-size: 16px; cursor: pointer; min-height: 54px; }
.menu-list svg.chev { margin-left: auto; color: var(--mut2); }

/* auth */
.auth-top { background: var(--g); color: #fff; padding: 36px 20px 50px; text-align: center; }
.auth-card { margin: -30px 16px 24px; position: relative; }

/* ---------- admin ---------- */
.adm { display: flex; min-height: 100vh; }
.adm-side { width: 230px; background: var(--gd); color: #fff; flex: none; display: flex; flex-direction: column; padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side a { display: flex; align-items: center; gap: 12px; color: #CFE3D6; text-decoration: none; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; min-height: 44px; }
.adm-side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm-side a.on { background: var(--g2); color: #fff; }
.adm-side .sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 6px; }
.adm-main { flex: 1; min-width: 0; padding: 22px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.adm-head h1 { margin: 0; font-size: 30px; color: var(--g); }
.adm-top { display: none; }
@media (max-width: 900px) {
  .adm { flex-direction: column; }
  .adm-side { display: none; position: fixed; z-index: 60; inset: 0 auto 0 0; width: 260px; height: 100vh; }
  .adm-side.open { display: flex; }
  .adm-top { display: flex; position: sticky; top: 0; z-index: 50; background: var(--gd); color: #fff; padding: 8px 10px; align-items: center; gap: 10px; }
  .adm-main { padding: 14px; }
  .adm-head h1 { font-size: 26px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat small { color: var(--mut2); font-weight: 700; font-size: 13px; }
.stat b { display: block; font-size: 28px; margin-top: 4px; color: var(--g); font-family: 'Barlow Condensed', sans-serif; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; padding: 11px 12px; background: var(--gll); color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
table.t td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #FAFCFA; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; min-height: 44px; padding: 9px 12px; }
.kwin { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.kwin h3 { margin: 0; background: var(--g); color: var(--y); padding: 12px 16px; font-size: 18px; display: flex; justify-content: space-between; }
.kwin .it { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 18px; }
.kwin .it b { font-size: 24px; color: var(--g); }
.scanbox { background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 1; max-width: 360px; position: relative; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; }
.scanbox .frame { position: absolute; inset: 18%; border: 3px solid var(--y); border-radius: 16px; }
.big-result { border-radius: 20px; padding: 18px; }
.big-result.ok { background: var(--gl); border: 2px solid var(--g); }
.big-result.bad { background: var(--rl); border: 2px solid var(--r); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch input[type=checkbox] { width: 46px; height: 26px; accent-color: var(--g); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
@media print { .adm-side, .adm-top, .toolbar, .noprint, .bottomnav { display: none !important; } .adm-main { padding: 0; } }

/* ---- dashboards (agent) ---- */
.adm-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-side .side-logo { padding: 6px 8px 14px; color: #fff; }
.adm-side .side-logo:hover { background: transparent; }
.adm-side .side-store { color: #fff; font-weight: 800; padding: 4px 12px 0; font-size: 15px; }
.adm-side .side-role { color: #9FC2AD; padding: 2px 12px 10px; }
.adm-side .side-switch { display: block; padding: 0 4px 4px; }
.adm-side .side-switch select { min-height: 44px; padding: 8px 10px; font-size: 14px; background: var(--g2); color: #fff; border-color: rgba(255,255,255,.25); }
.adm-side .side-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-side .side-badge { margin-left: auto; font-style: normal; background: var(--y); color: var(--g); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.adm-side .side-user { margin-top: auto; padding: 14px 12px 4px; color: #9FC2AD; display: flex; gap: 6px; align-items: center; }
.adm.hq .adm-side { background: #2B1A12; }
.adm.hq .adm-side a.on { background: var(--r); }
.adm.hq .adm-head h1 { color: var(--r); }
.adm.hq .adm-top { background: #2B1A12; }
.adm-top-t { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-backdrop { display: none; }
@media (max-width: 900px) {
  .adm-side.open + .adm-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10,25,17,.5); }
  .adm-head h1 { display: none; }
  .adm-head { margin-bottom: 12px; }
  .adm-head:has(> :only-child) { margin-bottom: 0; }
}
.h2 { font-size: 20px; margin: 22px 0 10px; color: var(--ink); }
.h3 { font-size: 17px; margin: 0 0 10px; }
.mb { margin-bottom: 16px; } .mt { margin-top: 16px; }
.row.wrap { flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .3px; }
.stack.tight { gap: 4px; align-items: flex-start; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.dash-grid .card + .card { margin-top: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 14px; align-items: start; }
.settings-grid .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } }
.stat.link { text-decoration: none; color: inherit; }
.stat.link:hover { border-color: var(--g); }
.stat.hl { background: var(--gl); border-color: #CFE3D6; }
a.kv.link { text-decoration: none; color: inherit; }
a.kv.link:hover span:last-child { color: var(--g); }
.big-result.warn { background: var(--yl); border: 2px solid var(--yd); color: #4D3800; }
a.block-link { display: block; text-decoration: none; }
.chips.flush { padding: 2px 0 12px; }
.table-wrap.flat { border: 0; border-radius: 0; }
table.t tr.dim td { opacity: .55; }
table.t td .row { gap: 6px; }
.items-cell { min-width: 140px; }
.danger-t { color: var(--r) !important; border-color: var(--r) !important; }
.warn-t { color: #8A4A00; font-weight: 700; }
.ref-big { font-size: 28px; color: var(--g); line-height: 1.1; }
.for-name { display: inline-block; margin-top: 8px; background: var(--y); color: var(--g); font-weight: 800; padding: 6px 12px; border-radius: 10px; font-size: 17px; }
.act-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.totals { margin-top: 8px; }
.bignum { font-size: 22px; color: var(--g); }
.issue { border-top: 1px solid var(--line); padding: 10px 0; } .issue p { margin: 6px 0; }
.answer { background: var(--gll); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; min-height: 44px; }
.toggle input { width: 52px; height: 30px; accent-color: var(--g); cursor: pointer; }
.chg { margin: 0 0 6px; padding-left: 20px; line-height: 1.5; color: var(--ink); font-size: 15px; }
.chg li { margin-bottom: 4px; overflow-wrap: anywhere; }
.modal.modal-wide { max-width: 620px; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 30px; font-weight: 800; letter-spacing: 2px; text-align: center; background: var(--yl); color: var(--g); border-radius: 14px; padding: 16px; margin: 4px 0 12px; user-select: all; }
.daypick { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.daypick .check { align-items: center; min-height: 40px; }
.adm .check, .modal-wide .check { margin-bottom: 8px; }
.hours-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) auto minmax(110px, 1fr); gap: 8px; align-items: center; margin-bottom: 8px; }
.hours-row .check { margin: 0; }
.hours-row .input { min-height: 44px; padding: 8px 10px; }
.hours-row .input:disabled { opacity: .45; }
.img-pair { display: flex; gap: 16px; flex-wrap: wrap; }
.img-slot { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.img-prev { background: var(--gll); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--mut2); }
.img-slot.logo .img-prev { width: 96px; height: 96px; border-radius: 50%; }
.img-slot.cover .img-prev { width: 200px; height: 96px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.menu-t .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--gll); display: flex; align-items: center; justify-content: center; color: var(--mut2); }
.menu-t .thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-cell { min-width: 220px; gap: 6px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.role-help { padding-left: 18px; margin: 4px 0 12px; line-height: 1.5; }
.bal { font-size: 40px; color: var(--g); }
.big-result.warn .bal { color: #8A4A00; }
.note { background: var(--yl); color: #5C4300; padding: 10px 12px; border-radius: 12px; }
.store-pick { text-decoration: none; color: inherit; min-height: 64px; }
.pick-store { max-width: 560px; margin: 0 auto; }
table.audit .details { max-width: 420px; overflow-wrap: anywhere; }
/* pickup */
.pk-wrap { max-width: 640px; }
.pk-label { font-weight: 800; font-size: 16px; display: block; margin-bottom: 8px; }
.pk-input { font-size: 26px; min-height: 64px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
#pk-scan:not(:empty), #pk-result:not(:empty) { margin-top: 16px; }
.pk-items { margin: 12px 0; font-size: 18px; display: flex; flex-direction: column; gap: 4px; }
.pk-amount { font-size: 18px; margin-bottom: 12px; }
.pk-problem { display: flex; gap: 8px; align-items: flex-start; color: var(--r); font-weight: 800; font-size: 19px; line-height: 1.3; }
.pk-cash { font-size: 18px; margin: 0 0 10px; }
.pk-done { display: flex; gap: 14px; align-items: center; color: var(--g); font-size: 17px; }
.pk-done .disp { font-size: 34px; }
.btn.xl { min-height: 68px; font-size: 20px; border-radius: 18px; }
/* kitchen */
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 8px; }
.kwin .it b { font-size: 30px; line-height: 1; }
.print-title { display: none; }
.print-only { display: none; }
@media print {
  #app.admin-shell { background: #fff; }
  .adm-col { display: block; }
  .adm-head { display: none; }
  .print-title { display: block; margin: 0 0 10px; font-size: 20px; }
  .print-only { display: table-cell; }
  .box-cell { width: 34px; border: 1px solid #999 !important; }
  .kwin, .table-wrap tr { break-inside: avoid; }
  .kwin h3 { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
  .big-result, .card, .kwin, .table-wrap { border-color: #999 !important; }
  table.t th { background: #eee !important; }
  .chips, #toasts, .adm-backdrop { display: none !important; }
}
.d-block { display: block; }
.for-small { display: block; font-size: 12px; font-weight: 800; color: #6B4E00; }
.adm-side .side-logo b { font-size: 24px; white-space: nowrap; }
@media (max-width: 700px) {
  table.t.resp thead { display: none; }
  table.t.resp, table.t.resp tbody { display: block; }
  table.t.resp tr { display: block; padding: 8px 2px; border-top: 1px solid var(--line); }
  table.t.resp tr:first-child { border-top: 0; }
  table.t.resp td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 0; padding: 4px 12px; text-align: right; white-space: normal; }
  table.t.resp td::before { content: attr(data-label); color: var(--mut2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; text-align: left; flex: none; padding-top: 2px; }
  table.t.resp td[data-label=""]::before { display: none; }
  table.t.resp td.act-td { justify-content: flex-start; padding-top: 8px; }
  table.t.resp td.act-td .row { flex-wrap: wrap; }
  table.t.resp .items-cell { min-width: 0; }
  .hours-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px 8px; margin-bottom: 12px; }
  .hours-row .check { grid-column: 1 / -1; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
}
