/* ==============================================================================
   BUNDLE POS - MOBILE-NATIVE ERGONOMICS & APPLE TOUCH PHYSICS SYSTEM
   Architecture for Comandero Móvil PWA, Waiter Handhelds, and Touch Terminals
   ============================================================================== */

/* ------------------------------------------------------------------------------
   1. ROOT VARIABLES & SAFE AREA TOKENS
   ------------------------------------------------------------------------------ */
:root {
  /* Dynamic viewport & Safe Inset tokens */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);

  /* Component layout dimensions */
  --appbar-height: 56px;
  --fichaje-quickbar-height: 48px;
  --zone-navbar-height: 52px;
  --touch-target-min: 48px;
  --touch-target-action: 56px;

  /* Course Color Standards */
  --course-color-1: #f59e0b;
  --course-color-2: #ef4444;
  --course-color-postre: #ec4899;
  --course-color-bebida: #06b6d4;

  /* Apple Spring Timing Functions */
  --apple-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --press-speed: 80ms;
  --release-speed: 240ms;
}

/* ------------------------------------------------------------------------------
   2. VIEWPORT & ANTI-ZOOM FOUNDATION
   ------------------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100dvh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background-color: var(--bundle-bg, #0f172a);
}

body.comandero-body {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--bundle-font-main, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background-color: var(--bundle-bg, #0f172a);
  color: var(--bundle-text-main, #f8fafc);
  user-select: none;
  -webkit-user-select: none;
}

/* STRICT RULE: Eliminate iOS automatic viewport zoom upon focus */
input, select, textarea {
  font-size: 16px !important;
  font-family: inherit;
  touch-action: manipulation;
}

/* STRICT RULE: Universal touch target size >= 48px */
button, a.appbar-btn, .zone-tab, .course-pill, .mod-chip, .stepper-btn, .numpad-key, .btn-footer-action, .btn-quick-punch, .diner-chip, [role="button"], .shift-semaphore-pill {
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ------------------------------------------------------------------------------
   3. APPLE-LIKE TOUCH PHYSICS (LATENCIA CERO & SPRINGS)
   ------------------------------------------------------------------------------ */
/* Immediate tactile depression on pointerdown */
button:active, 
a.appbar-btn:active, 
.zone-tab:active, 
.course-pill:active, 
.mod-chip:active, 
.diner-chip:active,
.stepper-btn:active, 
.table-card:active, 
.product-card-mobile:active, 
.numpad-key:active,
.btn-footer-action:active,
.btn-quick-punch:active {
  transform: scale(0.97) !important;
  transition: transform var(--press-speed) var(--apple-ease-spring) !important;
}

/* Smooth spring recovery on release */
button, 
a.appbar-btn, 
.zone-tab, 
.course-pill, 
.mod-chip, 
.diner-chip,
.stepper-btn, 
.table-card, 
.product-card-mobile, 
.numpad-key,
.btn-footer-action,
.btn-quick-punch {
  transition: transform var(--release-speed) var(--apple-ease-spring), 
              background-color 0.15s ease, 
              border-color 0.15s ease, 
              box-shadow 0.15s ease;
}

/* Gated desktop hover (Mobile Hard Rule 1) */
@media (hover: hover) and (pointer: fine) {
  button:hover, .appbar-btn:hover {
    filter: brightness(1.08);
  }
  .table-card:hover {
    transform: translateY(-2px);
  }
}

/* ------------------------------------------------------------------------------
   4. STICKY APP-BAR HEADER
   ------------------------------------------------------------------------------ */
.mobile-appbar {
  height: calc(var(--appbar-height) + var(--sat));
  padding-top: var(--sat);
  padding-left: max(12px, var(--sal));
  padding-right: max(12px, var(--sar));
  background: var(--bundle-surface, #1e293b);
  border-bottom: 1px solid var(--bundle-border, #475569);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.appbar-left, .appbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appbar-hub-btn {
  text-decoration: none;
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  padding: 6px 12px;
  border-radius: var(--bundle-radius-sm, 8px);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.appbar-branding {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.appbar-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bundle-text-main, #f8fafc);
  letter-spacing: -0.2px;
}

.appbar-subtitle {
  font-size: 11px;
  color: var(--bundle-text-muted, #94a3b8);
  font-weight: 500;
}

/* Shift Timer & Semaphore */
.shift-semaphore-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  padding: 8px 12px;
  border-radius: var(--bundle-radius-full, 9999px);
  cursor: pointer;
  min-height: var(--touch-target-min);
  box-sizing: border-box;
}

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

.semaphore-dot.en_turno {
  background: var(--bundle-success, #10b981);
  box-shadow: 0 0 8px var(--bundle-success, #10b981);
}

.semaphore-dot.en_pausa {
  background: var(--bundle-accent, #f59e0b);
  box-shadow: 0 0 8px var(--bundle-accent, #f59e0b);
}

.semaphore-dot.fuera_de_turno {
  background: #94a3b8;
  box-shadow: none;
}

.shift-timer-display {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--bundle-text-main, #f8fafc);
}

.waiter-badge-btn {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  padding: 6px 10px;
  border-radius: var(--bundle-radius-md, 12px);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.connection-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bundle-success, #10b981);
}

/* ------------------------------------------------------------------------------
   5. FICHAJE QUICK-BAR (RD-LEY 8/2019)
   ------------------------------------------------------------------------------ */
.fichaje-quickbar {
  background: var(--bundle-surface-subtle, #334155);
  border-bottom: 1px solid var(--bundle-border, #475569);
  padding: 6px max(12px, var(--sar)) 6px max(12px, var(--sal));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--fichaje-quickbar-height);
  flex-shrink: 0;
}

.fichaje-unclocked-view, .fichaje-active-view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fichaje-msg-col {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bundle-accent, #f59e0b);
}

.fichaje-info-col {
  display: flex;
  flex-direction: column;
}

.fichaje-status-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--bundle-text-main, #f8fafc);
}

.fichaje-time-label {
  font-size: 11px;
  color: var(--bundle-text-muted, #94a3b8);
  font-family: monospace;
}

.btn-quick-punch {
  border: none;
  border-radius: var(--bundle-radius-sm, 8px);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-punch-in {
  background: var(--bundle-success, #10b981);
  color: #ffffff;
}

.btn-punch-pause {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-punch-out {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ------------------------------------------------------------------------------
   6. ZONE SELECTOR NAVIGATION
   ------------------------------------------------------------------------------ */
.zone-nav-bar {
  background: var(--bundle-surface, #1e293b);
  border-bottom: 1px solid var(--bundle-border, #475569);
  padding: 8px max(12px, var(--sar)) 8px max(12px, var(--sal));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.zone-tabs-scroller {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.zone-tabs-scroller::-webkit-scrollbar {
  display: none;
}

.zone-tab {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-muted, #94a3b8);
  padding: 8px 14px;
  border-radius: var(--bundle-radius-full, 9999px);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zone-tab.active {
  background: var(--bundle-primary, #2563eb);
  border-color: var(--bundle-primary, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.zone-badge {
  background: rgba(0, 0, 0, 0.25);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  font-family: monospace;
}

.salon-summary-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.summary-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--bundle-text-muted, #94a3b8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: var(--bundle-success, #10b981); }
.dot-blue { background: var(--bundle-primary, #2563eb); }
.dot-purple { background: #a855f7; }

.btn-refresh-map {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------------------
   7. TABLE MAP GRID & TABLE CARDS
   ------------------------------------------------------------------------------ */
.table-map-container {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px max(12px, var(--sar)) calc(76px + var(--sab)) max(12px, var(--sal));
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .tables-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .tables-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.table-card {
  background: var(--bundle-surface, #1e293b);
  border: 1px solid var(--bundle-border, #475569);
  border-radius: var(--bundle-radius-md, 12px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  cursor: pointer;
  box-sizing: border-box;
}

/* State: Libre */
.table-card.table-libre, .table-card.status-libre {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, var(--bundle-surface, #1e293b) 100%);
}

.table-card.table-libre .table-card-status-badge,
.table-card.status-libre .table-card-status-badge,
.table-card.table-libre .table-badge,
.table-card.status-libre .table-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--bundle-success, #10b981);
}

/* State: Ocupada */
.table-card.table-ocupada, .table-card.status-ocupada {
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08) 0%, var(--bundle-surface, #1e293b) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-card.table-ocupada .table-card-status-badge,
.table-card.status-ocupada .table-card-status-badge,
.table-card.table-ocupada .table-badge,
.table-card.status-ocupada .table-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

/* State: Pidiendo Cuenta */
.table-card.table-pidiendo_cuenta, .table-card.status-pidiendo_cuenta {
  border: 2px solid #a855f7;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.15) 0%, var(--bundle-surface, #1e293b) 100%);
  animation: pulseCardPurple 2s infinite ease-in-out;
}

.table-card.table-pidiendo_cuenta .table-card-status-badge,
.table-card.status-pidiendo_cuenta .table-card-status-badge,
.table-card.table-pidiendo_cuenta .table-badge,
.table-card.status-pidiendo_cuenta .table-badge {
  background: #a855f7;
  color: #ffffff;
  font-weight: 800;
}

@keyframes pulseCardPurple {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 16px 2px rgba(168, 85, 247, 0.6); }
}

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

.table-card-name, .table-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--bundle-text-main, #f8fafc);
  letter-spacing: -0.2px;
}

.table-card-status-badge, .table-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--bundle-radius-sm, 8px);
  letter-spacing: 0.4px;
}

.table-card-mid, .table-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.table-card-meta, .table-zone-tag, .table-guests-tag, .table-status-row {
  font-size: 12px;
  color: var(--bundle-text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-card-bottom, .table-live-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px dashed var(--bundle-border, #475569);
  padding-top: 6px;
}

.table-card-total, .live-check-amount {
  font-size: 15px;
  font-weight: 800;
  font-family: monospace;
  color: #38bdf8;
}

.live-check-waiter {
  font-size: 11.5px;
  color: var(--bundle-text-muted, #94a3b8);
  font-weight: 600;
}

.table-card-free-prompt, .table-free-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--bundle-success, #10b981);
}

/* Table Wait-Time Traffic Light Semaphores (🟢 < 10m, 🟡 10-20m, 🔴 > 20m) */
.table-card-wait-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.table-card-wait-badge.semaforo-verde {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.table-card-wait-badge.semaforo-amarillo {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.table-card-wait-badge.semaforo-rojo {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: pulseWaitSemaforoRed 1.8s infinite ease-in-out;
}

.table-card.table-urgent-wait {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

@keyframes pulseWaitSemaforoRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.05); }
}

/* ------------------------------------------------------------------------------
   7.1 THUMB ZONE NAVIGATION DOCK (BOTTOM 40% REACH)
   ------------------------------------------------------------------------------ */
.mobile-thumb-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--bundle-border, rgba(255, 255, 255, 0.08));
  padding: 8px max(12px, var(--sar)) max(10px, var(--sab)) max(12px, var(--sal));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.thumb-zone-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}

.thumb-zone-scroller::-webkit-scrollbar {
  display: none;
}

.thumb-pill {
  min-height: var(--touch-target-min, 48px);
  min-width: 48px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bundle-surface-subtle, #1e293b);
  border: 1px solid var(--bundle-border, rgba(255, 255, 255, 0.1));
  color: var(--bundle-text-muted, #94a3b8);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 150ms ease;
}

.thumb-pill:active {
  transform: scale(0.97);
  transition: transform 50ms cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-pill.active {
  background: var(--bundle-primary, #2563eb);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.thumb-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.thumb-pill.active .thumb-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.thumb-action-btn {
  min-height: var(--touch-target-min, 48px);
  min-width: var(--touch-target-min, 48px);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--bundle-surface-subtle, #1e293b);
  border: 1px solid var(--bundle-border, rgba(255, 255, 255, 0.12));
  color: var(--bundle-text-main, #f8fafc);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
  transition: all 150ms ease;
}

.thumb-action-btn:active {
  transform: scale(0.95);
  transition: transform 50ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------------------
   8. ACTIVE TABLE ORDER SHEET (BOTTOM DRAWER)
   ------------------------------------------------------------------------------ */
.order-sheet-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 300ms;
}

.order-sheet-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 280ms var(--apple-ease-spring);
}

.order-sheet-drawer.open .sheet-backdrop {
  opacity: 1;
}

.sheet-surface {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 94dvh;
  max-height: calc(100dvh - var(--sat) - 8px);
  background: var(--bundle-surface, #1e293b);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--bundle-border, #475569);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 320ms var(--apple-ease-spring);
  touch-action: pan-y;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.order-sheet-drawer.open .sheet-surface {
  transform: translateY(0);
}

.sheet-drag-handle-bar {
  padding-top: 10px;
  padding-bottom: 6px;
  display: flex;
  justify-content: center;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.sheet-drag-handle-bar:active {
  cursor: grabbing;
}

.sheet-drag-handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--bundle-border, #475569);
}

.sheet-header {
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bundle-border, #475569);
  flex-shrink: 0;
}

.btn-sheet-close {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  padding: 6px 12px;
  border-radius: var(--bundle-radius-sm, 8px);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch-target-min, 48px);
  min-width: var(--touch-target-min, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheet-header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.sheet-table-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--bundle-text-main, #f8fafc);
}

.sheet-table-meta {
  font-size: 11.5px;
  color: var(--bundle-text-muted, #94a3b8);
}

.sheet-header-total {
  text-align: right;
  line-height: 1.2;
}

.sheet-total-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--bundle-text-muted, #94a3b8);
  font-weight: 700;
  display: block;
}

.sheet-total-val {
  font-size: 15px;
  font-weight: 900;
  font-family: monospace;
  color: #38bdf8;
}

/* Course Allocation Bar */
.course-selector-bar {
  background: var(--bundle-surface-subtle, #334155);
  border-bottom: 1px solid var(--bundle-border, #475569);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.course-selector-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--bundle-text-muted, #94a3b8);
  text-transform: uppercase;
}

.course-pill {
  padding: 6px 14px;
  border-radius: var(--bundle-radius-full, 9999px);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: var(--bundle-surface, #1e293b);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-muted, #94a3b8);
  white-space: nowrap;
}

.course-pill.active.course-1 {
  background: var(--course-color-1);
  color: #020617;
  border-color: var(--course-color-1);
}

.course-pill.active.course-2 {
  background: var(--course-color-2);
  color: #ffffff;
  border-color: var(--course-color-2);
}

.course-pill.active.course-postre {
  background: var(--course-color-postre);
  color: #ffffff;
  border-color: var(--course-color-postre);
}

.course-pill.active.course-bebida {
  background: var(--course-color-bebida);
  color: #020617;
  border-color: var(--course-color-bebida);
}

/* Category Chips Scroller */
.catalog-categories-bar {
  padding: 8px 14px;
  border-bottom: 1px solid var(--bundle-border, #475569);
  background: var(--bundle-surface, #1e293b);
  flex-shrink: 0;
}

.cat-chips-scroller {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
}

.cat-chip {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-muted, #94a3b8);
  padding: 6px 14px;
  border-radius: var(--bundle-radius-full, 9999px);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.cat-chip.active {
  background: var(--bundle-primary, #2563eb);
  color: #ffffff;
  border-color: var(--bundle-primary, #2563eb);
}

/* Sheet Scrollable Body */
.sheet-content-scrollable {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sheet-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .sheet-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card-mobile, .mobile-product-card {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  border-radius: var(--bundle-radius-md, 12px);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
  cursor: pointer;
}

.product-card-mobile-title, .prod-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bundle-text-main, #f8fafc);
  line-height: 1.25;
}

.prod-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.btn-card-mod {
  background: var(--bundle-surface, #1e293b);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-muted, #94a3b8);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.product-card-mobile-bottom, .prod-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.product-card-mobile-price, .prod-price {
  font-size: 14px;
  font-weight: 800;
  font-family: monospace;
  color: #38bdf8;
}

.product-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-add-icon, .prod-add-indicator {
  background: var(--bundle-primary, #2563eb);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

/* Draft Order Tray */
.draft-order-tray {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--bundle-border, #475569);
  border-radius: var(--bundle-radius-md, 12px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.draft-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bundle-border, #475569);
  padding-bottom: 8px;
}

.draft-tray-title {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.draft-count-badge {
  background: var(--bundle-primary, #2563eb);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: monospace;
}

.draft-subtotal-val {
  font-size: 16px;
  font-weight: 900;
  font-family: monospace;
  color: var(--bundle-text-main, #f8fafc);
  margin-right: 8px;
}

.btn-clear-draft {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch-target-min, 48px);
  min-width: var(--touch-target-min, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.draft-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draft-item-row {
  background: var(--bundle-surface, #1e293b);
  border: 1px solid var(--bundle-border, #475569);
  border-radius: var(--bundle-radius-sm, 8px);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.draft-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.draft-item-course-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.draft-item-course-badge.course-1, .draft-item-course-badge.pase-1 {
  background: rgba(245, 158, 11, 0.2);
  color: var(--course-color-1, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.draft-item-course-badge.course-2, .draft-item-course-badge.pase-2 {
  background: rgba(239, 68, 68, 0.2);
  color: var(--course-color-2, #ef4444);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.draft-item-course-badge.course-postre, .draft-item-course-badge.pase-postre {
  background: rgba(236, 72, 153, 0.2);
  color: var(--course-color-postre, #ec4899);
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.draft-item-course-badge.course-bebida, .draft-item-course-badge.pase-bebida {
  background: rgba(6, 182, 212, 0.2);
  color: var(--course-color-bebida, #06b6d4);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.draft-note-tag {
  font-size: 11px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 4px;
}

.draft-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bundle-text-main, #f8fafc);
}

.draft-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn, .draft-qty-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  border-radius: 8px;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.draft-item-qty, .draft-qty-val {
  font-weight: 800;
  font-family: monospace;
  font-size: 15px;
  min-width: 24px;
  text-align: center;
}

.draft-item-price, .draft-item-line-price {
  font-family: monospace;
  font-weight: 800;
  font-size: 14px;
  min-width: 54px;
  text-align: right;
  color: #38bdf8;
}

.draft-del-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.draft-item-modifiers-row, .draft-item-mod-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.draft-mod-tag {
  font-size: 11px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 1px 6px;
  border-radius: 4px;
}

.btn-item-mod-edit {
  background: transparent;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: var(--bundle-text-muted, #94a3b8);
  padding: 2px 4px;
  min-width: var(--touch-target-min, 48px);
  min-height: var(--touch-target-min, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kitchen-notes-input {
  width: 100%;
  background: var(--bundle-surface, #1e293b);
  border: 1px solid var(--bundle-border, #475569);
  border-radius: var(--bundle-radius-sm, 8px);
  color: var(--bundle-text-main, #f8fafc);
  padding: 8px 12px;
}

/* Sticky Dual Action Footer */
.sheet-action-footer {
  padding: 10px 14px max(14px, var(--sab));
  background: var(--bundle-surface, #1e293b);
  border-top: 1px solid var(--bundle-border, #475569);
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 10px;
  flex-shrink: 0;
}

.btn-footer-action {
  border: none;
  border-radius: var(--bundle-radius-md, 12px);
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch-target-action);
}

.btn-marchar-cocina {
  background: var(--bundle-success, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-solicitar-preticket {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

/* ------------------------------------------------------------------------------
   9. MODALS FOUNDATION & TACTILE KEYPAD
   ------------------------------------------------------------------------------ */
.mobile-modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-modal:not([open]) {
  display: none;
}

.mobile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-modal-card {
  position: relative;
  background: var(--bundle-surface, #1e293b);
  border: 1px solid var(--bundle-border, #475569);
  border-radius: var(--bundle-radius-lg, 16px);
  width: min(94vw, 480px);
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.modal-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bundle-border, #475569);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-card-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--bundle-text-main, #f8fafc);
}

.modal-legal-subtitle {
  font-size: 11px;
  color: var(--bundle-text-muted, #94a3b8);
}

.btn-modal-close {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card-body {
  padding: 16px 18px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--bundle-border, #475569);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-modal-primary {
  width: 100%;
  background: var(--bundle-primary, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: var(--bundle-radius-md, 12px);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  min-height: var(--touch-target-action);
}

.btn-modal-secondary {
  width: 100%;
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  border-radius: var(--bundle-radius-md, 12px);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch-target-min);
}

.btn-modal-cancel {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--bundle-text-muted, #94a3b8);
  padding: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch-target-min, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Diner Stepper & Chips */
.diner-stepper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 6px 0;
}

.diner-stepper-row .stepper-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  font-size: 22px;
}

.stepper-value {
  font-size: 28px;
  font-weight: 900;
  font-family: monospace;
  color: var(--bundle-text-main, #f8fafc);
  min-width: 40px;
  text-align: center;
}

.quick-diner-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.diner-chip {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.diner-chip.active {
  background: var(--bundle-primary, #2563eb);
  color: #ffffff;
  border-color: var(--bundle-primary, #2563eb);
}

/* Modifiers Chips */
.modifier-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 420px) {
  .modifier-tags-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mod-chip {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  padding: 10px;
  border-radius: var(--bundle-radius-sm, 8px);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  min-height: var(--touch-target-min, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-chip.active {
  background: var(--bundle-accent, #f59e0b);
  border-color: var(--bundle-accent, #f59e0b);
  color: #020617;
  font-weight: 800;
}

/* Modifier Course Selection Chips */
.modifier-course-row {
  display: flex;
  gap: 8px;
  margin: 6px 0 10px 0;
  flex-wrap: wrap;
}

.modifier-course-chip {
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-muted, #94a3b8);
  padding: 8px 12px;
  border-radius: var(--bundle-radius-full, 9999px);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch-target-min, 48px);
  min-width: var(--touch-target-min, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modifier-course-chip.active {
  background: var(--bundle-primary, #2563eb);
  color: #ffffff;
  border-color: var(--bundle-primary, #2563eb);
}

/* ------------------------------------------------------------------------------
   9.1 BOTTOM SHEET FOR MODIFIERS WITH APPLE SPRING PHYSICS
   ------------------------------------------------------------------------------ */
.modifier-bottom-sheet.mobile-modal {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
  padding-top: 0;
}

.modifier-bottom-sheet .bottom-sheet-card {
  width: 100%;
  max-width: 600px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 85dvh;
  margin-bottom: 0;
  padding-bottom: max(14px, var(--sab));
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.65);
}

.modifier-bottom-sheet.sheet-open .bottom-sheet-card,
.modifier-bottom-sheet[open].sheet-open .bottom-sheet-card {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 6px 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sheet-drag-handle .drag-pill {
  width: 44px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 150ms ease;
}

.sheet-drag-handle:active .drag-pill {
  background: rgba(255, 255, 255, 0.5);
}

/* PIN Numpad Grid */
.pin-numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.numpad-key {
  height: 56px;
  background: var(--bundle-surface-subtle, #334155);
  border: 1px solid var(--bundle-border, #475569);
  border-radius: var(--bundle-radius-md, 12px);
  color: var(--bundle-text-main, #f8fafc);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numpad-action-key {
  background: rgba(148, 163, 184, 0.15);
  color: var(--bundle-text-muted, #94a3b8);
  font-size: 18px;
}

.pin-dots-display {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 8px 0;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bundle-border, #475569);
}

.pin-dot.filled {
  background: var(--bundle-primary, #2563eb);
  border-color: var(--bundle-primary, #2563eb);
}

.pin-fichaje-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.btn-punch {
  border: none;
  border-radius: var(--bundle-radius-sm, 8px);
  padding: 10px 6px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Thermal Paper Layout for Pre-ticket */
.thermal-receipt-paper {
  background: #ffffff;
  color: #000000;
  padding: 16px;
  font-family: monospace;
  font-size: 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #000000;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.receipt-biz-name {
  font-size: 16px;
  font-weight: 900;
}

.receipt-disclaimer-box {
  border: 1px solid #000000;
  padding: 4px;
  margin: 6px 0;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.receipt-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  font-size: 11px;
  margin-top: 6px;
}

.receipt-lines-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.receipt-lines-table th, .receipt-lines-table td {
  padding: 4px 2px;
  font-size: 11px;
}

.col-qty { text-align: center; width: 12%; }
.col-desc { text-align: left; width: 50%; }
.col-price { text-align: right; width: 18%; }
.col-subtotal { text-align: right; width: 20%; font-weight: 700; }
.receipt-line-mods { font-size: 10px; color: #4b5563; font-style: italic; }

.empty-products-msg, .draft-empty-msg {
  padding: 24px 16px;
  text-align: center;
  color: var(--bundle-text-muted, #94a3b8);
  font-size: 13.5px;
  font-weight: 600;
}

.receipt-lines-table th {
  border-bottom: 1px solid #000000;
}

.receipt-totals-section {
  border-top: 1px dashed #000000;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.receipt-grand-total {
  font-size: 15px;
  font-weight: 900;
  border-top: 1px solid #000000;
  padding-top: 4px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: calc(var(--appbar-height) + var(--sat) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 360px);
}

.bundle-toast, .mobile-toast {
  background: var(--bundle-surface, #1e293b);
  border: 1px solid var(--bundle-border, #475569);
  color: var(--bundle-text-main, #f8fafc);
  padding: 10px 14px;
  border-radius: var(--bundle-radius-md, 12px);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideToastIn 200ms var(--apple-ease-spring);
}

.bundle-toast.toast-success, .mobile-toast.toast-success {
  border-left: 4px solid var(--bundle-success, #10b981);
}

.bundle-toast.toast-warning, .mobile-toast.toast-warning {
  border-left: 4px solid var(--bundle-accent, #f59e0b);
}

.bundle-toast.toast-info, .mobile-toast.toast-info {
  border-left: 4px solid var(--bundle-primary, #2563eb);
}

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

/* ------------------------------------------------------------------------------
   10. PRINT OPTIMIZATION FOR 80MM / 58MM THERMAL PRINTERS
   ------------------------------------------------------------------------------ */
@media print {
  body * {
    visibility: hidden;
  }
  .thermal-receipt-paper, .thermal-receipt-paper * {
    visibility: visible;
  }
  .thermal-receipt-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    box-shadow: none;
    padding: 0;
  }
}
