/* ══════════════════════════════════════════════════════════════════════════
   Golden Leaf POS — Light Background · Gold & Black Accent Theme
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Gold accent palette ── */
  --gold:          #B8860B;   /* dark goldenrod — strong on light bg */
  --gold-light:    #D4AF37;   /* classic gold */
  --gold-bright:   #F5D060;   /* highlight */
  --gold-dim:      rgba(184,134,11,.08);
  --gold-border:   rgba(184,134,11,.22);

  /* ── Dark / ink palette (used for nav, headings, accents) ── */
  --ink:           #1A1208;   /* near-black with a warm tint */
  --ink-2:         #2C2008;
  --ink-3:         #3E300F;

  /* ── Light backgrounds (PROMINENT) ── */
  --bg:            #FDFAF3;   /* warm off-white — page background */
  --bg-2:          #F5EFE0;   /* slightly warmer — sidebar, panels */
  --bg-3:          #EDE4CC;   /* muted gold-cream — borders, dividers */
  --card:          #FFFFFF;   /* pure white cards */
  --card-alt:      #FFFDF7;   /* barely-tinted white */

  /* ── Text on light background ── */
  --text:          #1A1208;   /* almost black */
  --text-2:        #3E300F;   /* dark brown */
  --text-muted:    #7A6430;   /* warm medium */
  --text-dim:      #B09660;   /* light helper text */

  /* ── Status ── */
  --avail:         #1A7A3C;
  --avail-bg:      rgba(26,122,60,.08);
  --occ:           #C0392B;
  --occ-bg:        rgba(192,57,43,.08);

  /* ── Misc ── */
  --border:        rgba(184,134,11,.18);
  --border-light:  #E8DFC8;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 2px 16px rgba(26,18,8,.10);
  --shadow-gold:   0 4px 20px rgba(184,134,11,.18);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   TOP NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */
.top-nav {
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(26,18,8,.25);
}

.top-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: .6px;
  margin-right: auto;
  white-space: nowrap;
}

.top-nav .brand i { font-size: 22px; color: var(--gold-light); }
.top-nav .brand span {
  font-size: 12px;
  color: rgba(245,208,96,.55);
  font-weight: 400;
  letter-spacing: .3px;
}

.top-nav .nav-link {
  color: rgba(245,208,96,.7);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.top-nav .nav-link:hover {
  background: rgba(245,208,96,.12);
  color: var(--gold-bright);
  border-color: rgba(245,208,96,.25);
}

.top-nav .nav-link.active {
  background: rgba(245,208,96,.14);
  color: var(--gold-bright);
  border-color: rgba(245,208,96,.3);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE WRAP
   ══════════════════════════════════════════════════════════════════════════ */
.page-wrap { padding: 24px; max-width: 1440px; margin: 0 auto; }

/* ── Section heading ── */
.section-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .2px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-border);
}

.section-heading i { color: var(--gold); }
.heading-hint { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* Legend */
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.leg-avail { background: var(--avail); }
.leg-occ   { background: var(--occ); }

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-alt);
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-header i { color: var(--gold); }
.card-body { padding: 18px; }

/* ══════════════════════════════════════════════════════════════════════════
   STAT CARDS  (Dashboard)
   ══════════════════════════════════════════════════════════════════════════ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.stat-card .stat-icon {
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: .8;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.stat-card.available-card .stat-value  { color: var(--avail); }
.stat-card.available-card .stat-icon   { color: var(--avail); }
.stat-card.available-card::before      { background: var(--avail); }
.stat-card.occupied-card  .stat-value  { color: var(--occ); }
.stat-card.occupied-card  .stat-icon   { color: var(--occ); }
.stat-card.occupied-card::before       { background: var(--occ); }

/* ══════════════════════════════════════════════════════════════════════════
   TABLE GRID  (index.php)
   ══════════════════════════════════════════════════════════════════════════ */
.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.table-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 18px 16px 16px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow);
}

.table-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
}

.table-card.available::after { background: var(--avail); }
.table-card.occupied::after  { background: var(--occ); }

.table-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-border);
}

.table-card.available:hover { border-color: var(--avail); }
.table-card.occupied:hover  { border-color: var(--occ); }

/* Top row: name + badge */
.tc-top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tc-name { font-weight: 800; font-size: 14px; color: var(--ink); }

.tc-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: .5px;
}

.tc-avail { background: var(--avail-bg); color: var(--avail); border: 1px solid rgba(26,122,60,.2); }
.tc-occ   { background: var(--occ-bg);   color: var(--occ);   border: 1px solid rgba(192,57,43,.2); }

/* Big icon */
.tc-icon { font-size: 36px; margin: 8px 0 6px; }
.table-card.available .tc-icon { color: var(--avail); opacity: .7; }
.table-card.occupied  .tc-icon { color: var(--gold);  opacity: .8; }

.tc-cap  { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }

.tc-cust {
  font-size: 12px;
  color: var(--text);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 5px 10px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border-light);
  line-height: 1.6;
}

.tc-cust i { color: var(--gold); font-size: 11px; }

.tc-time   { font-size: 11px; color: var(--text-dim); }
.tc-action { margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--gold); opacity: .7; }
.table-card:hover .tc-action { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,18,8,.45);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  width: 100%; max-width: 440px;
  box-shadow: 0 16px 48px rgba(26,18,8,.2), 0 0 0 1px rgba(184,134,11,.12);
  overflow: hidden;
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from { transform: scale(.94) translateY(-10px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);     opacity: 1; }
}

.modal-header {
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700;
  color: var(--gold-bright);
}

.modal-close {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: 18px; width: 30px; height: 30px;
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; line-height: 1;
}

.modal-close:hover { background: rgba(192,57,43,.2); color: var(--occ); border-color: var(--occ); }

.modal-table-banner {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px; font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  text-align: center;
}

.modal-body   { padding: 20px; background: var(--card); }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  display: flex; gap: 10px; justify-content: flex-end;
  background: var(--card-alt);
}

.btn-cancel-modal {
  padding: 9px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}

.btn-cancel-modal:hover { border-color: var(--occ); color: var(--occ); background: var(--occ-bg); }

/* ── Form controls ── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 6px;
  letter-spacing: .4px; text-transform: uppercase;
}

.req { color: var(--occ); }

.form-control {
  width: 100%; padding: 10px 13px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-control::placeholder { color: var(--text-dim); }

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,.1);
  background: #fff;
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s; letter-spacing: .3px;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(184,134,11,.3);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--bg-2);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s;
}

.btn-accent:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(184,134,11,.15);
}

/* ══════════════════════════════════════════════════════════════════════════
   POS ORDER PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.pos-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* ── Menu Panel (left) ── */
.menu-panel { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }

.menu-panel-header {
  background: var(--card);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(26,18,8,.06);
}

.menu-panel-header h2 {
  font-size: 16px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}

.menu-panel-header h2 i { color: var(--gold); }

/* Search */
.search-box { margin-left: auto; position: relative; }

.search-box input {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 14px 8px 36px;
  font-size: 13px; width: 210px;
  color: var(--text); outline: none;
  transition: all .2s;
}

.search-box input::placeholder { color: var(--text-dim); }
.search-box input:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(184,134,11,.08); }

.search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; pointer-events: none;
}

/* Category tabs */
.category-tabs {
  display: flex; gap: 6px; padding: 10px 16px;
  overflow-x: auto;
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0; scrollbar-width: thin;
}

.cat-tab {
  white-space: nowrap; padding: 6px 16px;
  border-radius: 20px; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--bg-2); color: var(--text-muted);
  transition: all .2s; user-select: none; letter-spacing: .3px;
}

.cat-tab:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-dim); }

.cat-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-bright);
  font-weight: 700;
}

/* Menu items scroll area */
.menu-items-scroll { flex: 1; overflow-y: auto; padding: 16px; scrollbar-width: thin; }

.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.menu-item-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 12px 12px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all .18s;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 6px rgba(26,18,8,.06);
}

.menu-item-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  opacity: 0; transition: opacity .2s;
}

.menu-item-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(184,134,11,.15);
}

.menu-item-card:hover::before { opacity: 1; }

.menu-item-card .item-name {
  font-weight: 600; font-size: 13px; color: var(--text);
  margin-bottom: 6px; line-height: 1.3; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
}

.menu-item-card .item-price { font-size: 15px; font-weight: 800; color: var(--gold); margin-bottom: 10px; }

.menu-item-card .add-btn {
  background: var(--ink);
  color: var(--gold-bright);
  border: none; border-radius: 6px; padding: 6px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer; width: 100%;
  transition: all .2s; letter-spacing: .3px;
}

.menu-item-card .add-btn:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(184,134,11,.25);
}

/* ── Order Panel (right) ── */
.order-panel {
  background: var(--bg-2);
  border-left: 1px solid var(--border-light);
  display: flex; flex-direction: column; overflow: hidden;
}

.order-panel-header {
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding: 14px 16px 12px;
  flex-shrink: 0;
}

.oph-row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }

.oph-table { font-size: 16px; font-weight: 800; color: var(--gold-bright); display: flex; align-items: center; gap: 7px; }

.oph-ordernum {
  font-size: 12px; color: rgba(245,208,96,.65);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(245,208,96,.2);
  padding: 2px 9px; border-radius: 10px;
}

.oph-cust {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin: 6px 0 4px;
  font-size: 13px; color: var(--gold-bright);
  background: rgba(245,208,96,.1);
  border: 1px solid rgba(245,208,96,.2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.oph-cust i { color: var(--gold-light); font-size: 11px; margin-right: 3px; }

.oph-meta { font-size: 11.5px; color: rgba(245,208,96,.5); margin-top: 4px; }

/* Order items list */
.order-items-list { flex: 1; overflow-y: auto; scrollbar-width: thin; background: var(--bg); }

.order-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}

.order-item-row:hover { background: var(--gold-dim); }

.order-item-row .item-info .name { font-weight: 600; font-size: 13px; color: var(--text); }
.order-item-row .item-info .price-tag { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 5px; }

/* Qty controls */
.qty-control { display: flex; align-items: center; gap: 4px; }

.qty-btn {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 26px; height: 26px; border-radius: 5px;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: all .15s;
}

.qty-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.qty-display { font-weight: 800; font-size: 14px; color: var(--gold); min-width: 24px; text-align: center; }

.item-total { font-weight: 700; font-size: 14px; color: var(--ink); min-width: 62px; text-align: right; }

.remove-btn {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 15px; padding: 4px 5px;
  border-radius: 5px; transition: all .15s;
}

.remove-btn:hover { background: var(--occ-bg); color: var(--occ); }

/* Pending badge */
.pending-badge {
  background: rgba(184,134,11,.12); color: var(--gold);
  border: 1px solid var(--gold-border);
  font-size: 10.5px; padding: 1px 7px; border-radius: 10px; font-weight: 700;
}

/* KOT history */
#kotHistoryBlock {
  border-top: 1px solid var(--border-light);
  background: var(--card);
}

.kot-section-label {
  padding: 6px 14px; font-size: 10.5px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px;
  background: var(--bg-2); border-bottom: 1px solid var(--border-light);
}

.kot-history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.kot-history-item .kot-info { color: var(--text-muted); }
.kot-history-item i { color: var(--gold); }

.kot-print-btn {
  background: var(--bg-2);
  border: 1px solid var(--gold-border);
  color: var(--gold); padding: 4px 12px;
  border-radius: 5px; font-size: 12px; cursor: pointer;
  transition: all .2s; font-weight: 600;
}

.kot-print-btn:hover { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }

/* Footer */
.order-panel-footer {
  flex-shrink: 0; border-top: 1px solid var(--border-light);
  padding: 12px 14px;
  background: var(--card);
}

.subtotal-row {
  display: flex; justify-content: space-between;
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.btn-kot {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--gold-border);
  color: var(--gold); border-radius: var(--radius-sm);
  padding: 10px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-bottom: 8px; transition: all .2s; letter-spacing: .3px;
}

.btn-kot:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(184,134,11,.18);
}

.btn-kot:disabled { background: var(--bg-3); color: var(--text-dim); border-color: transparent; cursor: not-allowed; }

.btn-bill {
  width: 100%;
  background: var(--ink);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 11px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .2s; letter-spacing: .3px;
}

.btn-bill:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(184,134,11,.3);
}

.btn-bill:disabled { background: var(--bg-3); color: var(--text-dim); border-color: transparent; cursor: not-allowed; }

/* Empty order */
.empty-order { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.empty-order .empty-icon { font-size: 52px; margin-bottom: 14px; color: var(--gold); opacity: .3; }

/* ══════════════════════════════════════════════════════════════════════════
   BILLING PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.bill-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px; padding: 20px;
  max-width: 1200px; margin: 0 auto;
}

/* Customer info bar */
.bill-cust-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}

.bill-cust-bar i { color: var(--gold); margin-right: 4px; }
.bill-cust-bar .text-muted { color: var(--text-muted); font-weight: 500; }

/* Customer mini in summary */
.bill-cust-mini {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px;
  color: var(--ink); margin-bottom: 14px; line-height: 1.8;
}

.bill-cust-mini i { color: var(--gold); margin-right: 5px; font-size: 11px; }

/* Bill items table */
.bill-table-wrap { overflow-x: auto; }

.bill-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.bill-table thead tr { background: var(--ink); }

.bill-table th {
  padding: 12px 14px; text-align: left; font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--gold-bright); border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}

.bill-table th:last-child { text-align: right; }

.bill-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle; color: var(--text);
}

.bill-table tr:hover td { background: var(--gold-dim); }

.bill-table .kot-separator td {
  background: var(--bg-2); font-size: 11.5px;
  color: var(--text-muted); padding: 5px 14px; font-weight: 600;
}

/* Inline edit inputs */
.inline-edit {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text); padding: 5px 8px;
  border-radius: 5px; font-size: 14px; font-weight: 600;
  width: 88px; text-align: right;
  transition: all .2s; outline: none;
}

.inline-edit:focus {
  border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 2px rgba(184,134,11,.12);
}

.inline-edit.qty-edit { width: 64px; text-align: center; }

.line-total { font-weight: 800; color: var(--gold); text-align: right; white-space: nowrap; }

/* Bill summary */
.bill-summary { position: sticky; top: 78px; }

.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); }
.summary-value { font-weight: 700; color: var(--text); }

.grand-row {
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 17px; font-weight: 800;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
}

/* Charge inputs */
.sc-input, .gst-input {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text); padding: 7px 10px;
  border-radius: 6px; font-size: 13px;
  width: 110px; text-align: right; outline: none;
  transition: all .2s;
}

.sc-input:focus, .gst-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,134,11,.1);
}

/* Save bill button */
.btn-save-bill {
  width: 100%;
  background: var(--ink);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 13px; font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; transition: all .2s; letter-spacing: .4px;
}

.btn-save-bill:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(184,134,11,.35);
  transform: translateY(-1px);
}

/* Edit tip */
.edit-tip {
  margin-top: 10px; padding: 10px 14px;
  background: var(--gold-dim);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 12.5px; color: var(--text-muted);
}

.edit-tip i { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════════════════════ */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.admin-table thead tr { background: var(--ink); }

.admin-table th {
  padding: 12px 16px; text-align: left; font-weight: 700;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--gold-bright);
  border-bottom: 2px solid var(--gold);
}

.admin-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle; color: var(--text);
  background: var(--card);
}

.admin-table tr:hover td { background: var(--gold-dim); }

/* Small badge pills */
.badge-avail { background: var(--avail-bg); color: var(--avail); border: 1px solid rgba(26,122,60,.2); padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-occup { background: var(--occ-bg); color: var(--occ); border: 1px solid rgba(192,57,43,.2); padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-on    { background: var(--avail-bg); color: var(--avail); border: 1px solid rgba(26,122,60,.2); padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-off   { background: rgba(255,152,0,.1); color: #B8600A; border: 1px solid rgba(184,96,10,.2); padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }

/* Small action buttons */
.btn-sm { padding: 5px 13px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.btn-edit { background: rgba(21,101,192,.08); color: #1565C0; border-color: rgba(21,101,192,.2); }
.btn-del  { background: var(--occ-bg); color: var(--occ); border-color: rgba(192,57,43,.2); }
.btn-edit:hover { background: #1565C0; color: #fff; border-color: #1565C0; }
.btn-del:hover  { background: var(--occ); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 22px; right: 22px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 6px 24px rgba(26,18,8,.15);
  animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 9px; min-width: 240px;
}

.toast.success { background: var(--avail-bg); border-color: rgba(26,122,60,.2); color: var(--avail); }
.toast.error   { background: var(--occ-bg);   border-color: rgba(192,57,43,.2); color: var(--occ); }
.toast.info    { background: var(--gold-dim);  border-color: var(--gold-border); color: var(--gold); }

@keyframes toastIn {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.print-page {
  max-width: 320px; margin: 0 auto; padding: 20px;
  font-family: 'Courier New', monospace; font-size: 13px;
  color: #111; background: #fff;
}

.print-page .print-header { text-align: center; margin-bottom: 14px; }
.print-page .print-header h1 { font-size: 20px; font-weight: 800; color: #111; }
.print-page .print-header p  { font-size: 12px; color: #555; }

.print-divider { border: none; border-top: 1px dashed #999; margin: 10px 0; }

.print-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.print-table th { text-align: left; padding: 4px 0; border-bottom: 1px solid #ccc; color: #111; }
.print-table td { padding: 4px 0; color: #111; }
.print-table td:last-child { text-align: right; }

.print-totals { margin-top: 10px; font-size: 12.5px; }
.print-totals .total-row { display: flex; justify-content: space-between; padding: 3px 0; color: #111; }
.print-totals .grand { font-weight: 800; font-size: 15px; border-top: 2px solid #111; padding-top: 6px; margin-top: 4px; }

@media print {
  body * { visibility: hidden; }
  .print-page, .print-page * { visibility: visible; }
  .print-page { position: absolute; left: 0; top: 0; width: 100%; }
  .no-print { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
.text-muted   { color: var(--text-muted) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.fw-bold      { font-weight: 700; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.mt-1  { margin-top: 6px; }
.mt-2  { margin-top: 12px; }
.mb-2  { margin-bottom: 12px; }

