/**
 * Aroma Café POS UI Redesign
 * Matches Figma target design exactly
 */

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  --cafe-sidebar-w: 64px;
  --cafe-order-panel-w: 300px;
  --cafe-header-h: 56px;
  --cafe-card-radius: 14px;
  --cafe-card-img-h: 110px;
  --cafe-grid-gap: 12px;
  --cafe-card-pad: 8px;
}

/* ============================================
   WRAPPER & LAYOUT
   ============================================ */
.cafe-pos-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;  /* dynamic viewport height – respects Android nav bar */
  max-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================
   TOP HEADER
   ============================================ */
.cafe-pos-header {
  height: var(--cafe-header-h);
  background: #ffffff;
  border-bottom: 1px solid #eef0f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 60;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cafe-brand-logo {
  font-size: 1.45rem;
  font-weight: 800;
  font-style: italic;
  color: #e11d48;
  letter-spacing: -0.025em;
  user-select: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.cafe-pos-clock {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  user-select: none;
}

.cafe-pos-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cafe-kitchen-badge-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease;
  color: #4b5563;
}

.cafe-kitchen-badge-btn:hover {
  background: #e5e7eb;
}

.cafe-kitchen-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

.cafe-waiter-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 3px 8px 3px 3px;
  border-radius: 9999px;
  transition: background 0.15s ease;
  user-select: none;
}

.cafe-waiter-profile:hover {
  background: #f3f4f6;
}

.cafe-waiter-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.cafe-waiter-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  background: #f3f4f6;
}

/* Waiter Profile Dropdown & Chevron */
.cafe-profile-dropdown-wrapper {
  position: relative;
}

.cafe-profile-chevron {
  transition: transform 0.2s ease;
  color: #6b7280;
  margin-left: -2px;
}

.cafe-profile-chevron.is-open {
  transform: rotate(180deg);
}

.cafe-waiter-profile.is-active {
  background: #e5e7eb;
}

.cafe-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 8px;
  z-index: 1000;
  animation: cafeDropdownSlide 0.15s ease-out;
}

@keyframes cafeDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cafe-profile-dropdown-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 8px;
}

.cafe-profile-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid #d1d5db;
}

.cafe-profile-dropdown-meta {
  display: flex;
  flex-direction: column;
}

.cafe-profile-dropdown-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.cafe-profile-dropdown-role {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
}

.cafe-profile-dropdown-table {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 4px 2px 6px;
}

.cafe-profile-table-label {
  font-size: 0.72rem;
  color: #6b7280;
}

.cafe-profile-table-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.cafe-profile-dropdown-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 4px 0;
}

.cafe-profile-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: left;
}

.cafe-profile-dropdown-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.cafe-profile-dropdown-item.is-logout {
  color: #dc2626;
}

.cafe-profile-dropdown-item.is-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* ============================================
   MAIN BODY REGION
   ============================================ */
.cafe-pos-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ============================================
   LEFT CATEGORY SIDEBAR
   ============================================ */
.cafe-pos-sidebar {
  width: var(--cafe-sidebar-w);
  background: #ffffff;
  border-right: 1px solid #eef0f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 55;
}

.cafe-pos-sidebar::-webkit-scrollbar {
  width: 3px;
}
.cafe-pos-sidebar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.cafe-cat-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  margin-bottom: 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  user-select: none;
  background: transparent;
}

.cafe-cat-btn:hover {
  background: #f8fafc;
}

.cafe-cat-btn.is-active {
  background: #e5e7eb !important;
  border-color: #d1d5db;
}

.cafe-cat-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 3px;
  display: block;
}

.cafe-cat-icon {
  width: 22px;
  height: 22px;
  color: #4b5563;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cafe-cat-icon svg {
  width: 22px;
  height: 22px;
}

.cafe-cat-btn.is-active .cafe-cat-icon {
  color: #111827;
}

.cafe-cat-label {
  font-size: 10px;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
  line-height: 1.15;
}

.cafe-cat-btn.is-active .cafe-cat-label {
  color: #111827;
  font-weight: 700;
}

/* ============================================
   CENTER FOOD MENU & SEARCH
   ============================================ */
.cafe-pos-center {
  flex: 1;
  background-image: url('/images/pos/linen-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  overflow-y: auto;
  padding: 14px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cafe-search-container {
  width: 100%;
  max-width: 340px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.cafe-search-bar {
  width: 100%;
  height: 38px;
  background: #ffffff;
  border-radius: 9999px;
  border: 1px solid #dcdfd8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  padding: 0 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cafe-search-bar:focus-within {
  border-color: #2b3a30;
  box-shadow: 0 0 0 3px rgba(43, 58, 48, 0.1);
}

.cafe-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #111827;
  background: transparent;
  margin-left: 8px;
}

.cafe-search-input::placeholder {
  color: #9ca3af;
}

.cafe-search-clear {
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}

.cafe-search-clear:hover {
  color: #4b5563;
}

/* ============================================
   FOOD MENU GRID — 3 Columns Default
   ============================================ */
.cafe-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cafe-grid-gap);
  width: 100%;
}

/* ============================================
   FOOD CARD — Compact to Match Figma
   ============================================ */
.cafe-food-card {
  background: #ffffff;
  border-radius: var(--cafe-card-radius);
  padding: var(--cafe-card-pad);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}

.cafe-food-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.cafe-food-img-wrap {
  width: 100%;
  height: var(--cafe-card-img-h);
  border-radius: 10px;
  overflow: hidden;
  background: #f1f3f5;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cafe-food-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cafe-food-card:hover .cafe-food-img {
  transform: scale(1.03);
}

.cafe-food-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 8px;
  padding: 0 2px;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.cafe-food-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  gap: 6px;
}

.cafe-food-price {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.cafe-food-select-btn {
  background: #000000;
  color: #ffffff;
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.cafe-food-select-btn:hover {
  background: #27272a;
  transform: scale(1.04);
}

.cafe-food-select-btn:active {
  transform: scale(0.97);
}

/* ============================================
   RIGHT CURRENT ORDER PANEL
   ============================================ */
.cafe-pos-order-panel {
  width: var(--cafe-order-panel-w);
  min-width: 260px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  margin: 12px 14px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.cafe-order-header {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.cafe-order-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cafe-order-title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.cafe-table-pill {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.cafe-table-pill:hover {
  background: #f3f4f6;
}

.cafe-order-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.cafe-order-items-count {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.cafe-order-reset-btn {
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.cafe-order-reset-btn:hover {
  background: #fee2e2;
}

/* ORDER ITEMS SCROLL */
.cafe-order-items-scroll {
  flex: 1 1 0;
  overflow-y: auto;
  padding-right: 4px;
  margin: 4px 0;
  min-height: 0;
}

.cafe-order-items-scroll::-webkit-scrollbar {
  width: 4px;
}
.cafe-order-items-scroll::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.cafe-order-empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9ca3af;
  padding: 16px;
}

.cafe-order-item-card {
  background: #f4f5f7;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s ease;
}

.cafe-order-item-card:hover {
  background: #edeff2;
}

.cafe-order-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}

.cafe-order-item-info {
  flex: 1;
  min-width: 0;
}

.cafe-order-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cafe-order-item-price {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 1px;
}

.cafe-order-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.cafe-qty-stepper {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding: 2px 6px;
  gap: 6px;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.cafe-qty-btn {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 2px;
  user-select: none;
}

.cafe-qty-btn:hover {
  color: #111827;
}

.cafe-qty-val {
  font-weight: 700;
  color: #111827;
  min-width: 12px;
  text-align: center;
}

.cafe-item-sub-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 2px;
}

.cafe-item-expand-btn {
  color: #9ca3af;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.cafe-item-expand-btn:hover {
  color: #4b5563;
}

.cafe-item-delete-btn {
  color: #ef4444;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.cafe-item-delete-btn:hover {
  color: #dc2626;
}

/* ============================================
   ORDER FOOTER & SUMMARY
   ============================================ */
.cafe-order-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

.cafe-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 500;
}

.cafe-summary-val {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.cafe-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 10px;
}

.cafe-subtotal-label {
  font-size: 15px;
  color: #6b7280;
  font-weight: 500;
}

.cafe-subtotal-val {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.cafe-order-now-btn {
  width: 100%;
  min-height: 44px;
  background: #000000;
  color: #ffffff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  flex-shrink: 0;
}

.cafe-order-now-btn:hover:not(:disabled) {
  background: #18181b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cafe-order-now-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large tablets / small laptops (≤1100px) */
@media (max-width: 1100px) {
  :root {
    --cafe-order-panel-w: 260px;
    --cafe-card-img-h: 100px;
    --cafe-grid-gap: 10px;
    --cafe-card-pad: 7px;
  }

  .cafe-pos-order-panel {
    margin: 10px 10px 10px 0;
    padding: 14px 12px;
    min-width: 240px;
  }

  .cafe-pos-center {
    padding: 12px 14px 20px 14px;
  }
}

/* Tablets (≤960px) */
@media (max-width: 960px) {
  :root {
    --cafe-sidebar-w: 56px;
    --cafe-order-panel-w: 240px;
    --cafe-card-img-h: 90px;
    --cafe-grid-gap: 8px;
    --cafe-card-pad: 6px;
    --cafe-card-radius: 12px;
  }

  .cafe-pos-header {
    height: 48px;
    padding: 0 14px;
  }

  .cafe-brand-logo {
    font-size: 1.2rem;
  }

  .cafe-pos-clock {
    font-size: 1.05rem;
  }

  .cafe-waiter-avatar {
    width: 30px;
    height: 30px;
  }

  .cafe-waiter-name {
    font-size: 0.8rem;
  }

  .cafe-kitchen-badge-btn {
    width: 32px;
    height: 32px;
  }

  .cafe-cat-icon {
    width: 20px;
    height: 20px;
  }

  .cafe-cat-icon svg {
    width: 20px;
    height: 20px;
  }

  .cafe-cat-label {
    font-size: 9px;
  }

  .cafe-cat-btn {
    padding: 6px 2px;
    margin-bottom: 2px;
  }

  .cafe-food-title {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .cafe-food-price {
    font-size: 11px;
  }

  .cafe-food-select-btn {
    padding: 3px 10px;
    font-size: 10px;
  }

  .cafe-order-title {
    font-size: 14px;
  }

  .cafe-pos-order-panel {
    min-width: 220px;
    padding: 12px 10px;
    margin: 8px 8px 8px 0;
  }
}

/* Small tablets (≤768px) — Keep 3 columns but more compact */
@media (max-width: 768px) {
  :root {
    --cafe-sidebar-w: 50px;
    --cafe-order-panel-w: 220px;
    --cafe-card-img-h: 80px;
    --cafe-grid-gap: 6px;
    --cafe-card-pad: 5px;
    --cafe-card-radius: 10px;
  }

  .cafe-pos-header {
    height: 44px;
    padding: 0 10px;
  }

  .cafe-brand-logo {
    font-size: 1.05rem;
  }

  .cafe-pos-clock {
    font-size: 0.95rem;
  }

  .cafe-pos-header-right {
    gap: 8px;
  }

  .cafe-waiter-name {
    font-size: 0.8rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cafe-waiter-avatar {
    width: 28px;
    height: 28px;
  }

  .cafe-kitchen-badge-btn {
    width: 30px;
    height: 30px;
  }

  .cafe-pos-center {
    padding: 8px 8px 16px 8px;
  }

  .cafe-search-container {
    max-width: 100%;
    margin-bottom: 10px;
  }

  .cafe-search-bar {
    height: 34px;
    padding: 0 10px;
  }

  .cafe-search-input {
    font-size: 12px;
  }

  .cafe-food-title {
    font-size: 11px;
    margin-bottom: 4px;
    -webkit-line-clamp: 1;
  }

  .cafe-food-price {
    font-size: 10px;
  }

  .cafe-food-select-btn {
    padding: 3px 8px;
    font-size: 9px;
  }

  .cafe-order-item-thumb {
    width: 34px;
    height: 34px;
  }

  .cafe-order-item-name {
    font-size: 11px;
  }

  .cafe-order-item-price {
    font-size: 10px;
  }

  .cafe-order-now-btn {
    height: 38px;
    font-size: 13px;
  }
}

/* Drop to 2 columns below 600px (large phone / very small tablet) */
@media (max-width: 600px) {
  .cafe-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  :root {
    --cafe-sidebar-w: 46px;
    --cafe-order-panel-w: 200px;
    --cafe-card-img-h: 80px;
  }

  .cafe-pos-sidebar {
    padding: 6px 2px;
  }

  .cafe-cat-label {
    font-size: 8px;
  }

  .cafe-cat-btn {
    padding: 5px 1px;
    border-radius: 8px;
  }
}

/* Mobile phones (≤480px) — Stack order panel below */
@media (max-width: 480px) {
  .cafe-pos-body {
    flex-direction: column;
  }

  .cafe-pos-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 8px;
    border-right: none;
    border-bottom: 1px solid #eef0f2;
    height: auto;
  }

  .cafe-cat-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    margin-bottom: 0;
    margin-right: 4px;
  }

  .cafe-pos-order-panel {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: 40vh;
  }

  .cafe-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  :root {
    --cafe-card-img-h: 90px;
    --cafe-grid-gap: 8px;
    --cafe-card-pad: 6px;
  }
}

/* ========================================================
   KITCHEN DISPLAY SCREEN STYLES (Figma Design Match)
   ======================================================== */

.kitchen-screen-wrapper {
  min-height: 100vh;
  background-image: url('/images/pos/linen-bg.jpg');
  background-repeat: repeat;
  background-size: auto;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

/* Header bar */
.kitchen-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}

.kitchen-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kitchen-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.kitchen-back-link:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.kitchen-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Center Tabs */
.kitchen-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kitchen-tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.kitchen-tab-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.kitchen-tab-btn.is-active {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

.kitchen-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  background: #cbd5e1;
  color: #475569;
  transition: all 0.15s;
}

.kitchen-tab-btn.is-active .kitchen-tab-badge {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Header Right */
.kitchen-header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.kitchen-live-clock {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.kitchen-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: background 0.15s;
  user-select: none;
}

.kitchen-user-profile:hover {
  background: #f1f5f9;
}

.kitchen-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.kitchen-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

/* User dropdown */
.kitchen-user-dropdown {
  position: absolute;
  right: 0;
  top: 48px;
  width: 210px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  padding: 6px;
  z-index: 50;
}

.kitchen-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.kitchen-user-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.kitchen-user-dropdown-item.is-logout {
  color: #dc2626;
}
.kitchen-user-dropdown-item.is-logout:hover {
  background: #fef2f2;
}

.kitchen-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

/* Main Container: 3 items per row */
.kitchen-content-body {
  flex: 1;
  padding: 28px 32px 48px 32px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.kitchen-orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

/* Card Styling */
.kitchen-order-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #ececec;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
  min-height: 310px;
  position: relative;
}

.kitchen-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

/* Overdue card styling - red border with light red on top */
.kitchen-order-card.is-overdue {
  border: 2px solid #f87171 !important;
}

.kitchen-card-header {
  padding: 20px 22px 14px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  transition: background 0.2s;
}

.kitchen-order-card.is-overdue .kitchen-card-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.kitchen-card-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kitchen-order-number {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kitchen-order-type-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-top: 6px;
  text-transform: capitalize;
}

.kitchen-order-card.is-overdue .kitchen-order-type-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #991b1b;
}

.kitchen-card-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.kitchen-card-timer {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.kitchen-order-card.is-overdue .kitchen-card-timer {
  color: #dc2626 !important;
}

.kitchen-card-waiter {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

.kitchen-order-card.is-overdue .kitchen-card-waiter {
  color: #991b1b;
}

/* Card Items List */
.kitchen-card-items {
  padding: 14px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kitchen-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.kitchen-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kitchen-item-qty {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kitchen-item-info {
  flex: 1;
  min-width: 0;
}

.kitchen-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.kitchen-modifier-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kitchen-modifier-item {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kitchen-modifier-bullet {
  font-size: 10px;
  color: #94a3b8;
}

.kitchen-order-note {
  background: #fefce8;
  border-left: 3px solid #eab308;
  padding: 6px 10px;
  font-size: 12px;
  color: #854d0e;
  border-radius: 4px;
  margin-top: 8px;
}

/* Card Action Button */
.kitchen-card-action {
  padding: 14px 22px 22px 22px;
  margin-top: auto;
}

.kitchen-action-btn {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.kitchen-action-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

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

.kitchen-action-btn.is-ready-tab {
  background: #059669;
}
.kitchen-action-btn.is-ready-tab:hover {
  background: #047857;
}

/* Empty State */
.kitchen-empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  border-radius: 20px;
  padding: 64px 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.kitchen-empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 9999px;
}

.kitchen-empty-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.kitchen-empty-desc {
  font-size: 14px;
  color: #64748b;
  margin-top: 6px;
}

/* Responsive columns */
@media (max-width: 1024px) {
  .kitchen-orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kitchen-header {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }
  .kitchen-orders-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .kitchen-content-body {
    padding: 16px 12px 32px 12px;
  }
}

/* ============================================
   SCREENSHOT 1: HEADER ORDER ICON WITH BADGE
   ============================================ */
.cafe-orders-badge-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  color: #334155;
  padding: 0;
  flex-shrink: 0;
}

.cafe-orders-badge-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cafe-orders-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
}

/* ============================================
   SCREENSHOT 2: SLIDE-IN ORDERS PLACED DRAWER
   ============================================ */
.cafe-orders-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99990;
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
}

.cafe-orders-drawer {
  width: 440px;
  max-width: 94vw;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cafeDrawerIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cafeDrawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cafe-drawer-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.cafe-drawer-header {
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.cafe-drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cafe-drawer-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.cafe-drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cafe-drawer-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cafe-drawer-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cafe-drawer-tabs {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.cafe-drawer-tab {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.cafe-drawer-tab.is-active {
  font-weight: 800;
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.cafe-tab-num {
  font-size: 13px;
  font-weight: inherit;
}

.cafe-drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

.cafe-drawer-scroll::-webkit-scrollbar {
  width: 5px;
}
.cafe-drawer-scroll::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.cafe-orders-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cafe-order-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cafe-order-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

.cafe-order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cafe-order-card-num-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cafe-order-card-num {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.cafe-order-card-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.cafe-order-card-timer {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1.5px 7px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.cafe-order-card-timer svg {
  color: #64748b;
  flex-shrink: 0;
}

.cafe-order-card-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cafe-order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8.5px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.cafe-order-status-badge.is-lg {
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
}

.cafe-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Status 1: waiting (order in new category) */
.cafe-order-status-badge.is-waiting {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.cafe-order-status-badge.is-waiting .cafe-status-dot {
  background-color: #d97706;
}

/* Status 2: preparing (order in preparing category) */
.cafe-order-status-badge.is-preparing {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.cafe-order-status-badge.is-preparing .cafe-status-dot {
  background-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
  animation: cafe-status-pulse 1.8s infinite ease-in-out;
}

/* Status 3: ready (order in ready category) */
.cafe-order-status-badge.is-ready {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.cafe-order-status-badge.is-ready .cafe-status-dot {
  background-color: #16a34a;
}

@keyframes cafe-status-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.65;
  }
}

.cafe-order-card-type {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}

.cafe-order-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cafe-order-card-summary {
  font-size: 12px;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.cafe-order-card-total-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cafe-order-card-amount {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.cafe-order-card-chevron {
  color: #94a3b8;
}

/* ============================================
   SCREENSHOT 3: ORDER DETAILS & RECEIPT PRINTING
   ============================================ */
.cafe-detail-top-bar {
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.cafe-back-orders-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.cafe-back-orders-btn:hover {
  color: #0f172a;
}

.cafe-detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 30px;
  display: flex;
  flex-direction: column;
}

.cafe-detail-scroll::-webkit-scrollbar {
  width: 5px;
}
.cafe-detail-scroll::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.cafe-detail-header {
  margin-bottom: 4px;
}

.cafe-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cafe-detail-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cafe-detail-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.cafe-detail-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.cafe-detail-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
}

.cafe-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.cafe-detail-timer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.cafe-detail-timer-chip svg {
  color: #475569;
  flex-shrink: 0;
}

.cafe-detail-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0;
}

.cafe-detail-section-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.cafe-detail-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cafe-detail-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cafe-detail-item-qty-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  flex-shrink: 0;
}

.cafe-detail-item-info {
  flex: 1;
  min-width: 0;
}

.cafe-detail-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.cafe-detail-item-notes {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.cafe-detail-item-price-col {
  text-align: right;
  flex-shrink: 0;
}

.cafe-detail-item-line-total {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.cafe-detail-item-unit-price {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}

.cafe-detail-calc-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cafe-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.cafe-total-amount-pill {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cafe-total-amount-label {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.cafe-total-amount-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.cafe-detail-actions {
  margin-top: 20px;
}

.cafe-print-receipt-btn {
  width: 100%;
  padding: 14px;
  background: #000000;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cafe-print-receipt-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.cafe-print-receipt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cafe-back-link-btn {
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.cafe-back-link-btn:hover {
  color: #0f172a;
}

/* ============================================
   SCREENSHOT 4: ITEM CUSTOMIZATION MODAL
   ============================================ */
.cafe-custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
  animation: cafeFadeIn 0.2s ease;
}

@keyframes cafeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cafe-custom-modal-card {
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  width: 380px;
  max-width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: cafeCardPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cafeCardPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cafe-custom-modal-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}

.cafe-custom-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cafe-custom-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.cafe-custom-modal-close:hover {
  transform: scale(1.08);
}

.cafe-custom-modal-body {
  padding: 18px 20px 22px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cafe-custom-modal-body::-webkit-scrollbar {
  width: 4px;
}
.cafe-custom-modal-body::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.cafe-custom-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cafe-custom-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.cafe-custom-price {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.cafe-custom-section {
  margin-top: 12px;
}

.cafe-custom-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.cafe-custom-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cafe-custom-toggle-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
}

.cafe-custom-toggle-btn.is-selected {
  background: #f1f5f9;
  border-color: transparent;
  color: #0f172a;
  font-weight: 700;
}

.cafe-custom-addons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cafe-custom-addon-item {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}

.cafe-custom-addon-item:hover {
  background: #f1f5f9;
}

.cafe-custom-addon-item.is-checked {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cafe-custom-addon-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cafe-custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: all 0.15s ease;
}

.cafe-custom-addon-item.is-checked .cafe-custom-checkbox {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.cafe-custom-addon-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.cafe-custom-addon-price {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.cafe-custom-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 18px 0 14px;
}

.cafe-custom-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cafe-custom-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cafe-custom-total-label {
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
}

.cafe-custom-total-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.cafe-custom-order-btn {
  width: 100%;
  padding: 14px;
  background: #000000;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cafe-custom-order-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
}

/* ============================================
   SCREENSHOT 5: CART ITEM CONTROLS REFINEMENT
   ============================================ */
.cafe-order-item-card {
  background: #f4f5f7;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease;
}

.cafe-order-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
  cursor: pointer;
}

.cafe-order-item-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.cafe-order-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.cafe-order-item-price {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-top: 3px;
}

.cafe-order-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.cafe-qty-stepper {
  background: #ffffff;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding: 3px 10px;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cafe-qty-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 2px;
  user-select: none;
  transition: color 0.15s;
}

.cafe-qty-btn:hover {
  color: #111827;
}

.cafe-qty-val {
  font-weight: 700;
  color: #111827;
  font-size: 13px;
  min-width: 14px;
  text-align: center;
}

.cafe-item-sub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 4px;
}

.cafe-item-expand-btn {
  color: #9ca3af;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.cafe-item-expand-btn:hover {
  color: #4b5563;
}

.cafe-item-delete-btn {
  color: #ef4444;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.cafe-item-delete-btn:hover {
  color: #dc2626;
}

/* ==========================================================================
   WAITER ORDER EDITING ENHANCEMENTS
   ========================================================================== */

/* Edit button on order card in list view */
.cafe-card-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.cafe-card-edit-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-1px);
}

.cafe-card-edit-btn svg {
  color: inherit;
}

/* Edit button in order detail view */
.cafe-edit-order-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 8px;
}

.cafe-edit-order-detail-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.cafe-edit-order-locked-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.cafe-edit-order-locked-notice svg {
  color: #94a3b8;
  flex-shrink: 0;
}

/* POS Screen: Active Editing Banner */
.cafe-editing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 16px 10px 16px;
  animation: cafe-banner-pulse 2.2s infinite ease-in-out;
}

.cafe-editing-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cafe-editing-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2.5px 6.5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.cafe-editing-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.cafe-cancel-edit-btn {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 3.5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cafe-cancel-edit-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

@keyframes cafe-banner-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  }
}

.cafe-order-now-btn.is-editing {
  background: #2563eb !important;
}

.cafe-order-now-btn.is-editing:hover {
  background: #1d4ed8 !important;
}

/* ============================================================
   SEPARATE PRICING FOR EXTRA ADDED ITEMS & THERMAL RECEIPT
   ============================================================ */

/* Cart Item Pricing Breakdown */
.cafe-order-item-pricing-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.cafe-order-item-base-price {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.cafe-order-item-total-tag {
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 9999px;
}

.cafe-item-extras-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.cafe-item-extra-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 9999px;
  line-height: 1.25;
}

.cafe-order-item-submeta {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Order Details Screen (Screenshot 3) Extras Enhancement */
.cafe-detail-item-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cafe-detail-item-row.is-extra-row {
  background: #fdfbf7;
  border-left: 3px solid #f59e0b;
  padding-left: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius: 6px;
  margin-top: -4px;
}

.cafe-detail-item-qty-box.is-extra-qty {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
  font-size: 11px;
}

.cafe-extra-tag-badge {
  font-size: 9px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Printable Thermal Receipt (Hidden on Screen, Visible on Print) */
#cafe-printable-receipt {
  display: none;
}

@media print {
  /* Hide all interactive web UI elements during receipt printing */
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  body * {
    visibility: hidden !important;
  }

  #cafe-printable-receipt,
  #cafe-printable-receipt * {
    visibility: visible !important;
  }

  #cafe-printable-receipt {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 76mm !important;
    max-width: 76mm !important;
    margin: 0 !important;
    padding: 5mm 3mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

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

  .receipt-brand-logo {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.05em;
  }

  .receipt-brand-sub {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
  }

  .receipt-brand-address,
  .receipt-brand-contact {
    font-size: 10px;
    color: #222222;
  }

  .receipt-divider-dash {
    text-align: center;
    font-size: 10px;
    letter-spacing: -0.5px;
    margin: 5px 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .receipt-title-box {
    text-align: center;
    font-weight: 800;
    font-size: 12px;
    padding: 2px 0;
    margin: 4px 0;
    letter-spacing: 0.08em;
  }

  .receipt-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10.5px;
  }

  .receipt-meta-line {
    display: flex;
    justify-content: space-between;
  }

  .receipt-meta-key {
    font-weight: 600;
  }

  .receipt-meta-val {
    text-align: right;
  }

  .receipt-meta-val.bold {
    font-weight: 800;
  }

  .receipt-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0;
    font-size: 10.5px;
  }

  .receipt-items-table th {
    font-weight: 800;
    padding: 3px 0;
    border-bottom: 1px dashed #000000;
  }

  .receipt-items-table td {
    padding: 3px 0;
    vertical-align: top;
  }

  .receipt-items-table .col-qty {
    width: 12%;
    text-align: left;
  }

  .receipt-items-table .col-item {
    width: 48%;
    text-align: left;
    padding-right: 4px;
  }

  .receipt-items-table .col-price {
    width: 20%;
    text-align: right;
  }

  .receipt-items-table .col-total {
    width: 20%;
    text-align: right;
  }

  .receipt-item-title {
    font-weight: 700;
  }

  .receipt-extra-row .receipt-item-title {
    padding-left: 4px;
  }

  .receipt-item-subtitle {
    font-size: 9px;
    color: #333333;
  }

  .receipt-calc-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    margin: 4px 0;
  }

  .receipt-calc-line {
    display: flex;
    justify-content: space-between;
  }

  .receipt-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 900;
    padding-top: 2px;
  }

  .receipt-footer {
    text-align: center;
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.4;
  }

  .receipt-timestamp {
    font-size: 8.5px;
    color: #444444;
    margin-top: 4px;
  }

  @page {
    size: 80mm auto;
    margin: 0;
  }
}

/* ============================================
   KITCHEN DISPLAY - MENU ITEMS TAB (CHEF TOGGLE)
   ============================================ */
.kitchen-tab-btn.kitchen-tab-menu .kitchen-tab-badge.is-soldout {
  background: #ef4444;
  color: #ffffff;
}

.kitchen-menu-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 40px;
}

.kitchen-menu-search {
  position: relative;
  margin-bottom: 24px;
  max-width: 480px;
}

.kitchen-menu-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.kitchen-menu-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kitchen-menu-search-input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

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

.kitchen-menu-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  gap: 14px;
}

.kitchen-menu-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.kitchen-menu-item.is-soldout {
  background: #fef2f2;
  border-color: #fecaca;
  opacity: 0.92;
}

.kitchen-menu-item-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.kitchen-menu-item-info {
  flex: 1;
  min-width: 0;
}

.kitchen-menu-item-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kitchen-menu-item.is-soldout .kitchen-menu-item-name {
  color: #991b1b;
  text-decoration: line-through;
}

.kitchen-menu-item-price {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.kitchen-menu-item-status {
  margin-right: 6px;
}

.kitchen-menu-item-status .status-available {
  display: inline-block;
  padding: 4px 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.kitchen-menu-item-status .status-soldout {
  display: inline-block;
  padding: 4px 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid #fca5a5;
}

/* iOS-style toggle switch */
.kitchen-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.kitchen-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kitchen-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
}

.kitchen-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.kitchen-toggle-switch input:checked + .kitchen-toggle-slider {
  background-color: #10b981;
}

.kitchen-toggle-switch input:checked + .kitchen-toggle-slider:before {
  transform: translateX(20px);
}

.kitchen-toggle-switch.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Toast message for toggle feedback */
.kitchen-toggle-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 9999;
}

.kitchen-toggle-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   WAITER POS - SOLD OUT NOTIFICATION BANNER
   ============================================ */
.cafe-soldout-banner {
  background: linear-gradient(90deg, #fff1f2 0%, #fee2e2 100%);
  border-bottom: 1px solid #fecdd3;
  padding: 8px 20px;
  animation: slideDownBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
}

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

.cafe-soldout-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #9f1239;
}

.cafe-soldout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #f43f5e;
  color: #ffffff;
  border-radius: 9999px;
  flex-shrink: 0;
}

.cafe-soldout-text {
  flex: 1;
  line-height: 1.4;
}

.cafe-soldout-text strong {
  font-weight: 700;
  margin-right: 4px;
}

.cafe-soldout-dismiss {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #9f1239;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}

.cafe-soldout-dismiss:hover {
  background-color: rgba(244, 63, 94, 0.15);
}

/* ======================================================== */
/* "EXTRA" BUTTON ON ORDERS & POP-UP MODAL STYLES          */
/* ======================================================== */

.cafe-card-extra-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.cafe-card-extra-btn:hover {
  background: #166534;
  color: #ffffff;
  border-color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
}

.cafe-add-extras-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.cafe-add-extras-detail-btn:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Modal Backdrop & Card */
.cafe-extras-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cafeExtrasFadeIn 0.2s ease-out;
}

@keyframes cafeExtrasFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cafe-extras-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  animation: cafeExtrasSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cafeExtrasSlideUp {
  from { transform: translateY(20px) scale(0.97); }
  to { transform: translateY(0) scale(1); }
}

.cafe-extras-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #ffffff;
}

.cafe-extras-badge-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cafe-extras-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.cafe-extras-modal-sub {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.cafe-extras-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cafe-extras-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cafe-extras-modal-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
}

.cafe-extras-loading-state,
.cafe-extras-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.cafe-extras-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: cafeExtrasSpin 0.7s linear infinite;
}

@keyframes cafeExtrasSpin {
  to { transform: rotate(360deg); }
}

.cafe-extras-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cafe-extra-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cafe-extra-item-row:hover:not(.is-disabled) {
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.cafe-extra-item-row.is-selected {
  border-color: #166534;
  background: #f0fdf4;
}

.cafe-extra-item-row.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

.cafe-extra-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cafe-extra-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-cover: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.cafe-extra-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.cafe-extra-item-unit-price {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  margin-top: 2px;
}

.cafe-extra-soldout-label {
  font-size: 10px;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.cafe-extra-add-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cafe-extra-add-btn:hover:not(:disabled) {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.cafe-extra-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cafe-extra-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #166534;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.15);
}

.cafe-extra-step-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 800;
  color: #166534;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}

.cafe-extra-step-btn:hover {
  background: #dcfce7;
}

.cafe-extra-step-val {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #166534;
}

.cafe-extras-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cafe-extras-summary-line {
  font-size: 12px;
  color: #64748b;
}

.cafe-extras-summary-line strong {
  color: #166534;
  margin-left: 4px;
}

.cafe-extras-total-preview {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  margin-top: 2px;
}

.cafe-extras-total-preview strong {
  font-weight: 800;
  color: #0f172a;
  margin-left: 4px;
}

.cafe-extras-footer-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cafe-extras-cancel-btn {
  padding: 9px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cafe-extras-cancel-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.cafe-extras-confirm-btn {
  padding: 9px 20px;
  border-radius: 12px;
  background: #166534;
  border: 1px solid #166534;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.25);
}

.cafe-extras-confirm-btn:hover:not(:disabled) {
  background: #14532d;
  border-color: #14532d;
  transform: translateY(-1px);
}

.cafe-extras-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Receipt Section Header for Extras */
.receipt-section-header-row td {
  padding: 6px 0 3px 0 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  text-align: center !important;
  color: #000000 !important;
  border-top: 1px dashed #000000 !important;
  border-bottom: 1px dashed #000000 !important;
}

.receipt-extra-row td {
  color: #000000 !important;
  font-style: italic;
}

/* ========================================================= */
/* TAKEAWAY FUNCTIONALITY & PRICING STYLES                  */
/* ========================================================= */
.cafe-takeaway-indicator-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cafe-custom-toggle-btn.is-takeaway-active {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #f59e0b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.cafe-item-extra-pill.is-takeaway-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}

.cafe-takeaway-active-tag {
  color: #b45309;
  font-weight: 700;
}

/* ========================================================= */
/* WAITER OVERVIEW & SALES SOLD ITEMS STYLES                 */
/* ========================================================= */

.bm-overview-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  align-items: start !important;
}

@media (min-width: 1024px) {
  .bm-overview-grid {
    grid-template-columns: 42% 58% !important;
    gap: 24px !important;
  }
}

@media (min-width: 1280px) {
  .bm-overview-grid {
    grid-template-columns: 38% 62% !important;
    gap: 24px !important;
  }
}

.bm-overview-inspector-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.bm-waiter-date-selector-bar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bm-date-picker-input {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-date-picker-input:focus {
  border-color: #111827;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.bm-waiter-items-sold-section {
  display: flex;
  flex-direction: column;
  position: relative;
}

.bm-waiter-items-table-container {
  max-height: 290px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.bm-waiter-items-table-container::-webkit-scrollbar {
  width: 6px;
}

.bm-waiter-items-table-container::-webkit-scrollbar-track {
  background: #f8fafc;
}

.bm-waiter-items-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.bm-waiter-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.bm-waiter-items-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 10;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.bm-waiter-items-table tbody tr {
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.bm-waiter-items-table tbody tr:hover {
  background-color: #f9fafb;
}

.bm-waiter-items-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
}

.bm-waiter-items-floating-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  border-radius: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bm-footer-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.bm-footer-sub {
  font-size: 11px;
  color: #e5e7eb;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.bm-footer-right {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* ========================================================= */
/* SALES ORDERS PAGE: DATE SELECTION & GENERAL SOLD ITEMS    */
/* ========================================================= */

.sales-calendar-select-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sales-cal-input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  padding: 2px 4px !important;
  cursor: pointer;
}

.sales-cal-today-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sales-cal-today-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.sales-sold-items-banner {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sales-sold-items-banner:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  transform: translateY(-1px);
}

.sales-banner-badge {
  background: #7c3aed;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sales-banner-action-btn {
  background: #ffffff;
  border: 1px solid #c4b5fd;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sales-banner-action-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.sales-cat-pill.pill-purple {
  background: #ede9fe;
  color: #6d28d9;
}

.sales-cat-dot.dot-purple {
  background: #8b5cf6;
}

.sales-sold-items-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-top: 14px;
}

.sales-sold-items-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fafafa;
}

.sales-sold-items-table-wrap {
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.sales-sold-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.sales-sold-items-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 10;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.sales-sold-items-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.sales-sold-items-table tbody tr:hover {
  background-color: #f9fafb;
}

.sales-sold-items-floating-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}



