/* ============================================================
 *  Restoé — Restaurant Management System  ·  2026 UI
 * ============================================================ */
:root {
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #0f1222;
  --ink-2: #5b6178;
  --ink-3: #9aa1b6;
  --line: #eceef4;
  --line-2: #e2e5ee;
  --brand: #2e9e5b;
  --brand-2: #46b873;
  --brand-ink: #1c7a44;
  --brand-soft: #e3f6ea;
  --accent: #10b8a6;
  --accent-soft: #dcf7f2;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #e0900b;
  --warn-soft: #fdf3d7;
  --info: #2f6df6;
  --info-soft: #e2ecff;
  --danger: #e23b4e;
  --danger-soft: #fde7ea;
  --r: 16px;
  --r-sm: 11px;
  --r-lg: 22px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(16, 18, 40, 0.05);
  --sh:
    0 4px 14px -6px rgba(16, 18, 40, 0.12),
    0 2px 6px -4px rgba(16, 18, 40, 0.08);
  --sh-lg: 0 24px 60px -22px rgba(16, 18, 40, 0.32);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1018;
    --bg-2: #0b0d14;
    --surface: #161925;
    --surface-2: #1c2030;
    --ink: #eef0f7;
    --ink-2: #a4abc4;
    --ink-3: #717892;
    --line: #242838;
    --line-2: #2c3142;
    --brand-soft: #15301f;
    --info-soft: #16233f;
    --ok-soft: #10301f;
    --warn-soft: #33280c;
    --danger-soft: #3a1620;
    --accent-soft: #0c2f2b;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.num {
  font-variant-numeric: tabular-nums;
}
::selection {
  background: var(--brand-soft);
}

/* ---------- top app bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1640px;
  margin: 0 auto;
  padding: 11px 22px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px -4px rgba(109, 94, 252, 0.55);
}
.navtoggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.nav::-webkit-scrollbar {
  height: 5px;
}
.nav::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 6px;
}
.nav::-webkit-scrollbar-track {
  background: transparent;
}
.nav a,
.nav .grp > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav a:hover,
.nav .grp > button:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}
.nav a.on,
.nav .grp > button.on {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.grp {
  position: relative;
  flex-shrink: 0;
}
.grp .menu {
  position: fixed;
  min-width: 212px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  z-index: 60;
}
.grp.open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.grp:focus-within .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.grp .menu a {
  display: flex;
  width: 100%;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13.5px;
}
.grp .menu a:hover {
  background: var(--surface-2);
}
.grp .menu a.on {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.bar .right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: 0.2s;
}
.live.on i {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}
.live.on {
  color: var(--ok);
}
.live.off i {
  background: var(--danger);
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.who .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.who .m {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}
.who .m b {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- page ---------- */
.page {
  max-width: 1640px;
  margin: 0 auto;
  padding: 26px 22px;
}
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.head h1 {
  font-size: 25px;
}
.head .sub {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 3px;
}

/* ---------- cards / grid ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.card .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.card .bd {
  padding: 18px;
}
.grid {
  display: grid;
  gap: 18px;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1050px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- stat tiles ---------- */
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}
.stat .k {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat .v {
  font-size: 30px;
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -0.03em;
}
.stat .s {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 4px;
}
.stat .ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.stat.a {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  color: #fff;
}
.stat.a .k,
.stat.a .s {
  color: rgba(255, 255, 255, 0.85);
}
.stat.a .ic {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.13s;
  text-decoration: none;
}
.btn:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(46, 158, 91, 0.5);
}
.btn.primary:hover {
  filter: brightness(1.04);
}
.btn.dark {
  background: var(--ink);
  border: 0;
  color: #fff;
}
.btn.ok {
  background: var(--ok);
  border: 0;
  color: #fff;
}
.btn.danger {
  background: var(--danger);
  border: 0;
  color: #fff;
}
.btn.ghost {
  background: transparent;
}
.btn.sm {
  padding: 7px 11px;
  font-size: 12.5px;
  border-radius: 9px;
}
.btn.block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- forms ---------- */
.fld {
  display: block;
  margin-bottom: 14px;
}
.fld .lb {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: 0.13s;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
  min-width: 120px;
}
label.chk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}
label.chk input {
  width: auto;
}

/* ---------- tables ---------- */
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.tbl th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
table.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.tbl tbody tr:last-child td {
  border-bottom: 0;
}
table.tbl tbody tr:hover td {
  background: var(--surface-2);
}
.r {
  text-align: right;
}
.muted {
  color: var(--ink-3);
}

/* ---------- pills / badges ---------- */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
}
.pill-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill-info {
  background: var(--info-soft);
  color: var(--info);
}
.pill-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.pill-muted {
  background: var(--bg-2);
  color: var(--ink-2);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.empty {
  text-align: center;
  padding: 48px;
  color: var(--ink-3);
}
.flash {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  margin-bottom: 18px;
}
.flash.success {
  background: var(--ok-soft);
  color: var(--ok);
}
.flash.error {
  background: var(--danger-soft);
  color: var(--danger);
}
.flash.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* ---------- floor ---------- */
.tablesgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.tcard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--sh-sm);
  text-align: center;
  transition: 0.14s;
  color: var(--ink);
  border-top: 4px solid var(--ink-3);
}
.tcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh);
  text-decoration: none;
}
.tcard.free {
  border-top-color: var(--ok);
}
.tcard.occupied {
  border-top-color: var(--warn);
}
.tcard.billed {
  border-top-color: var(--info);
}
.tcard.reserved {
  border-top-color: var(--ink-3);
}
.tcard .no {
  font-size: 22px;
  font-weight: 800;
}
.tcard .ar {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  margin-top: 3px;
}
.tcard .cap {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 7px;
}

/* ---------- KDS (kitchen / bar) — bold & visible ---------- */
.kbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kbar .seg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--sh-sm);
}
.kbar .seg .n {
  font-size: 22px;
  font-weight: 800;
}
.kbar .pending .n {
  color: var(--warn);
}
.kbar .prep .n {
  color: var(--info);
}
.kbar .ready .n {
  color: var(--ok);
}
.kbar .auto {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
}
.ticket .th {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--info), #5a8bff);
}
.ticket.warn .th {
  background: linear-gradient(135deg, var(--warn), #f0a93a);
}
.ticket.late .th {
  background: linear-gradient(135deg, var(--danger), #f0586a);
}
.ticket .th .t {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.ticket .th .o {
  font-size: 12.5px;
  opacity: 0.9;
  margin-top: 2px;
}
.ticket .age {
  font-size: 15px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.ticket .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.ticket .row:last-child {
  border-bottom: 0;
}
.ticket .row.done {
  opacity: 0.4;
}
.ticket .row.done .nm {
  text-decoration: line-through;
}
.ticket .nm {
  font-weight: 700;
  font-size: 16px;
}
.ticket .q {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 800;
  margin-right: 10px;
  font-size: 14px;
}
.ticket .nt {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 3px;
}
.kbtn {
  border: 0;
  border-radius: 11px;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  margin-left: 6px;
}
.kbtn.start {
  background: var(--info-soft);
  color: var(--info);
}
.kbtn.ready {
  background: var(--ok-soft);
  color: var(--ok);
}
.kbtn.served {
  background: var(--ink);
  color: #fff;
}
.kbtn:active {
  transform: scale(0.96);
}

/* ---------- login ---------- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      1100px 500px at 80% -10%,
      var(--brand-soft),
      transparent 60%
    ),
    var(--bg);
}
.login .card {
  width: 392px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 38px 34px;
}
.login .logo {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 28px -8px rgba(109, 94, 252, 0.6);
}
.login h1 {
  text-align: center;
  font-size: 23px;
}
.login .sub {
  text-align: center;
  color: var(--ink-2);
  margin: 5px 0 24px;
  font-size: 13px;
}
.login .hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}
.login .hint code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- responsive nav ---------- */
@media (max-width: 980px) {
  .navtoggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px;
    gap: 2px;
    max-height: calc(100vh - 64px);
    overflow: auto;
    box-shadow: var(--sh-lg);
  }
  .nav.open {
    display: flex;
  }
  .grp {
    width: 100%;
  }
  .grp > button {
    width: 100%;
    justify-content: space-between;
  }
  .grp .menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 2px 0 6px 16px;
    min-width: 0;
  }
  .who .m {
    display: none;
  }
}
@media print {
  .appbar,
  .toolbar,
  .no-print {
    display: none !important;
  }
  .page {
    padding: 0;
  }
  .card {
    box-shadow: none;
    border-color: #ccc;
  }
}

/* ---------- POS (standalone) ---------- */
.posbody {
  margin: 0;
  background: var(--bg);
  height: 100vh;
  overflow: hidden;
}
.pos {
  display: flex;
  height: 100vh;
}
.rail {
  width: 74px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 6px;
}
.rail .lg {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.rail a {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 20px;
  position: relative;
  text-decoration: none;
}
.rail a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.rail a.on {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.rail a span {
  position: absolute;
  left: 60px;
  background: var(--ink);
  color: #fff;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 5;
}
.rail a:hover span {
  opacity: 1;
}
.rail .sp {
  flex: 1;
}
.posmain {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.postop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
}
.psearch {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--sh-sm);
}
.psearch input {
  border: 0;
  padding: 0;
  background: transparent;
}
.psearch input:focus {
  box-shadow: none;
}
.postop .pr {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.poscontent {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 4px 22px 22px;
  overflow: hidden;
}
.poscenter {
  flex: 1;
  overflow: auto;
}
.catg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
@media (max-width: 1200px) {
  .catg {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: 0.14s;
}
.cat:hover {
  transform: translateY(-1px);
}
.cat.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
}
.cat.on .cn,
.cat.on .cc {
  color: #fff;
}
.cat.on .ci {
  background: rgba(255, 255, 255, 0.2);
}
.cat .ci {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.cat .cn {
  font-weight: 700;
  font-size: 14px;
}
.cat .cc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.postitle {
  font-size: 20px;
  font-weight: 800;
  margin: 24px 0 14px;
}
.itemg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1400px) {
  .itemg {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .itemg {
    grid-template-columns: 1fr;
  }
}
.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
}
.item .it {
  display: flex;
  gap: 12px;
}
.item .im {
  width: 62px;
  height: 62px;
  border-radius: 13px;
  flex: none;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
}
.item .nm {
  font-weight: 700;
  font-size: 15px;
}
.item .ds {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item .ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.item .pr {
  font-size: 20px;
  font-weight: 800;
}
.item .pr .c {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 14px;
  margin-right: 1px;
}
.step {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 11px;
  padding: 4px;
}
.step button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-2);
}
.step .pl {
  background: var(--brand);
  color: #fff;
}
.step button:disabled {
  opacity: 0.4;
}
.step .q {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
}
.posinv {
  width: 350px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.posinv .ih {
  padding: 20px 22px 12px;
  font-size: 20px;
  font-weight: 800;
}
.posinv .items {
  flex: 1;
  overflow: auto;
  padding: 0 22px;
}
.il {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.il .ii {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: none;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
}
.il .id {
  flex: 1;
  min-width: 0;
}
.il .n {
  font-weight: 700;
  font-size: 13px;
}
.il .x {
  font-size: 12px;
  color: var(--brand-ink);
  font-weight: 600;
  margin-top: 3px;
}
.il .p {
  font-weight: 700;
  font-size: 14px;
}
.il .rm {
  background: 0;
  border: 0;
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
}
.il .rm:hover {
  color: var(--danger);
}
.ie {
  padding: 30px 4px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.posinv .sum {
  padding: 16px 22px;
  border-top: 1px dashed var(--line);
}
.sum .st {
  font-weight: 800;
  margin-bottom: 10px;
}
.sr {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  margin: 8px 0;
}
.sr b {
  color: var(--ink);
}
.sr.tot {
  border-top: 1px dashed var(--line);
  padding-top: 11px;
  margin-top: 11px;
  font-weight: 800;
  font-size: 15px;
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 0 22px 4px;
}
.tab {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}
.tab span {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.tab.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.place {
  margin: 14px 22px 22px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 15px;
  cursor: pointer;
}
.place:disabled {
  opacity: 0.5;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--ink-3);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transition: 0.25s;
  z-index: 80;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}
.toast.err {
  background: var(--danger);
}
@media (max-width: 820px) {
  .poscontent {
    flex-direction: column;
    overflow: auto;
  }
  .posinv {
    width: auto;
  }
  .catg {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- realistic split login (Nexa Cafe) ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--surface);
}
.auth__brand {
  position: relative;
  overflow: hidden;
  color: #f4efe6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  background: linear-gradient(150deg, #1f3d2b 0%, #2f5740 45%, #3c6b4d 100%);
}
.auth__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background:
    radial-gradient(circle at 18% 22%, #a7d7b4 0, transparent 26%),
    radial-gradient(circle at 82% 16%, #cdeccf 0, transparent 22%),
    radial-gradient(circle at 70% 86%, #7bbf93 0, transparent 30%);
}
.auth__brand::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
}
.auth__logo {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.auth__logo .mk {
  width: 168px;
  height: 168px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 84px;
  background-size: cover;
  background-position: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}
.auth__hero {
  position: relative;
  max-width: 420px;
}
.auth__hero h2 {
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 14px;
}
.auth__hero p {
  color: rgba(244, 239, 230, 0.82);
  font-size: 15px;
  line-height: 1.6;
}
.auth__feat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 26px;
}
.auth__feat div {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: rgba(244, 239, 230, 0.92);
}
.auth__feat .b {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 15px;
}
.auth__foot {
  position: relative;
  font-size: 12.5px;
  color: rgba(244, 239, 230, 0.65);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.auth__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth__card {
  width: 100%;
  max-width: 380px;
}
.auth__card .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.auth__card h1 {
  font-size: 28px;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.auth__card .lead {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 24px;
}
.auth__card .inwrap {
  position: relative;
}
.auth__card .inwrap .ic {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 16px;
}
.auth__card .inwrap input {
  padding-left: 40px;
  height: 48px;
}
.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 18px;
  font-size: 13px;
}
.auth__card .btn.primary {
  height: 50px;
  font-size: 15px;
}
.auth__hint {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  text-align: center;
}
.auth__hint code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
@media (max-width: 880px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth__brand {
    display: none;
  }
}

/* POS order-type / table selector */
.posinv .ih {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.otype {
  width: auto;
  min-width: 120px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft);
}

/* POS — green brand accent */
.posbody {
  --brand: #2e9e5b;
  --brand-2: #46b873;
  --brand-ink: #1c7a44;
  --brand-soft: #e3f6ea;
  --bg: #fbfcfe;
}
.posbody .rail {
  box-shadow: 1px 0 0 var(--line);
}
.posbody .cat {
  border-color: #eef0f6;
}
.posbody .item {
  border-color: #eef0f6;
}
.posbody .place {
  box-shadow: 0 10px 22px -10px rgba(46, 158, 91, 0.55);
}

/* KDS ticket thumbnails */
.ticket .ki {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kthumb {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: none;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  background-color: var(--surface-2);
  color: var(--ink-3);
  font-size: 22px;
}
.kthumb.ph {
  background-image: none;
}

/* ---------- Floor / Tables (table-layout design) ---------- */
.ftabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}
.ftab {
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  border: 1px solid transparent;
}
.ftab:hover {
  background: var(--surface-2);
  text-decoration: none;
  color: var(--ink);
}
.ftab.on {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.tablecard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh-sm);
  padding: 30px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  overflow: hidden;
  transition: 0.15s;
}
.tablecard:hover {
  box-shadow: var(--sh);
  transform: translateY(-2px);
  text-decoration: none;
}
.tablecard .chairs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}
.tablecard .chairs.top {
  top: 16px;
}
.tablecard .chairs.bottom {
  bottom: 24px;
}
.tablecard .chairs span {
  width: 36px;
  height: 11px;
  border-radius: 6px;
  background: #e6e9f1;
}
.tablecard .chair {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 11px;
  height: 48px;
  border-radius: 6px;
  background: #e6e9f1;
}
.tablecard .chair.left {
  left: 18px;
}
.tablecard .chair.right {
  right: 18px;
}
.tshape {
  position: relative;
  z-index: 1;
  background: #f1f3f8;
  border: 1px solid #e9ecf3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #3a4256;
  line-height: 1.25;
}
.tshape .ic {
  font-size: 18px;
}
.tshape b {
  font-size: 14px;
  margin-top: 3px;
}
.tshape small {
  font-size: 12px;
  color: var(--ink-3);
}
.tshape.square {
  width: 122px;
  height: 98px;
  border-radius: 13px;
}
.tshape.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.tshape.rectangle {
  width: 154px;
  height: 90px;
  border-radius: 13px;
}
.tbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 9px;
  height: 7px;
  border-radius: 6px;
  background: var(--ok);
}
.tablecard.occupied .tbar,
.tablecard.billed .tbar {
  background: var(--danger);
}
.tablecard.reserved .tbar {
  background: var(--warn);
}
/* dark-mode chairs/shape */
@media (prefers-color-scheme: dark) {
  .tablecard .chairs span,
  .tablecard .chair {
    background: #2c3142;
  }
  .tshape {
    background: #1c2030;
    border-color: #2c3142;
    color: #cdd3e6;
  }
}
.fbottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px 24px;
  font-size: 13px;
  z-index: 30;
  box-shadow: 0 -4px 14px -8px rgba(16, 18, 40, 0.18);
}
.fbottom .lg {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 600;
}
.fbottom .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.fbottom .slot {
  margin-left: auto;
  display: flex;
  gap: 26px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.fbottom .slot b {
  color: var(--ink);
}
.page {
  padding-bottom: 78px;
}
@media (max-width: 680px) {
  .fbottom {
    flex-wrap: wrap;
    gap: 12px;
  }
  .fbottom .slot {
    margin-left: 0;
    gap: 14px;
  }
}

/* ---------- POS-style order page ---------- */
.ordgrid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
.ochips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ochips .pill {
  cursor: pointer;
  padding: 7px 14px;
  font-size: 13px;
}
button.item {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.addchip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 10px;
}
.ordinv {
  width: auto;
  position: sticky;
  top: 84px;
}
.ordinv .oqty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.ordinv .oqty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-2);
}
.ordinv .oqty form {
  display: inline;
}
.ordinv .rm {
  background: 0;
  border: 0;
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
  padding: 0 0 0 6px;
}
.ordinv .rm:hover {
  color: var(--danger);
}
@media (max-width: 900px) {
  .ordgrid {
    grid-template-columns: 1fr;
  }
  .ordinv {
    position: static;
  }
}

/* Settings floor map editor */
.fmap {
  position: relative;
  height: 460px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background:
    linear-gradient(var(--surface-2) 1px, transparent 1px) 0 0/100% 40px,
    linear-gradient(90deg, var(--surface-2) 1px, transparent 1px) 0 0/40px 100%,
    var(--surface);
  overflow: hidden;
  touch-action: none;
}
.fnode {
  position: absolute;
  width: 96px;
  height: 78px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  cursor: grab;
  user-select: none;
  color: var(--ink);
}
.fnode:active {
  cursor: grabbing;
}
.fnode span {
  font-size: 16px;
  margin-bottom: 2px;
}
.fnode.square {
  border-radius: 12px;
}
.fnode.circle {
  border-radius: 50%;
  width: 84px;
  height: 84px;
}
.fnode.rectangle {
  border-radius: 12px;
  width: 120px;
  height: 70px;
}

/* ---------- KDS board: Active / Completed by table ---------- */
.kboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) {
  .kboard {
    grid-template-columns: 1fr;
  }
}
.kcol .kh {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kcol .kh span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 11px;
}
.kcol .kh.done {
  color: var(--ok);
}
.ktbl {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin: 16px 0 8px;
}
.kcard {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  margin-bottom: 11px;
  box-shadow: var(--sh-sm);
  transition: 0.13s;
}
.kcard.can {
  cursor: pointer;
}
.kcard.can:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh);
}
.kcard .kth {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  background-color: var(--surface-2);
  color: var(--ink-3);
  font-size: 20px;
}
.kcard .kb {
  flex: 1;
  min-width: 0;
}
.kcard .knm {
  font-weight: 700;
  font-size: 15px;
}
.kcard .ks {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.kcard .kq {
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-2);
}
.kcard.done {
  background: linear-gradient(180deg, #57c574, #46b566);
  border: 0;
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(70, 181, 102, 0.85);
}
.kcard.done .knm {
  color: #fff;
}
.kcard.done .ks {
  color: rgba(255, 255, 255, 0.92);
}
.kcard.done .kth {
  background-color: rgba(255, 255, 255, 0.28);
}
.kcard.done .kq {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.kempty2 {
  color: var(--ink-3);
  font-size: 13px;
  padding: 14px 2px;
}

/* KDS new-order badge */
.knew {
  position: fixed;
  top: 78px;
  right: 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.25s;
  z-index: 60;
  pointer-events: none;
}
.knew.show {
  opacity: 1;
  transform: none;
}

/* order page tools + panels + table card badges */
.ordtools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ordpanel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh-sm);
  padding: 14px;
  margin-bottom: 14px;
}
.tablecard .twaiter {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tablecard .tdisc {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 13px;
  z-index: 2;
}
.tablecard .tnote {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--info-soft);
  color: var(--info);
  font-size: 12px;
  z-index: 2;
}

/* KDS stages */
.kright {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.kstage {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kstage.st-pending {
  background: var(--bg-2);
  color: var(--ink-2);
}
.kstage.st-accepted {
  background: var(--info-soft);
  color: var(--info);
}
.kstage.st-preparing {
  background: var(--warn-soft);
  color: var(--warn);
}
.kstage.st-ready {
  background: var(--accent-soft);
  color: #0c7d70;
}
.kadv {
  border: 0;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  background: var(--brand);
}
.kadv.st-accepted {
  background: var(--info);
}
.kadv.st-preparing {
  background: var(--warn);
}
.kadv.st-ready {
  background: var(--accent);
}
.kadv.st-completed {
  background: var(--ok);
}
.kadv.undo {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.kadv:active {
  transform: scale(0.96);
}
.kadv:disabled {
  opacity: 0.5;
}

/* header menu icons */
.nav a .ni,
.nav .grp > button .ni {
  font-size: 15px;
  margin-right: 2px;
  opacity: 0.95;
}

/* waiter "order ready" buzzer */
.buzzbar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 18px 40px -14px rgba(22, 163, 74, 0.8);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: 90vw;
  cursor: pointer;
}
.buzzbar.show {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
  animation: buzzpulse 1s ease-in-out 2;
}
.buzzbar .bz {
  font-size: 24px;
}
.buzzbar b {
  font-size: 15px;
}
.buzzbar .bsub {
  font-size: 12.5px;
  opacity: 0.92;
  margin-top: 2px;
}
.buzzbar .bx {
  margin-left: 6px;
  opacity: 0.8;
  font-size: 18px;
}
@keyframes buzzpulse {
  0%,
  100% {
    box-shadow: 0 18px 40px -14px rgba(22, 163, 74, 0.8);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(34, 197, 94, 0.35),
      0 18px 40px -14px rgba(22, 163, 74, 0.8);
  }
}

/* datatable */
.dt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.dt-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 12px;
  flex: 1;
  max-width: 340px;
}
.dt-search input {
  border: 0;
  background: transparent;
  padding: 0;
}
.dt-search input:focus {
  box-shadow: none;
}
.dt-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.dt-count {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
}
th.dt-sortable {
  cursor: pointer;
  user-select: none;
}
th.dt-sortable:hover {
  color: var(--ink);
}
th[data-dir="asc"]::after {
  content: " \2191";
}
th[data-dir="desc"]::after {
  content: " \2193";
}
.dt-pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 14px;
}
.dt-pg {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
}
.dt-pg.on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* SweetAlert-style dialogs + toasts */
.swal-ov {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: 0.18s;
  padding: 20px;
}
.swal-ov.show {
  opacity: 1;
}
.swal {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  width: 400px;
  max-width: 100%;
  padding: 28px 26px;
  text-align: center;
  transform: scale(0.94);
  transition: 0.18s;
}
.swal-ov.show .swal {
  transform: scale(1);
}
.swal-ic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 800;
}
.swal-ic.success {
  background: var(--ok-soft);
  color: var(--ok);
}
.swal-ic.error {
  background: var(--danger-soft);
  color: var(--danger);
}
.swal-ic.warning {
  background: var(--warn-soft);
  color: var(--warn);
}
.swal-ic.question {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.swal-ic.info {
  background: var(--info-soft);
  color: var(--info);
}
.swal-t {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.swal-x {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
  white-space: pre-line;
  text-align: left;
  max-height: 50vh;
  overflow: auto;
}
.swal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.swal-btns .btn {
  min-width: 110px;
  padding: 11px 18px;
}
#swal-toasts {
  position: fixed;
  top: 74px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 210;
}
.swal-toast {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-3);
  border-radius: 12px;
  box-shadow: var(--sh-lg);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  min-width: 240px;
  max-width: 360px;
  opacity: 0;
  transform: translateX(20px);
  transition: 0.25s;
}
.swal-toast.show {
  opacity: 1;
  transform: none;
}
.swal-toast .ti {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.swal-toast.success {
  border-left-color: var(--ok);
}
.swal-toast.success .ti {
  background: var(--ok-soft);
  color: var(--ok);
}
.swal-toast.error {
  border-left-color: var(--danger);
}
.swal-toast.error .ti {
  background: var(--danger-soft);
  color: var(--danger);
}
.swal-toast.warning {
  border-left-color: var(--warn);
}
.swal-toast.warning .ti {
  background: var(--warn-soft);
  color: var(--warn);
}
.swal-toast.info {
  border-left-color: var(--info);
}
.swal-toast.info .ti {
  background: var(--info-soft);
  color: var(--info);
}

/* form dialog (modal) */
.dlg {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 40, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 40px 16px;
  overflow: auto;
}
.dlg.show {
  display: flex;
}
.dlgcard {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  width: 520px;
  max-width: 100%;
  overflow: hidden;
}
.dlghd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.dlghd b {
  font-size: 17px;
}
.dlgx {
  background: 0;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink-3);
  line-height: 1;
}
.dlg form {
  padding: 20px;
}

.dlgft {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.dlgft .btn {
  min-width: 96px;
}

.ordbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ordno {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---- Waiters page: compact tables + header controls ---- */
.floorhead {
  align-items: center;
}
.floorbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.floorbar .lg {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
}
.floorbar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.floorbar .dot.occ {
  background: var(--danger);
}
.floorbar .dot.vac {
  background: var(--ok);
}
.floorbar .slotpill {
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  padding: 7px 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.floorbar .slotpill b {
  color: var(--ink);
}
.areahd {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.areahd .muted {
  font-weight: 600;
  font-size: 12px;
  background: var(--surface-2);
  padding: 1px 8px;
  border-radius: 20px;
}
.tgrid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.tablecard.mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 10px 17px;
  border-radius: 14px;
  min-height: auto;
  line-height: 1.25;
}
.tablecard.mini .ic {
  font-size: 19px;
  color: var(--ink-3);
}
.tablecard.mini .tno {
  font-size: 16px;
  font-weight: 800;
  margin-top: 3px;
}
.tablecard.mini small {
  font-size: 11.5px;
  color: var(--ink-3);
}
.tablecard.mini .tw {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tablecard.mini .tbar {
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 5px;
}
.tablecard.mini .tnote {
  top: 7px;
  left: 7px;
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.floortop {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.floortop .ftabs {
  margin: 0;
}
.floortop .floorbar {
  margin-left: auto;
}

/* ---- Reference-style floor tables (green) ---- */
.floorbar .sw {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  display: inline-block;
}
.floorbar .sw.occ {
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
}
.floorbar .sw.vac {
  background: #fff;
  border: 1.5px solid var(--line-2);
}
.ftgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px 16px;
  margin-bottom: 26px;
}
.ftbl {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  text-decoration: none;
  color: var(--ink);
}
.ftbl .plate {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  width: 118px;
  height: 94px;
  text-align: center;
  transition: 0.15s ease;
}
.ftbl.circle .plate {
  border-radius: 50%;
  width: 110px;
  height: 110px;
}
.ftbl.rectangle .plate {
  width: 150px;
  height: 84px;
}
.ftbl:hover .plate {
  box-shadow: var(--sh);
  transform: translateY(-2px);
}
.ftbl .tn {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ftbl .plate small {
  font-size: 11.5px;
  color: var(--ink-3);
}
.ftbl .amt {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-ink);
  white-space: nowrap;
}
.ftbl .dur {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.ftbl .sdot {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px #fff;
}
.ftbl .tnote {
  position: absolute;
  top: 7px;
  left: 9px;
  font-size: 11px;
}
/* occupied / billed = green-filled table */
.ftbl.occupied .plate,
.ftbl.billed .plate {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.ftbl.occupied .tn,
.ftbl.billed .tn {
  color: var(--brand-ink);
}
.ftbl.billed .sdot {
  background: var(--warn);
}
/* chairs */
.ftbl .chairs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}
.ftbl .chairs.top {
  top: 8px;
}
.ftbl .chairs.bottom {
  bottom: 8px;
}
.ftbl .chairs span {
  width: 32px;
  height: 9px;
  border-radius: 6px;
  background: #e6e9f1;
}
.ftbl .chair {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 42px;
  border-radius: 6px;
  background: #e6e9f1;
}
.ftbl .chair.left {
  left: 16px;
}
.ftbl .chair.right {
  right: 16px;
}
.ftbl.circle .chair.left {
  left: 20px;
}
.ftbl.circle .chair.right {
  right: 20px;
}
.ftbl.occupied .chairs span,
.ftbl.occupied .chair,
.ftbl.billed .chairs span,
.ftbl.billed .chair {
  background: var(--brand-2);
  opacity: 0.55;
}
@media (prefers-color-scheme: dark) {
  .ftbl .plate {
    background: var(--surface);
    border-color: var(--line-2);
  }
  .ftbl .sdot {
    box-shadow: 0 0 0 3px var(--surface);
  }
  .ftbl .chairs span,
  .ftbl .chair {
    background: #2c3142;
  }
  .floorbar .sw.vac {
    background: var(--surface);
    border-color: var(--line-2);
  }
}

.reqbadge {
  display: inline-block;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.rail .lg {
  overflow: hidden;
  text-decoration: none;
  font-weight: 800;
}
.rail .lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---- Monochrome SVG icons (inherit currentColor / brand) ---- */
.ic-svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
.rail a .ic-svg {
  width: 21px;
  height: 21px;
}
.btn .ic-svg {
  width: 15px;
  height: 15px;
  margin-right: 3px;
  vertical-align: -2px;
}
.psearch .ic-svg {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
}
.cat .ci .ic-svg {
  width: 18px;
  height: 18px;
  color: var(--brand-ink);
}
.pill .ic-svg {
  width: 13px;
  height: 13px;
  margin-right: 2px;
}
.item .im .ic-svg {
  width: 26px;
  height: 26px;
  color: var(--brand-ink);
  opacity: 0.85;
}
.item .im {
  color: var(--brand-ink);
}

.ftbl .dur .ic-svg {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  color: var(--ink-3);
}
.ftbl .tnote .ic-svg {
  width: 14px;
  height: 14px;
  color: var(--brand-ink);
}

/* ---- Modern quantity stepper (waiter order item) ---- */
.oqty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 3px;
  margin-top: 6px;
  width: max-content;
}
.oqty form {
  display: flex;
  margin: 0;
  padding: 0;
}
.oqty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.12s;
}
.oqty button:hover {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.oqty button:active {
  transform: scale(0.92);
}
.oqty b {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}
.posinv .il {
  align-items: flex-start;
}
.posinv .il .p {
  margin-top: 1px;
}

/* ---- Login refinements ---- */
.auth__card .inwrap .ic svg {
  width: 18px;
  height: 18px;
  display: block;
}
.auth__feat .b svg {
  width: 16px;
  height: 16px;
  display: block;
}
.auth__card .inwrap input {
  padding-right: 42px;
}
.auth__card .inwrap .pwtog {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.auth__card .inwrap .pwtog svg {
  width: 18px;
  height: 18px;
}
.auth__card .inwrap .pwtog:hover {
  background: var(--surface-2);
  color: var(--ink-2);
}
.auth__card .inwrap .pwtog.on {
  color: var(--brand-ink);
}
.auth__card .inwrap input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.auth__card {
  padding: 6px 0;
}
.auth__card h1 {
  font-size: 30px;
}
.auth__logo .mk {
  font-size: 64px;
}

/* ---- Finance hub cards + back link ---- */
.finback {
  margin-bottom: 18px;
}
.finhub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.fincard {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: var(--ink);
  transition: 0.15s;
}
.fincard:hover {
  box-shadow: var(--sh);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  text-decoration: none;
}
.fincard .fi {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.fincard .fi svg {
  width: 22px;
  height: 22px;
}
.fincard .ft {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fincard .ft b {
  font-size: 15px;
}
.fincard .ft small {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.35;
}
.fincard .fa {
  color: var(--ink-3);
}
.fincard .fa svg {
  width: 18px;
  height: 18px;
}
.fincard:hover .fa {
  color: var(--brand-ink);
}

/* ---- Header nav icons (monochrome SVG) ---- */
.nav .nv-svg {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}
.nav .grp > button .nv-svg {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  margin-right: 1px;
}
.nav .menu a .nv-svg {
  width: 17px;
  height: 17px;
  vertical-align: -4px;
}
.nav .menu a span {
  display: inline-flex;
  width: 20px;
  justify-content: center;
}
.nav a .ni {
  display: inline-flex;
  align-items: center;
}

/* ---- Datatable per-row "view details" ---- */
.dt-viewcol {
  width: 40px;
}
.dt-view {
  padding: 5px 8px;
  line-height: 0;
}
.dt-view svg {
  display: block;
}
#dtViewModal .dlgcard #dtViewBody .tbl td {
  padding: 9px 10px;
}
