/* ==========================================================================
   HOTEL SATYA (VEG & NON-VEG) - MASTER STYLESHEET
   100% Mobile Responsive (Zero Horizontal Overflow on Any Screen)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-dark: #b45309;
  --primary-light: #fef3c7;
  --primary-glow: rgba(245, 158, 11, 0.25);

  /* Diet Colors */
  --veg-green: #10b981;
  --veg-green-bg: #d1fae5;
  --veg-green-border: #059669;
  
  --nonveg-red: #ef4444;
  --nonveg-red-bg: #fee2e2;
  --nonveg-red-border: #dc2626;

  --egg-yellow: #f59e0b;
  --egg-yellow-bg: #fef3c7;

  /* Theme Tokens */
  --bg-app: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-hover: #334155;
  --bg-card: #1e293b;
  --border-subtle: #334155;
  --border-strong: #475569;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #0f172a;

  /* Status Colors */
  --status-available: #10b981;
  --status-occupied: #f59e0b;
  --status-billed: #3b82f6;

  /* Layout */
  --header-height: 54px;
  --bottom-nav-height: 58px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverted: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.15);
}

/* Global Reset & Strict Containment */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-size: 15px;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important; /* Modern CSS standard: Prevents horizontal overflow without breaking position:sticky */
  position: relative;
}

body {
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.3;
  user-select: none;
}

/* Captain Mode - Dedicated Mobile POS View (Hide Bottom Nav & Manager Controls) */
body.captain-mode .manager-only,
body.captain-mode .mobile-bottom-nav,
#screen-captain.active ~ .mobile-bottom-nav,
#screen-kitchen.active ~ .mobile-bottom-nav,
body:has(#screen-captain.active) .mobile-bottom-nav,
body:has(#screen-kitchen.active) .mobile-bottom-nav {
  display: none !important;
}

/* Kitchen Mode - Dedicated Full-Screen KDS View (Hide All Navigation & Header Buttons) */
body.kitchen-mode .mobile-bottom-nav,
body.kitchen-mode .role-tabs,
body.kitchen-mode .manager-only,
body.kitchen-mode .active-table-pill,
body.kitchen-mode .btn-connect-qr,
body.kitchen-mode .fab-tables-btn {
  display: none !important;
}

body.kitchen-mode .kds-container {
  padding-bottom: 20px !important;
}

/* Vector Icon System (Lucide Paths) */
.hms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease, stroke 0.15s ease;
}

h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
/* ==========================================================================
   APP HEADER - SPACIOUS, BALANCED 3-SECTION DESKTOP & MOBILE LAYOUT
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  gap: 16px;
}

[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}

.brand-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-badge {
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (max-width: 580px) {
  .brand-badge {
    display: none;
  }
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  display: none;
}

@media (min-width: 768px) {
  .brand-subtitle {
    display: block;
  }
}

/* Center Role Switcher Tabs */
.role-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-app);
  padding: 3px 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .role-tabs {
    display: none;
  }
}

.role-btn {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.role-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.role-btn.active {
  background: var(--primary);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Right Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.btn-connect-qr {
  padding: 6px 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s ease;
}

.btn-connect-qr:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45);
}

.active-table-pill {
  padding: 5px 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.active-table-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--primary);
}

.icon-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  padding: 0 4px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.98);
}

@media (min-width: 851px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  gap: 2px;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item .nav-icon {
  font-size: 18px;
}

/* ==========================================================================
   APP SCREENS CONTAINER
   ========================================================================== */
.screen-container {
  display: none;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height));
  box-sizing: border-box;
}

#screen-counter, #screen-kitchen, #screen-reports {
  padding: 8px;
}

.screen-container.active {
  display: block;
}

/* ==========================================================================
   SCREEN 1: FLOOR PLAN & TABLE MANAGEMENT (FULL HEIGHT DASHBOARD)
   ========================================================================== */
#screen-counter {
  display: none;
  width: 100%;
  box-sizing: border-box;
}

#screen-counter.active {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  #screen-counter.active {
    height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    padding: 10px 14px 4px;
    overflow: hidden;
  }

  #screen-counter .metrics-row {
    flex-shrink: 0;
    margin-bottom: 8px;
  }

  #screen-counter .counter-dashboard {
    flex: 1;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 12px;
    min-height: 0;
    margin-bottom: 4px;
  }

  #screen-counter .counter-dashboard > .section-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  #screen-counter #floor-tables-grid {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    align-content: start;
    padding-right: 4px;
  }

  #screen-counter #counter-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
  }

  #screen-counter #counter-panel-content .cart-empty-state {
    margin: auto;
  }

  #screen-counter .app-desk-footer {
    margin-top: auto;
    padding: 4px 8px 2px;
    flex-shrink: 0;
  }
}

.counter-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.floor-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.floor-tabs::-webkit-scrollbar {
  display: none;
}

.floor-tab-btn {
  padding: 6px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.floor-tab-btn.active {
  background: var(--primary);
  color: #0f172a;
  border-color: var(--primary);
}

/* 2-Column Responsive Table Grid on Mobile */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}

.table-card {
  background: var(--bg-app);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.15s ease;
}

.table-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.table-card.available {
  border-color: var(--status-available);
  background: rgba(16, 185, 129, 0.06);
}

.table-card.occupied {
  border-color: var(--status-occupied);
  background: rgba(245, 158, 11, 0.08);
}

.table-card.billed {
  border-color: var(--status-billed);
  background: rgba(59, 130, 246, 0.08);
}

.table-number {
  font-size: 21px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.table-section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.table-capacity-tag {
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 3px;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

[data-theme="light"] .table-capacity-tag {
  color: #0284c7;
}

.table-status-pill {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
}

.table-card.available .table-status-pill {
  background: var(--veg-green-bg);
  color: var(--veg-green-border);
}

.table-card.occupied .table-status-pill {
  background: #fef3c7;
  color: #b45309;
}

.table-card.billed .table-status-pill {
  background: #dbeafe;
  color: #1d4ed8;
}

.table-meta-row {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.table-timer {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.1px;
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  margin-top: 2px;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   SCREEN 2: CAPTAIN ORDERING POS (FLUSH STICKY SEARCH & CATEGORY BAR)
   ========================================================================== */
.captain-pos-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 110px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .captain-pos-layout {
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    padding: 12px;
    padding-bottom: 20px;
  }
}

.menu-catalog-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.pos-controls-sticky {
  position: sticky;
  top: var(--header-height);
  background: var(--bg-app);
  padding: 6px 8px 8px;
  z-index: 80;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.search-filter-row {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-input {
  width: 100%;
  padding-left: 28px;
  padding-right: 8px;
  border-radius: var(--radius-full);
  font-size: 14px;
  height: 34px;
  box-sizing: border-box;
}

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

.diet-chips {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.diet-chips::-webkit-scrollbar {
  display: none;
}

.diet-chip-btn {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.diet-chip-btn.active-all {
  background: var(--primary);
  color: #0f172a;
  border-color: var(--primary);
}

.diet-chip-btn.active-veg {
  background: var(--veg-green);
  color: #ffffff;
  border-color: var(--veg-green);
}

.diet-chip-btn.active-nonveg {
  background: var(--nonveg-red);
  color: #ffffff;
  border-color: var(--nonveg-red);
}

.diet-chip-btn.active-egg {
  background: var(--egg-yellow);
  color: #0f172a;
  border-color: var(--egg-yellow);
}

.category-chips-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-top: 6px;
  padding-bottom: 2px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.category-chips-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.cat-pill-btn.active {
  background: var(--primary);
  color: #0f172a;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   MENU ITEM CARD (ROW LAYOUT WITH DOCKED ADD BUTTON)
   ========================================================================== */
.menu-items-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 0 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.menu-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

.menu-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.menu-item-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}

.diet-dot-badge {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diet-dot-badge.veg { color: var(--veg-green); }
.diet-dot-badge.veg::after { content: ''; width: 5px; height: 5px; background: var(--veg-green); border-radius: 50%; }

.diet-dot-badge.nonveg { color: var(--nonveg-red); }
.diet-dot-badge.nonveg::after { content: ''; width: 5px; height: 5px; background: var(--nonveg-red); border-radius: 50%; }

.diet-dot-badge.egg { color: var(--egg-yellow); }
.diet-dot-badge.egg::after { content: ''; width: 5px; height: 5px; background: var(--egg-yellow); border-radius: 50%; }

.item-code-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.item-name-en {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.item-name-mr {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price-tag {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  margin-top: 2px;
}

.item-variants-list {
  font-size: 11px;
  color: var(--text-muted);
}

.menu-item-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-add-item {
  padding: 6px 12px;
  background: var(--primary);
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-add-item:active {
  transform: scale(0.95);
}

.item-stepper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 2px 3px;
  flex-shrink: 0;
}

.stepper-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #0f172a;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.stepper-qty {
  font-weight: 800;
  font-size: 14px;
  min-width: 14px;
  text-align: center;
}

/* ==========================================================================
   CART & REAL-TIME ORDER SIDEBAR / MOBILE DRAWER
   ========================================================================== */
.cart-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-height) - 32px);
  position: sticky;
  top: calc(var(--header-height) + 16px);
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    z-index: 150;
    transform: translateY(calc(100% - 48px));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    background: var(--bg-surface);
    width: 100%;
    max-width: 100vw;
  }

  .cart-sidebar.drawer-open {
    transform: translateY(0);
  }

  body.captain-mode #screen-captain {
    padding-bottom: 60px !important;
  }
}

.cart-drawer-handle {
  width: 32px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 4px;
  margin: 5px auto 0;
  display: none;
}

@media (max-width: 1023px) {
  .cart-drawer-handle {
    display: block;
  }
}

.cart-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.cart-title-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-table-badge {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.cart-items-count {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-floating-mini-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-empty-state {
  text-align: center;
  padding: 20px 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.cart-empty-icon {
  font-size: 28px;
  margin-bottom: 4px;
  opacity: 0.6;
}

.cart-item-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
}

.cart-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-qty-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-btn-round {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  touch-action: manipulation;
}

.cart-item-qty {
  font-weight: 800;
  font-size: 14px;
  min-width: 16px;
  text-align: center;
}

.cart-item-total-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.btn-remove-item {
  color: var(--nonveg-red);
  font-size: 13px;
}

.cart-item-note-input {
  width: 100%;
  font-size: 12px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}

.cart-math-summary {
  padding: 8px 12px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.math-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.math-row.grand-total {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px dashed var(--border-strong);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.grand-total .total-amount {
  color: var(--primary);
  font-size: 19px;
}

.cart-actions-grid {
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-top: 1px solid var(--border-subtle);
}

.btn-action-primary {
  padding: 8px;
  background: var(--primary);
  color: #0f172a;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-action-primary:active {
  transform: scale(0.97);
}

.btn-action-secondary {
  padding: 8px;
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB) - QUICK SWITCH TABLE (BOTTOM RIGHT - SHIFTED UP)
   ========================================================================== */
.fab-tables-btn {
  position: fixed;
  bottom: 110px;
  right: 22px;
  z-index: 98;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 800;
  display: none; /* Hidden on Desktop by default */
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(8px);
}

.fab-tables-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.6);
}

.fab-tables-btn:active {
  transform: scale(0.95);
}

.fab-icon {
  font-size: 20px;
}

.fab-label {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

/* Responsive FAB for mobile only (<= 850px) */
@media (max-width: 850px) {
  .fab-tables-btn {
    display: flex !important; /* Visible exclusively on mobile */
    bottom: 104px; /* Shifted up 30px so it sits cleanly above drawer */
    right: 14px;
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* ==========================================================================
   CUSTOM / OPEN MISC ITEM (WATER BOTTLE, ICE CREAM, COLD DRINKS) STYLES
   ========================================================================== */
.btn-quick-custom-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary);
  border: 1.5px dashed var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-quick-custom-item:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.preset-chip-btn {
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip-btn:hover, .preset-chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   TABLE & SECTION BUILDER STYLES
   ========================================================================== */
.section-builder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.section-builder-card:hover {
  border-color: var(--primary);
}

.section-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}


/* ==========================================================================
   SUBSCRIPTION & LICENSE WARNING BANNER (20 DAYS EXPIRY ALERT)
   ========================================================================== */
.subscription-alert-banner {
  margin-top: 14px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  width: 100%;
}

.subscription-alert-banner.warning-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}

.subscription-alert-banner.expired-red {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.55);
}

.subscription-alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.sub-alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.btn-renew-pill {
  padding: 6px 14px;
  background: #ffffff;
  color: #be123c;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.btn-renew-pill:hover {
  transform: translateY(-1px) scale(1.02);
  background: #fef2f2;
}

/* ==========================================================================
   APP FOOTER BRANDING FOOTPRINT (NxGen Tech)
   ========================================================================== */
.app-desk-footer {
  margin-top: 24px;
  padding: 16px 8px 14px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.2px;
}

.footer-brand-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-brand-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}


/* ==========================================================================
   KOT BUTTON DYNAMIC COLOR & STATE SYSTEM (GREEN = PENDING, RED = ALL SENT)
   ========================================================================== */
.btn-kot-pending {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  border: 1px solid #22c55e !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45) !important;
  animation: kotPulse 2s infinite ease-in-out;
}

.btn-kot-sent {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35) !important;
}

.btn-kot-empty {
  opacity: 0.9;
}

/* ---- Cancel & Void Order Button ---- */
.btn-cancel-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-primary);
  border-radius: 10px;
  border: 1.5px solid #ef4444;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-cancel-order:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #dc2626;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}
.btn-cancel-order:active {
  transform: scale(0.98);
}


@keyframes kotPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 4px 22px rgba(34, 197, 94, 0.7); }
}

.cart-item-sent-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

.cart-item-new-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
}


/* ==========================================================================
   SCREEN 3: KITCHEN DISPLAY SYSTEM (KDS)
   ========================================================================== */
.kds-container {
  padding-bottom: 70px;
}

.kds-header-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.kds-tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.kds-ticket-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.kds-ticket-card.urgent {
  border-color: var(--nonveg-red);
  background: rgba(239, 68, 68, 0.06);
}

.kds-ticket-card.warning {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.06);
}

.kds-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.kds-table-badge {
  font-size: 17px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
}

.kds-timer-badge {
  padding: 2px 5px;
  background: var(--bg-app);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.kds-items-list {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.kds-item-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.kds-item-qty {
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #0f172a;
  font-weight: 900;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.kds-item-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.kds-item-name {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.kds-item-note {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.25;
  margin-top: 2px;
}

.kds-btn-ready {
  width: 100%;
  padding: 8px;
  background: var(--veg-green);
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 38px;
  touch-action: manipulation;
}

/* ==========================================================================
   KDS SECTION LABELS & PRINTED STATE
   ========================================================================== */
.kds-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin: 12px 0 6px;
}

.kds-label-new {
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.kds-label-printed {
  background: rgba(34, 197, 94, 0.10);
  color: var(--veg-green);
  border-left: 3px solid var(--veg-green);
}

/* Printed KOT cards have a muted look */
.kds-ticket-card.kds-printed {
  opacity: 0.72;
  border-color: var(--veg-green);
  border-style: dashed;
  background: rgba(34, 197, 94, 0.04);
}

.kds-ticket-card.kds-printed .kds-table-badge {
  color: var(--veg-green);
}

/* Print KOT button — orange */
.kds-btn-print {
  background: var(--primary) !important;
  color: #0f172a !important;
  font-size: 15px !important;
  letter-spacing: 0.02em;
}

/* Urgent timer badge */
.kds-timer-urgent {
  background: rgba(239, 68, 68, 0.18);
  color: var(--nonveg-red);
  animation: pulse 1s infinite;
}

/* Printed section grid — slightly more compact */
.kds-printed-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}

/* ==========================================================================
   KDS / KOT THERMAL PRINT LAYOUT
   ========================================================================== */
.kds-print-slip {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #000;
  background: #fff;
  width: 76mm;
  padding: 4mm;
}

.kds-print-header {
  text-align: center;
  margin-bottom: 4px;
}

.kds-print-hotel {
  font-size: 18px;
  font-weight: bold;
}

.kds-print-subtitle {
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.kds-print-divider {
  margin: 4px 0;
  letter-spacing: 0;
  font-size: 13px;
}

.kds-print-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  margin-bottom: 4px;
  font-size: 14px;
}

.kds-print-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.kds-print-col-header th {
  border-bottom: 1px solid #000;
  font-size: 13px;
  padding-bottom: 3px;
  letter-spacing: 0.04em;
}

.kds-print-item-row td {
  padding: 5px 2px;
  border-bottom: 1px dashed #ccc;
  font-weight: 700;
}

.kds-print-note {
  font-size: 12px;
  font-style: italic;
  font-weight: normal;
  color: #555;
}

.kds-print-footer {
  text-align: center;
  font-size: 12px;
  margin-top: 4px;
  color: #666;
}

/* On-screen hidden print containers */
#kds-print-area,
#thermal-print-area {
  display: none;
}

/* ==========================================================================
   PRINT STYLESHEET (THERMAL 80MM / 58MM POS RECEIPT & KOT)
   ========================================================================== */
@media print {
  @page {
    margin: 0mm !important;
    padding: 0mm !important;
    size: 80mm auto;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 80mm !important;
    max-width: 80mm !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 13px !important;
  }

  /* Completely remove all standard app UI from document flow in print mode to prevent empty phantom pages */
  body > *:not(#thermal-print-area):not(#kds-print-area) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .app-header,
  .screen-container,
  .mobile-bottom-nav,
  .modal-overlay,
  .subscription-alert-banner,
  .app-desk-footer,
  #header-active-table-pill,
  #modal-billing {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Make print areas render in normal flow at top of page */
  #kds-print-area,
  #thermal-print-area {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 76mm !important;
    max-width: 76mm !important;
    margin: 0 auto !important;
    padding: 3mm 2mm 6mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 13px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  #kds-print-area *,
  #thermal-print-area * {
    visibility: visible !important;
    color: #000000 !important;
  }
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-close-modal {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-app);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0;
}

.qr-canvas-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  margin-bottom: 6px;
}

/* ==========================================================================
   SALES & REVENUE (ACCOUNTING DAYBOOK) STYLING
   ========================================================================== */
.acc-top-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .acc-top-grid {
    grid-template-columns: 1fr !important;
  }
}

.acc-card {
  background: var(--bg-surface);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.acc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}



