/* TapTable demo — staff app and owner dashboard (dark panels) */
:root {
  --bg: #0e1016;
  --bg2: #14171f;
  --card: #1b1f29;
  --card2: #222735;
  --line: #2b3040;
  --text: #eef0f5;
  --muted: #9aa1b2;
  --accent: #c2502f;
  --accent-soft: rgba(194, 80, 47, .16);
  --saffron: #e0a526;
  --green: #2f9e66;
  --red: #e05545;
  --blue: #3b82f6;
  --purple: #7c5cff;
  --st-free: #2f8f5b;
  --st-reserved: #e0962a;
  --st-seated: #c4523b;
  --st-bill: #7c5cff;
  --st-cleaning: #6b7280;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
}
body.owner { --accent: #7c5cff; --accent-soft: rgba(124, 92, 255, .16); }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.ic { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; } .mt2 { margin-top: 22px; }

.demo-bar { background: #1b1036; color: #d9d2ff; font-size: 12.5px; padding: 7px 16px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.demo-bar b { color: #fff; }
.demo-bar a, .demo-bar button { color: #b9a8ff; text-decoration: none; font-weight: 600; font-size: 12.5px; }

/* brand */
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand .w { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1; }
.brand .w small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .42em; font-weight: 600; margin-top: 3px; }
.brand .tagline { border-left: 1px solid var(--line); padding-left: 12px; color: var(--saffron); font-size: 11px; letter-spacing: .14em; font-weight: 600; line-height: 1.4; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, opacity .15s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-line { border: 1.5px solid var(--accent); color: #ffb6a3; }
body.owner .btn-line { color: #c9bbff; }
.btn-ghost { border: 1px solid var(--line); background: var(--card2); }
.btn-ghost:hover { border-color: #3b4256; }
.btn-green { background: var(--green); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-orange { background: #f06a1d; color: #fff; }
.btn-red { background: transparent; border: 1.5px solid var(--red); color: #ff9b8f; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 20px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.select, .input { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; min-width: 0; }
.select:focus, .input:focus { border-color: var(--accent); }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.search-box input { background: none; border: 0; outline: none; padding: 9px 0; flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-paid { background: rgba(224, 85, 69, .14); color: #ff9b8f; }
.chip-paid::before, .chip-free::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-free { background: rgba(47, 158, 102, .15); color: #67d49c; }
.chip-warn { background: rgba(224, 165, 38, .15); color: #f2c25b; }
.chip-red { background: rgba(224, 85, 69, .16); color: #ff9b8f; }
.chip-grey { background: rgba(154, 161, 178, .15); color: var(--muted); }
.chip-blue { background: rgba(59, 130, 246, .16); color: #8bb8ff; }
.chip-purple { background: rgba(124, 92, 255, .18); color: #c3b4ff; }
.chip-green { background: rgba(47, 158, 102, .18); color: #67d49c; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #3a4052; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 23px; }
.switch.red.on { background: var(--red); }
.vg { width: 14px; height: 14px; border: 1.5px solid var(--red); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; }
.vg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.vg.veg { border-color: var(--green); } .vg.veg::after { background: var(--green); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.panel-h h3 { font-size: 17px; font-family: var(--serif); }
.panel-b { padding: 14px 16px; }
.count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; border: 1px solid transparent; }
.tab.on { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.thumb { border-radius: 10px; background: #2a1b16 center/cover; flex: none; }
.thumb.ph-ph { display: flex; align-items: center; justify-content: center; color: var(--saffron); background: radial-gradient(circle at 30% 30%, #4a2a22, #1d120f); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 10px 10px; background: var(--bg2); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.hl td { background: rgba(224, 85, 69, .08); }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--card2); }
.tbl-wrap { overflow-x: auto; }

/* staff header */
.st-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--bg2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.role-tabs { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.role-tabs button { padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.role-tabs button.on { background: var(--accent); color: #fff; }
.counts { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.cnt { display: flex; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 10px; color: #fff; min-width: 96px; }
.cnt b { font-size: 20px; display: block; line-height: 1; }
.cnt span { font-size: 11.5px; opacity: .9; }
.cnt .ic { opacity: .9; }
.c-free { background: var(--st-free); } .c-reserved { background: var(--st-reserved); } .c-seated { background: var(--st-seated); } .c-bill { background: var(--st-bill); } .c-cleaning { background: var(--st-cleaning); }
.st-main { padding: 18px 20px 30px; }

/* host */
.host-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.floor { position: relative; background: #2b2420 linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)), repeating-linear-gradient(45deg, #3a2f29 0 22px, #352b25 22px 44px); border-radius: 12px; padding: 54px 18px 46px; }
.floor .kitchen, .floor .entrance { position: absolute; left: 50%; transform: translateX(-50%); background: #16120f; border: 1px solid #4b3f37; color: #cfc2b8; font-size: 11px; letter-spacing: .2em; padding: 6px 18px; border-radius: 6px; }
.floor .kitchen { top: 12px; } .floor .entrance { bottom: 10px; }
.tables { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tbl-tile { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; color: #fff; position: relative; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); font-size: 15px; transition: transform .12s; }
.tbl-tile:hover { transform: translateY(-2px); }
.tbl-tile small { font-weight: 500; font-size: 12px; display: flex; gap: 4px; align-items: center; opacity: .95; }
.tbl-tile .lbl { font-size: 10.5px; font-weight: 500; opacity: .9; }
.tbl-tile.sel { outline: 3px solid #fff; outline-offset: 2px; }
.t-free { background: var(--st-free); } .t-reserved { background: var(--st-reserved); } .t-seated { background: var(--st-seated); } .t-bill { background: var(--st-bill); } .t-cleaning { background: var(--st-cleaning); }
.hold { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.hold.urgent { color: #ff9b8f; }

/* waiter */
.table-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.table-chip { flex: none; min-width: 56px; padding: 6px 8px; border-radius: 10px; text-align: center; font-weight: 700; background: var(--card2); border: 1px solid var(--line); font-size: 13px; line-height: 1.2; position: relative; }
.table-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.table-chip.on { background: var(--accent); border-color: var(--accent); }
.table-chip.on small { color: #fff; }
.table-chip i { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; }
.waiter-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(320px, 400px); gap: 16px; align-items: start; margin-top: 14px; }
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-list button { text-align: left; padding: 11px 12px; border-radius: 10px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.cat-list button.on { background: var(--accent); color: #fff; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.wdish { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.wdish .ph { aspect-ratio: 16/9; background: #2a1b16 center/cover; position: relative; }
.wdish .ph .vg { position: absolute; top: 8px; left: 8px; }
.wdish .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wdish h4 { font-size: 14.5px; font-family: var(--serif); }
.wdish p { margin: 0; font-size: 12px; color: var(--muted); }
.wdish .ft { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.wdish.out { opacity: .45; }
.oline { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.oline:first-child { border-top: 0; }
.oline .thumb { width: 52px; height: 46px; }
.oline h5 { margin: 0; font-size: 14px; font-family: var(--serif); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--accent); border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #ffb6a3; }
.qty b { min-width: 22px; text-align: center; }
.lst { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.lst-pending { background: rgba(124, 92, 255, .18); color: #c3b4ff; }
.lst-new { background: rgba(224, 165, 38, .15); color: #f2c25b; }
.lst-preparing { background: rgba(240, 106, 29, .16); color: #ffab7a; }
.lst-ready { background: rgba(59, 130, 246, .16); color: #8bb8ff; }
.lst-served { background: rgba(47, 158, 102, .16); color: #67d49c; }
.pending-box { background: rgba(194, 80, 47, .1); border: 1px solid rgba(194, 80, 47, .35); border-radius: 12px; padding: 12px; margin-top: 12px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(224, 165, 38, .1); border-radius: 10px; padding: 12px 14px; font-family: var(--serif); font-weight: 700; font-size: 18px; margin-top: 12px; }

/* kitchen */
.kds-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; align-items: stretch; }
.stock-card { flex: none; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.stock-card.out { border-color: var(--red); background: rgba(224, 85, 69, .1); }
.stock-card .thumb { width: 38px; height: 38px; }
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; align-items: start; }
.kcol { border-radius: 16px; padding: 12px; border: 1px solid; min-height: 300px; }
.kcol.new { background: #111a2e; border-color: #24407a; }
.kcol.prep { background: #24160e; border-color: #6a3a18; }
.kcol.ready { background: #0f2219; border-color: #1f5a3c; }
.kcol > h3 { display: flex; gap: 10px; align-items: center; font-size: 19px; margin: 4px 4px 12px; }
.ticket { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.ticket .th { display: flex; gap: 10px; align-items: center; }
.tno { width: 44px; height: 44px; border-radius: 10px; background: #fff; color: #111; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.ticket .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.late { color: #ff8c7a; font-weight: 700; } .warmish { color: #f2c25b; font-weight: 700; }
.titem { display: grid; grid-template-columns: 40px 26px 1fr; gap: 8px; align-items: center; margin-top: 10px; }
.titem .thumb { width: 40px; height: 34px; }
.titem b { font-size: 15px; }
.titem .nt { color: var(--muted); font-size: 12px; }
.tnote { margin-top: 8px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: #e9d7c9; }

/* cashier */
.cash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bill-card { background: #f8f3ee; color: #2a1712; border-radius: 16px; padding: 18px; }
.bill-card .muted { color: #7a6a63; }
.bill-card .tbl th { background: #efe5dc; color: #7a6a63; }
.bill-card .tbl td { border-color: #eadfd6; }
.bill-card h2 { font-family: var(--serif); font-size: 26px; }
.bill-card .sum { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bill-card .sum > div { display: flex; justify-content: space-between; color: #7a6a63; }
.bill-card .neg { color: #c0392b; font-weight: 600; }
.bill-card .grand { background: #fbe9d0; border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-weight: 800; font-size: 24px; margin-top: 12px; color: #2a1712; }
.cust-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; background: #fff; border-radius: 12px; padding: 12px; margin: 12px 0; }
.cust-row > div { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.paymodes { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 10px; margin-top: 14px; }
.paymode { background: #fff; border: 1.5px solid #eadfd6; border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; color: #2a1712; }
.paymode.on { border-color: #b5462b; background: #fff1ec; color: #b5462b; }
.pay-ok { background: #e1efe7; color: #2f6b4f; border-radius: 12px; padding: 12px 14px; margin-top: 12px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.bill-card .switch.on { background: #2f6b4f; }

/* owner */
.ow { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 32px); background: linear-gradient(90deg, #120f22 236px, transparent 236px); }
.ow > *, .host-grid > *, .cash-grid > *, .grid-3 > *, .grid-ov2 > *, .grid-2 > *, .waiter-grid > *, .kds > * { min-width: 0; }
.side { background: #120f22; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: calc(100vh - 32px); }
.side .brand { margin: 4px 8px 20px; }
.side .brand .w { font-family: var(--sans); font-size: 24px; font-weight: 800; }
.side .brand .w small { letter-spacing: .02em; font-size: 11px; font-weight: 500; color: var(--muted); }
.side nav button, .side nav a { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; color: #c7cada; font-weight: 500; text-decoration: none; }
.side nav button.on { background: var(--accent); color: #fff; }
.side .art { margin-top: auto; border-radius: 14px; height: 210px; background: url(assets/img/interior-owner.jpg) center / cover; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 16px; text-align: center; }
.side .art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 15, 34, .2), rgba(18, 15, 34, .9)); }
.side .art span { position: relative; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.side .art small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .3em; color: var(--saffron); margin-top: 4px; }
.ow-main { padding: 18px 24px 40px; min-width: 0; }
.ow-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--accent); color: #fff; }
.who { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.av { width: 38px; height: 38px; border-radius: 50%; background: #3a3f55; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h1 { font-size: 26px; font-family: var(--sans); font-weight: 700; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.kpi .ki { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.kpi .lb { color: var(--muted); font-size: 12.5px; }
.kpi b { display: block; font-size: 22px; margin: 2px 0; white-space: nowrap; }
.kpi .dl { font-size: 12px; color: var(--muted); }
.up { color: #67d49c; } .down { color: #ff9b8f; }
.ki-green { background: #1f7a4d; } .ki-blue { background: #2f5fd0; } .ki-amber { background: #c98a12; } .ki-purple { background: #6b4fe0; } .ki-red { background: #c2413a; } .ki-gold { background: #b98a16; }
.grid-3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.grid-ov2 { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 14px; margin-top: 14px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.chart .bar { fill: var(--accent); }
.chart .bar:hover, .chart .bar.hov { fill: #9d85ff; }
.chart .grid { stroke: #2b3040; stroke-width: 1; }
.chart .val { fill: var(--text); font-weight: 600; }
.tip { position: fixed; pointer-events: none; z-index: 300; background: #0b0d12; border: 1px solid #3b4256; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.tip b { display: block; font-size: 14px; }
.toplist { display: flex; flex-direction: column; gap: 10px; }
.toplist .it { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 10px; align-items: center; }
.toplist .rk { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.toplist .thumb { width: 40px; height: 34px; }
.toplist .bar-bg { height: 5px; background: #2b3040; border-radius: 3px; margin-top: 5px; }
.toplist .bar-bg i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.mini-floor { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mini-floor .tbl-tile { font-size: 13px; aspect-ratio: 1.2; border-radius: 10px; box-shadow: none; }
.feed { display: flex; flex-direction: column; }
.feed .fi { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.feed .fi:first-child { border: 0; }
.feed .fic { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.summary .sr2 { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.summary .sr2:first-child { border: 0; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa button { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 13px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--bg2); border-left: 1px solid var(--line); z-index: 91; overflow-y: auto; padding: 20px; animation: slide .2s; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 13px; }
.field .input, .field .select, .field textarea { font-weight: 400; }
.field textarea { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 80px; resize: vertical; outline: none; }
.seg-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-choice button { border: 1px solid var(--line); background: var(--card2); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 13px; }
.seg-choice button.on { border-color: var(--accent); background: var(--accent-soft); }
.kpi4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.set-row { display: grid; grid-template-columns: 34px 1fr 150px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border: 0; }
.set-row .ic { color: #c3b4ff; }
.set-row b { display: block; }
.set-row .hint { font-size: 12px; color: var(--muted); background: var(--card2); border-radius: 10px; padding: 8px 10px; }
.unit-in { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card2); }
.unit-in input { background: none; border: 0; outline: none; padding: 9px 10px; width: 100%; min-width: 0; }
.unit-in span { padding: 9px 10px; color: var(--muted); border-left: 1px solid var(--line); font-size: 13px; }
.unit-in span.pre { border-left: 0; border-right: 1px solid var(--line); }
.loyal-prev { display: grid; grid-template-columns: 220px 1fr; gap: 16px; background: linear-gradient(135deg, #241d4a, #191533); border-radius: 14px; padding: 16px; align-items: center; }
.loyal-card { background: linear-gradient(135deg, #f0b43c, #e09a1c); color: #2a1712; border-radius: 14px; padding: 16px; }
.loyal-card b { font-size: 26px; display: block; }
.bars-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.notice { background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .4); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 440px; padding: 20px; max-height: 90vh; overflow: auto; }
.modal h3 { font-size: 20px; font-family: var(--serif); margin-bottom: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: #111; padding: 12px 16px; border-radius: 12px; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: flex; gap: 10px; align-items: center; font-weight: 500; max-width: calc(100% - 32px); }
.toast .ic { color: var(--green); }

@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-ov2 { grid-template-columns: 1fr 1fr; }
  .waiter-grid { grid-template-columns: 150px minmax(0, 1fr); }
  .waiter-grid .order-panel { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .host-grid, .cash-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .kds { grid-template-columns: 1fr; }
  .counts { margin-left: 0; width: 100%; }
  .ow { grid-template-columns: 1fr; background: none; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; z-index: 20; padding: 8px 10px; overflow-x: auto; gap: 6px; }
  .side .brand, .side .art { display: none; }
  .side nav { display: flex; gap: 4px; }
  .side nav button { white-space: nowrap; padding: 9px 12px; }
  .set-row { grid-template-columns: 30px 1fr 130px; }
  .set-row .hint { grid-column: 2 / -1; }
  .loyal-prev { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .st-head { padding: 12px 14px; gap: 10px; }
  .brand .tagline { display: none; }
  .role-tabs { width: 100%; overflow-x: auto; }
  .role-tabs button { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
  .role-tabs button .ic { display: none; }
  .cnt { min-width: 0; flex: 1; padding: 6px 8px; }
  .cnt .ic { display: none; }
  .st-main, .ow-main { padding: 14px 12px 30px; }
  .tables { gap: 8px; }
  .tbl-tile .lbl { display: none; }
  .ow-top > .seg { display: none; }
  .ow-top .who { margin-left: 0; }
  .floor { padding: 46px 10px 40px; }
  .waiter-grid { grid-template-columns: 1fr; }
  .cat-list { flex-direction: row; overflow-x: auto; }
  .cat-list button { white-space: nowrap; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis, .kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-ov2 { grid-template-columns: 1fr; }
  .paymodes { grid-template-columns: repeat(3, 1fr); }
  .paymodes .btn { grid-column: 1 / -1; }
  .cust-row { grid-template-columns: 1fr; }
  .who .small { display: none; }
  .tbl .hide-m { display: none; }
  .set-row { grid-template-columns: 26px 1fr; }
  .set-row > :nth-child(3) { grid-column: 2; }
}
