/* Restaurant POS Stylesheet - Colorful & Modern Glassmorphic Design */


:root {
  /* Color Tokens - Dark Mode Default */
  color-scheme: dark;
  --bg-gradient-start: #0a1931;
  --bg-gradient-end: #000c1f;
  --panel-bg: rgba(30, 48, 80, 0.45);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Logo Colors */
  --accent-brand-blue: #0b57a4;
  --accent-brand-blue-glow: rgba(11, 87, 164, 0.4);
  
  --accent-primary: #e5b72e; /* Gold/Yellow from logo */
  --accent-primary-glow: rgba(229, 183, 46, 0.4);
  
  --accent-success: #10b981; /* Emerald Green for Available */
  --accent-success-glow: rgba(16, 185, 129, 0.4);
  
  --accent-info: #0ea5e9; /* Sky Blue for Billed/Takeaway */
  --accent-info-glow: rgba(14, 165, 233, 0.4);
  
  --accent-warning: #f59e0b; /* Amber for Pending/Preparing */
  --accent-warning-glow: rgba(245, 158, 11, 0.4);
  
  --accent-danger: #ef4444; /* Red for Occupied/Cancelled */
  --accent-danger-glow: rgba(239, 68, 68, 0.4);
  
  --accent-purple: #8b5cf6; /* Purple for reporting */
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  
  --sidebar-width: 230px;
  --header-height: 75px;
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  --glass-blur: 16px;
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Modal & Form */
  --modal-bg: #1a2744;
  --modal-border: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.07);
  --input-bg-focus: rgba(255, 255, 255, 0.11);
  --input-border: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] {
  /* Color Tokens - Light Mode Toggle */
  color-scheme: light;
  --bg-gradient-start: #f0f4f8;
  --bg-gradient-end: #d9e2ec;
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-border: rgba(11, 87, 164, 0.15);
  --text-primary: #0a1931;
  --text-secondary: #486581;
  --text-muted: #829ab1;
  
  --glass-blur: 10px;
  --shadow-lg: 0 10px 30px -10px rgba(11, 87, 164, 0.15);
  
  /* Modal & Form */
  --modal-bg: #ffffff;
  --modal-border: rgba(11, 87, 164, 0.18);
  --input-bg: #f8fafc;
  --input-bg-focus: #ffffff;
  --input-border: #b0c4de;
}

html {
  font-size: 14.5px; /* Reduced from 16px to fit elements cleanly without needing manual browser zoom */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', 'Outfit', 'Padauk', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

/* Ensure all form elements inherit the Myanmar font */
input, select, textarea, button {
  font-family: 'Noto Sans Myanmar', 'Pyidaungsu', 'Outfit', 'Padauk', sans-serif;
  font-size: inherit;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: var(--text-muted);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-primary);
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  background-attachment: fixed;
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Full Layout Wrapper */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* 1. Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 10;
  transition: var(--transition-smooth);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 5px 25px 5px;
  border-bottom: 1px solid var(--panel-border);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-brand-blue), var(--accent-primary));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px var(--accent-brand-blue-glow);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

[data-theme="light"] .brand-name {
  background: linear-gradient(to right, #0a1931, var(--accent-brand-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-settings-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.brand-logo-preview-box {
  width: 60px;
  height: 60px;
  border: 1px dashed var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-preview {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-settings-actions {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-settings-actions label {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 900;
}

.brand-settings-actions small {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.brand-logo-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-mini-primary,
.btn-mini-muted {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-mini-primary {
  background: var(--accent-brand-blue);
  color: #ffffff;
}

.btn-mini-muted {
  background: var(--input-bg);
  color: var(--text-secondary);
}

.btn-mini-primary:hover,
.btn-mini-muted:hover {
  transform: translateY(-1px);
}

.restaurant-settings-modal {
  max-width: 900px;
  width: min(900px, 92vw);
  min-height: 590px;
  padding: 18px 20px 16px 20px;
  overflow: hidden;
}

.restaurant-settings-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 150px);
  margin-top: 10px;
  overflow: hidden;
}

.settings-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.settings-tab-btn {
  border: 1px solid var(--panel-border);
  background: var(--input-bg);
  color: var(--text-secondary);
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.settings-tab-btn.active {
  background: var(--accent-brand-blue);
  color: #ffffff;
  border-color: var(--accent-brand-blue);
}

.settings-tab-content {
  flex: 1;
  min-height: 390px;
  height: 390px;
  overflow: hidden;
  padding: 10px 0 8px 0;
}

.settings-tab-pane {
  display: block;
}

.settings-pane-header {
  margin-bottom: 9px;
}

.settings-pane-header h4,
.settings-section-title h5 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 900;
}

.settings-pane-header p {
  margin: 2px 0 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.settings-pane-header-row,
.settings-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settings-form-grid,
.settings-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.settings-compact-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 12px;
  align-items: start;
}

.settings-voucher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
}

.voucher-preview-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  background: rgba(148, 163, 184, 0.08);
  padding: 10px;
}

.voucher-preview-title {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.voucher-preview-paper {
  width: 100%;
  min-height: 258px;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  padding: 12px 11px;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.voucher-preview-paper .voucher-preview-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto 5px auto;
}

.voucher-preview-paper .voucher-preview-center {
  text-align: center;
}

.voucher-preview-paper .voucher-preview-strong {
  font-weight: 900;
}

.voucher-preview-paper .voucher-preview-line {
  border-top: 1px dashed #94a3b8;
  margin: 8px 0;
}

.voucher-preview-paper .voucher-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.settings-form-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.settings-compact-textarea {
  min-height: 42px !important;
  height: 42px !important;
  resize: none;
}

.settings-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.settings-check-row-inline {
  height: 100%;
  min-height: 42px;
  align-self: end;
}

.settings-check-row input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.settings-status-line {
  margin-bottom: 9px;
  padding: 7px 9px;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  background: rgba(14, 165, 233, 0.08);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 800;
}

.settings-list-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.settings-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 0 0 0;
  border-top: 1px solid var(--panel-border);
  flex-shrink: 0;
}

.settings-bottom-actions .btn-modal-action {
  margin: 0;
  min-width: 132px;
  padding: 10px 14px;
}

.restaurant-settings-modal .form-group {
  margin-bottom: 0;
}

.restaurant-settings-modal .form-group label {
  margin-bottom: 4px;
  font-size: 0.76rem;
  line-height: 1.15;
}

.restaurant-settings-modal .form-control {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.restaurant-settings-modal *,
.restaurant-settings-modal *::before,
.restaurant-settings-modal *::after {
  scrollbar-width: none;
}

.restaurant-settings-modal *::-webkit-scrollbar {
  display: none;
}

@media (max-width: 760px) {
  .restaurant-settings-modal {
    width: calc(100vw - 18px);
    padding: 14px;
  }

  .restaurant-settings-form {
    min-height: 0;
    max-height: calc(100vh - 130px);
  }

  .settings-tab-content {
    min-height: 430px;
    height: 430px;
  }

  .settings-form-grid,
  .settings-two-column,
  .settings-compact-split,
  .settings-voucher-layout {
    grid-template-columns: 1fr;
  }

  .voucher-preview-card {
    display: none;
  }

  .settings-tabs {
    overflow: hidden;
    flex-wrap: wrap;
  }

  .settings-tab-content {
    overflow: hidden;
  }

  .settings-bottom-actions {
    flex-direction: column-reverse;
  }

  .settings-bottom-actions .btn-modal-action {
    width: 100%;
  }
}

.nav-list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--accent-primary) !important;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-item:hover {
  color: var(--accent-brand-blue) !important;
  background: rgba(11, 87, 164, 0.06);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--accent-brand-blue), #084078);
  color: #fff;
  box-shadow: 0 8px 20px -6px var(--accent-brand-blue-glow);
  border-left: 4px solid var(--accent-primary);
}

.nav-item.active i {
  transform: scale(1.1);
}

.tablet-menu-nav {
  display: none !important;
}

.sidebar-footer {
  padding-top: 15px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

/* 2. Main Content Layout */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Header Panel */
.top-header {
  height: var(--header-height);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--panel-border);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9;
}

.header-title-section h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-title-section p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.date-time-widget {
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

/* Content Screens (Switchable Tabs) */
.content-pane {
  flex-grow: 1;
  padding: 32px 24px 24px 24px;
  overflow-y: auto;
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.content-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Dashboard Pane (Aesthetic Metrics & Charts)
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-color, var(--accent-primary));
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px var(--card-glow, var(--accent-primary-glow));
}

.stat-info h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sales-payment-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.sales-payment-breakdown span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--card-color, var(--accent-primary));
}

/* Dashboard Analytics & Graph layout */
.analytics-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.chart-card, .table-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Custom SVG chart styling */
.chart-container {
  height: 250px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.svg-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 4;
}

.svg-line {
  stroke: url(#chart-gradient);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0px 8px 12px var(--accent-primary-glow));
}

.svg-area {
  fill: url(#area-gradient);
}

.chart-label {
  font-size: 10px;
  fill: var(--text-secondary);
}

/* Popular items list */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 250px;
  overflow-y: auto;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-rank {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.popular-item:nth-child(1) .popular-rank {
  background: var(--accent-warning);
  color: #000;
}

.popular-item:nth-child(2) .popular-rank {
  background: var(--text-muted);
  color: #fff;
}

.popular-details {
  flex-grow: 1;
}

.popular-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.popular-sales {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.popular-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-primary);
}


/* ==========================================================================
   Sales Screen (Ordering Grid + Dynamic Checkout Cart)
   ========================================================================== */
.sales-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  height: 100%;
  overflow: hidden;
}
.sales-layout.cart-hidden {
  grid-template-columns: 1fr;
}
.sales-layout.cart-hidden .cart-column {
  display: none !important;
}

.products-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
  padding-right: 5px;
}

/* Search and Filters */
.search-filter-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input {
  width: 100%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 12px 16px 12px 45px;
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

.search-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.category-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 5px 2px !important;
  align-items: center;
}

.category-tab {
  min-height: 42px;
  padding: 7px 14px;
  background: var(--cat-color, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1a1a1a !important; /* Bold black text as in screenshot */
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
  min-width: 92px;
  text-align: center;
  box-shadow: none;
}

.category-tab:hover {
  transform: scale(1.015);
  filter: brightness(1.03);
}

.category-tab.active {
  border-color: rgba(255, 255, 255, 0.92);
  transform: scale(1.025);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat-color) 65%, #ffffff 35%);
}

/* Products Card Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
  overflow-y: auto;
  flex-grow: 1;
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 4px solid var(--prod-color, #e2e8f0);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.product-card::before {
  display: none;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.2);
}

.product-info-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

.product-cat {
  display: none; /* Hide category name on screenshot-style buttons */
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a !important;
  line-height: 1.45;
  text-align: center;
  width: 100%;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  width: 100%;
}

.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-brand-blue) !important;
  text-align: center;
}

.product-stock {
  font-size: 0.65rem;
  background: rgba(11, 87, 164, 0.08);
  color: var(--accent-brand-blue) !important;
  border: 1px solid rgba(11, 87, 164, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 2px;
}

.product-stock.low {
  background: rgba(239, 83, 80, 0.08);
  color: #ef5350 !important;
  border: 1px solid rgba(239, 83, 80, 0.2);
}

.product-stock.out {
  background: rgba(0, 0, 0, 0.05);
  color: #7f8c8d !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-card-qty-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #111111;
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 5;
}

.cart-action-btn {
  border: none;
  font-family: inherit;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.cart-action-btn.send:hover {
  background: #4a313f !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.cart-action-btn.payment:hover {
  background: #cbd5e1 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

/* Sidebar Cart Panel */
.cart-column {
  background: var(--panel-bg);
  border-left: 1px solid var(--panel-border);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Step 1 Panel fills full height in flex column */
#cartStep1Panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Step 2 Panel */
#cartStep2Panel {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cart-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.cart-type-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--border-radius-md);
  margin: 15px 20px 0 20px;
}

.cart-type-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cart-type-btn.active {
  background: var(--accent-brand-blue);
  color: white;
  box-shadow: 0 4px 10px var(--accent-brand-blue-glow);
}

/* Cart table/list section */
.cart-items-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Step 1 Footer (Subtotal + Confirm) */
.cart-step1-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--panel-border);
  background: rgba(0,0,0,0.08);
}

.step1-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cart-confirm-btn {
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  letter-spacing: 0.3px;
}

.cart-confirm-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 12px;
}

.cart-empty-state i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  transition: background 0.15s;
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Main row: name | qty | price | remove */
.cart-item-main-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 5px;
  min-height: 28px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-remove {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 0.75rem;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: var(--accent-danger);
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .cart-item-price {
  color: #94a3b8;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 2px 4px;
  flex-shrink: 0;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background 0.1s;
}

.qty-btn:hover {
  background: rgba(255,255,255,0.12);
}

.qty-val {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

/* Note field — compact, below main row */
.cart-item-note-input {
  background: transparent;
  border: none;
  border-top: 1px dashed rgba(255,255,255,0.06);
  border-radius: 0;
  padding: 2px 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: 1px;
  outline: none;
  font-style: italic;
}

.cart-item-note-input::placeholder {
  color: rgba(255,255,255,0.2);
}

.cart-item-note-input:focus {
  color: var(--text-secondary);
  border-top-color: rgba(255,255,255,0.15);
}


/* Cart Billing & checkout buttons */
.cart-checkout-section {
  padding: 20px;
  border-top: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.1);
}

.billing-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.billing-line.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px dashed var(--panel-border);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 15px;
}

.billing-val {
  font-weight: 700;
}

.cart-table-selector {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 10px;
  border-radius: var(--border-radius-md);
  margin-bottom: 12px;
  font-weight: 600;
}

.cart-table-selector:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-success), #059669);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px -5px var(--accent-success-glow);
  transition: var(--transition-smooth);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px var(--accent-success-glow);
}

.checkout-btn:active {
  transform: translateY(0);
}


/* ==========================================================================
   Table Management Screen (Visual Floor Map)
   ========================================================================== */
.tables-floor-container {
  position: relative;
  width: 100%;
  height: 560px;
  background: rgba(255, 255, 255, 0.01);
  border: 1.5px dashed var(--panel-border);
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
  margin-top: 15px;
  transition: var(--transition-smooth);
}
.tables-floor-container.decor-bg {
  background-image: url('restaurant_floor_bg_v2.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.tables-floor-container.edit-mode {
  border-color: var(--accent-brand-blue);
  background: radial-gradient(rgba(11, 87, 164, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.table-grid {
  position: relative;
  width: 100%;
  height: 100%;
}

.restaurant-table {
  position: absolute;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 5px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  width: 130px;
  height: 108px;
  user-select: none;
}

.tables-floor-container.edit-mode .restaurant-table {
  cursor: move;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.table-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.tables-floor-container.edit-mode .restaurant-table .table-edit-overlay,
.tables-floor-container.edit-mode .restaurant-table:hover .table-edit-overlay {
  opacity: 1;
  pointer-events: auto;
}

.table-overlay-btn {
  background: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.table-overlay-btn:hover {
  transform: scale(1.15);
}

.table-overlay-btn.delete {
  color: #ef5350;
}

.restaurant-table::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--table-color, var(--accent-success));
}

.restaurant-table.available {
  --table-color: var(--accent-success);
  --table-glow: var(--accent-success-glow);
}

.restaurant-table.occupied {
  --table-color: var(--accent-danger);
  --table-glow: var(--accent-danger-glow);
}

.restaurant-table.billed {
  --table-color: var(--accent-primary);
  --table-glow: var(--accent-primary-glow);
}

.restaurant-table.reserved {
  --table-color: var(--accent-info);
  --table-glow: var(--accent-info-glow);
}

.restaurant-table:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px -6px var(--table-glow);
  border-color: var(--table-color);
}

.table-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed var(--table-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--table-color);
  transition: var(--transition-smooth);
}

.restaurant-table:hover .table-icon-wrapper {
  background: var(--table-color);
  color: white;
  border-style: solid;
}

.table-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 2px;
}

.table-seats {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.table-badge {
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  color: var(--table-color);
  border: 1px solid var(--table-color);
}


/* ==========================================================================
   Product Option Modifier Cards (Variant Selector Popup)
   ========================================================================== */
.option-modifier-card {
  position: relative;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--border-radius-md);
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  user-select: none;
}

.option-modifier-card:hover {
  border-color: rgba(11, 87, 164, 0.55);
  background: rgba(11, 87, 164, 0.08);
  transform: translateY(-2px);
}

.option-modifier-card.selected {
  border-color: var(--accent-brand-blue);
  background: rgba(11, 87, 164, 0.14);
  box-shadow: 0 0 0 3px rgba(11, 87, 164, 0.18);
}

.option-mod-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-primary);
}

.option-mod-price {
  font-size: 0.82rem;
  color: var(--accent-brand-blue);
  font-weight: 600;
}

.option-mod-total {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.option-mod-default-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--accent-brand-blue);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


/* ==========================================================================
   Kitchen Display System (KDS Grid view)
   ========================================================================== */
.kitchen-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.kitchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.kitchen-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.kitchen-card.preparing {
  border-color: var(--accent-warning);
}

.kitchen-card.ready {
  border-color: var(--accent-success);
}

.kitchen-card-header {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kitchen-table-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.kitchen-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.kitchen-card-items {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.k-qty {
  font-weight: 800;
  color: var(--accent-primary);
  margin-right: 8px;
}

.k-name {
  flex-grow: 1;
  font-weight: 600;
}

.k-note {
  font-size: 0.75rem;
  color: var(--accent-warning);
  font-style: italic;
  display: block;
  margin-top: 2px;
}

.kitchen-card-footer {
  padding: 16px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 10px;
}

.k-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.k-btn-primary {
  background: var(--accent-warning);
  color: #000;
}

.k-btn-primary:hover {
  background: #ffa451;
  box-shadow: 0 4px 10px var(--accent-warning-glow);
}

.k-btn-success {
  background: var(--accent-success);
  color: #fff;
}

.k-btn-success:hover {
  background: #059669;
  box-shadow: 0 4px 10px var(--accent-success-glow);
}

.k-btn-print {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

/* Compact production-pass fixes for Inventory and KDS */
#inventory-pane .inventory-management-layout {
  max-width: 1120px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  align-items: start !important;
  gap: 16px !important;
}

#inventory-pane .inventory-main-card,
#inventory-pane .inventory-history-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

#inventory-pane .inventory-history-card {
  max-width: none;
}

#inventory-pane .expense-table {
  table-layout: fixed;
  width: 100%;
  font-size: 0.86rem;
}

#inventory-pane .expense-table th,
#inventory-pane .expense-table td {
  padding: 10px 8px !important;
  vertical-align: middle !important;
}

#inventory-pane .expense-table {
  min-width: 760px;
}

#inventory-pane .expense-table th:nth-child(1) { width: 30%; }
#inventory-pane .expense-table th:nth-child(2) { width: 12%; }
#inventory-pane .expense-table th:nth-child(3) { width: 13%; }
#inventory-pane .expense-table th:nth-child(4) { width: 13%; }
#inventory-pane .expense-table th:nth-child(5) {
  width: 32%;
  text-align: right;
  padding-right: 18px !important;
}

.inventory-name-cell strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.inventory-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 5px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.inventory-type-badge.product {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.55);
  color: var(--accent-success);
}

.inventory-type-badge.raw {
  background: rgba(11, 87, 164, 0.10);
  border-color: rgba(11, 87, 164, 0.30);
  color: var(--text-secondary);
}

.inventory-stock-cell {
  font-size: 1rem;
  font-weight: 800;
}

.inventory-muted-cell {
  color: var(--text-secondary);
  font-weight: 600;
}

.inventory-actions-cell {
  display: grid;
  grid-template-columns: 60px 60px 32px 32px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 206px;
}

.inventory-action-btn,
.inventory-icon-btn {
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.inventory-action-btn {
  min-width: 60px;
  width: 60px;
  padding: 0 10px;
  color: #fff;
}

.inventory-action-btn.add { background: var(--accent-success); }
.inventory-action-btn.deduct { background: var(--accent-danger); }

.inventory-icon-btn {
  width: 32px;
  min-width: 32px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--panel-border);
}

.inventory-action-placeholder {
  display: inline-block;
  width: 32px;
  min-width: 32px;
  height: 30px;
  visibility: hidden;
}

.inventory-icon-btn.danger {
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.inventory-empty-cell,
.inventory-history-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.kitchen-header-row {
  margin-bottom: 14px;
  padding: 0 2px;
}

.kitchen-header-row h2,
.kitchen-header-row p {
  margin: 0;
}

.kitchen-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.kitchen-card {
  min-height: 190px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.kitchen-card-header,
.kitchen-card-items,
.kitchen-card-footer {
  padding: 12px;
}

.kitchen-card-items {
  gap: 8px;
}

.k-item {
  gap: 8px;
  padding-bottom: 7px;
}

.kitchen-card-footer {
  margin-top: auto;
}

.k-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.k-btn-print {
  flex: 0 0 38px;
}

.kds-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--text-muted);
  border: 1px dashed var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
}

.kds-empty-state i {
  font-size: 2.5rem;
  color: var(--accent-success);
  opacity: 0.65;
}

.kds-empty-state h2 {
  margin: 0;
  font-size: 1.05rem;
}

.kds-empty-state p {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  #inventory-pane .inventory-management-layout {
    grid-template-columns: 1fr !important;
  }
}

.k-btn-print:hover {
  background: rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   Market Purchases Screen (Expense Logs)
   ========================================================================== */
.market-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
}

.market-form-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-md);
  padding: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-smooth);
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary-glow);
  background: var(--input-bg-focus);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238892a4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--input-bg);
  padding-right: 36px;
  cursor: pointer;
  color: var(--text-primary);
}

select.form-control option {
  background: var(--modal-bg);
  color: var(--text-primary);
}

textarea.form-control {
  background: var(--input-bg);
  color: var(--text-primary);
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-category-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 5px;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-sm);
  background: color-mix(in srgb, var(--input-bg) 92%, #ffffff 8%);
}

.product-category-option {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  height: 30px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.product-category-option:hover,
.product-category-option.selected {
  transform: translateY(-1px);
  border-color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 14%, #ffffff 86%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-color) 30%, transparent);
}

.product-category-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
}

.product-category-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color) 16%, transparent);
}

.product-category-option.selected .product-category-dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat-color) 24%, transparent);
}

.product-category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  cursor: pointer;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--border-radius-md);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background: #e65c00;
  box-shadow: 0 5px 15px var(--accent-primary-glow);
}

.market-list-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.expense-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--panel-border);
  margin-bottom: 15px;
}

.expense-actions-btn,
.expense-clear-btn {
  height: 28px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.expense-actions-btn {
  padding: 4px 12px;
  background: #0b57a4;
  border: 1px solid #0b57a4;
  color: #fff;
  box-shadow: 0 4px 10px rgba(11, 87, 164, 0.18);
}

.expense-actions-btn:disabled {
  cursor: not-allowed;
  background: #eef4fb;
  border-color: #c9d8ea;
  color: #6b7d93;
  box-shadow: none;
}

.expense-actions-btn.active {
  background: #084985;
  border-color: #084985;
  color: #fff;
}

.expense-clear-btn {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #c9d8ea;
  color: #31506f;
}

.expense-actions-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: #ffffff;
  border: 1px solid #c9d8ea;
  border-radius: var(--border-radius-sm);
  min-width: 210px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  z-index: 400;
  overflow: hidden;
}

.expense-dropdown-action {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: #ffffff;
  border: none;
  color: var(--accent-danger);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.expense-dropdown-action:hover {
  background: rgba(239, 68, 68, 0.10);
}

.expense-table-wrap,
.inventory-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.expense-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.expense-table th {
  padding: 12px;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.expense-table td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  vertical-align: middle;
}

.expense-check-cell {
  width: 40px;
  text-align: center;
  padding: 12px 8px !important;
}

.expense-date-cell {
  width: 120px;
  white-space: nowrap;
}

.expense-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-info);
  border: 1px solid rgba(14, 165, 233, 0.55);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.expense-name-cell {
  min-width: 0;
}

.expense-name-cell strong {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.expense-name-cell small {
  display: block;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-qty-cell,
.expense-link-cell {
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.expense-cost {
  font-weight: 700;
  color: var(--accent-danger);
  white-space: nowrap;
}

.expense-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.expense-tag.stock-linked {
  background: var(--accent-success-glow);
  border-color: var(--accent-success);
  color: var(--accent-success);
}

.expense-stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
}

.pos-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.pagination-btn {
  min-width: 32px;
  height: 30px;
  border: 1px solid #c9d8ea;
  border-radius: var(--border-radius-sm);
  background: #ffffff;
  color: #31506f;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.pagination-btn.active {
  background: #0b57a4;
  border-color: #0b57a4;
  color: #ffffff;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-summary {
  margin-left: 6px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
}


/* ==========================================================================
   Reports Screen (Analytical Visualizations)
   ========================================================================== */
.report-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.report-table-wrapper {
  max-height: 350px;
  overflow-y: auto;
}

.sales-report-table {
  width: 100%;
  border-collapse: collapse;
}

.sales-report-table th {
  position: sticky;
  top: 0;
  background: var(--bg-gradient-start);
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.sales-report-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}


/* ==========================================================================
   Settings Screen (Configuration Panel)
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}

.settings-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-add-item {
  padding: 8px 16px;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--border-radius-md);
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}

.product-edit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 5px;
}

.edit-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
}

.edit-row-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edit-prod-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.edit-row-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.edit-row-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.edit-row-actions {
  display: flex;
  gap: 8px;
}

.btn-edit-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-edit-action.delete {
  color: var(--accent-danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-edit-action:hover {
  background: var(--text-primary);
  color: #000;
}

.btn-edit-action.delete:hover {
  background: var(--accent-danger);
  color: white;
}


/* ==========================================================================
   Modals & Printer Simulation (Receipt Overlay)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(-20px);
  transition: var(--transition-smooth);
  overflow-y: auto;
  max-height: 90vh;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--accent-danger);
}

/* Receipt/Printer simulation frame */
.printer-receipt-frame {
  background: #fdfdfd;
  color: #111111;
  font-family: 'Courier New', Courier, monospace;
  padding: 24px;
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  width: min(100%, 320px);
  margin: 0 auto;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
}

.expense-modal-card {
  width: min(94vw, 480px);
  max-width: 480px;
  padding: 20px;
  border-radius: var(--border-radius-lg);
  background: var(--modal-bg);
  overflow-x: hidden;
}

.expense-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expense-form-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.expense-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expense-form-grid.stock {
  grid-template-columns: minmax(0, 2fr) minmax(92px, 1.2fr);
  align-items: end;
}

.expense-stock-link-panel {
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--panel-border);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  margin-top: 5px;
  min-width: 0;
}

.expense-modal-card .form-group,
.expense-modal-card .form-control {
  min-width: 0;
}

.expense-modal-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.expense-modal-actions button {
  width: 100%;
  min-width: 0 !important;
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .expense-modal-card {
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .expense-form-grid.two,
  .expense-form-grid.stock,
  .expense-modal-actions {
    grid-template-columns: 1fr;
  }
}

.printer-receipt-frame[data-paper-size="58mm"] {
  width: min(100%, 232px);
  padding: 14px;
  font-size: 0.78rem;
}

.printer-receipt-frame[data-slip-type="kitchen"] {
  font-family: Arial, "Myanmar Text", sans-serif;
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 400;
}

.printer-receipt-frame[data-paper-size="80mm"] {
  width: min(100%, 320px);
}

.receipt-header {
  text-align: center;
  margin-bottom: 16px;
}

.receipt-kitchen-header {
  margin-bottom: 6px;
}

.receipt-kitchen-title {
  font-size: 1rem;
  font-weight: 800;
}

.receipt-kitchen-subtitle {
  font-size: 0.78rem;
  margin-top: 2px;
}

.receipt-title {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.receipt-subtitle {
  font-size: 0.85rem;
  margin-top: 4px;
  color: #555;
}

.receipt-divider {
  border-top: 1px dashed #111;
  margin: 10px 0;
}

.receipt-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.receipt-item-name {
  flex-grow: 1;
}

.receipt-item-qty-price {
  margin-left: 10px;
  white-space: nowrap;
}

.receipt-item-note {
  font-size: 0.75rem;
  margin-left: 15px;
  font-style: italic;
  color: #444;
}

.receipt-total-section {
  margin-top: 10px;
}

.receipt-inset-section {
  padding-left: 10px;
  padding-right: 10px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.receipt-payment-row span:last-child {
  padding-right: 4px;
  white-space: nowrap;
}

.receipt-total-row.grand {
  font-size: 1.1rem;
  font-weight: bold;
  border-top: 1px solid #111;
  padding-top: 6px;
  margin-top: 6px;
}

.receipt-footer {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 20px;
}

.receipt-kitchen-items {
  margin-top: 4px;
}

.receipt-kitchen-item {
  display: block;
  margin-bottom: 10px;
  line-height: 1.3;
  font-size: 0.86rem;
  font-weight: 700;
}

.receipt-kitchen-note {
  margin-left: 14px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
}

.receipt-kitchen-footer {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.receipt-page-break {
  border-top: 1px dashed #999;
  margin: 12px 0;
  height: 0;
}

.printer-slip-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-modal-action {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-modal-action.print {
  background: var(--accent-success);
  color: white;
}

.btn-modal-action.print:hover {
  background: #059669;
}

.btn-modal-action.cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.btn-modal-action.cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* Market Layout Classes */
.market-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .tablet-menu-nav {
    display: flex !important;
  }

  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .brand-section {
    padding: 0;
    border-bottom: none;
  }
  
  .nav-list {
    flex-direction: row;
    margin-top: 0;
    gap: 5px;
  }
  
  .nav-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .nav-item i {
    font-size: 1rem;
    width: auto;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .top-header {
    padding: 0 20px;
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .analytics-section {
    grid-template-columns: 1fr;
  }
  
  .sales-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  
  .cart-column {
    border-left: none;
    border-top: 1px solid var(--panel-border);
    height: 500px;
  }
  
  .market-layout {
    grid-template-columns: 1fr;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .market-layout {
    grid-template-columns: 1fr !important;
  }
  .expense-table th, .expense-table td {
    padding: 8px 4px !important;
    font-size: 0.78rem !important;
  }
  .expense-table td small {
    display: block;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .expense-cost {
    font-size: 0.8rem !important;
  }
  .expense-tag {
    padding: 2px 6px !important;
    font-size: 0.68rem !important;
  }
}

/* Extra Mobile Responsiveness */
@media (max-width: 600px) {
  .sidebar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px !important;
  }
  .nav-list {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-top: 8px !important;
  }
  .nav-item {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 58px;
  }

  html {
    font-size: 13px;
  }

  .app-container {
    display: block;
    height: 100vh;
    overflow: hidden;
  }

  .main-content {
    width: 100%;
    height: 100vh;
    padding-bottom: 66px;
  }

  .top-header {
    height: var(--header-height);
    padding: 0 10px;
    gap: 8px;
  }

  .header-title-section h1 {
    font-size: 1rem;
    line-height: 1.15;
    max-width: 48vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-title-section p {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .sync-btn,
  .date-time-widget,
  .menu-toggle {
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 950;
    width: 100% !important;
    height: 66px !important;
    padding: 6px 8px !important;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--panel-border);
    flex-direction: row !important;
    align-items: center !important;
    background: color-mix(in srgb, var(--modal-bg) 92%, transparent);
  }

  .brand-section,
  .sidebar-footer {
    display: none !important;
  }

  .nav-list {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 5px !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
  }

  .nav-item {
    min-width: 70px;
    height: 52px;
    padding: 6px 8px !important;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 0.68rem !important;
    border-radius: 10px;
    text-align: center;
  }

  .nav-item i {
    width: auto;
    font-size: 0.95rem !important;
  }

  .nav-item.active {
    border-left: none;
    box-shadow: none;
  }

  .content-pane {
    height: calc(100vh - var(--header-height) - 66px);
    padding: 10px;
    overflow: auto;
  }

  .sales-layout,
  .sales-layout.cart-hidden {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  .products-column {
    gap: 10px;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .pos-mode-buttons {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .pos-mode-btn {
    min-height: 40px;
    padding: 8px 9px !important;
    font-size: 0.75rem !important;
    border-radius: 10px !important;
  }

  .search-filter-row {
    gap: 8px;
  }

  .search-input {
    padding: 10px 12px 10px 36px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .search-wrapper i {
    left: 12px;
  }

  .category-scroll {
    gap: 6px;
    padding: 4px 1px !important;
  }

  .category-tab {
    min-width: 74px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.73rem;
    border-radius: 7px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }

  .product-card {
    height: 78px;
    padding: 6px;
  }

  .product-title {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .cart-column {
    width: 100%;
    min-height: 430px;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--panel-border);
    border-radius: 14px;
  }

  .sales-layout.cart-hidden .cart-column {
    display: none !important;
  }

  .cart-header {
    padding: 12px 14px;
  }

  .tables-floor-container {
    height: calc(100vh - 188px);
    min-height: 430px;
    overflow: auto;
    border-radius: 12px;
  }

  .restaurant-table {
    width: 112px;
    height: 92px;
  }

  .modal-content,
  .form-modal-content {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    max-height: calc(100vh - 24px) !important;
  }
}

/* POS Mode Buttons styling */
.pos-mode-btn {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}
.pos-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}
.pos-mode-btn.active {
  background: linear-gradient(135deg, var(--accent-brand-blue), #084078) !important;
  color: #fff !important;
  border-color: var(--accent-brand-blue) !important;
  box-shadow: 0 4px 15px -3px var(--accent-brand-blue-glow);
}
[data-theme="light"] .pos-mode-btn:hover {
  background: rgba(11, 87, 164, 0.06);
}
[data-theme="light"] .pos-mode-btn.active {
  background: var(--accent-brand-blue) !important;
  color: #fff !important;
  border-color: var(--accent-brand-blue) !important;
}

/* Color Picker Preset block highlighting */
.color-preset {
  border: 2px solid transparent;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.color-preset:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}
.color-preset.active {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2.5px var(--accent-brand-blue) !important;
  transform: scale(1.08);
}
[data-theme="light"] .color-preset.active {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2.5px var(--accent-brand-blue) !important;
}

/* Products Actions Dropdown Solid Background Styling */
.products-actions-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 46px;
  background: #111d35 !important;
  border: 1.5px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 100;
  min-width: 190px;
  overflow: hidden;
  padding: 5px 0;
}

.products-dropdown-action {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}

.products-dropdown-action:hover {
  background: rgba(11, 87, 164, 0.16);
  color: var(--accent-brand-blue);
}

.products-format-btn {
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.products-format-btn:hover {
  border-color: var(--accent-brand-blue);
  color: var(--accent-brand-blue);
  background: rgba(11, 87, 164, 0.12);
}

[data-theme="light"] .products-actions-dropdown {
  background: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Register Dropdown Styles */
.register-dropdown-content {
  min-width: 210px !important;
  background: #12213a !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: var(--border-radius-md);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38) !important;
  z-index: 1200;
  overflow: hidden;
}

.register-dropdown-content a,
.register-dropdown-content .products-dropdown-row {
  min-height: 44px;
  background: #12213a !important;
  color: #eef5ff !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  line-height: 1.25;
}

.register-dropdown-content a:hover {
  background: #172b4a !important;
}

.register-dropdown-content a small {
  margin-left: auto !important;
  padding-left: 12px;
  color: #9fb1c7 !important;
  font-size: 0.7rem;
  white-space: nowrap;
}

.register-dropdown-content .products-dropdown-row {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 6px !important;
  padding: 10px 14px !important;
}

.register-dropdown-content .products-dropdown-row > div {
  color: #8ea3bc !important;
  font-size: 0.68rem !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.register-dropdown-content #floorBgSelector {
  height: 34px;
  width: 100% !important;
  background: #203452 !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
}

[data-theme="light"] .register-dropdown-content {
  background: #ffffff !important;
  border-color: #d5e0ee !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16) !important;
}

[data-theme="light"] .register-dropdown-content a,
[data-theme="light"] .register-dropdown-content .products-dropdown-row {
  background: #ffffff !important;
  color: #0b1f38 !important;
  border-bottom-color: #e6edf5 !important;
}

[data-theme="light"] .register-dropdown-content a:hover {
  background: #f2f6fb !important;
}

[data-theme="light"] .register-dropdown-content a small {
  color: #667993 !important;
}

[data-theme="light"] .register-dropdown-content .products-dropdown-row > div {
  color: #667993 !important;
}

[data-theme="light"] .register-dropdown-content #floorBgSelector {
  background: #f8fbff !important;
  border-color: #cbd8e7 !important;
  color: #0b1f38 !important;
}

/* Payment Selector Grid Buttons */
.payment-method-select-btn {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 10px 4px;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.payment-method-select-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-brand-blue);
  transform: translateY(-2px);
}
.payment-method-select-btn.active {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: var(--accent-success) !important;
  color: var(--accent-success) !important;
  box-shadow: 0 4px 12px var(--accent-success-glow);
}
[data-theme="light"] .payment-method-select-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}
[data-theme="light"] .payment-method-select-btn:hover {
  background: #f1f5f9;
  border-color: var(--accent-brand-blue);
}

/* Print Overrides for Daily Sale PDF Reports */
@media print {
  body * {
    visibility: hidden !important;
  }
  #dailySaleReportPrintArea, #dailySaleReportPrintArea * {
    visibility: visible !important;
  }
  #dailySaleReportPrintArea {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 20px !important;
    margin: 0 !important;
    border: none !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
  }
  #dailySaleReportPrintArea table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  #dailySaleReportPrintArea th, #dailySaleReportPrintArea td {
    border: 1px solid #dddddd !important;
    padding: 8px !important;
    text-align: left !important;
    color: #000000 !important;
  }
}

/* Table QR ordering button styling */
.table-qr-btn {
  opacity: 0.6;
}
.restaurant-table:hover .table-qr-btn {
  opacity: 1;
  background: var(--accent-brand-blue) !important;
  color: white !important;
}



/* AI Chatbot & Pulse Animations */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}
@keyframes slide-in-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse-light {
  0% { opacity: 0.9; }
  50% { opacity: 0.6; }
  100% { opacity: 0.9; }
}

.ai-chatbot-window {
  display: none;
  flex-direction: column;
  width: 360px;
  height: 480px;
  background: #111827 !important; /* solid opaque dark background */
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  position: absolute;
  bottom: 70px;
  right: 0;
  animation: slide-in-up 0.3s ease;
  z-index: 10000;
}
[data-theme="light"] .ai-chatbot-window {
  background: #ffffff !important; /* solid opaque light background */
}

/* Smart cashier login */
.smart-login-overlay {
  z-index: 10000;
  opacity: 1;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(7, 17, 32, 0.88), rgba(12, 28, 50, 0.76)),
    url("restaurant_floor_bg.jpg") center / cover no-repeat;
}

.smart-login-shell {
  width: min(760px, 96vw);
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(9, 21, 38, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.smart-login-visual {
  position: relative;
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(8, 20, 38, 0.1), rgba(8, 20, 38, 0.86)),
    url("restaurant_floor_bg.jpg") center / cover no-repeat;
}

.smart-login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.smart-login-brand,
.smart-login-copy {
  position: relative;
  z-index: 1;
}

.smart-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.smart-login-brand img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.smart-login-brand h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 850;
}

.smart-login-brand span,
.smart-login-copy span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
}

.smart-login-copy {
  display: grid;
  gap: 8px;
  max-width: 260px;
}

.smart-login-copy strong {
  color: #ffffff;
  font-size: 1.52rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.smart-login-panel {
  padding: 22px 26px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(248, 251, 255, 0.94);
  color: #0f1b2d;
}

[data-theme="dark"] .smart-login-panel,
.dark-theme .smart-login-panel {
  background: rgba(14, 27, 48, 0.94);
  color: var(--text-primary);
}

.smart-login-header {
  margin-bottom: 12px;
}

.smart-login-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.smart-login-header h3 {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 850;
  letter-spacing: 0;
}

.smart-login-header p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 650;
}

.smart-login-label {
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.smart-login-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  font-size: 0.9rem;
  font-weight: 750;
}

.smart-login-error {
  display: none;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 68, 68, 0.26);
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--accent-danger);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.smart-login-pin-step {
  margin-top: 10px;
}

.smart-pin-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 7px 0 10px;
}

/* ── PIN Keypad & User Selector Login Redesign Styles ───────────────────── */
.pin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--text-secondary);
  background: transparent;
  transition: all 0.15s ease-in-out;
}
.pin-dot.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(229, 183, 46, 0.10);
}

.smart-pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 210px;
  margin: 0 auto;
}

.keypad-btn {
  height: 36px;
  font-size: 0.96rem;
  font-weight: 800;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--input-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.08s ease, border-color 0.08s ease, color 0.08s ease;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  user-select: none;
}
.keypad-btn:active {
  background: var(--panel-border);
}
.keypad-btn.clear {
  color: var(--accent-danger);
}
.keypad-btn.clear:active {
  background: rgba(239, 68, 68, 0.15);
}

.smart-login-submit {
  width: 100%;
  max-width: 210px;
  min-height: 38px;
  margin: 10px auto 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
}

#loginScreenOverlay #localIpInfoBar {
  margin-top: 10px !important;
  padding: 6px 8px !important;
  font-size: 0.68rem !important;
  line-height: 1.35 !important;
}

#loginScreenOverlay .smart-login-panel > div:last-child {
  margin-top: 9px !important;
  font-size: 0.66rem !important;
  line-height: 1.35 !important;
}

.smart-login-submit:active {
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .smart-login-overlay {
    padding: 14px;
  }

  .smart-login-shell {
    width: min(390px, 96vw);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .smart-login-visual {
    min-height: 136px;
    padding: 18px;
  }

  .smart-login-copy strong {
    font-size: 1.16rem;
  }

  .smart-login-panel {
    padding: 20px 18px 18px;
  }

  .smart-login-header {
    margin-bottom: 12px;
  }

  .smart-login-header h3 {
    font-size: 1.22rem;
  }
}

.login-user-card {
  background: var(--input-bg);
  border: 1.5px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.login-user-card:hover {
  border-color: var(--accent-primary-glow);
}
.login-user-card.active {
  border-color: var(--accent-primary);
  background: rgba(229, 183, 46, 0.08);
  box-shadow: 0 0 10px var(--accent-primary-glow);
}
.login-user-card i {
  font-size: 1.3rem;
  color: var(--text-secondary);
}
.login-user-card.active i {
  color: var(--accent-primary);
}
.login-user-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.login-user-card .user-role {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Product modal tabs */
.product-modal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.product-modal-tab:hover {
  transform: translateY(-1px);
}

.product-modal-tab.active {
  background: var(--accent-brand-blue);
  border-color: var(--accent-brand-blue);
  color: #ffffff;
}

.product-modal-card .form-group {
  margin-bottom: 0;
}

.product-modal-card .form-control {
  height: 44px !important;
  min-height: 44px;
  line-height: 1.25;
  padding-top: 9px;
  padding-bottom: 9px;
}

.product-modal-card select.form-control {
  line-height: normal;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 36px;
  display: block;
  text-overflow: ellipsis;
}

.product-modal-card #prodCategory,
.product-modal-card #prodStation {
  font-size: 0.9rem;
}

.product-modal-card .color-preset {
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transition: transform 0.16s ease, outline 0.16s ease, border-color 0.16s ease;
}

.product-modal-card .color-preset.active {
  border-color: #ffffff !important;
  outline: 2px solid var(--accent-brand-blue);
  transform: scale(1.05);
}

/* Customer digital menu */
.digital-menu-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96) 0%, rgba(248, 250, 252, 0.98) 44%, #f8fafc 100%);
  color: #0f172a;
  font-family: var(--font-family);
}

.digital-menu-hero {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,248,235,0.94)),
    url('restaurant_floor_bg.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.digital-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.digital-menu-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.digital-menu-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.15;
}

.digital-menu-subtitle {
  margin-top: 4px;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.digital-menu-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.digital-menu-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.digital-menu-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 18px;
  background: rgba(226, 232, 240, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  scrollbar-width: none;
}

.digital-menu-tabs::-webkit-scrollbar {
  display: none;
}

.digital-menu-chip {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.digital-menu-chip.active {
  color: #ffffff;
  background: #0b57a4;
  box-shadow: 0 10px 20px rgba(11, 87, 164, 0.22);
}

.digital-menu-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 32px;
}

.digital-menu-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.digital-menu-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 950;
}

.digital-menu-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
}

.digital-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.digital-menu-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.digital-menu-photo {
  position: relative;
  height: 132px;
  overflow: hidden;
  background: #f1f5f9;
}

.digital-menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.digital-menu-fallback-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.6rem;
}

.digital-menu-card-body {
  padding: 12px 13px 14px;
}

.digital-menu-card h4 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
}

.digital-menu-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.digital-menu-price {
  color: #0b57a4;
  font-size: 0.92rem;
  font-weight: 950;
}

.digital-menu-category-pill {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 850;
}

.digital-menu-empty {
  padding: 54px 18px;
  text-align: center;
  color: #64748b;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  .digital-menu-hero {
    padding: 13px 14px;
  }

  .digital-menu-title {
    font-size: 1.02rem;
  }

  .digital-menu-content {
    padding: 18px 12px 28px;
  }

  .digital-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .digital-menu-photo {
    height: 106px;
  }

  .digital-menu-card-body {
    padding: 10px;
  }

  .digital-menu-card h4 {
    font-size: 0.86rem;
  }
}

.clickable-report-row,
.order-list-card-clickable {
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.clickable-report-row:hover {
  background: rgba(11, 87, 164, 0.08);
}

.order-list-card-clickable:hover {
  border-color: rgba(11, 87, 164, 0.35) !important;
  background: rgba(11, 87, 164, 0.06) !important;
  transform: translateY(-1px);
}

.order-detail-modal-card {
  max-width: 540px;
  width: min(94vw, 540px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.order-detail-modal-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}

.order-detail-modal-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.order-detail-modal-subtitle {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.order-detail-modal-body {
  overflow-y: auto;
  padding-right: 2px;
}

.order-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.order-detail-summary-box {
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  background: rgba(148, 163, 184, 0.08);
  padding: 9px 10px;
  min-width: 0;
}

.order-detail-summary-box span {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.order-detail-summary-box strong {
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 900;
  word-break: break-word;
}

.order-detail-section-title {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 900;
  margin: 8px 0;
}

.order-detail-items-list {
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.order-detail-item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel-border);
}

.order-detail-item-row:last-child {
  border-bottom: 0;
}

.order-detail-item-info {
  min-width: 0;
}

.order-detail-item-name {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.order-detail-item-note {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 650;
}

.order-detail-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 125px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
}

.order-detail-item-meta strong {
  color: var(--text-primary);
  font-size: 0.84rem;
}

.order-detail-total-box {
  margin-top: 12px;
  border-top: 1px dashed var(--panel-border);
  padding-top: 10px;
}

.order-detail-total-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 750;
  padding: 4px 0;
}

.order-detail-total-box .grand-total {
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 950;
  padding-top: 8px;
}

.order-detail-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.order-detail-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
}

@media (max-width: 520px) {
  .order-detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-item-row {
    align-items: flex-start;
  }

  .order-detail-item-meta {
    flex-basis: 96px;
  }
}
