/* ============================================================
   Laiha Café - Luxury Resort Mobile & POS UI Theme
   Matching the Attached Design Mockup Exactly
   ============================================================ */

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

:root {
  --primary-brown: #4a2818;       /* Warm Espresso Brown */
  --primary-brown-hover: #361b0e;
  --primary-brown-light: #f5ece4;
  --accent-gold: #c28e46;         /* Island Gold */
  --accent-gold-light: #fef9ee;
  
  --dark-sidebar: #181210;        /* POS Dark Espresso Sidebar */
  --dark-sidebar-hover: #261e1b;
  --dark-sidebar-active: #3e2211;

  --bg-sand: #fbf8f4;             /* Warm Maldivian Sand */
  --surface-white: #ffffff;
  --border-light: #f0ebe4;
  --border-subtle: #e8e1d7;

  --text-dark: #221711;
  --text-muted: #84756c;
  --text-dim: #a4978f;

  --badge-green: #15803d;
  --badge-green-bg: #dcfce7;
  --badge-red: #b91c1c;
  --badge-red-bg: #fee2e2;
  --badge-blue: #1d4ed8;
  --badge-blue-bg: #dbeafe;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(66, 35, 20, 0.05);
  --shadow-md: 0 4px 10px rgba(66, 35, 20, 0.07);
  --shadow-lg: 0 12px 24px rgba(66, 35, 20, 0.10);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-sand);
  color: var(--text-dark);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #d6ccc2;
  border-radius: 999px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  color: var(--text-dark);
  font-weight: 700;
}

.serif-brand {
  font-family: var(--font-serif);
}

a {
  color: var(--primary-brown);
  text-decoration: none;
}

/* Common Buttons */
.btn-brown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-brown);
  color: #ffffff;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-brown:hover {
  background-color: var(--primary-brown-hover);
  color: #ffffff;
  text-decoration: none;
}
.btn-outline-brown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--primary-brown);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid #e0d7ce;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline-brown:hover {
  background-color: #f7f3ee;
  border-color: var(--primary-brown);
}

.btn-green {
  background-color: #10b981;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}
.btn-green:hover {
  background-color: #059669;
}

.btn-circle-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-brown);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.btn-circle-plus:hover {
  transform: scale(1.08);
  background-color: var(--primary-brown-hover);
}

/* ============================================================
   MOBILE CONTAINER & SHELL SIMULATION / RESPONSIVE
   ============================================================ */
.mobile-app-wrapper {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* Screen 1: Welcome Screen */
.welcome-screen {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
  min-height: 100vh;
  justify-content: space-between;
}
.welcome-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.welcome-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.palm-logo-svg {
  width: 28px;
  height: 28px;
  color: var(--accent-gold);
}
.welcome-logo-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-brown);
}
.welcome-logo-subtitle {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.welcome-hero-card {
  width: 100%;
  height: 310px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.welcome-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-heading-section {
  margin-bottom: 24px;
}
.welcome-heading-section span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}
.welcome-heading-section h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2px 0 6px;
}
.welcome-heading-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.welcome-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.welcome-primary-btn {
  background-color: var(--primary-brown);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(74, 40, 24, 0.25);
  transition: transform 0.15s, background-color 0.15s;
}
.welcome-primary-btn:hover {
  background-color: var(--primary-brown-hover);
  transform: translateY(-1px);
}
.welcome-btn-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.welcome-btn-left .icon {
  font-size: 1.5rem;
}
.welcome-btn-left .title {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  text-align: left;
}
.welcome-btn-left .subtitle {
  font-size: 0.8rem;
  color: #dfd2c8;
  display: block;
  text-align: left;
}

.welcome-secondary-btn {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.15s;
}
.welcome-secondary-btn:hover {
  background-color: #fbf8f4;
}

.welcome-badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.welcome-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.welcome-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-brown-light);
  color: var(--primary-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.welcome-badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Screen 2: Menu Browsing View */
.menu-view-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 30;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.menu-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.back-btn-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
}
.room-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fbf8f4;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-brown);
  cursor: pointer;
}

.search-pill-box {
  position: relative;
  width: 100%;
}
.search-pill-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #f8f6f2;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.search-pill-box .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Category Filter Pills */
.category-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 16px 4px;
  scrollbar-width: none;
}
.category-pills-scroll::-webkit-scrollbar {
  display: none;
}
.category-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f4ede6;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.category-pill.active {
  background: var(--primary-brown);
  color: #ffffff;
}

/* 2-Column Food Grid */
.popular-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  padding: 16px 16px 10px;
}

.food-cards-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 90px;
}

.food-card-mobile {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.food-card-mobile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.food-card-img-wrap {
  width: 100%;
  height: 130px;
  position: relative;
  background: #f4ede6;
}
.food-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav-heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
}
.fav-heart-btn.active {
  color: #ef4444;
}

.food-card-body-mobile {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.food-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 4px;
}
.food-card-footer-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.food-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* Bottom App Navigation Bar */
.bottom-nav-mobile {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px 14px;
  z-index: 40;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.bottom-nav-item.active {
  color: var(--primary-brown);
}
.bottom-nav-icon {
  font-size: 1.2rem;
}
.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Screen 3: Item Customization Modal / Screen */
.customization-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 16, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.customization-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.customization-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  position: relative;
}
.customization-modal-overlay.active .customization-sheet {
  transform: translateY(0);
}

.custom-hero-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}
.custom-hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.custom-top-actions {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
}
.round-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
}

.custom-body {
  padding: 16px 20px 80px;
}
.custom-title-row {
  margin-bottom: 6px;
}
.custom-title-row h2 {
  font-size: 1.35rem;
  font-weight: 800;
}
.custom-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 2px;
}
.custom-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 8px 0 18px;
}

.section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: block;
}

/* Size Selector Boxes */
.size-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.size-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}
.size-box.selected {
  border: 2px solid var(--primary-brown);
  background: #fdfaf8;
}
.size-box .size-name {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
}
.size-box .size-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* Extras Checkbox List */
.extras-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.extra-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
}
.extra-checkbox-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.extra-checkbox-left input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-brown);
}
.extra-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.instructions-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #f8f6f2;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  margin-bottom: 20px;
}

/* Custom Modal Bottom Bar */
.custom-bottom-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}
.qty-stepper button {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
}
.qty-stepper span {
  font-weight: 700;
  font-size: 1rem;
  min-width: 16px;
  text-align: center;
}

/* Screen 4: Your Cart View */
.cart-screen-view {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
  padding-bottom: 90px;
}
.cart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.cart-header-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.room-order-banner {
  background: #fdfaf7;
  border: 1px solid #f2e9df;
  border-radius: var(--radius-lg);
  margin: 16px 20px 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.room-order-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.room-order-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dark);
}
.room-order-text span {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-brown);
}
.btn-change-room {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-items-container {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 20px;
}
.cart-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.cart-item-details {
  flex: 1;
}
.cart-item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
}
.cart-item-size-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-item-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.cart-item-price-text {
  font-weight: 800;
  font-size: 0.95rem;
}

/* Payment Mode Boxes */
.payment-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.payment-card-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
}
.payment-card-box.selected {
  border: 2px solid var(--primary-brown);
  background: #fdfaf8;
}
.payment-card-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dark);
}
.payment-card-box small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Bill Breakdown */
.bill-breakdown-box {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.bill-row.total-row {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.cart-place-order-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  z-index: 40;
}


/* ============================================================
   DESKTOP / TABLET POS TERMINAL INTERFACE
   ============================================================ */
.pos-screen-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #f4ede6;
}

/* Dark Left Sidebar */
.pos-sidebar {
  width: 200px;
  background-color: var(--dark-sidebar);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex-shrink: 0;
}
.pos-brand-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid #2b221e;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pos-brand-header .palm-logo {
  color: var(--accent-gold);
  width: 32px;
  height: 32px;
}
.pos-brand-header .title {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.25rem;
  margin-top: 4px;
}
.pos-brand-header .subtitle {
  color: var(--accent-gold);
  font-size: 0.6rem;
  letter-spacing: 2px;
}

.pos-nav-menu {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 4px;
}
.pos-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #a4978f;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}
.pos-nav-btn:hover {
  background: var(--dark-sidebar-hover);
  color: #ffffff;
}
.pos-nav-btn.active {
  background: var(--dark-sidebar-active);
  color: #ffffff;
}
.pos-nav-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
}

/* POS Center Food Area */
.pos-center-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
}
.pos-top-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.service-type-tabs {
  display: flex;
  gap: 8px;
}
.service-type-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  background: #ffffff;
  cursor: pointer;
}
.service-type-tab.active {
  background: var(--primary-brown);
  color: #ffffff;
  border-color: var(--primary-brown);
}

.pos-search-box {
  position: relative;
  width: 260px;
}
.pos-search-box input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #f8f6f2;
  font-size: 0.85rem;
  outline: none;
}
.pos-search-box span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.pos-cat-filter-row {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  white-space: nowrap;
}
.pos-cat-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: #f4ede6;
  color: var(--text-muted);
  cursor: pointer;
}
.pos-cat-btn.active {
  background: var(--primary-brown);
  color: #ffffff;
}

/* POS 4-column Food Grid */
.pos-food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px;
}
.pos-food-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pos-food-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pos-food-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.pos-food-card-body {
  padding: 8px 10px;
}
.pos-food-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}
.pos-food-card-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 2px;
}

/* Right Panel: Current Ticket / Room Order */
.pos-right-ticket-panel {
  width: 320px;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.pos-ticket-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pos-ticket-room-dropdown {
  width: 100%;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #fdfaf7;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-brown);
  outline: none;
}

.pos-ticket-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pos-ticket-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.pos-ticket-item-title {
  font-weight: 700;
}
.pos-ticket-item-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pos-ticket-summary-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  background: #fdfbf9;
}
.pos-ticket-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pos-ticket-summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 6px;
  margin-top: 6px;
}

/* Secondary Panels: QR Codes (14 Rooms), Staff Credit, Live Orders, KOT */
.dashboard-grid-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  padding: 20px;
}

.widget-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.widget-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.widget-card-title {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Room QR Code Grid (14 Rooms) */
.room-qr-grid-14 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.room-qr-card-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.room-qr-card-item .room-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.room-qr-card-item .qr-thumb {
  width: 70px;
  height: 70px;
}

/* Staff Credit Table */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.staff-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}
.staff-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-light);
}

/* Live Orders Table */
.live-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.live-orders-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.live-orders-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-light);
}

/* Kitchen Order Ticket (KOT) Widget */
.kot-widget-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.kot-widget-header {
  padding: 12px 16px;
  background: #fdfaf7;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kot-widget-body {
  padding: 14px 16px;
}
.kot-widget-item-line {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.kot-widget-item-note {
  font-size: 0.75rem;
  color: #ea580c;
  margin-top: 2px;
  font-weight: 600;
}
.kot-widget-bottom-banner {
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sales Overview 4 Cards */
.sales-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sales-stat-card {
  background: #fdfbf9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.sales-stat-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sales-stat-card .amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 4px 0 2px;
}
.sales-stat-card .trend {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
}

/* Badges */
.badge-status {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-status.preparing { background: #dbeafe; color: #1d4ed8; }
.badge-status.ready { background: #dcfce7; color: #15803d; }
.badge-status.new { background: #fee2e2; color: #b91c1c; }
.badge-status.delivered { background: #ecfdf5; color: #047857; }
