/* ═══════════════════════════════════════════════════
   RESTAURANT MODULE v2.0 — PetPooja-grade redesign
   Builds on existing Kapish design tokens
   ═══════════════════════════════════════════════════ */

/* ── Page wrapper ────────────────────────────────── */
.rest2-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0;
}

/* ── Header ──────────────────────────────────────── */
.rest2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.rest2-header__left { display: flex; align-items: center; gap: var(--space-3); }
.rest2-header__icon { font-size: 28px; }
.rest2-header__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--text); letter-spacing: -.02em;
}
.rest2-header__sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.rest2-header__live { display: flex; align-items: center; gap: 8px; }
.rest2-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: rest2-pulse 2s ease-in-out infinite;
}
@keyframes rest2-pulse {
  0%,100% { opacity:1; box-shadow:0 0 8px var(--green); }
  50%      { opacity:.6; box-shadow:0 0 16px var(--green); }
}
.rest2-live-label { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

/* ── Tab bar ─────────────────────────────────────── */
.rest2-tabbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-6);
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 40;
}
.rest2-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}
.rest2-tabs::-webkit-scrollbar { display: none; }

.rest2-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.rest2-tab:hover { color: var(--text); }
.rest2-tab.active {
  color: var(--violet);
  border-bottom-color: var(--violet);
}
.rest2-tab__icon { font-size: 14px; }
.rest2-tab__label { }

/* More dropdown */
.rest2-more-wrap { position: relative; }
.rest2-more-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
  padding: 6px;
}
.rest2-more-dropdown.open { display: block; animation: rest2-drop .15s ease; }
@keyframes rest2-drop { from { opacity:0; transform:translateY(-6px) } to { opacity:1; transform:translateY(0) } }
.rest2-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-md);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .12s;
  text-align: left;
}
.rest2-more-item:hover { background: var(--surface-3); color: var(--text); }
.rest2-more-item.active { color: var(--violet); background: rgba(138,100,255,.1); }

/* ── Body ────────────────────────────────────────── */
.rest2-body {
  flex: 1;
  padding: var(--space-5) var(--space-6);
  overflow-y: auto;
}

/* ── Loading ─────────────────────────────────────── */
.rest2-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 0;
}
.rest2-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border-2);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: rest2-spin .6s linear infinite;
}
@keyframes rest2-spin { to { transform: rotate(360deg); } }

/* ── KPI strip ───────────────────────────────────── */
.rest2-kpi-strip {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  padding-bottom: 2px;
}
.rest2-kpi {
  flex: 1; min-width: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4);
  text-align: center;
  flex-shrink: 0;
}
.rest2-kpi__val {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--text);
}
.rest2-kpi__label { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.rest2-kpi--green .rest2-kpi__val  { color: var(--green);  }
.rest2-kpi--red .rest2-kpi__val    { color: var(--red);    }
.rest2-kpi--amber .rest2-kpi__val  { color: var(--amber);  }
.rest2-kpi--violet .rest2-kpi__val { color: var(--violet); }
.rest2-kpi--cyan .rest2-kpi__val   { color: var(--cyan);   }

/* ── Tables page ─────────────────────────────────── */
.rest2-tables-page { }

.rest2-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.rest2-toolbar-right { display: flex; align-items: center; gap: var(--space-2); }

.rest2-section-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.rest2-section-tab {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.rest2-section-tab:hover { border-color: var(--border-3); color: var(--text); }
.rest2-section-tab.active { background: rgba(138,100,255,.15); border-color: var(--violet); color: var(--violet); }

.rest2-view-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer; color: var(--text-3);
  font-size: 14px; transition: var(--transition);
}
.rest2-view-btn.active { background: rgba(138,100,255,.15); border-color: var(--violet); color: var(--violet); }

/* ── Table grid ──────────────────────────────────── */
.rest2-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: var(--space-3);
}

.rest2-table-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.rest2-table-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rest2-table-card--green { border-color: rgba(34,197,94,.25); }
.rest2-table-card--red   { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.03); }
.rest2-table-card--amber { border-color: rgba(245,158,11,.25); }
.rest2-table-card--urgent { border-color: rgba(239,68,68,.6) !important; animation: rest2-urgent-pulse 2s ease-in-out infinite; }
.rest2-table-card--warn   { border-color: rgba(245,158,11,.5) !important; }
@keyframes rest2-urgent-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(239,68,68,0); }
  50%      { box-shadow:0 0 0 4px rgba(239,68,68,.15); }
}

.rest2-tc-header { display: flex; justify-content: space-between; align-items: flex-start; }
.rest2-tc-num { font-family: var(--font-display); font-size: 24px; font-weight: 900; color: var(--text); }
.rest2-tc-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rest2-section-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .06em;
  background: var(--surface-3); color: var(--text-3);
  padding: 2px 6px; border-radius: 10px;
}
.rest2-tc-meta { display: flex; gap: 8px; align-items: center; }
.rest2-tc-seats { font-size: 12px; color: var(--text-3); }
.rest2-tc-ot    { font-size: 12px; color: var(--text-3); }
.rest2-tc-guest { font-size: 13px; font-weight: 600; color: var(--text); }
.rest2-tc-time  { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.rest2-tc-time--urgent { color: var(--red); font-weight: 700; }
.rest2-tc-time--warn   { color: var(--amber); font-weight: 700; }
.rest2-tc-kot   { font-size: 11px; color: var(--violet); padding: 4px 8px; background: rgba(138,100,255,.08); border-radius: var(--radius-sm); }
.rest2-tc-empty { font-size: 12px; color: var(--text-4); }
.rest2-tc-actions { display: flex; gap: 5px; margin-top: auto; }
.rest2-tc-btn {
  flex: 1; padding: 7px 8px;
  border-radius: var(--radius-md);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: 1px solid transparent;
}
.rest2-tc-btn--primary  { background: var(--violet); color: #fff; }
.rest2-tc-btn--primary:hover { background: var(--violet-dim); }
.rest2-tc-btn--secondary { background: var(--surface-3); border-color: var(--border-2); color: var(--text-2); }
.rest2-tc-btn--secondary:hover { border-color: var(--border-3); color: var(--text); }
.rest2-tc-btn--ghost { flex: 0; padding: 7px 9px; background: none; border-color: var(--border); color: var(--text-3); }
.rest2-tc-btn--ghost:hover { background: var(--surface-2); color: var(--text); }

/* ── Order type selector ─────────────────────────── */
.rest2-ot-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.rest2-ot-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); cursor: pointer;
  transition: var(--transition);
}
.rest2-ot-btn:hover { border-color: var(--border-3); color: var(--text); }
.rest2-ot-btn.active { border-color: var(--violet); background: rgba(138,100,255,.12); color: var(--violet); }

/* ── KOT page ────────────────────────────────────── */
.rest2-kot-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  height: calc(100vh - 185px);
  min-height: 560px;
}

/* Sidebar */
.rest2-kot-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 5px;
}
.rest2-kot-sidebar__hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--space-2) var(--space-2);
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.rest2-kot-badge {
  background: var(--violet); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 1px 6px; border-radius: 10px;
}
.rest2-kot-table-btn {
  width: 100%; padding: 10px var(--space-3);
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  text-align: left; transition: var(--transition);
  display: flex; flex-direction: column; gap: 2px;
}
.rest2-kot-table-btn:hover { border-color: var(--border-3); }
.rest2-kot-table-btn.active { border-color: var(--violet); background: rgba(138,100,255,.1); }
.rest2-ktb-top { display: flex; justify-content: space-between; align-items: center; }
.rest2-ktb-num  { font-size: 15px; font-weight: 900; color: var(--text); font-family: var(--font-display); }
.rest2-ktb-time { font-size: 10px; color: var(--text-3); font-family: var(--font-mono); }
.rest2-ktb-time--warn { color: var(--amber); font-weight: 700; }
.rest2-ktb-guest { font-size: 11px; color: var(--text-2); }
.rest2-ktb-ot    { font-size: 10px; color: var(--text-4); }
.rest2-ktb-items { font-size: 10px; color: var(--violet); font-weight: 700; }
.rest2-ktb-empty { font-size: 10px; color: var(--text-4); }
.rest2-kot-no-tables { font-size: 12px; color: var(--text-3); text-align: center; padding: var(--space-4); line-height: 1.6; }

/* KOT editor */
.rest2-kot-editor {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.rest2-kot-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-3); color: var(--text-3);
}
.rest2-kot-ph-icon  { font-size: 48px; opacity: .4; }
.rest2-kot-ph-title { font-size: 15px; font-weight: 700; }
.rest2-kot-ph-sub   { font-size: 12px; text-align: center; max-width: 240px; line-height: 1.5; }

/* Editor header */
.rest2-kot-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}
.rest2-kot-hdr-left    { display: flex; align-items: center; gap: var(--space-3); }
.rest2-kot-hdr-table   { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--violet); }
.rest2-kot-hdr-name    { font-size: 14px; font-weight: 700; color: var(--text); }
.rest2-kot-hdr-meta    { font-size: 11px; color: var(--text-3); }
.rest2-kot-hdr-right   { display: flex; align-items: center; gap: var(--space-2); }
.rest2-kot-hdr-time    { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* 2-column body */
.rest2-kot-body {
  flex: 1; display: grid;
  grid-template-columns: 1fr 340px;
  overflow: hidden;
}

/* Menu panel */
.rest2-menu-panel {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.rest2-menu-search {
  display: flex; align-items: center; gap: 8px;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.rest2-menu-search-icon { font-size: 14px; flex-shrink: 0; }
.rest2-menu-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 13px; color: var(--text);
  font-family: var(--font-body);
}
.rest2-menu-search-input::placeholder { color: var(--text-4); }
.rest2-menu-cats {
  display: flex; gap: 4px; padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none;
}
.rest2-menu-cats::-webkit-scrollbar { display: none; }
.rest2-menu-cat {
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-3); cursor: pointer; white-space: nowrap;
  transition: var(--transition);
}
.rest2-menu-cat:hover { color: var(--text); border-color: var(--border-2); }
.rest2-menu-cat.active { background: rgba(138,100,255,.15); border-color: var(--violet); color: var(--violet); }

.rest2-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  padding: var(--space-3);
  overflow-y: auto;
  align-content: start;
}
.rest2-menu-item {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  display: flex; flex-direction: column; gap: 4px;
}
.rest2-menu-item:hover { border-color: var(--violet); background: rgba(138,100,255,.08); transform: translateY(-1px); }
.rest2-menu-item:active { transform: scale(.97); }
.rest2-menu-item--unavail { opacity: .4; pointer-events: none; }
.rest2-mi-veg {
  width: 10px; height: 10px; border-radius: 2px;
  border: 1.5px solid;
  position: relative;
}
.rest2-mi-veg::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.rest2-mi-veg--veg  { border-color: var(--green); }
.rest2-mi-veg--veg::after  { background: var(--green); }
.rest2-mi-veg--nv   { border-color: var(--red); }
.rest2-mi-veg--nv::after   { background: var(--red); }
.rest2-mi-name  { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.25; }
.rest2-mi-price { font-size: 12px; font-weight: 800; color: var(--green); font-family: var(--font-mono); }
.rest2-mi-tag   { font-size: 9px; font-weight: 800; background: rgba(138,100,255,.15); color: var(--violet); padding: 1px 5px; border-radius: 4px; }
.rest2-menu-empty { font-size: 13px; color: var(--text-3); text-align: center; padding: var(--space-8); }

/* Order panel */
.rest2-order-panel {
  display: flex; flex-direction: column;
  background: var(--surface);
}
.rest2-order-title {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.rest2-order-items {
  flex: 1; overflow-y: auto; padding: var(--space-2);
}
.rest2-order-empty {
  font-size: 12px; color: var(--text-4);
  text-align: center; padding: var(--space-8);
}

/* Order item row */
.rest2-oi {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 7px var(--space-2);
  border-radius: var(--radius-sm);
  transition: background .1s;
}
.rest2-oi:hover { background: var(--surface-2); }
.rest2-oi-veg { width: 9px; height: 9px; border-radius: 1.5px; border: 1.5px solid; flex-shrink: 0; margin-top: 3px; position: relative; }
.rest2-oi-veg::after { content:''; width:4px;height:4px;border-radius:50%; position:absolute;top:50%;left:50%;transform:translate(-50%,-50%); }
.rest2-oi-veg--veg { border-color:var(--green); } .rest2-oi-veg--veg::after{background:var(--green);}
.rest2-oi-veg--nv  { border-color:var(--red);   } .rest2-oi-veg--nv::after{background:var(--red);}
.rest2-oi-info { flex: 1; min-width: 0; }
.rest2-oi-name { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rest2-oi-variant { font-size: 10px; background: var(--surface-3); color: var(--text-3); padding: 1px 5px; border-radius: 4px; }
.rest2-oi-addons { font-size: 10px; color: var(--text-3); }
.rest2-oi-note   { font-size: 10px; color: var(--amber); }
.rest2-oi-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.rest2-oi-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--border-2);
  font-size: 15px; font-weight: 800; color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.rest2-oi-btn:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.rest2-oi-qty { font-size: 13px; font-weight: 800; color: var(--text); width: 20px; text-align: center; font-family: var(--font-mono); }
.rest2-oi-price { font-size: 13px; font-weight: 700; color: var(--text); font-family: var(--font-mono); width: 58px; text-align: right; flex-shrink: 0; }
.rest2-oi-note-btn { font-size: 13px; cursor: pointer; background: none; border: none; opacity: .4; transition: opacity .15s; flex-shrink: 0; }
.rest2-oi-note-btn:hover { opacity: 1; }
.rest2-oi-rm { font-size: 12px; cursor: pointer; background: none; border: none; color: var(--text-4); transition: color .15s; flex-shrink: 0; padding: 0 2px; }
.rest2-oi-rm:hover { color: var(--red); }

/* Totals */
.rest2-order-totals {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.rest2-order-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-2);
  padding: 3px 0;
}
.rest2-order-row--total {
  font-size: 16px; font-weight: 800; color: var(--text);
  border-top: 1px solid var(--border-2);
  margin-top: 4px; padding-top: 6px;
  font-family: var(--font-mono);
}
.rest2-discount-row { gap: 8px; }
.rest2-disc-type {
  padding: 2px 6px; border-radius: 6px; font-size: 12px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  color: var(--text); cursor: pointer;
}
.rest2-disc-input {
  width: 64px; padding: 3px 6px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  border-radius: 6px; font-size: 12px; color: var(--text);
  font-family: var(--font-mono);
}
.rest2-disc-input:focus { outline: none; border-color: var(--violet); }

/* Actions */
.rest2-order-actions {
  display: flex; gap: 5px; padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.rest2-action-btn {
  flex: 1; padding: 9px 8px;
  border-radius: var(--radius-md);
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  text-align: center; border: 1px solid transparent;
}
.rest2-action-btn--primary {
  background: var(--violet); color: #fff;
}
.rest2-action-btn--primary:hover { background: var(--violet-dim); }
.rest2-action-btn--primary.disabled { opacity: .4; cursor: not-allowed; }
.rest2-action-btn--sec {
  background: var(--surface-3); border-color: var(--border-2); color: var(--text-2);
}
.rest2-action-btn--sec:hover { border-color: var(--border-3); color: var(--text); }

/* ── Variant / Addon modals ──────────────────────── */
.rest2-variant-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rest2-variant-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); cursor: pointer; transition: var(--transition);
}
.rest2-variant-btn:hover { border-color: var(--border-3); }
.rest2-variant-btn.active { border-color: var(--violet); background: rgba(138,100,255,.12); color: var(--violet); }
.rest2-addon-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rest2-addon-check {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
  padding: 5px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface-2);
  transition: var(--transition);
}
.rest2-addon-check:hover { border-color: var(--border-3); }
.rest2-addon-check input:checked + span,
.rest2-addon-check:has(input:checked) { border-color: var(--violet); background: rgba(138,100,255,.08); color: var(--violet); }

/* ── Bill modal ──────────────────────────────────── */
.rest2-bill-summary {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}
.rest2-bill-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.rest2-bill-row--total {
  font-size: 16px; font-weight: 800;
  border-top: 2px solid var(--border-2);
  border-bottom: none; margin-top: 4px; padding-top: 6px;
}
.rest2-payment-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rest2-pay-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); cursor: pointer; transition: var(--transition);
}
.rest2-pay-btn:hover { border-color: var(--border-3); }
.rest2-pay-btn.active { border-color: var(--green); background: rgba(34,197,94,.08); color: var(--green); }
.rest2-change-display { font-size: 13px; color: var(--green); margin-top: 6px; font-family: var(--font-mono); }

/* ── Reports ─────────────────────────────────────── */
.rest2-reports { }
.rest2-reports-toolbar {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-4); flex-wrap: wrap;
  justify-content: space-between;
}
.rest2-range-tabs { display: flex; gap: 4px; }
.rest2-range-tab {
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-3); cursor: pointer; transition: var(--transition);
}
.rest2-range-tab.active { background: rgba(138,100,255,.15); border-color: var(--violet); color: var(--violet); }
.rest2-reports-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-4); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .rest2-kot-page { grid-template-columns: 1fr; height: auto; }
  .rest2-kot-sidebar { max-height: 160px; flex-direction: row; overflow-x: auto; }
  .rest2-kot-sidebar__hdr { display: none; }
  .rest2-kot-body { grid-template-columns: 1fr; }
  .rest2-menu-panel { border-right: none; border-bottom: 1px solid var(--border); max-height: 300px; }
  .rest2-reports-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rest2-body { padding: var(--space-4); }
  .rest2-header { padding: var(--space-3) var(--space-4); }
  .rest2-tabbar { padding: 0 var(--space-4); }
  .rest2-table-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .rest2-kpi-strip { gap: var(--space-2); }
}
