:root {
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-sidebar: #0b1120;
  --primary: #0284c7;
  --primary-glow: #38bdf8;
  --accent: #f97316;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border: #1f2937;
  --border-light: #374151;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

.pos-app {
  display: none;
  flex-direction: column;
  height: 100vh;
}

.pos-app.active {
  display: flex;
}

/* ------------------------------------------------------------- */
/* BARRA SUPERIOR */
/* ------------------------------------------------------------- */
.top-nav {
  height: 64px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
  position: relative;
  z-index: 10000 !important;
  max-width: 100vw;
  box-sizing: border-box;
}

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

.brand-logo {
  font-size: 1.3rem;
}

.brand-info {
  max-width: 130px;
  overflow: hidden;
  white-space: nowrap;
}

.brand-info h2 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-tag {
  font-size: 0.62rem;
  background: rgba(2, 132, 199, 0.2);
  color: var(--primary-glow);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.quick-search-box {
  position: relative;
  flex: 0 1 220px;
  max-width: 260px;
  min-width: 140px;
  display: flex;
  align-items: center;
  z-index: 10001;
}

.quick-search-box input {
  width: 100%;
  height: 38px;
  background: #111827;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0 36px 0 34px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.quick-search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.search-icon {
  position: absolute;
  left: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-shortcut {
  position: absolute;
  right: 10px;
  background: #1f2937;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  max-width: 420px;
  background: #0f172a;
  border: 1.5px solid #38bdf8;
  border-radius: 12px;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.25);
  display: none;
  z-index: 999999 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-dropdown.active {
  display: block;
}

.search-item {
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: #f8fafc;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--primary);
}

.nav-pills {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.nav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-pill:hover, .nav-pill.active {
  background: #1e293b;
  color: #fff;
  border-color: var(--border-light);
}

.nav-pill.active {
  background: var(--primary);
  border-color: var(--primary);
}

.pill-counter {
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.user-status-pill {
  display: flex;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111827;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
  max-height: 38px;
}

.user-status-pill .user-details {
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-status-pill .user-subtitle {
  display: none;
}

.user-status-pill .user-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-user-pin, .btn-user-logout {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-user-pin:hover, .btn-user-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* HAPPY HOUR TOPBAR PILL */
.happy-hour-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.45);
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.happy-hour-pill small {
  display: none;
}

.happy-hour-pill .hh-title {
  font-size: 0.76rem;
  font-weight: 800;
}

.happy-hour-pill:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.7);
}

.happy-hour-pill:active {
  transform: scale(0.97);
}

.happy-hour-pill.inactive {
  background: #1f2937;
  border-color: #374151;
  box-shadow: none;
  opacity: 0.75;
}

.happy-hour-pill.inactive:hover {
  opacity: 1;
  border-color: #4b5563;
}

.happy-hour-pill .hh-icon {
  font-size: 1.25rem;
}

.happy-hour-pill .hh-info {
  display: flex;
  flex-direction: column;
}

.happy-hour-pill .hh-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
}

.happy-hour-pill .hh-info small {
  display: none;
}

.happy-hour-pill.inactive .hh-info small {
  color: #9ca3af;
}

/* BADGES PROMO 2x1 EN TARJETAS */
.prod-card-one-tap {
  position: relative;
}

.prod-badge-promo {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.6);
  letter-spacing: 0.3px;
  animation: pulsePromo 2s infinite ease-in-out;
  z-index: 2;
}

@keyframes pulsePromo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hh-promo-badge {
  display: inline-block;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #f472b6;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.status-indicator.online {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.user-subtitle {
  display: none;
}

/* ------------------------------------------------------------- */
/* ÁREA PRINCIPAL */
/* ------------------------------------------------------------- */
.main-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  position: relative;
}

.pos-view {
  display: none;
  height: 100%;
}

.pos-view.active {
  display: block;
}

.view-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-badge {
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.legend-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-badge.libre {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.legend-badge.libre .dot { background: #10b981; box-shadow: 0 0 6px #10b981; }

.legend-badge.ocupada {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.legend-badge.ocupada .dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.legend-badge.esperando {
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: #fb923c;
}
.legend-badge.esperando .dot { background: #ea580c; box-shadow: 0 0 6px #ea580c; }

.legend-badge.esperando_parcial {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
.legend-badge.esperando_parcial .dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.legend-badge.cuenta {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.legend-badge.cuenta .dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.zone-selector {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.zone-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.zone-tab.active {
  background: var(--primary);
  color: #fff;
}

.btn-quick-action {
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-quick-action:hover {
  background: var(--primary);
}

/* ------------------------------------------------------------- */
/* CANVAS DE SALÓN & MESAS */
/* ------------------------------------------------------------- */
.salon-container {
  height: calc(100vh - 170px);
  background: #060911;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: auto;
  padding: 24px;
}

.mesas-canvas-view {
  position: relative;
  min-width: 900px;
  min-height: 600px;
  height: 100%;
}

.mesa-render-card {
  position: absolute;
  width: 140px;
  height: 130px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s, border-color 0.15s;
}

.mesa-render-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.mesa-render-card.round {
  border-radius: 50%;
  width: 130px;
  height: 130px;
  text-align: center;
}

.mesa-render-card.libre {
  border-color: #10b98166;
  background: linear-gradient(180deg, #111827 0%, #064e3b33 100%);
}

.mesa-render-card.ocupada {
  border-color: #ef4444 !important;
  background: linear-gradient(180deg, #181d28 0%, #7f1d1d44 100%) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.55), inset 0 0 8px rgba(239, 68, 68, 0.2) !important;
  animation: mesaOcupadaHaloGlow 2.5s infinite ease-in-out !important;
}

.mesa-render-card.abierta {
  border-color: #ef4444 !important;
  background: linear-gradient(180deg, #181d28 0%, #7f1d1d44 100%) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.55), inset 0 0 8px rgba(239, 68, 68, 0.2) !important;
  animation: mesaOcupadaHaloGlow 2.5s infinite ease-in-out !important;
}

.mesa-render-card.esperando {
  border-color: #ef4444 !important;
  background: linear-gradient(180deg, #111827 0%, #7c2d1244 100%);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.15) !important;
}

.mesa-render-card.esperando_parcial {
  border-color: #ef4444 !important;
  background: linear-gradient(180deg, #111827 0%, #78350f44 100%);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.15) !important;
}

.mesa-render-card.activa {
  border-color: #ef4444 !important;
  background: linear-gradient(180deg, #181d28 0%, #7f1d1d44 100%) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.55), inset 0 0 8px rgba(239, 68, 68, 0.2) !important;
  animation: mesaOcupadaHaloGlow 2.5s infinite ease-in-out !important;
}

.m-cliente-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 9999px;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 1px auto 2px auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.btn-edit-cliente-header {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-edit-cliente-header:hover {
  background: rgba(239, 68, 68, 0.32);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
}

.mesa-render-card.cuenta,
.mesa-render-card.cuenta-qr {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #181d28 0%, #78350f55 100%) !important;
  animation: mesaCuentaHaloGlow 1.8s infinite ease-in-out !important;
  z-index: 10;
}

@keyframes mesaCuentaHaloGlow {
  0%, 100% {
    border-color: #f59e0b;
    box-shadow: 0 0 12px 3px rgba(245, 158, 11, 0.5), inset 0 0 10px rgba(245, 158, 11, 0.25);
    opacity: 1;
  }
  50% {
    border-color: #fde047;
    box-shadow: 0 0 32px 12px rgba(245, 158, 11, 0.85), 0 0 55px 20px rgba(245, 158, 11, 0.4), inset 0 0 18px rgba(251, 191, 36, 0.5);
    opacity: 0.68;
  }
}

@keyframes mesaOcupadaHaloGlow {
  0%, 100% {
    border-color: #ef4444;
    box-shadow: 0 0 12px 2px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.2);
  }
  50% {
    border-color: #f87171;
    box-shadow: 0 0 24px 6px rgba(239, 68, 68, 0.75), 0 0 38px 10px rgba(239, 68, 68, 0.35), inset 0 0 10px rgba(239, 68, 68, 0.35);
  }
}

/* Icono central de alerta con halo iluminado que parpadea suavemente */
.mesa-qr-alert-halo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 3px auto;
  pointer-events: none;
}

.mesa-qr-alert-icon {
  font-size: 1.55rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.25);
  border: 2px solid #f59e0b;
  animation: iconGlowAndBlinkSoft 1.8s infinite ease-in-out;
}

/* ============================================================================
   CONMUTADOR DE VISTA DE SALÓN (PLANO DE PLANTA VS. GRILLA ORDENADA)
   ============================================================================ */
.view-mode-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-view-mode {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-mode:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-view-mode.active {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   VISTA DE GRILLA ORDENADA DE MESAS (POR ZONAS)
   ============================================================================ */
.salon-grid-view {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 210px);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  overflow-x: auto;
  overflow-y: auto;
  box-sizing: border-box;
}

.zone-grid-column {
  flex: 0 0 320px;
  min-width: 290px;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.zone-grid-column.wide-column {
  flex: 0 0 460px;
  min-width: 380px;
}

.zone-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.zone-grid-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-grid-count {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.zone-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.zone-grid-cards.barra-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tarjeta individual en Grilla */
.mesa-grid-card {
  background: linear-gradient(180deg, #111827 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 105px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.mesa-grid-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Estados en Grilla */
.mesa-grid-card.libre {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, #111827 0%, #064e3b22 100%);
}

.mesa-grid-card.ocupada,
.mesa-grid-card.abierta,
.mesa-grid-card.activa {
  border-color: #ef4444 !important;
  background: linear-gradient(180deg, #181d28 0%, #7f1d1d44 100%) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.15) !important;
  animation: mesaOcupadaHaloGlow 2.5s infinite ease-in-out !important;
}

.mesa-grid-card.esperando {
  border-color: #f97316 !important;
  background: linear-gradient(180deg, #111827 0%, #7c2d1244 100%) !important;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.45), inset 0 0 6px rgba(249, 115, 22, 0.15) !important;
}

.mesa-grid-card.esperando_parcial {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #111827 0%, #78350f44 100%) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45), inset 0 0 6px rgba(245, 158, 11, 0.15) !important;
}

.mesa-grid-card.cuenta,
.mesa-grid-card.cuenta-qr {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #181d28 0%, #78350f55 100%) !important;
  animation: mesaCuentaHaloGlow 1.8s infinite ease-in-out !important;
}

.m-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.m-grid-num {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-grid-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.m-grid-badge.badge-libre {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.m-grid-badge.badge-ocupada {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.m-grid-badge.badge-esperando {
  background: rgba(249, 115, 22, 0.22);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.55);
}

.m-grid-badge.badge-esperando_parcial {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.m-grid-badge.badge-cuenta {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.m-grid-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 4px 0;
}

.m-grid-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 5px;
}

.m-grid-cap {
  color: #94a3b8;
  font-weight: 600;
}

.m-grid-zona {
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tarjeta Barra en formato fila horizontal / pill */
.mesa-grid-card.barra-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: auto;
  padding: 8px 12px;
  gap: 10px;
}

.mesa-grid-card.barra-row .m-grid-header {
  margin: 0;
  gap: 8px;
}

.mesa-grid-card.barra-row .m-grid-num {
  font-size: 0.92rem;
}

.mesa-grid-card.barra-row .m-grid-total {
  margin: 0;
  font-size: 0.85rem;
}

@keyframes iconGlowAndBlinkSoft {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    border-color: #f59e0b;
    box-shadow: 0 0 10px 3px rgba(245, 158, 11, 0.5), inset 0 0 8px rgba(245, 158, 11, 0.3);
  }
  50% {
    opacity: 0.42;
    transform: scale(1.15);
    border-color: #fde047;
    box-shadow: 0 0 28px 10px rgba(245, 158, 11, 0.95), 0 0 48px 16px rgba(245, 158, 11, 0.5), inset 0 0 16px rgba(251, 191, 36, 0.6);
  }
}

.mesa-qr-alert-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
  letter-spacing: 0.6px;
  margin-top: 3px;
  animation: textSoftPulse 1.8s infinite ease-in-out;
}

@keyframes textSoftPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Silla en estado de cuenta */
.mesa-render-card.silla.cuenta::before,
.mesa-render-card.silla.cuenta-qr::before {
  animation: iconGlowAndBlinkSoft 1.8s infinite ease-in-out !important;
  filter: drop-shadow(0 0 14px #f59e0b) !important;
}

.m-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-num {
  font-weight: 800;
  font-size: 1.1rem;
}

.m-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.mesa-render-card.libre .m-badge { background: #064e3b; color: #34d399; }
.mesa-render-card.ocupada .m-badge { background: #7f1d1d; color: #f87171; }
.mesa-render-card.abierta .m-badge { background: #7f1d1d; color: #f87171; }
.mesa-render-card.esperando .m-badge { background: #7c2d12; color: #fb923c; }
.mesa-render-card.esperando_parcial .m-badge { background: #78350f; color: #fde047; }
.mesa-render-card.activa .m-badge { background: #7f1d1d; color: #f87171; }
.mesa-render-card.cuenta .m-badge { background: #78350f; color: #fbbf24; }

.m-total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-glow);
}

.m-footer {
  font-size: var(--mesa-sub-size, 0.72rem);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
  gap: 4px;
}

.m-footer .m-cap-tag {
  font-size: var(--mesa-sub-size, 0.70rem);
  color: #94a3b8;
  white-space: nowrap;
}

.m-footer .m-zona-tag {
  margin-left: auto;
  text-align: right;
  font-size: var(--mesa-sub-size, 0.70rem);
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
  line-height: 1.1;
}

/* Mesas Redondas: centrado abajo sin tapar monto */
.mesa-render-card.round {
  border-radius: 50%;
  width: 130px;
  height: 130px;
  text-align: center;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 12px 8px;
}

.mesa-render-card.round .m-header {
  justify-content: center;
}

.mesa-render-card.round .m-total {
  margin: 2px auto;
  text-align: center;
}

.mesa-render-card.round .m-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin-top: auto;
}

.mesa-render-card.round .m-footer .m-zona-tag {
  margin: 0 auto;
  text-align: center;
  max-width: 90%;
}

/* Sillas de Barra: nunca mostrar cantidad de personas */
.mesa-render-card.silla .m-cap-tag,
.drag-mesa.silla .mesa-cap-label {
  display: none !important;
}

/* Botón Flotante de Cambio de Piso (Esquina) */
.btn-floor-toggle {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.btn-floor-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
}

.btn-floor-toggle:active {
  transform: translateY(0) scale(0.98);
}

.btn-floor-toggle.piso-2-activo {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-floor-toggle.piso-2-activo:hover {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.55);
}

.btn-floor-toggle.alerta-piso-cuenta,
#btnTogglePisoSalon.alerta-piso-cuenta {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #181d28 0%, #78350f88 100%) !important;
  color: #fef08a !important;
  animation: mesaCuentaHaloGlow 1.8s infinite ease-in-out !important;
  font-weight: 800 !important;
}

.editor-floor-selector .btn-tool.active {
  background: #3b82f6 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Milestone 2: Chip de Espera y Tooltip de Tiempos y Platillos */
.m-wait-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 3px auto;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  width: fit-content;
}

.m-wait-chip:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
  transform: scale(1.05);
}

.mesa-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  max-width: 280px;
  background: #0f172a;
  border: 1px solid #f59e0b;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.95), 0 0 22px rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  z-index: 999999 !important;
  pointer-events: auto;
  text-align: left;
}

.mesa-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: #f59e0b transparent transparent transparent;
}

.mesa-tooltip.tooltip-bottom {
  bottom: auto;
  top: calc(100% + 12px);
}

.mesa-tooltip.tooltip-bottom::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #f59e0b transparent;
}

.mesa-tooltip-header {
  font-size: 0.76rem;
  font-weight: 800;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 5px;
}

.mesa-tooltip-mesero {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 7px;
  font-size: 0.74rem;
  line-height: 1.3;
}

.m-tip-mesero-lbl {
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.m-tip-mesero-nom {
  color: #38bdf8;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mesa-tooltip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.mesa-tooltip-list::-webkit-scrollbar {
  width: 4px;
}

.mesa-tooltip-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}

.mesa-tooltip-list::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}

.mesa-tooltip-list::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.7);
}

.mesa-tooltip-list li {
  font-size: 0.72rem;
  color: #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  white-space: normal;
  line-height: 1.3;
}

.mesa-tooltip-list li::before {
  content: '•';
  color: #f59e0b;
  font-size: 1rem;
  line-height: 1;
}

/* Hover trigger for desktop */
.mesa-render-card:hover {
  z-index: 99999 !important;
}

.mesa-render-card:hover .mesa-tooltip {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Touch tap toggle */
.mesa-tooltip.show-touch {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* ------------------------------------------------------------- */
/* EDITOR DE SALÓN (DRAG & DROP) */
/* ------------------------------------------------------------- */
.editor-board {
  height: calc(100vh - 170px);
  background: #060911;
  border: 1px dashed #374151;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#1f2937 1px, transparent 1px);
  background-size: 24px 24px;
}

.editor-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.drag-mesa {
  position: absolute;
  width: 130px;
  height: 120px;
  background: #1f2937;
  border: 2px dashed #0284c7;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: move;
  box-shadow: 0 10px 15px rgba(0,0,0,0.5);
  font-weight: 800;
}

.drag-mesa.round {
  border-radius: 50%;
  width: 120px;
  height: 120px;
}

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

.btn-tool {
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.chip-medida {
  background: #1f2937;
  border: 1px solid #374151;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.chip-medida:hover {
  background: #374151;
  color: #fff;
  border-color: #60a5fa;
}
.chip-medida.active {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.btn-save-plan {
  background: var(--success);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------- */
/* KDS - PANTALLA DE COCINA Y BARRA */
/* ------------------------------------------------------------- */
.kds-tickets-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 12px;
  align-items: start;
  height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 6px 4px;
}

.kds-card {
  background: var(--bg-card);
  border-radius: 10px;
  border-left: 5px solid var(--accent);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  height: fit-content;
  min-height: auto;
  transition: all 0.2s ease;
}

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

.kds-mesa-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-glow);
}

.kds-stopwatch {
  font-size: 0.84rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', monospace;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: 1px solid #fdba74;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.45);
  letter-spacing: 0.5px;
}

.kds-stopwatch.kds-timer-urgente {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  animation: pulseKdsUrgente 1.5s infinite;
}

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

.kds-item-line {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.kds-modif-box {
  background: #090d16;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fbbf24;
  border-left: 3px solid #fbbf24;
  margin-top: 2px;
  margin-bottom: 4px;
}

.btn-kds-ready {
  width: 100%;
  padding: 8px 10px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}

.btn-kds-ready:hover {
  filter: brightness(1.1);
}

.btn-kds-check-item,
.btn-kds-item-ready {
  background: rgba(15, 23, 42, 0.65);
  border: 2px solid #475569;
  color: #ffffff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  font-weight: 900;
  margin-left: 8px;
  flex-shrink: 0;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-kds-check-item:hover,
.btn-kds-item-ready:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  transform: scale(1.06);
}

.btn-kds-check-item.selected,
.btn-kds-item-ready.selected {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transform: scale(1.04);
}

.btn-kds-check-item:active,
.btn-kds-item-ready:active {
  transform: scale(0.92);
}

.kds-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kds-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.kds-item-row.selected {
  background: rgba(16, 185, 129, 0.12) !important;
  border-bottom-color: rgba(16, 185, 129, 0.25) !important;
}

/* ------------------------------------------------------------- */
/* MODAL COMANDERO TÁCTIL */
/* ------------------------------------------------------------- */
.modal,
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

.modal.active,
.modal-backdrop.active {
  display: flex;
  display: flex !important;
}

.comandero-window {
  width: 96vw;
  height: 94vh;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.comandero-catalog {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #080d1a;
  border-right: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.catalog-topbar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mesa-tag-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mesa-title-tag {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.mesa-sub-tag {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-chip.active, .cat-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.products-one-tap-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.prod-card-one-tap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 110px;
  cursor: pointer;
  transition: transform 0.1s, background 0.1s;
}

.prod-card-one-tap:active {
  transform: scale(0.96);
  background: #1f2937;
}

.prod-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.prod-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-glow);
  align-self: flex-end;
}

.products-one-tap-grid.categories-view {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 16px;
  align-content: start;
}

/* CONMUTADOR DE VISTA DE MENÚ / CATÁLOGO */
.menu-view-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.btn-menu-view {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-menu-view:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.btn-menu-view.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

/* VISTA TARJETAS GRANDES CON FOTOS (INSPIRADA EN DESIGN SOFT) */
.products-one-tap-grid.grid-view-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 14px;
  padding: 14px;
  align-content: start;
}

@media (min-width: 1200px) {
  .products-one-tap-grid.grid-view-large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px;
  }
}

.prod-card-large {
  background: linear-gradient(180deg, #111827 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  user-select: none;
  min-height: 180px;
}

.prod-card-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-color: rgba(56, 189, 248, 0.5);
}

.prod-card-large:active {
  transform: scale(0.97);
}

.prod-card-large-media {
  width: 100%;
  height: 150px;
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-card-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.prod-card-large:hover .prod-card-large-img {
  transform: scale(1.08);
}

.prod-card-large-no-img {
  font-size: 3.5rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.prod-card-large-price {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.75);
  color: #34d399;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.prod-card-large-promo {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.4);
}

.prod-card-large-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

.prod-card-large-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin: 0;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-card-large-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 3px 6px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.prod-card-large-edit:hover {
  background: #0284c7;
  color: #fff;
}

/* Tarjeta + Crear Producto en vista grande */
.prod-card-large-add {
  background: rgba(16, 185, 129, 0.06);
  border: 2px dashed rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  min-height: 180px;
  transition: all 0.2s ease;
  user-select: none;
}

.prod-card-large-add:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  transform: translateY(-3px);
}

.com-cat-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  min-height: 85px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.com-cat-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
  background: linear-gradient(145deg, #243248, #111c30);
}

.com-cat-card:active {
  transform: scale(0.98);
}

.com-cat-icon-badge {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.com-cat-info {
  flex: 1;
  min-width: 0;
}

.com-cat-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.com-cat-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.com-cat-arrow {
  font-size: 1.2rem;
  color: #38bdf8;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.com-cat-card:hover .com-cat-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.com-cat-card-add {
  border: 2px dashed rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
}

.com-cat-card-add:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.btn-volver-categorias {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #f8fafc;
  border: 1px solid #475569;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-volver-categorias:hover {
  background: linear-gradient(135deg, #475569, #334155);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateX(-2px);
}

.btn-volver-categorias:active {
  transform: scale(0.96);
}

.variante-option-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #f8fafc;
}

.variante-option-card:hover {
  border-color: #10b981;
  background: linear-gradient(145deg, #243248, #0f172a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.variante-option-card:active {
  transform: scale(0.97);
}

/* LADO DERECHO: TICKET */
.comandero-ticket {
  flex: 0 0 380px;
  width: 380px;
  min-width: 320px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  overflow: hidden;
}

.ticket-topbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.ticket-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
}

.ticket-item-row {
  background: #0b1120;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

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

.t-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.t-price {
  font-weight: 800;
  color: var(--primary-glow);
}

.ticket-item-notes {
  font-size: 0.75rem;
  color: #fbbf24;
  margin-top: 4px;
}

.ticket-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.qty-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-qty {
  width: 28px;
  height: 28px;
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.btn-item-tool {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 6px;
}

.btn-item-tool:hover {
  color: #fff;
}

.ticket-bottom {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #090d16;
}

.ticket-calc-box .calc-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ticket-calc-box .calc-line.total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-glow);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}

.ticket-action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.btn-btn-cmd {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-btn-cmd.cocina { background: var(--accent); color: #fff; }
.btn-btn-cmd.guardar { background: var(--primary); color: #fff; }
.btn-btn-cmd.guardado { background: #1e293b !important; color: #10b981 !important; border: 1px solid #059669 !important; cursor: default !important; opacity: 0.9; }
.btn-btn-cmd:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-btn-cmd.split { background: #8b5cf6; color: #fff; }
.btn-btn-cmd.prefactura { background: #0284c7; color: #fff; }
.btn-btn-cmd.cobrar { background: var(--success); color: #fff; }


/* ------------------------------------------------------------- */
/* MODAL DIALOGS (Modificadores, Split, Cobro, Anulación, Cajas) */
/* ------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100020;
  padding: 16px;
  box-sizing: border-box;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  position: relative;
  z-index: 100021;
}


.modif-dialog { width: 480px; max-width: 92vw; }
.anula-dialog { width: 420px; max-width: 92vw; }
.cobro-dialog { width: 480px; max-width: 92vw; }
.split-dialog { width: 850px; max-width: 94vw; max-height: 90vh; }

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

.dialog-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.dialog-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.quick-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.chip-modif {
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.chip-modif.selected {
  background: var(--primary);
  border-color: var(--primary-glow);
}

textarea, select, input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  background: #090d16;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

textarea:focus, select:focus, input:focus {
  outline: none;
  border-color: var(--primary);
}

/* TECLADO NUMÉRICO TÁCTIL */
.pin-display-row input {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 12px;
  height: 50px;
  margin-bottom: 14px;
}

.numeric-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.num-btn {
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 14px 0;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}

.num-btn:active {
  background: var(--primary);
}

/* SPLIT BILLS (DIVIDIR CUENTA INTERACTIVO) */
.split-dialog {
  width: 960px;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.split-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.split-persons-counter-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.split-persons-counter-widget .widget-icon {
  font-size: 1.05rem;
}

.btn-split-counter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #475569;
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-split-counter:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  transform: scale(1.1);
}

.split-counter-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  min-width: 80px;
  text-align: center;
}

.split-mode-selector {
  display: flex;
  padding: 10px 20px;
  background: #090d16;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.split-mode-btn {
  flex: 1;
  padding: 9px;
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.split-mode-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.split-body-items {
  display: none;
}

.split-body-items.active {
  display: flex;
  flex-direction: column;
}

.split-body-equal {
  display: none;
}

.split-body-equal.active {
  display: block;
}

.btn-toggle-piso.alerta-piso-cuenta {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #181d28 0%, #78350f88 100%) !important;
  color: #fef08a !important;
  animation: mesaCuentaHaloGlow 1.8s infinite ease-in-out !important;
  font-weight: 800 !important;
}

.split-drag-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 18px;
  min-height: 250px;
}

.split-side-col {
  background: #090d16;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.split-side-col.left-col {
  border-color: rgba(56, 189, 248, 0.25);
}

.split-side-col.right-col {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, #090d16 0%, rgba(6, 78, 59, 0.08) 100%);
}

.split-col-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
}

.split-col-header.highlight {
  background: rgba(16, 185, 129, 0.12);
  border-bottom-color: rgba(16, 185, 129, 0.25);
}

.split-col-header .col-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.split-col-header .col-subtitle {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

.badge-pending {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
}

.badge-active-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
}

.split-col-items-list,
.split-assigned-items-list {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  max-height: 200px;
}

.split-draggable-item {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.split-draggable-item:hover {
  background: #334155;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.split-draggable-item:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.split-draggable-item.dragging {
  opacity: 0.45;
  border: 2px dashed #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.split-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.split-qty-badge {
  background: #0284c7;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.split-item-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
}

.split-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.split-item-price {
  font-size: 0.86rem;
  font-weight: 800;
  color: #38bdf8;
}

.split-btn-quick-move {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.split-btn-quick-move:hover {
  background: #0284c7;
  color: #fff;
}

.split-dropzone {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 2px dashed rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  margin: 6px 10px;
  position: relative;
  transition: all 0.2s ease;
  background: rgba(15, 23, 42, 0.3);
}

.split-dropzone.drag-over {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 16px rgba(16, 185, 129, 0.25);
}

.dropzone-empty-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  text-align: center;
  color: #64748b;
  margin: auto;
}

.dropzone-empty-hint .hint-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
  opacity: 0.7;
}

.dropzone-empty-hint p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.dropzone-empty-hint small {
  color: #475569;
  font-size: 0.73rem;
}

.split-assigned-item {
  background: #13271f;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: itemSlideIn 0.2s ease;
}

@keyframes itemSlideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.split-assigned-item .split-btn-remove {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.15s ease;
}

.split-assigned-item .split-btn-remove:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.1);
}

.split-active-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.split-calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.split-calc-breakdown .calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

.split-calc-breakdown .calc-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 5px;
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #34d399;
}

.btn-save-person {
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-save-person:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399, #10b981);
}

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

.split-saved-queue-section {
  padding: 10px 18px 14px 18px;
  background: #080c14;
  border-top: 1px solid var(--border);
}

.split-saved-queue-section .queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.split-saved-queue-section .queue-header h4 {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 700;
}

.split-saved-queue-section .queue-header small {
  color: #64748b;
  font-size: 0.73rem;
}

.split-saved-queue-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.split-queue-card {
  min-width: 210px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.split-queue-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.split-queue-card.active-editing {
  border-color: #10b981;
  background: #0f291e;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.split-queue-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.83rem;
  color: #f1f5f9;
}

.split-queue-card .card-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: #34d399;
}

.split-queue-card .card-items-summary {
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-queue-card .card-actions {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.split-queue-card .btn-edit-split {
  flex: 1;
  background: #334155;
  border: 1px solid #475569;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.split-queue-card .btn-edit-split:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
}

.split-queue-card .btn-pay-split {
  flex: 1;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.split-queue-card .btn-pay-split:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.equal-split-controls {
  text-align: center;
  padding: 30px 20px;
}

.counter-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.btn-count {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

.count-val {
  font-size: 2rem;
  font-weight: 800;
}

.equal-result-box {
  background: #090d16;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  min-width: 320px;
  border: 1px solid var(--border-light);
}

.equal-result-box h2 {
  font-size: 2.2rem;
  color: var(--primary-glow);
  margin: 8px 0;
}

/* BOTONES GLOBALES */
.btn-pri {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.btn-pri.danger { background: var(--danger); }
.btn-pri.success { background: var(--success); }

.btn-sec {
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* FACTURACIÓN EXPRESS */
.facturacion-layout {
  max-width: 700px;
  margin: 20px auto;
}

.facturacion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

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

.hacienda-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 8px 0 20px 0;
}

.express-search-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.search-input-group {
  display: flex;
  gap: 6px;
}

.search-input-group select {
  width: 150px;
}

.btn-lookup {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.btn-qr-scan {
  height: 42px;
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: white;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.cliente-encontrado-box {
  background: #090d16;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px solid #1f2937;
}

.btn-emitir-fe {
  width: 100%;
  padding: 14px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

/* CAJA TURNOS */
.caja-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.caja-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.caja-stat-rows .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1f2937;
  font-size: 0.9rem;
}

.caja-stat-rows .stat-row.total {
  font-size: 1.15rem;
  color: var(--primary-glow);
  border-top: 2px solid var(--border-light);
  padding-top: 12px;
  margin-top: 6px;
}

.caja-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.btn-caja-op {
  padding: 12px;
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-caja-op.abrir-caja {
  background: linear-gradient(135deg, #065f46, #047857);
  border-color: #10b981;
  color: #ecfdf5;
}

.btn-caja-op.abrir-caja:hover {
  background: linear-gradient(135deg, #047857, #059669);
  border-color: #34d399;
  transform: translateY(-1px);
}

.btn-caja-op.corte-z {
  background: #7f1d1d;
  border-color: #ef4444;
}

.btn-caja-op.corte-x {
  background: #78350f;
  border-color: #f59e0b;
}

/* COBRO RÁPIDO */
.cobro-total-banner {
  background: #090d16;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.cobro-total-banner h1 {
  font-size: 2.2rem;
  color: var(--primary-glow);
}

.pay-methods-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 680px) {
  .pay-methods-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pay-method-tab {
  background: #1e293b;
  border: 1.5px solid #334155;
  color: #94a3b8;
  padding: 12px 6px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pay-method-tab:hover {
  background: #334155;
  border-color: #64748b;
  color: #f8fafc;
  transform: translateY(-1px);
}

.pay-method-tab.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 2px solid #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.75), 0 6px 14px rgba(2, 132, 199, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  position: relative;
  z-index: 2;
}

.pay-method-tab.active .kbd-sub-shortcut {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

/* Iluminación de pestañas de pago según el tema activo */
body.theme-gold .pay-method-tab.active,
body.beta-tester-gold .pay-method-tab.active {
  background: linear-gradient(180deg, #FFF1B0 0%, #F5D77F 40%, #D4AF37 80%, #AA820A 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #684F05 !important;
  color: #261B02 !important;
  box-shadow: 0 0 25px rgba(253, 224, 71, 0.9), 0 8px 18px rgba(0, 0, 0, 0.6), inset 0 1px 2px #FFFFFF !important;
}
body.theme-gold .pay-method-tab.active .kbd-sub-shortcut,
body.beta-tester-gold .pay-method-tab.active .kbd-sub-shortcut {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: #684F05 !important;
  color: #261B02 !important;
}

body.theme-crema-marfil .pay-method-tab.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF6EE 35%, #F5EBE1 70%, #EADDCF 100%) !important;
  border: 2px solid #D4BFA9 !important;
  border-bottom: 4px solid #BFA993 !important;
  color: #382A1E !important;
  box-shadow: 0 0 25px rgba(212, 191, 169, 0.95), 0 8px 18px rgba(120, 90, 60, 0.35), inset 0 1px 2px #FFFFFF !important;
}
body.theme-crema-marfil .pay-method-tab.active .kbd-sub-shortcut {
  background: rgba(56, 42, 30, 0.15) !important;
  border-color: #BFA993 !important;
  color: #382A1E !important;
}

body.theme-mediterraneo-santorini .pay-method-tab.active {
  background: linear-gradient(180deg, #E0F2FE 0%, #38BDF8 40%, #0284C7 80%, #1E40AF 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #172554 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.9), 0 8px 18px rgba(2, 132, 199, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-matcha-zen .pay-method-tab.active {
  background: linear-gradient(180deg, #F7FEE7 0%, #A3E635 40%, #84CC16 80%, #4D7C0F 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #365314 !important;
  color: #14532D !important;
  box-shadow: 0 0 25px rgba(163, 230, 53, 0.9), 0 8px 18px rgba(77, 124, 15, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-cobre-whiskey .pay-method-tab.active {
  background: linear-gradient(180deg, #FFF7ED 0%, #FB923C 40%, #EA580C 80%, #9A3412 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #7C2D12 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(251, 146, 60, 0.9), 0 8px 18px rgba(154, 52, 18, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-pastel-macaron .pay-method-tab.active {
  background: linear-gradient(180deg, #FDF4FF 0%, #F5D0FE 30%, #E879F9 70%, #9333EA 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #6B21A8 !important;
  color: #3B0764 !important;
  box-shadow: 0 0 25px rgba(232, 121, 249, 0.9), 0 8px 18px rgba(147, 51, 234, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-magma-volcanico .pay-method-tab.active {
  background: linear-gradient(180deg, #FFF7ED 0%, #FF7043 40%, #FF5722 80%, #C2410C 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #7F1D1D !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 28px rgba(255, 87, 34, 0.95), 0 8px 18px rgba(194, 65, 12, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-plata-titanio .pay-method-tab.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 40%, #E2E8F0 75%, #94A3B8 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #475569 !important;
  color: #0F172A !important;
  box-shadow: 0 0 25px rgba(226, 232, 240, 0.95), 0 8px 18px rgba(71, 85, 105, 0.5), inset 0 1px 2px #FFFFFF !important;
}

body.theme-carbon-grafito .pay-method-tab.active {
  background: linear-gradient(180deg, #F8FAFC 0%, #94A3B8 35%, #64748B 70%, #334155 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #1E293B !important;
  color: #0F172A !important;
  box-shadow: 0 0 25px rgba(148, 163, 184, 0.9), 0 8px 18px rgba(30, 41, 59, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-borgona-imperial .pay-method-tab.active {
  background: linear-gradient(180deg, #FFF1F2 0%, #FB7185 40%, #E11D48 75%, #881337 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #4C0519 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.9), 0 8px 18px rgba(136, 19, 55, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-cuarzo-minimal .pay-method-tab.active {
  background: linear-gradient(180deg, #FFF5F7 0%, #FBCFE8 40%, #F472B6 75%, #DB2777 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #831843 !important;
  color: #500724 !important;
  box-shadow: 0 0 25px rgba(244, 114, 182, 0.9), 0 8px 18px rgba(131, 24, 67, 0.5), inset 0 1px 2px #FFFFFF !important;
}

body.theme-bistro-salvia .pay-method-tab.active {
  background: linear-gradient(180deg, #FFF3EB 0%, #F4A261 40%, #E07A5F 75%, #C85A32 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #8B3A1C !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(244, 162, 97, 0.9), 0 8px 18px rgba(139, 58, 28, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-cafe-caramelo .pay-method-tab.active {
  background: linear-gradient(180deg, #FFFBEB 0%, #FDE68A 35%, #FBBF24 70%, #B45309 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #78350F !important;
  color: #451A03 !important;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.9), 0 8px 18px rgba(120, 53, 15, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-neon .pay-method-tab.active,
body.theme-neon-3d .pay-method-tab.active {
  background: linear-gradient(180deg, #F0F9FF 0%, #7DD3FC 35%, #38BDF8 70%, #0369A1 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #0C4A6E !important;
  color: #082F49 !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.95), 0 8px 18px rgba(2, 132, 199, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-emerald .pay-method-tab.active,
body.theme-emerald-3d .pay-method-tab.active {
  background: linear-gradient(180deg, #ECFDF5 0%, #A7F3D0 35%, #34D399 70%, #047857 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #064E3B !important;
  color: #022C22 !important;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.95), 0 8px 18px rgba(6, 78, 59, 0.6), inset 0 1px 2px #FFFFFF !important;
}

body.theme-amethyst .pay-method-tab.active,
body.theme-amethyst-3d .pay-method-tab.active {
  background: linear-gradient(180deg, #FAF5FF 0%, #E9D5FF 35%, #C084FC 70%, #6D28D9 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-bottom: 4px solid #4C1D95 !important;
  color: #2E1065 !important;
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.95), 0 8px 18px rgba(76, 29, 149, 0.6), inset 0 1px 2px #FFFFFF !important;
}

.pay-panel {
  display: none;
}

.pay-panel.active {
  display: block;
}

.pay-info-banner {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-info-banner .pay-info-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
}

.mixto-matrix-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.mixto-row-item {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.mixto-row-item .mixto-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  min-width: 100px;
}

.mixto-row-item .mixto-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.mixto-row-item input {
  padding: 6px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  background: #1f2937;
  border: 1px solid #4b5563;
  color: #fff;
  width: 100%;
}

.mixto-btn-restante {
  background: #0284c7;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.mixto-btn-restante:hover {
  background: #0369a1;
}

.mixto-balance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  background: #090d16;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.mixto-balance-summary .bal-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mixto-balance-summary .bal-lbl {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 600;
}

.mixto-balance-summary .bal-val {
  font-size: 1.05rem;
  font-weight: 800;
}

.cash-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 12px;
  font-weight: 800;
  color: var(--primary-glow);
  font-size: 1.2rem;
}

.cash-input-wrapper input {
  padding-left: 36px;
  font-size: 1.2rem;
  font-weight: 800;
}

.quick-cash-chips {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.cash-chip {
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.cash-chip.exact {
  background: var(--primary);
}

.vuelto-box {
  background: #090d16;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-light);
  margin-top: 10px;
}

.vuelto-box strong {
  font-size: 1.3rem;
  color: var(--success);
}


/* HAPPY HOUR PILL */
.happy-hour-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c2d12, #9a3412);
  border: 1px solid #ea580c;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.happy-hour-pill:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.4);
}

.happy-hour-pill.inactive {
  background: #1e293b;
  border-color: #334155;
  opacity: 0.7;
}

.hh-icon { font-size: 1.1rem; }
.hh-title { font-size: 0.76rem; font-weight: 800; color: #fdba74; }
.hh-info small { font-size: 0.65rem; color: #cbd5e1; display: block; }

/* SALON QUICK TOOLS */
.salon-quick-tools {
  display: flex;
  gap: 8px;
}

/* TIEMPOS DE COCINA (COURSES) */
.course-selector-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.btn-course-opt {
  background: #1f2937;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-course-opt.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-glow);
}

.course-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.course-badge.c1 { background: #0284c733; color: #38bdf8; border: 1px solid #0284c7; }
.course-badge.c2 { background: #ea580c33; color: #fb923c; border: 1px solid #ea580c; }
.course-badge.c3 { background: #8b5cf633; color: #c084fc; border: 1px solid #8b5cf6; }
.course-badge.c1, .course-badge.c-bebida { background: #0284c733; color: #38bdf8; border: 1px solid #0284c7; }
.course-badge.c2, .course-badge.c-entrada { background: #ea580c33; color: #fb923c; border: 1px solid #ea580c; }
.course-badge.c3, .course-badge.c-fuerte { background: #8b5cf633; color: #c084fc; border: 1px solid #8b5cf6; }
.course-badge.c4, .course-badge.c-postre { background: #ec489933; color: #f472b6; border: 1px solid #ec4899; }
.course-badge.c5, .course-badge.c-cafe { background: #78350f33; color: #fbbf24; border: 1px solid #b45309; }
.course-badge.c6, .course-badge.c-otros { background: #33415566; color: #cbd5e1; border: 1px solid #475569; }

.kitchen-course-fire-box {
  margin-bottom: 10px;
}

.btn-fire-courses {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border: 1px solid #fb923c;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  animation: fireGlow 2s infinite;
}

@keyframes fireGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(234, 88, 12, 0.4); }
  50% { box-shadow: 0 0 14px rgba(234, 88, 12, 0.8); }
}

/* PRODUCTO AGOTADO */
.prod-card-one-tap.agotado {
  opacity: 0.55;
  filter: grayscale(0.8);
  position: relative;
  border-color: #ef4444;
}

.prod-card-one-tap.agotado::after {
  content: "⛔ AGOTADO (86)";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* MODAL TRANSFERENCIA Y UNIÓN */
.transfer-dialog { width: 500px; max-width: 92vw; }
.transfer-tabs {
  display: flex;
  background: #090d16;
  border-bottom: 1px solid var(--border);
}

.transfer-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.transfer-tab.active {
  background: #111827;
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

.transfer-panel { display: none; }
.transfer-panel.active { display: block; }
.transfer-arrow-down { text-align: center; margin: 12px 0; font-size: 1.1rem; color: #9ca3af; font-weight: 700; }
.select-lg { height: 44px; font-size: 0.95rem; font-weight: 700; }

/* MODAL LISTA DE AGOTADOS */
.agotados-dialog { width: 520px; max-width: 92vw; }
.agotados-items-list {
  max-height: 380px;
  overflow-y: auto;
}

.agotado-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.btn-toggle-86 {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-toggle-86.disponible { background: #064e3b; color: #34d399; }
.btn-toggle-86.agotado { background: #7f1d1d; color: #f87171; }

/* QR EN MESA PARA CLIENTE */
.btn-qr-mesa-client {
  background: #1e293b;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.qr-dialog { width: 720px; max-width: 94vw; }
.qr-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.qr-code-box {
  text-align: center;
  padding: 20px;
  background: #090d16;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.fake-qr-code {
  width: 170px;
  height: 170px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid #fff;
  position: relative;
}

.qr-pixel-grid {
  width: 130px;
  height: 130px;
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 20px 20px;
}

.qr-scan-label {
  position: absolute;
  background: #000;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.mobile-phone-mockup {
  background: #000;
  border: 8px solid #374151;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.phone-screen {
  background: #090d16;
  border-radius: 16px;
  height: 320px;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.phone-header {
  border-bottom: 1px solid #1f2937;
  padding-bottom: 8px;
  text-align: center;
}

.phone-header strong { font-size: 0.88rem; color: #38bdf8; display: block; }
.phone-header small { font-size: 0.72rem; color: #9ca3af; }

.phone-ticket-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  font-size: 0.78rem;
}

.phone-item-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #111827;
}

.phone-footer {
  border-top: 1px solid #1f2937;
  padding-top: 8px;
}

.phone-total {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  color: #38bdf8;
  margin-bottom: 6px;
}

.btn-phone-pedir-cuenta {
  width: 100%;
  padding: 8px;
  background: #f59e0b;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-phone-pedir-cuenta:disabled,
.btn-phone-pedir-cuenta.disabled {
  background: #334155 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.65 !important;
  filter: grayscale(0.85);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* TABLA DE PROPINAS / TIP POOL */
.tip-pool-table-wrapper {
  background: #090d16;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 10px;
}

.tip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.tip-table th, .tip-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1f2937;
}

.tip-table th {
  background: #111827;
  color: #9ca3af;
  font-weight: 700;
  text-align: left;
}

.btn-bell {
  background: #1f2937;
  border: 1px solid #f59e0b;
  color: #f59e0b;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}


/* ============================================================================
   1. LANDING & LOGIN PAGE MODERNA (ESTILO GASTROBAR / RESTAURANTE)
   ============================================================================ */
.landing-hero-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #1e1b4b 0%, #030712 100%);
  color: #fff;
  overflow-y: auto;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  padding: 40px 16px 60px;
}

.landing-hero-view.active {
  display: flex;
}

.landing-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
  opacity: 0.15;
  filter: blur(4px);
  pointer-events: none;
}

.landing-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  text-align: center;
  margin: auto;
  padding-top: 10px;
}

.landing-brand-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ea580c, #b91c1c);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.5);
}

.landing-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-header p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 24px;
}

.landing-login-box {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15);
  text-align: left;
}

.login-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo-circle {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: #1e293b;
  border: 1px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.login-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}

.login-card-header p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

.btn-login-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 18px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

.demo-accounts-box {
  margin-top: 22px;
  border-top: 1px solid #334155;
  padding-top: 16px;
}

.demo-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.demo-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chip-account {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.chip-account:hover {
  border-color: #38bdf8;
  background: #0f172a;
  transform: translateY(-1px);
}

.chip-account.dev { border-color: #a855f7; color: #c084fc; }
.chip-account.admin { border-color: #eab308; color: #fde047; }
.chip-account.cajero { border-color: #10b981; color: #34d399; }
.chip-account.salonero { border-color: #38bdf8; color: #7dd3fc; }
.chip-account.salonera { border-color: #ec4899; color: #f472b6; }

/* ============================================================================
   2. PORTAL EXCLUSIVO DE DESARROLLADOR (SAAS CONSOLE)
   ============================================================================ */
.dev-portal-container {
  display: none;
  height: 100vh;
  max-height: 100vh;
  background: #090d16;
  color: #fff;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
}

.dev-portal-container.active {
  display: flex;
}

.dev-header {
  height: 60px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.dev-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: #6b21a8;
  color: #f3e8ff;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.dev-brand h2 {
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-block;
  margin-left: 8px;
}

.dev-user-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dev-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c084fc;
}

.btn-dev-logout, .btn-user-logout {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f87171;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
}

.btn-dev-logout:hover, .btn-user-logout:hover {
  background: #7f1d1d;
  color: #fff;
}

.dev-body-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  overflow: hidden;
}

.dev-sidebar {
  width: 240px;
  background: #0b1120;
  border-right: 1px solid #1e293b;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  flex-shrink: 0;
}

.dev-nav-btn {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.dev-nav-btn.active, .dev-nav-btn:hover {
  background: #1e293b;
  color: #38bdf8;
}

.dev-main-content {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 24px 28px 80px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.dev-main-content::-webkit-scrollbar,
.dev-sidebar::-webkit-scrollbar,
.db-table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dev-main-content::-webkit-scrollbar-track,
.dev-sidebar::-webkit-scrollbar-track,
.db-table-responsive::-webkit-scrollbar-track {
  background: #090d16;
}

.dev-main-content::-webkit-scrollbar-thumb,
.dev-sidebar::-webkit-scrollbar-thumb,
.db-table-responsive::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.dev-main-content::-webkit-scrollbar-thumb:hover,
.dev-sidebar::-webkit-scrollbar-thumb:hover,
.db-table-responsive::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

.dev-tab-panel {
  display: none;
}

.dev-tab-panel.active {
  display: block;
}

.panel-header-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.panel-header-action h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.panel-header-action p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 4px;
}

.negocios-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.negocio-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.negocio-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.negocio-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #334155;
  background: #1e293b;
}

.negocio-details h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.negocio-details small {
  color: #94a3b8;
  font-size: 0.78rem;
}

.negocio-meta-stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: #1e293b;
  padding: 8px 12px;
  border-radius: 6px;
}

.negocio-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-open-pos-as {
  flex: 1;
  padding: 8px;
  background: #0284c7;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-edit-negocio {
  padding: 8px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #93c5fd;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
  font-size: 0.85rem;
}

.dev-table th, .dev-table td {
  padding: 12px;
  border-bottom: 1px solid #1e293b;
  text-align: left;
}

.dev-table th {
  background: #1e293b;
  color: #94a3b8;
  font-weight: 700;
}

.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.db-stat-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.db-stat-box span {
  font-size: 2rem;
  font-weight: 800;
  color: #38bdf8;
  display: block;
}

.db-stat-box small {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ============================================================================
   MONITOR VISUAL DE BASE DE DATOS EN TIEMPO REAL (DEV PORTAL)
   ============================================================================ */
.db-monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.db-header-info {
  display: flex;
  align-items: center;
}

.db-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.db-icon-pulse {
  font-size: 2.2rem;
  animation: dbGlowIcon 3s infinite ease-in-out;
}

@keyframes dbGlowIcon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.3)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.8)); }
}

.db-title-text {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.db-subtitle-text {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

.db-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.db-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.db-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: dbLivePulse 1.8s infinite;
}

@keyframes dbLivePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.db-refresh-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0b1329;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 10px;
}

.db-select-label {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.db-select-control {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.db-select-control option {
  background: #0f172a;
  color: #f8fafc;
}

.btn-db-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-db-ping {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}
.btn-db-ping:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-db-optimize {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}
.btn-db-optimize:hover {
  background: #9333ea;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
}

.btn-db-refresh {
  background: rgba(71, 85, 105, 0.3);
  color: #f1f5f9;
  border-color: #475569;
}
.btn-db-refresh:hover {
  background: #334155;
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- KPI GRID --- */
.db-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.db-kpi-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.db-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.db-kpi-card.highlight-blue { border-top: 3px solid #38bdf8; }
.db-kpi-card.highlight-emerald { border-top: 3px solid #34d399; }
.db-kpi-card.highlight-indigo { border-top: 3px solid #818cf8; }
.db-kpi-card.highlight-purple { border-top: 3px solid #c084fc; }
.db-kpi-card.highlight-amber { border-top: 3px solid #fbbf24; }

.db-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.db-kpi-icon {
  font-size: 1.5rem;
}

.db-kpi-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #1e293b;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.db-kpi-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}

.db-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.db-kpi-value.text-sm {
  font-size: 1.18rem;
}

.db-kpi-sub {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: auto;
}

/* --- STORAGE DISTRIBUTION CARD --- */
.db-storage-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.db-storage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.db-storage-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.db-storage-subtitle {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.db-storage-total {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: 8px;
}

.db-storage-bar {
  display: flex;
  width: 100%;
  height: 20px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.db-bar-segment {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 3px;
  position: relative;
}

.db-bar-segment.seg-ventas { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.db-bar-segment.seg-catalogo { background: linear-gradient(90deg, #06b6d4, #0284c7); }
.db-bar-segment.seg-inventario { background: linear-gradient(90deg, #10b981, #059669); }
.db-bar-segment.seg-salon { background: linear-gradient(90deg, #f59e0b, #d97706); }
.db-bar-segment.seg-seguridad { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.db-bar-segment.seg-sistema { background: linear-gradient(90deg, #64748b, #475569); }
.db-bar-segment.seg-otros { background: linear-gradient(90deg, #475569, #334155); }

.db-storage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.db-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.db-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.db-legend-mb {
  color: #38bdf8;
  font-weight: 700;
}

/* --- SUMMARY GRID --- */
.db-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.db-summary-item {
  background: #0b1329;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-summary-icon {
  font-size: 1.6rem;
  background: rgba(30, 41, 59, 0.8);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #334155;
}

.db-summary-text {
  display: flex;
  flex-direction: column;
}

.db-summary-label {
  font-size: 0.74rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.db-summary-val {
  font-size: 1.15rem;
  color: #f8fafc;
  font-weight: 800;
}

/* --- TABLES CARD & MODERN TABLE --- */
.db-tables-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.db-tables-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.db-tables-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.db-tables-heading {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.db-tables-badge {
  background: #1e293b;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #334155;
}

.db-tables-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.db-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.db-search-icon {
  position: absolute;
  left: 10px;
  font-size: 0.85rem;
  color: #64748b;
  pointer-events: none;
}

.db-search-box input {
  background: #0b1329;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 7px 12px 7px 32px;
  border-radius: 8px;
  font-size: 0.82rem;
  width: 200px;
  transition: all 0.2s;
  outline: none;
}

.db-search-box input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  width: 230px;
}

.db-filter-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.db-pill {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.db-pill:hover {
  background: #334155;
  color: #f8fafc;
}

.db-pill.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.db-table-responsive {
  overflow-x: auto;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #0b1329;
}

.db-modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  text-align: left;
}

.db-modern-table th {
  background: #1e293b;
  color: #94a3b8;
  font-weight: 700;
  padding: 12px 14px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #334155;
  white-space: nowrap;
}

.db-modern-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  vertical-align: middle;
}

.db-modern-table tbody tr {
  transition: background 0.15s;
}

.db-modern-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.5);
}

.db-tbl-name {
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-tbl-code {
  font-family: monospace;
  font-size: 0.75rem;
  color: #64748b;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
}

.db-cat-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #1e293b;
  color: #94a3b8;
}

.cat-Ventas { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.cat-Catálogo { background: rgba(6, 182, 212, 0.15); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.3); }
.cat-Inventario { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-Salón { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-Seguridad { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.cat-Caja { background: rgba(16, 185, 129, 0.15); color: #4ade80; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-Sistema { background: rgba(100, 116, 139, 0.15); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }
.cat-SaaS { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

.db-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

.db-tbl-bar-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-bar-fill-mini {
  height: 6px;
  border-radius: 3px;
  background: #38bdf8;
  min-width: 2px;
}

.db-tables-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.76rem;
  color: #64748b;
}

.db-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: dbSpin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ============================================================================
   3. PERSONALIZACIÓN VISUAL DE BOTONES (FOTOS APETITOSAS)
   ============================================================================ */
.brand-custom-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #38bdf8;
}

.admin-extra-actions {
  display: flex;
  gap: 6px;
}

.btn-topbar-tool {
  background: #1e293b;
  border: 1px solid #3b82f6;
  color: #93c5fd;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-topbar-tool:hover {
  background: #2563eb;
  color: #fff;
}

/* TARJETAS DE PRODUCTOS CON FOTOS EN COMANDERO */
.products-one-tap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px;
}

.prod-card-one-tap {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  min-height: 140px;
}

.prod-card-one-tap:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.prod-card-one-tap:active {
  transform: scale(0.97);
}

.prod-card-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  background: #1e293b;
}

.prod-card-no-thumb {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.prod-card-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.prod-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.prod-card-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 4px;
}

.prod-badge-promo {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ea580c;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* MODAL DE PERSONALIZAR BOTONES */
.boton-custom-dialog {
  width: 600px;
  max-width: 94vw;
}

.gallery-presets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.preset-photo-thumb {
  width: 100%;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}

.preset-photo-thumb:hover, .preset-photo-thumb.selected {
  border-color: #38bdf8;
  transform: scale(1.05);
}

.custom-button-preview-box {
  background: #090d16;
  border-radius: 10px;
  border: 1px dashed #334155;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-card {
  width: 150px;
  pointer-events: none;
}

/* STAFF FORM */
.staff-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #090d16;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.admin-staff-dialog {
  width: 680px;
  max-width: 94vw;
}


/* ============================================================================
   SILLAS DE BARRA (FORMA DE SILLA / TABURETE CON RESPALDO Y ASIENTO)
   ============================================================================ */
.mesa-render-card.silla {
  min-width: 60px;
  min-height: 60px;
  width: 95px;
  height: 105px;
  border-radius: 18px 18px 50% 50% !important;
  background: radial-gradient(circle at center, #1e293b 20%, #0f172a 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.2);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 6px !important;
  position: absolute !important;
}

/* Silla en estado libre: Verde esmeralda idéntico a las mesas */
.mesa-render-card.silla.libre {
  border-color: #10b98166 !important;
  background: radial-gradient(circle at center, #064e3b44 20%, #111827 100%) !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5), inset 0 2px 4px rgba(16,185,129,0.2) !important;
}

.mesa-render-card.silla.libre .m-num {
  color: #34d399 !important;
}

.mesa-render-card.silla.abierta,
.mesa-render-card.silla.ocupada {
  border-color: #ef4444 !important;
  background: radial-gradient(circle at center, #7f1d1d55 20%, #111827 100%) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.15) !important;
  animation: mesaOcupadaHaloGlow 2.5s infinite ease-in-out !important;
}
.mesa-render-card.silla.abierta .m-num,
.mesa-render-card.silla.ocupada .m-num {
  color: #f87171 !important;
}

.mesa-render-card.silla.esperando {
  border-color: #ef4444 !important;
  background: radial-gradient(circle at center, #7c2d1255 20%, #111827 100%) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.15) !important;
}
.mesa-render-card.silla.esperando .m-num {
  color: #f87171 !important;
}

.mesa-render-card.silla.esperando_parcial {
  border-color: #ef4444 !important;
  background: radial-gradient(circle at center, #78350f55 20%, #111827 100%) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.15) !important;
}
.mesa-render-card.silla.esperando_parcial .m-num {
  color: #f87171 !important;
}

.mesa-render-card.silla.activa {
  border-color: #ef4444 !important;
  background: radial-gradient(circle at center, #7f1d1d55 20%, #111827 100%) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45), inset 0 0 6px rgba(239, 68, 68, 0.15) !important;
  animation: mesaOcupadaHaloGlow 2.5s infinite ease-in-out !important;
}
.mesa-render-card.silla.activa .m-num {
  color: #f87171 !important;
}

/* Respaldo curvado de la silla de barra */
.mesa-render-card.silla::before {
  content: '🪑';
  font-size: var(--mesa-icon-size, 1.1rem);
  display: block;
  line-height: 1;
}

.mesa-render-card.silla .m-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mesa-render-card.silla .m-num {
  font-size: var(--mesa-num-size, 0.78rem) !important;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92%;
}

.mesa-render-card.silla .m-badge {
  display: none !important;
}

.mesa-render-card.silla .m-total {
  font-size: var(--mesa-total-size, 0.75rem) !important;
  font-weight: 800;
  color: #10b981;
}

.mesa-render-card.silla .m-footer {
  font-size: var(--mesa-sub-size, 0.65rem) !important;
  color: #94a3b8;
}

/* SILLA DE BARRA EN EL EDITOR */
.drag-mesa.silla {
  min-width: 60px;
  min-height: 60px;
  width: 95px;
  height: 105px;
  border-radius: 18px 18px 50% 50% !important;
  background: radial-gradient(circle at center, #1e293b 20%, #0f172a 100%) !important;
  border: 2px dashed #38bdf8 !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5) !important;
}

.drag-mesa.silla::before {
  content: '🪑';
  font-size: var(--mesa-icon-size, 1.2rem);
  margin-bottom: 2px;
}

/* CONTROLES DE CAMBIO DE TAMAÑO EN EL EDITOR */
.drag-mesa {
  position: absolute;
  background: #1f2937;
  border: 2px dashed #0284c7;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: move;
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
  font-weight: 800;
  user-select: none;
  touch-action: none;
}

.drag-mesa.round {
  border-radius: 50% !important;
}

/* BOTONES FLOTANTES DE TAMAÑO +/- EN CADA MESA DEL EDITOR */
.mesa-size-controls {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 3px;
  z-index: 10;
}

.btn-mesa-size {
  width: 22px;
  height: 22px;
  background: #0f172a;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s;
}

.btn-mesa-size:hover {
  background: #0284c7;
  color: #fff;
  transform: scale(1.1);
}

/* HANDLE DE REDIMENSIÓN POR ARRASTRE EN ESQUINA INFERIOR DERECHA */
.mesa-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  cursor: nwse-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.95rem;
  z-index: 50;
  touch-action: none;
  user-select: none;
  background: rgba(15, 23, 42, 0.7);
  border-top-left-radius: 8px;
  border-bottom-right-radius: inherit;
  transition: all 0.15s ease;
}

.mesa-resize-handle:hover, .mesa-resize-handle:active {
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.5);
  transform: scale(1.15);
}

.mesa-dim-label {
  display: none !important;
}


/* ============================================================================
   RESPONSIVE DESIGN & ADAPTABILIDAD MULTI-DISPOSITIVO
   (Laptops 1366x768, Laptops 1280x800, Tablets, Celulares / Móviles)
   ============================================================================ */

/* Mobile Comandero Tabs (Ocultos por defecto en PC/Laptop) */
.comandero-mobile-tabs {
  display: none;
  width: 100%;
  background: #0b1120;
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  gap: 8px;
  z-index: 25;
  box-sizing: border-box;
}

.com-mob-tab {
  flex: 1;
  padding: 12px 14px;
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: #94a3b8;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
}

.com-mob-tab:hover {
  background: #273549;
  color: #f8fafc;
}

.com-mob-tab.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-mob-volver-salon {
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid #475569;
  color: #f8fafc;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-mob-volver-salon:hover,
.btn-mob-volver-salon:active {
  background: linear-gradient(135deg, #334155, #1e293b);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: scale(0.97);
}

.btn-volver-salon-catalog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid #475569;
  color: #f8fafc;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-volver-salon-catalog:hover,
.btn-volver-salon-catalog:active {
  background: #334155;
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Barra Flotante Rápida de Comanda (Tablet Portrait & Móviles) */
.com-mob-floating-bar {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: linear-gradient(135deg, #065f46, #047857);
  border: 1px solid #34d399;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  z-index: 30;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulseFloatingBar 2s infinite ease-in-out;
}

@keyframes pulseFloatingBar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.7), 0 0 22px rgba(16,185,129,0.55); }
}

.com-mob-floating-bar:active {
  transform: scale(0.98);
}

.mob-float-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mob-float-icon {
  font-size: 1.6rem;
}

.mob-float-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.mob-float-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #a7f3d0;
  display: block;
}

.mob-float-btn {
  background: #ffffff;
  color: #065f46;
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* Banner de Volver al Menú en Ticket */
.mob-ticket-back-banner {
  display: none;
  padding: 8px 12px;
  background: #0b1120;
  border-bottom: 1px solid var(--border);
}

.btn-mob-back-menu {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-mob-back-menu:active {
  background: #38bdf8;
  color: #0f172a;
}

/* ============================================================================
   1. LAPTOPS MEDIANAS Y PEQUEÑAS (Pantallas de 1025px hasta 1400px, e.g. 1366x768)
   ============================================================================ */
@media screen and (max-width: 1400px) {
  .top-nav {
    padding: 0 10px;
    gap: 8px;
    height: 60px;
  }

  .brand {
    gap: 6px;
  }

  .brand-logo {
    font-size: 1.4rem;
  }

  .brand-info h2 {
    font-size: 0.92rem;
  }

  .badge-tag {
    display: none;
  }

  .quick-search-box {
    max-width: 130px;
  }

  .quick-search-box input {
    height: 32px;
    font-size: 0.76rem;
    padding: 0 24px 0 24px;
  }

  .search-shortcut {
    display: none;
  }

  .happy-hour-pill {
    padding: 4px 8px;
  }

  .hh-info .hh-title {
    font-size: 0.72rem;
  }

  .hh-info small {
    display: none;
  }

  .nav-pills {
    gap: 3px;
    flex-shrink: 0;
  }

  .nav-pill {
    padding: 5px 8px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .pill-icon {
    font-size: 0.9rem;
  }

  .btn-topbar-tool {
    padding: 5px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .user-status-pill {
    padding: 4px 8px;
    gap: 6px;
  }

  .user-title {
    font-size: 0.78rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-subtitle {
    display: none;
  }

  @media screen and (max-width: 1300px) {
    .brand {
      max-width: 130px;
    }
    .happy-hour-pill {
      padding: 3px 6px;
    }
    .user-status-pill {
      padding: 3px 8px;
    }
    .quick-search-box {
      max-width: 110px;
    }
    .top-nav {
      gap: 5px;
      padding: 0 8px;
    }
  }

  /* COMANDERO COMPACTO PARA LAPTOPS 768px DE ALTO */
  .comandero-window {
    width: 98vw;
    height: 96vh;
  }

  .comandero-catalog {
    flex: 1 1 0%;
    min-width: 0;
  }

  .comandero-ticket {
    flex: 0 0 360px;
    width: 360px;
    min-width: 320px;
  }

  .catalog-topbar {
    padding: 8px 12px;
    gap: 8px;
  }

  .products-one-tap-grid {
    padding: 8px;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .prod-card-one-tap {
    min-height: 120px;
  }

  .prod-card-thumb, .prod-card-no-thumb {
    height: 68px;
  }

  .ticket-topbar {
    padding: 10px 14px;
  }

  .ticket-body {
    padding: 8px 12px;
  }

  .ticket-item-row {
    padding: 6px 10px;
    margin-bottom: 6px;
  }

  .ticket-bottom {
    padding: 10px 14px;
  }

  .ticket-calc-box .calc-line {
    font-size: 0.78rem;
    margin-bottom: 2px;
  }

  .ticket-calc-box .calc-line.total {
    font-size: 1.1rem;
    padding-top: 4px;
    margin-top: 4px;
  }

  .ticket-action-buttons {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
  }

  .btn-btn-cmd {
    padding: 8px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    text-align: center;
  }

  .salon-container {
    height: calc(100vh - 145px);
    padding: 12px;
  }

  .editor-board {
    height: calc(100vh - 145px);
  }
}

/* ============================================================================
   2. TABLETS EN MODO LANDSCAPE Y PANTALLAS COMPACTAS (901px hasta 1200px)
   ============================================================================ */
@media screen and (min-width: 901px) and (max-width: 1200px) {
  .top-nav {
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
  }

  .quick-search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 4px;
  }

  .nav-pills {
    order: 4;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0;
  }

  .caja-grid-layout {
    grid-template-columns: 1fr;
  }

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

  /* ── COMANDERO EN TABLETS LANDSCAPE (SPLIT 2 COLUMNAS PERFECTO) ── */
  .comandero-window {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: row !important;
  }

  .comandero-mobile-tabs {
    display: none !important;
  }

  .com-mob-floating-bar {
    display: none !important;
  }

  .mob-ticket-back-banner {
    display: none !important;
  }

  .comandero-catalog {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    border-right: 1px solid var(--border) !important;
  }

  .comandero-catalog.mobile-hidden {
    display: flex !important;
  }

  .comandero-ticket {
    flex: 0 0 350px !important;
    width: 350px !important;
    min-width: 310px !important;
    max-width: 380px !important;
    display: flex !important;
  }

  .catalog-topbar {
    padding: 8px 12px;
    gap: 6px;
  }

  .products-one-tap-grid {
    padding: 8px;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  }

  .prod-card-thumb, .prod-card-no-thumb {
    height: 55px;
  }

  .ticket-topbar {
    padding: 8px 12px;
  }

  .ticket-body {
    padding: 6px 10px;
    flex: 1;
    overflow-y: auto;
  }

  .ticket-item-row {
    padding: 5px 8px;
    margin-bottom: 5px;
  }

  .ticket-bottom {
    padding: 8px 12px;
  }

  .ticket-calc-box .calc-line {
    font-size: 0.78rem;
    margin-bottom: 2px;
  }

  .ticket-calc-box .calc-line.total {
    font-size: 1.05rem;
    padding-top: 4px;
    margin-top: 4px;
  }

  .ticket-action-buttons {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 5px;
    margin-top: 6px;
  }

  .btn-btn-cmd {
    padding: 8px 4px;
    font-size: 0.76rem;
    white-space: nowrap;
    text-align: center;
  }
}

/* ============================================================================
   3. TABLETS EN MODO PORTRAIT Y TELÉFONOS (≤900px Ó TABLETS ≤1024px VERTICAL)
   ============================================================================ */
@media screen and (max-width: 900px), screen and (max-width: 1024px) and (orientation: portrait) {
  /* Pantalla completa sin bordes redondeados */
  .comandero-window {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 100000 !important;
  }

  /* Activar pestañas táctiles Menú / Comanda */
  .comandero-mobile-tabs {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  /* Catálogo ocupa toda la pantalla en modo menú */
  .comandero-catalog {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-right: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .comandero-catalog.mobile-hidden {
    display: none !important;
  }

  /* Ticket ocupa toda la pantalla cuando está activo */
  .comandero-ticket {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-right: none !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .comandero-ticket.mobile-active {
    display: flex !important;
  }

  /* Botón volver al menú en ticket */
  .mob-ticket-back-banner {
    display: block !important;
    flex-shrink: 0 !important;
  }

  /* Barra flotante rápida en catálogo */
  .com-mob-floating-bar {
    display: flex !important;
  }

  .products-one-tap-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    padding: 10px !important;
    padding-bottom: 75px !important; /* Espacio para barra flotante */
    gap: 10px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ticket-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 14px !important;
  }

  .ticket-bottom {
    flex-shrink: 0 !important;
    padding: 12px 14px !important;
    background: #090d16 !important;
  }

  .ticket-action-buttons {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .btn-btn-cmd {
    padding: 12px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
  }
}

/* ============================================================================
   3-B. PANTALLAS CORTAS — Laptops con barra de tareas y chrome del browser
        Aplica cuando el viewport height es reducido (≤700px) en landscape.
   ============================================================================ */
@media screen and (max-height: 700px) and (min-width: 769px) {
  /* Usar todo el viewport disponible */
  .comandero-window {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  /* Compactar barra superior del catálogo */
  .catalog-topbar {
    padding: 4px 10px;
    gap: 4px;
  }

  /* Compactar topbar del ticket */
  .ticket-topbar {
    padding: 5px 12px;
  }

  /* Compactar body del ticket */
  .ticket-body {
    padding: 4px 10px;
  }

  .ticket-item-row {
    padding: 4px 8px;
    margin-bottom: 3px;
  }

  /* Compactar pie del ticket */
  .ticket-bottom {
    padding: 6px 12px;
  }

  .ticket-calc-box .calc-line {
    font-size: 0.72rem;
    margin-bottom: 1px;
  }

  .ticket-calc-box .calc-line.total {
    font-size: 0.92rem;
    padding-top: 3px;
    margin-top: 3px;
  }

  /* Botones en 3 columnas, más compactos */
  .ticket-action-buttons {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 4px;
    margin-top: 5px;
  }

  .btn-btn-cmd {
    padding: 6px 3px;
    font-size: 0.70rem;
    white-space: nowrap;
  }

  /* Imágenes de producto más pequeñas */
  .prod-card-thumb, .prod-card-no-thumb {
    height: 50px;
  }

  /* Tarjeta más compacta */
  .prod-card-one-tap {
    min-height: 90px;
  }
}

/* ============================================================================
   3. CELULARES Y SMARTPHONES (< 768px)
   ============================================================================ */
@media screen and (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .pos-app {
    height: auto;
    min-height: 100vh;
  }

  .top-nav {
    height: auto;
    padding: 8px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .top-nav > * {
    max-width: 100%;
  }

  .brand {
    justify-content: space-between;
    width: 100%;
  }

  .admin-extra-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .btn-topbar-tool {
    flex: 1;
    text-align: center;
  }

  .user-status-pill {
    width: 100%;
    justify-content: space-between;
  }

  .nav-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 4px;
  }

  .nav-pill {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  /* SUBBAR EN MÓVIL */
  .view-subbar {
    flex-direction: column;
    align-items: stretch;
  }

  .legend-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .salon-container {
    height: 70vh;
    min-height: 380px;
    padding: 8px;
  }

  .editor-board {
    height: 70vh;
    min-height: 380px;
  }

  .editor-actions {
    flex-wrap: wrap;
  }

  .btn-tool, .btn-save-plan {
    flex: 1;
    font-size: 0.75rem;
    padding: 6px 8px;
    text-align: center;
  }

  /* COMANDERO EN PANTALLA COMPLETA MÓVIL CON PESTAÑAS (MENÚ / COMANDA) */
  .comandero-window {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    flex-direction: column !important;
  }

  .comandero-mobile-tabs {
    display: flex !important;
  }

  .comandero-catalog {
    flex: 1 !important;
    width: 100% !important;
    border-right: none !important;
    display: flex;
  }

  .comandero-catalog.mobile-hidden {
    display: none !important;
  }

  .comandero-ticket {
    flex: 1 !important;
    width: 100% !important;
    display: none;
  }

  .comandero-ticket.mobile-active {
    display: flex !important;
  }

  .ticket-action-buttons {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .btn-btn-cmd {
    padding: 12px !important;
    font-size: 0.95rem !important;
  }

  /* LANDING & LOGIN MÓVIL */
  .landing-hero-view {
    padding: 24px 12px 50px;
  }

  .landing-header h1 {
    font-size: 1.45rem;
  }

  .landing-header p {
    font-size: 0.8rem;
  }

  .landing-login-box {
    padding: 18px;
  }

  .demo-chips-grid {
    grid-template-columns: 1fr;
  }

  /* DIÁLOGOS Y MODALES EN MÓVIL */
  .modal-dialog {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 94vh !important;
    padding: 14px !important;
  }

  .staff-form-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-presets-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .split-columns-wrapper {
    grid-template-columns: 1fr !important;
  }

  .numeric-keypad {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .num-btn {
    height: 52px !important;
    font-size: 1.2rem !important;
  }
}

/* ==========================================================================
   MOVER Y UNIR MESAS — MODAL Y PANELES
   ========================================================================== */
.mover-unir-dialog {
  max-width: 520px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.transfer-tabs-selector {
  display: flex;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 6px 16px;
  gap: 8px;
}

.transfer-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.transfer-tab.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 8px 8px 0 0;
}

.transfer-panel {
  display: none;
  padding: 12px 0;
}

.transfer-panel.active {
  display: block;
}

.panel-info-txt {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.4;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.select-styled {
  width: 100%;
  padding: 12px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  margin-top: 6px;
}

.select-styled:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   DRAG & DROP VISUAL FX — SALÓN INTERACTIVO
   ========================================================================== */
.mesa-render-card {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.2s ease;
}

.mesa-render-card:active {
  cursor: grabbing;
}

.mesa-render-card.mesa-drag-source {
  opacity: 0.35 !important;
  border: 2px dashed #f59e0b !important;
  transform: scale(0.96) !important;
}

/* Mesa destino cuando es libre (MOVER) */
.mesa-render-card.mesa-drop-target-move {
  border: 2.5px solid #10b981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), inset 0 0 15px rgba(16, 185, 129, 0.3) !important;
  transform: scale(1.06) !important;
  z-index: 100 !important;
  animation: pulseMove 1s infinite alternate ease-in-out;
}

/* Mesa destino cuando está ocupada (UNIR) */
.mesa-render-card.mesa-drop-target-merge {
  border: 2.5px solid #f59e0b !important;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.8), inset 0 0 20px rgba(245, 158, 11, 0.3) !important;
  transform: scale(1.08) !important;
  z-index: 100 !important;
  animation: pulseMerge 1s infinite alternate ease-in-out;
}

@keyframes pulseMove {
  from { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
  to { box-shadow: 0 0 30px rgba(16, 185, 129, 0.9); }
}

@keyframes pulseMerge {
  from { box-shadow: 0 0 15px rgba(245, 158, 11, 0.5); }
  to { box-shadow: 0 0 35px rgba(245, 158, 11, 0.95); }
}

/* Ghost flotante durante el arrastre */
#dragGhost, #dragGhost * {
  pointer-events: none !important;
}

#dragGhost {
  position: fixed;
  z-index: 99999;
  opacity: 0.92;
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.6) !important;
  border: 2px solid #f59e0b !important;
  border-radius: 12px;
  cursor: grabbing;
  transition: transform 0.05s ease;
}

#dragGhost .drag-badge-indicator {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ==========================================================================
   TRAZABILIDAD DE MESAS UNIDAS & DESGLOSE POR MESA
   ========================================================================== */
.mesa-origin-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(3, 105, 161, 0.35));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.m-merged-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.merged-table-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 12px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.merged-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.merged-banner-left .merged-icon {
  font-size: 1.3rem;
}

.btn-separar-mini {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  transition: all 0.15s ease;
}

.btn-separar-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* ============================================================= */
/* MÓDULOS DE ADMINISTRACIÓN: DASHBOARD, INVENTARIO & AUDITORÍA */
/* ============================================================= */
.admin-only-tab {
  display: none !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  background: rgba(30, 58, 138, 0.3) !important;
}

body.is-admin .admin-only-tab {
  display: inline-flex !important;
}

.admin-only-tab:hover {
  background: rgba(37, 99, 235, 0.4) !important;
  border-color: #60a5fa !important;
}

.btn-admin-highlight {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(37, 99, 235, 0.4)) !important;
  border: 1px solid rgba(96, 165, 250, 0.6) !important;
  color: #bfdbfe !important;
  font-weight: 800 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-admin-highlight:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6) !important;
  transform: translateY(-1px);
}

/* Barra superior con visibilidad total para dropdowns emergentes */
.top-nav {
  overflow: visible !important;
  z-index: 10000 !important;
}
.nav-pills {
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.nav-pills::-webkit-scrollbar {
  display: none;
}
.nav-pills, .admin-extra-actions, .brand, .user-status-pill {
  flex-shrink: 0 !important;
}

/* 1. DASHBOARD & KPIS */
.dashboard-content-wrapper {
  padding: 16px 20px;
  height: calc(100vh - 165px);
  overflow-y: auto;
}

.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
}

.kpi-card.kpi-sales::before { background: #10b981; }
.kpi-card.kpi-tickets::before { background: #3b82f6; }
.kpi-card.kpi-average::before { background: #f59e0b; }
.kpi-card.kpi-kitchen::before { background: #8b5cf6; }

.kpi-icon {
  font-size: 2.2rem;
  background: rgba(255,255,255,0.05);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

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

.kpi-label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f9fafb;
  margin: 3px 0;
}

.kpi-sub {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.dashboard-grids-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .dashboard-grids-row { grid-template-columns: 1fr; }
}

.dash-panel-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.panel-header h3 {
  margin: 0 0 14px 0;
  font-size: 1rem;
  font-weight: 800;
  color: #e5e7eb;
}

/* Gráfico de horas pico con barras CSS */
.peak-hours-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.peak-hour-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.peak-hour-label {
  width: 50px;
  color: #9ca3af;
  font-weight: 700;
}

.peak-hour-track {
  flex: 1;
  background: #1f2937;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.peak-hour-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.peak-hour-val {
  width: 85px;
  text-align: right;
  font-weight: 700;
  color: #f9fafb;
}

/* Top Sellers & Rankings */
.top-sellers-list, .waiters-ranking-list, .critical-stock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-seller-item, .waiter-item, .critical-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #182234;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.top-seller-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f3f4f6;
}

.top-seller-count {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.8rem;
}

/* 2. TABLA DE INVENTARIO */
.inventory-container-wrapper, .audit-container-wrapper {
  padding: 16px 20px;
  height: calc(100vh - 165px);
  overflow-y: auto;
}

.inventory-filters-row, .audit-filters-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.inventory-filters-row input, .inventory-filters-row select,
.audit-filters-row input {
  padding: 10px 14px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
}

.inventory-filters-row input { flex: 1; min-width: 200px; }

.inventory-table, .audit-table {
  width: 100%;
  border-collapse: collapse;
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.inventory-table th, .audit-table th {
  background: #1f2937;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inventory-table td, .audit-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1f2937;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.inventory-table tr:hover, .audit-table tr:hover {
  background: #162032;
}

.stock-pill {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-pill.normal { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.stock-pill.bajo { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.stock-pill.agotado { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.stock-pill.sin_stock, .stock-pill.cero { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

/* 3. AUDITORÍA CHIPS & BADGES */
.audit-chips-tabs {
  display: flex;
  gap: 8px;
}

.audit-chip {
  padding: 8px 14px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.audit-chip.active {
  background: #3b82f6;
  color: #fff;
  border-color: #60a5fa;
}

.audit-action-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-action-badge.seguridad { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.audit-action-badge.operativo { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.audit-action-badge.financiero { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }

.btn-separar-mini:active {
  transform: translateY(1px);
}

/* ============================================================================
   PANEL CENTRAL DE ADMINISTRACIÓN (ADMIN & DEVELOPER)
   ============================================================================ */

.btn-admin-panel-trigger {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.28)) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15) !important;
}

.btn-admin-panel-trigger:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-1px);
}

.btn-admin-panel-trigger .arrow-indicator {
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.btn-admin-panel-trigger:hover .arrow-indicator {
  transform: translateY(1px);
}

/* Modal Dialog para Panel de Admin */
.admin-panel-dialog {
  max-width: 860px;
  width: 95vw;
  max-height: 92vh;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-panel-badge-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.admin-panel-body {
  padding: 18px 22px;
  overflow-y: auto;
  max-height: calc(92vh - 130px);
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Tarjeta individual de función en el Panel Admin */
.admin-panel-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.admin-panel-card:hover {
  transform: translateY(-3px);
  background: #243248;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.25);
}

.admin-panel-card:active {
  transform: translateY(-1px);
}

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

.admin-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-dashboard .admin-card-icon { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.4); }
.card-inventario .admin-card-icon { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); }
.card-auditoria .admin-card-icon { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.4); }
.card-personal .admin-card-icon { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.4); }
.card-fotos .admin-card-icon { background: rgba(236, 72, 153, 0.2); border-color: rgba(236, 72, 153, 0.4); }
.card-actualizaciones .admin-card-icon { background: rgba(14, 165, 233, 0.2); border-color: rgba(14, 165, 233, 0.4); }
.card-editor .admin-card-icon { background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.4); }

.admin-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-card-tag.live { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.admin-card-tag.stock { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.admin-card-tag.security { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.admin-card-tag.staff { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.admin-card-tag.visual { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.admin-card-tag.system { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
.admin-card-tag.layout { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.admin-panel-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.admin-panel-card p {
  margin: 0 0 14px 0;
  font-size: 0.83rem;
  line-height: 1.35;
  color: #94a3b8;
}

.admin-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-card-action .arrow {
  transition: transform 0.15s ease;
}

.admin-panel-card:hover .admin-card-action .arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .admin-panel-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .admin-panel-dialog {
    width: 98vw;
    max-height: 96vh;
    border-radius: 12px;
  }
}

.card-impresoras:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2) !important;
}

/* ============================================================= */
/* BOTONES Y TARJETAS EXCLUSIVAS DE DEVELOPER (PURGA / RESET)   */
/* Ocultos por defecto para todos los usuarios excepto Developer */
/* ============================================================= */
.dev-purge-action,
.card-purga-total,
#cardAdminPurgaTotal,
#btnPurgarNegocioCompleto {
  display: none !important;
}

.dev-purge-action.dev-visible,
.card-purga-total.dev-visible,
#cardAdminPurgaTotal.dev-visible {
  display: flex !important;
}

button.dev-purge-action.dev-visible,
button#btnPurgarNegocioCompleto.dev-visible,
button#btnPurgarDashboardIntegral.dev-visible,
button#btnPurgarVentasDev.dev-visible,
button#btnPurgarAuditoriaDev.dev-visible,
button#btnPurgarAuditoriaAdmin.dev-visible,
button#btnLiberarTodasMesas.dev-visible,
button#btnPurgarComandasKDS.dev-visible,
button#btnPurgarFacturasDev.dev-visible,
button#btnPurgarSugerenciasCompras.dev-visible,
button#btnPurgarVentasProductosDev.dev-visible {
  display: inline-flex !important;
}

/* ============================================================= */
/* PAPEL CONTINUO TÉRMICO DE 80MM (SIMULADOR DE RECEIPT REAL) */
/* ============================================================= */
.receipt-paper-80mm-wrapper {
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.receipt-paper-80mm {
  width: 320px;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: 'Consolas', 'Courier New', Courier, monospace !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35;
  padding: 24px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px #000000;
  border-radius: 4px;
  position: relative;
  user-select: text;
  -webkit-font-smoothing: none !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-smooth: never !important;
  text-rendering: geometricPrecision !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Forzar todo el contenido interno a negro sólido y peso fuerte */
.receipt-paper-80mm,
.receipt-paper-80mm *,
.receipt-paper-80mm div,
.receipt-paper-80mm span,
.receipt-paper-80mm strong,
.receipt-paper-80mm small {
  color: #000000 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Efecto de borde dentado de corte de papel continuo arriba y abajo */
.receipt-paper-80mm::before,
.receipt-paper-80mm::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-size: 16px 8px;
  background-repeat: repeat-x;
}

.receipt-paper-80mm::before {
  top: -8px;
  background-image: radial-gradient(circle at 8px 8px, transparent 8px, #ffffff 8px);
}

.receipt-paper-80mm::after {
  bottom: -8px;
  background-image: radial-gradient(circle at 8px 0px, transparent 8px, #ffffff 8px);
}

.receipt-header {
  text-align: center;
  padding-bottom: 4px;
  margin-bottom: 2px;
  line-height: 1.25;
  color: #000000 !important;
  font-weight: 800 !important;
}

.receipt-business-name {
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
  color: #000000 !important;
}

.receipt-title-badge {
  font-size: 15px !important;
  font-weight: 900 !important;
  margin: 6px 0;
  text-align: center;
  letter-spacing: 0.5px;
  color: #000000 !important;
}

.receipt-double-line,
.receipt-dashed-line {
  font-family: 'Consolas', 'Courier New', monospace !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  letter-spacing: -1px;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  margin: 5px 0;
  color: #000000 !important;
  user-select: none;
}

.receipt-meta-grid {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  margin: 5px 0;
  line-height: 1.4;
  color: #000000 !important;
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
  color: #000000 !important;
  font-weight: 800 !important;
}

.receipt-col-header {
  display: flex;
  justify-content: space-between;
  font-weight: 900 !important;
  font-size: 12.5px !important;
  margin: 3px 0;
  color: #000000 !important;
}

.receipt-items-list {
  margin: 4px 0;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin-bottom: 3px;
  line-height: 1.3;
  color: #000000 !important;
}

.receipt-item-name {
  flex: 1;
  padding-right: 6px;
  color: #000000 !important;
  font-weight: 800 !important;
}

.receipt-item-price {
  text-align: right;
  white-space: nowrap;
  font-weight: 900 !important;
  color: #000000 !important;
}

.receipt-item-note {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding-left: 10px;
  color: #000000 !important;
}

.receipt-calculations {
  padding: 3px 0;
}

.receipt-calc-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  margin-bottom: 3px;
  color: #000000 !important;
}

.receipt-total-block {
  padding: 6px 0;
}

.receipt-total-label {
  font-size: 17px !important;
  font-weight: 900 !important;
  text-align: left;
  letter-spacing: 0.5px;
  color: #000000 !important;
}

.receipt-total-amount {
  font-size: 26px !important;
  font-weight: 900 !important;
  text-align: right;
  letter-spacing: 0.5px;
  margin-top: -2px;
  color: #000000 !important;
}

.receipt-payment-info {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  margin: 6px 0;
  line-height: 1.35;
  color: #000000 !important;
}

.receipt-footer {
  text-align: center;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  margin-top: 10px;
  padding-top: 4px;
  line-height: 1.4;
  color: #000000 !important;
}

#modalVisorTicket {
  z-index: 100300 !important;
}

/* Reglas especiales para imprimir directamente a impresora física de 80mm */
@media print {
  body * {
    visibility: hidden !important;
  }
  .modal-backdrop#modalVisorTicket {
    position: static !important;
    visibility: visible !important;
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .modal-backdrop#modalVisorTicket .visor-ticket-dialog {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
  }
  /* Ocultar únicamente los botones y la barra superior del modal */
  .modal-backdrop#modalVisorTicket .visor-ticket-toolbar,
  .modal-backdrop#modalVisorTicket .dialog-header,
  .modal-backdrop#modalVisorTicket button,
  .modal-backdrop#modalVisorTicket .btn-icon-close {
    display: none !important;
    visibility: hidden !important;
  }
  .receipt-paper-80mm-wrapper {
    overflow: visible !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
  }
  .receipt-paper-80mm {
    visibility: visible !important;
    display: block !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    width: 80mm !important;
    max-width: 80mm !important;
    margin: 0 auto !important;
    padding: 2mm 3mm !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-weight: 900 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    -webkit-font-smoothing: none !important;
    font-smooth: never !important;
    -webkit-text-stroke: 0.25px #000000 !important;
  }
  .receipt-paper-80mm::before,
  .receipt-paper-80mm::after {
    display: none !important;
  }
  .receipt-paper-80mm,
  .receipt-paper-80mm *,
  .receipt-paper-80mm div,
  .receipt-paper-80mm span,
  .receipt-paper-80mm strong,
  .receipt-paper-80mm small,
  .receipt-paper-80mm table,
  .receipt-paper-80mm tr,
  .receipt-paper-80mm td,
  .receipt-paper-80mm th {
    visibility: visible !important;
    color: #000000 !important;
    font-weight: 800 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    text-shadow: none !important;
  }
  .receipt-item-row,
  .receipt-col-header,
  .receipt-calc-line,
  .receipt-meta-row,
  .receipt-paper-80mm [style*="display:flex"],
  .receipt-paper-80mm [style*="justify-content:space-between"] {
    display: flex !important;
    visibility: visible !important;
  }
  @page {
    size: 80mm auto;
    margin: 0mm;
  }
}



/* ================================================================= */
/* TEXTURAS DE PISO DEL SALÓN — salon-container & editor-board       */
/* MODAL: SELECTOR DE PISO DEL SALÓN                                */
/* ================================================================= */
#modalSelectorPiso {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 99990 !important;
  align-items: center;
  justify-content: center;
}
#modalSelectorPiso.active {
  display: flex !important;
}

/* Base sin piso */
#salonContainer, #editorBoard, .salon-container, .editor-board { 
  transition: background 0.3s ease !important; 
}

/* === DEFECTO / OSCURO === */
#salonContainer.piso-default, .salon-container.piso-default, #editorBoard.piso-default, .editor-board.piso-default {
  background-color: #060911 !important;
  background-image: none !important;
}
.piso-preview-thumb.piso-default {
  background: #060911 !important;
  border: 1px dashed #334155 !important;
}

/* === MADERAS === */
#salonContainer.piso-madera-oscura, .salon-container.piso-madera-oscura, #editorBoard.piso-madera-oscura, .editor-board.piso-madera-oscura {
  background-color: #3d1f00 !important;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(0,0,0,0.18) 18px, rgba(0,0,0,0.18) 19px),
    repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(255,255,255,0.06) 4px, rgba(255,255,255,0.06) 5px) !important;
}
#salonContainer.piso-madera-clara, .salon-container.piso-madera-clara, #editorBoard.piso-madera-clara, .editor-board.piso-madera-clara {
  background-color: #c8a06a !important;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(0,0,0,0.1) 16px, rgba(0,0,0,0.1) 17px),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.12) 3px, rgba(255,255,255,0.12) 4px) !important;
}
#salonContainer.piso-madera-roble, .salon-container.piso-madera-roble, #editorBoard.piso-madera-roble, .editor-board.piso-madera-roble {
  background-color: #8b5e2e !important;
  background-image: repeating-linear-gradient(88deg, transparent, transparent 20px, rgba(0,0,0,0.15) 20px, rgba(0,0,0,0.15) 21px),
    repeating-linear-gradient(2deg, transparent, transparent 5px, rgba(255,220,140,0.08) 5px, rgba(255,220,140,0.08) 6px) !important;
}

/* === MÁRMOLES === */
#salonContainer.piso-marmol-blanco, .salon-container.piso-marmol-blanco, #editorBoard.piso-marmol-blanco, .editor-board.piso-marmol-blanco {
  background-color: #f0ece4 !important;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 40px, rgba(150,130,110,0.2) 40px, rgba(150,130,110,0.2) 41px),
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(180,160,140,0.15) 60px, rgba(180,160,140,0.15) 61px) !important;
}
#salonContainer.piso-marmol-negro, .salon-container.piso-marmol-negro, #editorBoard.piso-marmol-negro, .editor-board.piso-marmol-negro {
  background-color: #1a1a2e !important;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 40px, rgba(255,255,255,0.09) 40px, rgba(255,255,255,0.09) 41px),
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255,255,255,0.06) 60px, rgba(255,255,255,0.06) 61px) !important;
}
#salonContainer.piso-marmol-gris, .salon-container.piso-marmol-gris, #editorBoard.piso-marmol-gris, .editor-board.piso-marmol-gris {
  background-color: #8e9aaf !important;
  background-image: repeating-linear-gradient(130deg, transparent, transparent 45px, rgba(255,255,255,0.15) 45px, rgba(255,255,255,0.15) 46px),
    repeating-linear-gradient(50deg, transparent, transparent 65px, rgba(0,0,0,0.12) 65px, rgba(0,0,0,0.12) 66px) !important;
}

/* === BALDOSAS === */
#salonContainer.piso-baldosa-vintage, .salon-container.piso-baldosa-vintage, #editorBoard.piso-baldosa-vintage, .editor-board.piso-baldosa-vintage {
  background-color: #c4a882 !important;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 1px, transparent 1px, transparent 40px) !important;
}
#salonContainer.piso-ajedrez, .salon-container.piso-ajedrez, #editorBoard.piso-ajedrez, .editor-board.piso-ajedrez {
  background-color: #fff !important;
  background-image: repeating-conic-gradient(#222 0% 25%, #fff 0% 50%) !important;
  background-size: 36px 36px !important;
}
#salonContainer.piso-baldosa-azul, .salon-container.piso-baldosa-azul, #editorBoard.piso-baldosa-azul, .editor-board.piso-baldosa-azul {
  background-color: #1e3a5f !important;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.16) 0px, rgba(255,255,255,0.16) 1px, transparent 1px, transparent 38px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0px, rgba(255,255,255,0.16) 1px, transparent 1px, transparent 38px) !important;
}

/* === ESPECIALES === */
#salonContainer.piso-cemento, .salon-container.piso-cemento, #editorBoard.piso-cemento, .editor-board.piso-cemento {
  background-color: #6b7280 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%236b7280'/%3E%3Ccircle cx='1' cy='1' r='0.8' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='3' cy='3' r='0.8' fill='rgba(0,0,0,0.1)'/%3E%3C/svg%3E") !important;
}
#salonContainer.piso-deck-terraza, .salon-container.piso-deck-terraza, #editorBoard.piso-deck-terraza, .editor-board.piso-deck-terraza {
  background-color: #5c3d1e !important;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(0,0,0,0.25) 14px, rgba(0,0,0,0.25) 15px) !important;
}
#salonContainer.piso-ladrillo, .salon-container.piso-ladrillo, #editorBoard.piso-ladrillo, .editor-board.piso-ladrillo {
  background-color: #8b3a1e !important;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0px, rgba(0,0,0,0.25) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 1px, transparent 1px, transparent 36px) !important;
}

/* === COLORES SÓLIDOS === */
#salonContainer.piso-verde-musgo, .salon-container.piso-verde-musgo, #editorBoard.piso-verde-musgo, .editor-board.piso-verde-musgo   { background: #2d6a4f !important; background-image: none !important; }
#salonContainer.piso-azul-marino, .salon-container.piso-azul-marino, #editorBoard.piso-azul-marino, .editor-board.piso-azul-marino   { background: #1e3a5f !important; background-image: none !important; }
#salonContainer.piso-gris-oscuro, .salon-container.piso-gris-oscuro, #editorBoard.piso-gris-oscuro, .editor-board.piso-gris-oscuro   { background: #374151 !important; background-image: none !important; }
#salonContainer.piso-negro-mate,  .salon-container.piso-negro-mate,  #editorBoard.piso-negro-mate,  .editor-board.piso-negro-mate    { background: #111827 !important; background-image: none !important; }
#salonContainer.piso-burdeos,     .salon-container.piso-burdeos,     #editorBoard.piso-burdeos,     .editor-board.piso-burdeos       { background: #6b1a1a !important; background-image: none !important; }
#salonContainer.piso-arena,       .salon-container.piso-arena,       #editorBoard.piso-arena,       .editor-board.piso-arena         { background: #d4a76a !important; background-image: none !important; }

/* ================================================================= */
/* THUMBNAILS DE PISO — mismas texturas pero para .piso-preview-thumb*/
/* ================================================================= */
.piso-preview-thumb {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  background: #1e293b;
  margin-bottom: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

/* Madera oscura */
.piso-preview-thumb.piso-madera-oscura {
  background-color: #3d1f00;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(0,0,0,0.12) 18px, rgba(0,0,0,0.12) 19px),
    repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(255,255,255,0.04) 4px, rgba(255,255,255,0.04) 5px);
}
/* Madera clara */
.piso-preview-thumb.piso-madera-clara {
  background-color: #c8a06a;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(0,0,0,0.08) 16px, rgba(0,0,0,0.08) 17px),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.08) 3px, rgba(255,255,255,0.08) 4px);
}
/* Madera roble */
.piso-preview-thumb.piso-madera-roble {
  background-color: #8b5e2e;
  background-image: repeating-linear-gradient(88deg, transparent, transparent 20px, rgba(0,0,0,0.1) 20px, rgba(0,0,0,0.1) 21px),
    repeating-linear-gradient(2deg, transparent, transparent 5px, rgba(255,220,140,0.05) 5px, rgba(255,220,140,0.05) 6px);
}
/* Mármol blanco */
.piso-preview-thumb.piso-marmol-blanco {
  background-color: #f0ece4;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 20px, rgba(150,130,110,0.15) 20px, rgba(150,130,110,0.15) 21px),
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(180,160,140,0.1) 30px, rgba(180,160,140,0.1) 31px);
}
/* Mármol negro */
.piso-preview-thumb.piso-marmol-negro {
  background-color: #1a1a2e;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 20px, rgba(255,255,255,0.06) 20px, rgba(255,255,255,0.06) 21px),
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,0.04) 30px, rgba(255,255,255,0.04) 31px);
}
/* Mármol gris */
.piso-preview-thumb.piso-marmol-gris {
  background-color: #8e9aaf;
  background-image: repeating-linear-gradient(130deg, transparent, transparent 22px, rgba(255,255,255,0.1) 22px, rgba(255,255,255,0.1) 23px),
    repeating-linear-gradient(50deg, transparent, transparent 30px, rgba(0,0,0,0.08) 30px, rgba(0,0,0,0.08) 31px);
}
/* Baldosa vintage */
.piso-preview-thumb.piso-baldosa-vintage {
  background-color: #c4a882;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 20px);
}
/* Ajedrez */
.piso-preview-thumb.piso-ajedrez {
  background-color: #fff;
  background-image: repeating-conic-gradient(#222 0% 25%, #fff 0% 50%);
  background-size: 18px 18px;
}
/* Baldosa azul */
.piso-preview-thumb.piso-baldosa-azul {
  background-color: #1e3a5f;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 19px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 19px);
}
/* Cemento */
.piso-preview-thumb.piso-cemento { background: #6b7280; }
/* Deck terraza */
.piso-preview-thumb.piso-deck-terraza {
  background-color: #5c3d1e;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(0,0,0,0.18) 7px, rgba(0,0,0,0.18) 8px);
}
/* Ladrillo */
.piso-preview-thumb.piso-ladrillo {
  background-color: #8b3a1e;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 18px);
}
/* Colores sólidos */
.piso-preview-thumb.piso-verde-musgo  { background: #2d6a4f; }
.piso-preview-thumb.piso-azul-marino  { background: #1e3a5f; }
.piso-preview-thumb.piso-gris-oscuro  { background: #374151; }
.piso-preview-thumb.piso-negro-mate   { background: #111827; }
.piso-preview-thumb.piso-burdeos      { background: #6b1a1a; }
.piso-preview-thumb.piso-arena        { background: #d4a76a; }

/* Badge de emoji encima del thumbnail */
.piso-preview-badge {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
}

/* Tarjeta de piso */
.piso-card-item {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.piso-card-item:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}
.piso-card-item.activo {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  background: #0f2818;
}
.piso-card-item .piso-card-nombre {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.piso-card-item .piso-card-categoria {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 1px;
}
.piso-card-item.activo .piso-card-nombre { color: #86efac; }

/* ================================================================= */
/* BARRA FLOTANTE DEVELOPER LIVE EDIT & INSPECTOR                    */
/* ================================================================= */
.dev-live-edit-toolbar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99990;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border: 2px solid #6366f1;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px rgba(99,102,241,0.4);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  animation: slideUpToolbar 0.3s ease;
}

@keyframes slideUpToolbar {
  from { transform: translate(-50%, 50px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.live-edit-handle {
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.live-edit-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-edit-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  user-select: none;
}

.live-edit-toggle input[type="checkbox"] {
  cursor: pointer;
  accent-color: #a855f7;
}

.btn-live-save {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16,185,129,0.3);
}

.btn-live-console {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-live-close {
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modo inspección activo */
body.dev-inspecting-active * {
  cursor: crosshair !important;
}

.dev-inspect-hover {
  outline: 2px dashed #38bdf8 !important;
  outline-offset: 2px !important;
  background: rgba(56, 189, 248, 0.08) !important;
  transition: outline 0.1s ease;
}

.dev-element-selected {
  outline: 3px solid #ec4899 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 15px rgba(236,72,153,0.5) !important;
}

/* ================================================================= */
/* CONTROLES DEVELOPER EN BARRA SUPERIOR (TOP-NAV)                   */
/* ================================================================= */
.dev-top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.dev-negocio-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-top-modo-edicion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #a855f7;
  color: #d8b4fe;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-top-modo-edicion:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
  border-color: #c084fc;
  transform: translateY(-1px);
}

/* Estado activo del botón Modo Edición */
.btn-top-modo-edicion.activo {
  background: linear-gradient(135deg, #d946ef, #8b5cf6) !important;
  color: #fff !important;
  border-color: #f0abfc !important;
  box-shadow: 0 0 14px rgba(217, 70, 239, 0.6) !important;
  animation: pulseEdicionActiva 2s infinite ease-in-out;
}

@keyframes pulseEdicionActiva {
  0%, 100% { box-shadow: 0 0 12px rgba(217, 70, 239, 0.5); }
  50% { box-shadow: 0 0 22px rgba(217, 70, 239, 0.85); transform: scale(1.02); }
}

.btn-top-guardar-edicion {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-top-guardar-edicion.has-changes {
  animation: pulseSaveButton 1.5s infinite;
  border: 1px solid #6ee7b7;
}

@keyframes pulseSaveButton {
  0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.9); transform: scale(1.03); }
}

.btn-top-volver-dev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid #2563eb;
  color: #93c5fd;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-top-volver-dev:hover {
  background: #2563eb;
  color: #fff;
}

/* Réplicas en modales (Comandero y Dividir Cuenta) */
.dev-modal-action {
  white-space: nowrap;
}

/* ==========================================================================
   OFFLINE-FIRST NETWORK STATUS BADGE
   ========================================================================== */
.network-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.network-status-badge.online {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.network-status-badge.online:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
}

.network-status-badge.offline {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  animation: pulseOffline 2s infinite;
}

.network-status-badge.offline:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.network-status-badge.syncing {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

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

.net-dot.online {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.net-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.net-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.net-dot.syncing {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
  animation: spinDot 1s linear infinite;
}

.net-count {
  background: #f59e0b;
  color: #78350f;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 2px;
}

@keyframes pulseOffline {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

@keyframes spinDot {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

/* ============================================================================
   CENTRO DE LICENCIAS Y MÓDULOS SAAS (DEVELOPER)
   ============================================================================ */
.btn-plan-preset {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-plan-preset:hover {
  border-color: #6366f1;
  background: #1e1b4b;
  transform: translateY(-1px);
}

.btn-plan-preset.active {
  background: linear-gradient(135deg, #312e81, #4338ca);
  border-color: #818cf8;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.modulo-item-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.modulo-item-card:hover {
  border-color: #374151;
  background: #131b2e;
}

.modulo-item-card.activo {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
}

.modulo-item-card.is-base {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.modulo-icon-box {
  font-size: 1.8rem;
  line-height: 1;
  background: #1f2937;
  padding: 8px;
  border-radius: 10px;
}

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

.modulo-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.modulo-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #f3f4f6;
  margin: 0;
}

.modulo-badge-cat {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.modulo-desc {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 4px 0 8px;
  line-height: 1.35;
}

.modulo-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.modulo-price-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
}

/* Switch Toggle UI */
.switch-toggle-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

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

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  transition: .3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch-toggle-label input:checked + .switch-slider {
  background-color: #4f46e5;
}

.switch-toggle-label input:disabled + .switch-slider {
  background-color: #059669;
  cursor: not-allowed;
  opacity: 0.8;
}

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

/* ============================================================================
   3. INVENTARIO INTELIGENTE: ESCANDALLOS, FICHAS TÉCNICAS, KARDEX & COMPRAS 2026
   ============================================================================ */
.inv-subnav-tabs {
  display: flex;
  gap: 8px;
  background: #0f172a;
  padding: 8px 16px;
  border-bottom: 1px solid #1e293b;
  border-top: 1px solid #1e293b;
}

.inv-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inv-subnav-btn:hover {
  background: #334155;
  color: #fff;
}

.inv-subnav-btn.active {
  background: #4f46e5;
  color: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.inv-counter-pill {
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 4px;
}

.receta-selector-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.receta-actions-top {
  display: flex;
  gap: 8px;
}

.receta-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.receta-kpi-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.receta-kpi-card.highlight {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, #111827 0%, rgba(6, 78, 59, 0.25) 100%);
}

.receta-kpi-card .rk-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.receta-kpi-card .rk-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
}

.receta-kpi-card .rk-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.compras-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.compras-summary-bar {
  display: flex;
  gap: 24px;
  background: #1e1b4b;
  border: 1px solid #4338ca;
  padding: 12px 20px;
  border-radius: 10px;
  align-items: center;
  color: #c7d2fe;
  font-size: 0.92rem;
}

.badge-kardex-venta {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid #ef4444;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-kardex-entrada {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid #10b981;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-kardex-merma {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid #f59e0b;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-kardex-fijar {
  background: rgba(99, 102, 241, 0.18);
  color: #818cf8;
  border: 1px solid #6366f1;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.licor-shots-pill {
  font-size: 0.76rem;
  color: #38bdf8;
  font-weight: 700;
  margin-top: 3px;
  display: block;
}

.licor-tag {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid #9333ea;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-card-edit-prod {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #475569;
  color: #38bdf8;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.btn-card-edit-prod:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  transform: scale(1.15);
}

.btn-emoji-quick {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}
.btn-emoji-quick:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: scale(1.15);
}

/* ============================================================================
   MODAL ESTILIZADO PARA CAPACIDAD DE MESAS (GASTROBAR THEME)
   ============================================================================ */
#modalCapacidadMesa {
  z-index: 100000;
}

.cap-stepper-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
}

.btn-cap-step {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-cap-step:hover {
  background: #334155;
  border-color: #a78bfa;
  color: #a78bfa;
  transform: scale(1.08);
}

.btn-cap-step:active {
  transform: scale(0.95);
}

.input-cap-display {
  width: 90px;
  height: 44px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  background: #090d16;
  border: 2px solid #6366f1;
  border-radius: 12px;
  outline: none;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.cap-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.btn-cap-quick {
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cap-quick:hover {
  background: #6366f1;
  border-color: #818cf8;
  color: #fff;
  transform: translateY(-1px);
}

.btn-tipo-mesa {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 12px 6px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-tipo-mesa:hover {
  border-color: #38bdf8;
  color: #f8fafc;
  background: #334155;
  transform: translateY(-2px);
}

.btn-tipo-mesa.active {
  background: rgba(14, 165, 233, 0.18);
  border-color: #0284c7;
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.3);
}

/* ============================================================================
   PESTAÑAS DE ACCESO DIRECTO ADMIN & KÁRDEX EN BARRA SUPERIOR
   ============================================================================ */
.top-nav {
  flex-wrap: nowrap !important;
}

.nav-pill.admin-only-tab {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  color: #c7d2fe !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.nav-pill.admin-only-tab:hover {
  background: rgba(99, 102, 241, 0.28) !important;
  color: #ffffff !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.nav-pill.admin-only-tab.active {
  background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
  color: #ffffff !important;
  border-color: #a5b4fc !important;
  box-shadow: 0 0 14px rgba(79, 70, 229, 0.6) !important;
}

#modalPanelAdmin {
  z-index: 100005 !important;
}

#modalKardexInsumo {
  z-index: 100010 !important;
}

/* ============================================================================
   MÓDULOS EXP: DESCUENTOS CON PIN & SEMÁFORO DE TIEMPOS EN SALÓN
   ============================================================================ */
.btn-desc-preset {
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-desc-preset:hover, .btn-desc-preset.active {
  background: #059669;
  border-color: #34d399;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-quitar-desc {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.15s ease;
}

.btn-quitar-desc:hover {
  background: #ef4444;
  color: #fff;
}

.badge-semaforo-inactiva {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fcd34d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin: 3px 0;
  animation: pulse-semaforo-amber 2s infinite;
}

.badge-semaforo-comida-lista {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin: 3px 0;
  animation: pulse-semaforo-red 1.5s infinite;
}

@keyframes pulse-semaforo-amber {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes pulse-semaforo-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}









/* MEJORAS DE ESPACIADO EN LOGIN Y GRID DE USUARIOS */
.demo-accounts-box {
  margin-top: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

#loginUsuariosDisponiblesGrid {
  display: block;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 6px;
}

.demo-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 8px !important;
}

.chip-account {
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-account:hover {
  border-color: #38bdf8 !important;
  background: #0f172a !important;
  transform: translateY(-1px);
}

/* COMPACTACIÓN CABECERA DE CATEGORÍAS EN COMANDERO */
.com-cat-nav-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  margin-bottom: 6px !important;
  border: 1px solid #334155;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px !important;
}

.btn-volver-categorias {
  padding: 5px 12px !important;
  font-size: 0.82rem !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid #38bdf8 !important;
  color: #38bdf8 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer;
}


/* =============================================================================
   👑 MODO BETA TESTER: TRANSFORMACIÓN 100% DE BOTONES A 3D ORO CHAMPAGNE & NOIR
   ============================================================================= */

/* Botón Toggle en Top-Nav */
/* =============================================================================
   SISTEMA INTEGRAL 100% BOTONES 3D ORO CHAMPAGNE & NOIR (EXCLUSIVO BETA TESTER)
   ============================================================================= */

/* Botón Interruptor 3D en la barra superior */
.btn-beta-gold-toggle {
  background: linear-gradient(180deg, #27272A 0%, #18181B 100%) !important;
  border: 1px solid #D4AF37 !important;
  border-bottom: 3px solid #713F12 !important;
  border-radius: 9999px !important;
  color: #FEF08A !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 175, 55, 0.3) !important;
}

.btn-beta-gold-toggle:hover {
  border-color: #FDE047 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35) !important;
  transform: translateY(-1px) !important;
}

.btn-beta-gold-toggle:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
}

.btn-beta-gold-toggle.active {
  background: linear-gradient(180deg, #F5D77F 0%, #D4AF37 100%) !important;
  border: 1px solid #FFF1B0 !important;
  border-bottom: 3px solid #684F05 !important;
  color: #261B02 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* =============================================================================
   REGLAS GLOBALES 100% PARA body.beta-tester-gold
   ============================================================================= */

body.beta-tester-gold {
  --primary: #D4AF37;
  --primary-glow: #FDE047;
}

/* -------------------------------------------------------------------------
   0. REGLA UNIVERSAL FALLBACK: ABSOLUTAMENTE TODOS LOS BOTONES E INTERACTIVOS
   ------------------------------------------------------------------------- */
body.beta-tester-gold button,
body.beta-tester-gold .btn,
body.beta-tester-gold a.btn,
body.beta-tester-gold [role="button"],
body.beta-tester-gold input[type="button"],
body.beta-tester-gold input[type="submit"] {
  background: linear-gradient(180deg, #27272A 0%, #18181B 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-bottom: 3px solid #09090B !important;
  border-radius: 10px !important;
  color: #FEF08A !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  outline: none !important;
}

body.beta-tester-gold button:hover,
body.beta-tester-gold .btn:hover,
body.beta-tester-gold a.btn:hover,
body.beta-tester-gold [role="button"]:hover,
body.beta-tester-gold input[type="button"]:hover,
body.beta-tester-gold input[type="submit"]:hover {
  border-color: #D4AF37 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25) !important;
}

body.beta-tester-gold button:active,
body.beta-tester-gold .btn:active,
body.beta-tester-gold a.btn:active,
body.beta-tester-gold [role="button"]:active,
body.beta-tester-gold input[type="button"]:active,
body.beta-tester-gold input[type="submit"]:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* -------------------------------------------------------------------------
   1. BOTONES PRINCIPALES, ACCIÓN PRIMARIA, COBRAR, PAGAR, GUARDAR Y SUBMIT
   (ESTILO ULTRA ORO CHAMPAGNE 3D)
   ------------------------------------------------------------------------- */
body.beta-tester-gold .btn-pri,
body.beta-tester-gold .btn-primary,
body.beta-tester-gold .btn-checkout,
body.beta-tester-gold #btn-checkout,
body.beta-tester-gold #btnPagarModal,
body.beta-tester-gold #btnConfirmarCobro,
body.beta-tester-gold #btnPagarComanda,
body.beta-tester-gold #btnFinalizarCobro,
body.beta-tester-gold #btnCobrar,
body.beta-tester-gold .cobrar,
body.beta-tester-gold .btn-cobro,
body.beta-tester-gold .btn-confirm-action,
body.beta-tester-gold .btn-login-submit,
body.beta-tester-gold #btnLoginSubmit,
body.beta-tester-gold .btn-pay-split,
body.beta-tester-gold .btn-abrir-mesa,
body.beta-tester-gold .btn-guardar-cambios,
body.beta-tester-gold .btn-crear-producto,
body.beta-tester-gold .btn-abrir-modal,
body.beta-tester-gold .btn-realizar-pago,
body.beta-tester-gold .btn-confirmar-arqueo,
body.beta-tester-gold .btn-guardar-receta,
body.beta-tester-gold .btn-modal-submit,
body.beta-tester-gold .btn-action-primary,
body.beta-tester-gold .btn-confirmar-pago,
body.beta-tester-gold .guardar,
body.beta-tester-gold .btn-save-person,
body.beta-tester-gold .btn-save-plan,
body.beta-tester-gold .btn-top-guardar-edicion,
body.beta-tester-gold #btnGuardarPlano,
body.beta-tester-gold #btnGuardarCambiosTop,
body.beta-tester-gold #btnGuardarNuevoProducto,
body.beta-tester-gold #btnGuardarEmpleado,
body.beta-tester-gold #btnGuardarDevNegocio,
body.beta-tester-gold #btnGuardarPersonaActiva,
body.beta-tester-gold #btnGuardarCambiosComandero,
body.beta-tester-gold #btnGuardarCambiosSplit,
body.beta-tester-gold #btnGuardarCapacidadMesa,
body.beta-tester-gold #btnGuardarRenombrarMesa,
body.beta-tester-gold #btnGuardarMovimientoCaja,
body.beta-tester-gold #btnGuardarAgotados,
body.beta-tester-gold #btnGuardarModif,
body.beta-tester-gold #btnGuardarModulosNegocio,
body.beta-tester-gold #btnGuardarAdminHHConfig,
body.beta-tester-gold #modalConfirmBtnSi,
body.beta-tester-gold .btn-emitir-fe,
body.beta-tester-gold #btnEmitirFacturaExpress,
body.beta-tester-gold .exact,
body.beta-tester-gold #btnPagoExacto,
body.beta-tester-gold #btnPagoExactoUSD,
body.beta-tester-gold .btn-open-pos-as,
body.beta-tester-gold .btn-live-save,
body.beta-tester-gold button[type="submit"] {
  background: linear-gradient(180deg, #F9E7A2 0%, #D4AF37 50%, #AA820A 100%) !important;
  border: 1px solid #FFF3B8 !important;
  border-bottom: 4px solid #684F05 !important;
  border-radius: 12px !important;
  color: #241802 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 5px 16px rgba(212, 175, 55, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

body.beta-tester-gold .btn-pri:hover,
body.beta-tester-gold .btn-primary:hover,
body.beta-tester-gold .btn-checkout:hover,
body.beta-tester-gold #btn-checkout:hover,
body.beta-tester-gold #btnPagarModal:hover,
body.beta-tester-gold #btnConfirmarCobro:hover,
body.beta-tester-gold #btnPagarComanda:hover,
body.beta-tester-gold #btnFinalizarCobro:hover,
body.beta-tester-gold #btnCobrar:hover,
body.beta-tester-gold .cobrar:hover,
body.beta-tester-gold .btn-cobro:hover,
body.beta-tester-gold .btn-confirm-action:hover,
body.beta-tester-gold .btn-login-submit:hover,
body.beta-tester-gold #btnLoginSubmit:hover,
body.beta-tester-gold .btn-pay-split:hover,
body.beta-tester-gold .btn-abrir-mesa:hover,
body.beta-tester-gold .btn-guardar-cambios:hover,
body.beta-tester-gold .btn-crear-producto:hover,
body.beta-tester-gold .btn-abrir-modal:hover,
body.beta-tester-gold .btn-realizar-pago:hover,
body.beta-tester-gold .btn-confirmar-arqueo:hover,
body.beta-tester-gold .btn-guardar-receta:hover,
body.beta-tester-gold .btn-modal-submit:hover,
body.beta-tester-gold .btn-action-primary:hover,
body.beta-tester-gold .btn-confirmar-pago:hover,
body.beta-tester-gold .guardar:hover,
body.beta-tester-gold .btn-save-person:hover,
body.beta-tester-gold .btn-save-plan:hover,
body.beta-tester-gold .btn-top-guardar-edicion:hover,
body.beta-tester-gold #btnGuardarPlano:hover,
body.beta-tester-gold #btnGuardarCambiosTop:hover,
body.beta-tester-gold #btnGuardarNuevoProducto:hover,
body.beta-tester-gold #btnGuardarEmpleado:hover,
body.beta-tester-gold #btnGuardarDevNegocio:hover,
body.beta-tester-gold #btnGuardarPersonaActiva:hover,
body.beta-tester-gold #btnGuardarCambiosComandero:hover,
body.beta-tester-gold #btnGuardarCambiosSplit:hover,
body.beta-tester-gold #btnGuardarCapacidadMesa:hover,
body.beta-tester-gold #btnGuardarRenombrarMesa:hover,
body.beta-tester-gold #btnGuardarMovimientoCaja:hover,
body.beta-tester-gold #btnGuardarAgotados:hover,
body.beta-tester-gold #btnGuardarModif:hover,
body.beta-tester-gold #btnGuardarModulosNegocio:hover,
body.beta-tester-gold #btnGuardarAdminHHConfig:hover,
body.beta-tester-gold #modalConfirmBtnSi:hover,
body.beta-tester-gold .btn-emitir-fe:hover,
body.beta-tester-gold #btnEmitirFacturaExpress:hover,
body.beta-tester-gold .exact:hover,
body.beta-tester-gold #btnPagoExacto:hover,
body.beta-tester-gold #btnPagoExactoUSD:hover,
body.beta-tester-gold .btn-open-pos-as:hover,
body.beta-tester-gold .btn-live-save:hover,
body.beta-tester-gold button[type="submit"]:hover {
  background: linear-gradient(180deg, #FFF5C0 0%, #E6C552 50%, #BD9418 100%) !important;
  color: #170F01 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 7px 20px rgba(212, 175, 55, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

body.beta-tester-gold .btn-pri:active,
body.beta-tester-gold .btn-primary:active,
body.beta-tester-gold .btn-checkout:active,
body.beta-tester-gold #btn-checkout:active,
body.beta-tester-gold #btnPagarModal:active,
body.beta-tester-gold #btnConfirmarCobro:active,
body.beta-tester-gold #btnPagarComanda:active,
body.beta-tester-gold #btnFinalizarCobro:active,
body.beta-tester-gold #btnCobrar:active,
body.beta-tester-gold .cobrar:active,
body.beta-tester-gold .btn-cobro:active,
body.beta-tester-gold .btn-confirm-action:active,
body.beta-tester-gold .btn-login-submit:active,
body.beta-tester-gold #btnLoginSubmit:active,
body.beta-tester-gold .btn-pay-split:active,
body.beta-tester-gold .btn-abrir-mesa:active,
body.beta-tester-gold .btn-guardar-cambios:active,
body.beta-tester-gold .btn-crear-producto:active,
body.beta-tester-gold .btn-abrir-modal:active,
body.beta-tester-gold .btn-realizar-pago:active,
body.beta-tester-gold .btn-confirmar-arqueo:active,
body.beta-tester-gold .btn-guardar-receta:active,
body.beta-tester-gold .btn-modal-submit:active,
body.beta-tester-gold .btn-action-primary:active,
body.beta-tester-gold .btn-confirmar-pago:active,
body.beta-tester-gold .guardar:active,
body.beta-tester-gold .btn-save-person:active,
body.beta-tester-gold .btn-save-plan:active,
body.beta-tester-gold .btn-top-guardar-edicion:active,
body.beta-tester-gold #btnGuardarPlano:active,
body.beta-tester-gold #btnGuardarCambiosTop:active,
body.beta-tester-gold #btnGuardarNuevoProducto:active,
body.beta-tester-gold #btnGuardarEmpleado:active,
body.beta-tester-gold #btnGuardarDevNegocio:active,
body.beta-tester-gold #btnGuardarPersonaActiva:active,
body.beta-tester-gold #btnGuardarCambiosComandero:active,
body.beta-tester-gold #btnGuardarCambiosSplit:active,
body.beta-tester-gold #btnGuardarCapacidadMesa:active,
body.beta-tester-gold #btnGuardarRenombrarMesa:active,
body.beta-tester-gold #btnGuardarMovimientoCaja:active,
body.beta-tester-gold #btnGuardarAgotados:active,
body.beta-tester-gold #btnGuardarModif:active,
body.beta-tester-gold #btnGuardarModulosNegocio:active,
body.beta-tester-gold #btnGuardarAdminHHConfig:active,
body.beta-tester-gold #modalConfirmBtnSi:active,
body.beta-tester-gold .btn-emitir-fe:active,
body.beta-tester-gold #btnEmitirFacturaExpress:active,
body.beta-tester-gold .exact:active,
body.beta-tester-gold #btnPagoExacto:active,
body.beta-tester-gold #btnPagoExactoUSD:active,
body.beta-tester-gold .btn-open-pos-as:active,
body.beta-tester-gold .btn-live-save:active,
body.beta-tester-gold button[type="submit"]:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* -------------------------------------------------------------------------
   2. BOTONES DE COCINA, KDS, ORDENAR Y DESPACHO (NOIR IMPERIAL 3D)
   ------------------------------------------------------------------------- */
body.beta-tester-gold .btn-enviar-cocina,
body.beta-tester-gold #btnEnviarCocina,
body.beta-tester-gold #btnEnviarComandaCocina,
body.beta-tester-gold #btnConfirmarComanda,
body.beta-tester-gold .btn-cocina,
body.beta-tester-gold .btn-kds-ready,
body.beta-tester-gold .btn-kds-despachar,
body.beta-tester-gold .btn-kds-action,
body.beta-tester-gold .btn-ordenar,
body.beta-tester-gold .btn-despacho-kds,
body.beta-tester-gold .btn-kds-despachar-todo,
body.beta-tester-gold .btn-kds-despachar-sel {
  background: linear-gradient(180deg, #2A2A30 0%, #16161A 100%) !important;
  border: 1px solid #D4AF37 !important;
  border-bottom: 4px solid #713F12 !important;
  border-radius: 12px !important;
  color: #FEF08A !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.35) !important;
}

body.beta-tester-gold .btn-enviar-cocina:hover,
body.beta-tester-gold #btnEnviarCocina:hover,
body.beta-tester-gold #btnEnviarComandaCocina:hover,
body.beta-tester-gold #btnConfirmarComanda:hover,
body.beta-tester-gold .btn-cocina:hover,
body.beta-tester-gold .btn-kds-ready:hover,
body.beta-tester-gold .btn-kds-despachar:hover,
body.beta-tester-gold .btn-kds-action:hover,
body.beta-tester-gold .btn-ordenar:hover,
body.beta-tester-gold .btn-despacho-kds:hover,
body.beta-tester-gold .btn-kds-despachar-todo:hover,
body.beta-tester-gold .btn-kds-despachar-sel:hover {
  border-color: #FDE047 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35) !important;
}

body.beta-tester-gold .btn-enviar-cocina:active,
body.beta-tester-gold #btnEnviarCocina:active,
body.beta-tester-gold #btnEnviarComandaCocina:active,
body.beta-tester-gold #btnConfirmarComanda:active,
body.beta-tester-gold .btn-cocina:active,
body.beta-tester-gold .btn-kds-ready:active,
body.beta-tester-gold .btn-kds-despachar:active,
body.beta-tester-gold .btn-kds-action:active,
body.beta-tester-gold .btn-ordenar:active,
body.beta-tester-gold .btn-despacho-kds:active,
body.beta-tester-gold .btn-kds-despachar-todo:active,
body.beta-tester-gold .btn-kds-despachar-sel:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* -------------------------------------------------------------------------
   3. BOTONES DE PRE-FACTURA, IMPRESIÓN Y TICKETS (ÁMBAR ORO 3D)
   ------------------------------------------------------------------------- */
body.beta-tester-gold .prefactura,
body.beta-tester-gold .btn-prefactura,
body.beta-tester-gold #btnPreFactura,
body.beta-tester-gold #btnImprimirPreFactura,
body.beta-tester-gold #btnImprimirPreFacturaCobro,
body.beta-tester-gold .btn-print-ticket,
body.beta-tester-gold .btn-imprimir,
body.beta-tester-gold .btn-ticket-mesa,
body.beta-tester-gold .btn-reimprimir-ticket,
body.beta-tester-gold #btnReimprimirTicket {
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 100%) !important;
  border: 1px solid #FEF3C7 !important;
  border-bottom: 4px solid #92400E !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

body.beta-tester-gold .prefactura:hover,
body.beta-tester-gold .btn-prefactura:hover,
body.beta-tester-gold #btnPreFactura:hover,
body.beta-tester-gold #btnImprimirPreFactura:hover,
body.beta-tester-gold #btnImprimirPreFacturaCobro:hover,
body.beta-tester-gold .btn-print-ticket:hover,
body.beta-tester-gold .btn-imprimir:hover,
body.beta-tester-gold .btn-ticket-mesa:hover,
body.beta-tester-gold .btn-reimprimir-ticket:hover,
body.beta-tester-gold #btnReimprimirTicket:hover {
  background: linear-gradient(180deg, #FDE68A 0%, #E2880F 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.5) !important;
}

body.beta-tester-gold .prefactura:active,
body.beta-tester-gold .btn-prefactura:active,
body.beta-tester-gold #btnPreFactura:active,
body.beta-tester-gold #btnImprimirPreFactura:active,
body.beta-tester-gold #btnImprimirPreFacturaCobro:active,
body.beta-tester-gold .btn-print-ticket:active,
body.beta-tester-gold .btn-imprimir:active,
body.beta-tester-gold .btn-ticket-mesa:active,
body.beta-tester-gold .btn-reimprimir-ticket:active,
body.beta-tester-gold #btnReimprimirTicket:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
}

/* -------------------------------------------------------------------------
   4. BOTONES DE PELIGRO, CANCELACIÓN, ELIMINACIÓN Y CIERRE (RUBÍ NOIR 3D)
   ------------------------------------------------------------------------- */
body.beta-tester-gold .danger,
body.beta-tester-gold .btn-danger,
body.beta-tester-gold .btn-cancelar,
body.beta-tester-gold .btn-anular,
body.beta-tester-gold .btn-delete,
body.beta-tester-gold .btn-eliminar,
body.beta-tester-gold .btn-delete-negocio,
body.beta-tester-gold .btn-cat-card-delete,
body.beta-tester-gold .btn-eliminar-cat-nav,
body.beta-tester-gold .btn-close-modal,
body.beta-tester-gold .btn-icon-close,
body.beta-tester-gold .btn-quitar-desc,
body.beta-tester-gold .split-btn-remove,
body.beta-tester-gold .corte-z,
body.beta-tester-gold #btnCorteZ,
body.beta-tester-gold #btnCancelarCobro,
body.beta-tester-gold #btnCancelarAnula,
body.beta-tester-gold #btnConfirmarAnulacion,
body.beta-tester-gold #modalConfirmBtnNo,
body.beta-tester-gold .btn-user-logout,
body.beta-tester-gold .btn-dev-logout,
body.beta-tester-gold #btnCloseCobroModal,
body.beta-tester-gold #btnCloseComandero,
body.beta-tester-gold #btnCloseAnulaModal,
body.beta-tester-gold #btnCloseModifModal,
body.beta-tester-gold #btnCloseSplitModal,
body.beta-tester-gold #btnCloseMoverUnirModal,
body.beta-tester-gold #btnCloseDevNegocio,
body.beta-tester-gold #btnCancelarDevNegocio,
body.beta-tester-gold #btnCancelarSplit,
body.beta-tester-gold #btnCancelarModif,
body.beta-tester-gold #btnCancelarModulosNegocio,
body.beta-tester-gold #btnCancelarCustomBoton,
body.beta-tester-gold #btnEliminarProdModal {
  background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%) !important;
  border: 1px solid #FCA5A5 !important;
  border-bottom: 4px solid #450A0A !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

body.beta-tester-gold .danger:hover,
body.beta-tester-gold .btn-danger:hover,
body.beta-tester-gold .btn-cancelar:hover,
body.beta-tester-gold .btn-anular:hover,
body.beta-tester-gold .btn-delete:hover,
body.beta-tester-gold .btn-eliminar:hover,
body.beta-tester-gold .btn-delete-negocio:hover,
body.beta-tester-gold .btn-cat-card-delete:hover,
body.beta-tester-gold .btn-eliminar-cat-nav:hover,
body.beta-tester-gold .btn-close-modal:hover,
body.beta-tester-gold .btn-icon-close:hover,
body.beta-tester-gold .btn-quitar-desc:hover,
body.beta-tester-gold .split-btn-remove:hover,
body.beta-tester-gold .corte-z:hover,
body.beta-tester-gold #btnCorteZ:hover,
body.beta-tester-gold #btnCancelarCobro:hover,
body.beta-tester-gold #btnCancelarAnula:hover,
body.beta-tester-gold #btnConfirmarAnulacion:hover,
body.beta-tester-gold #modalConfirmBtnNo:hover,
body.beta-tester-gold .btn-user-logout:hover,
body.beta-tester-gold .btn-dev-logout:hover,
body.beta-tester-gold #btnCloseCobroModal:hover,
body.beta-tester-gold #btnCloseComandero:hover,
body.beta-tester-gold #btnCloseAnulaModal:hover,
body.beta-tester-gold #btnCloseModifModal:hover,
body.beta-tester-gold #btnCloseSplitModal:hover,
body.beta-tester-gold #btnCloseMoverUnirModal:hover,
body.beta-tester-gold #btnCloseDevNegocio:hover,
body.beta-tester-gold #btnCancelarDevNegocio:hover,
body.beta-tester-gold #btnCancelarSplit:hover,
body.beta-tester-gold #btnCancelarModif:hover,
body.beta-tester-gold #btnCancelarModulosNegocio:hover,
body.beta-tester-gold #btnCancelarCustomBoton:hover,
body.beta-tester-gold #btnEliminarProdModal:hover {
  background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.45) !important;
}

body.beta-tester-gold .danger:active,
body.beta-tester-gold .btn-danger:active,
body.beta-tester-gold .btn-cancelar:active,
body.beta-tester-gold .btn-anular:active,
body.beta-tester-gold .btn-delete:active,
body.beta-tester-gold .btn-eliminar:active,
body.beta-tester-gold .btn-delete-negocio:active,
body.beta-tester-gold .btn-cat-card-delete:active,
body.beta-tester-gold .btn-eliminar-cat-nav:active,
body.beta-tester-gold .btn-close-modal:active,
body.beta-tester-gold .btn-icon-close:active,
body.beta-tester-gold .btn-quitar-desc:active,
body.beta-tester-gold .split-btn-remove:active,
body.beta-tester-gold .corte-z:active,
body.beta-tester-gold #btnCorteZ:active,
body.beta-tester-gold #btnCancelarCobro:active,
body.beta-tester-gold #btnCancelarAnula:active,
body.beta-tester-gold #btnConfirmarAnulacion:active,
body.beta-tester-gold #modalConfirmBtnNo:active,
body.beta-tester-gold .btn-user-logout:active,
body.beta-tester-gold .btn-dev-logout:active,
body.beta-tester-gold #btnCloseCobroModal:active,
body.beta-tester-gold #btnCloseComandero:active,
body.beta-tester-gold #btnCloseAnulaModal:active,
body.beta-tester-gold #btnCloseModifModal:active,
body.beta-tester-gold #btnCloseSplitModal:active,
body.beta-tester-gold #btnCloseMoverUnirModal:active,
body.beta-tester-gold #btnCloseDevNegocio:active,
body.beta-tester-gold #btnCancelarDevNegocio:active,
body.beta-tester-gold #btnCancelarSplit:active,
body.beta-tester-gold #btnCancelarModif:active,
body.beta-tester-gold #btnCancelarModulosNegocio:active,
body.beta-tester-gold #btnCancelarCustomBoton:active,
body.beta-tester-gold #btnEliminarProdModal:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
}

/* -------------------------------------------------------------------------
   5. MENÚS, SUBMENÚS, PESTAÑAS Y CHIPS DE NAVEGACIÓN (3D CAPSULES)
   ------------------------------------------------------------------------- */
body.beta-tester-gold .nav-btn,
body.beta-tester-gold .nav-item,
body.beta-tester-gold .tab-btn,
body.beta-tester-gold .tab-button,
body.beta-tester-gold .subnav-btn,
body.beta-tester-gold .inv-subnav-btn,
body.beta-tester-gold .dev-nav-btn,
body.beta-tester-gold .cat-btn,
body.beta-tester-gold .cat-chip,
body.beta-tester-gold .db-pill,
body.beta-tester-gold .zone-tab,
body.beta-tester-gold .audit-chip,
body.beta-tester-gold .kds-tab,
body.beta-tester-gold .pay-method-tab,
body.beta-tester-gold .transfer-tab,
body.beta-tester-gold .split-mode-btn,
body.beta-tester-gold .com-mob-tab,
body.beta-tester-gold .editor-subtabs-nav button,
body.beta-tester-gold .btn-tool,
body.beta-tester-gold .btn-sec,
body.beta-tester-gold .btn-secundario,
body.beta-tester-gold .btn-view-mode,
body.beta-tester-gold .btn-course-opt,
body.beta-tester-gold .btn-tipo-ajuste,
body.beta-tester-gold .btn-topbar-tool,
body.beta-tester-gold .btn-top-modo-edicion,
body.beta-tester-gold .btn-top-volver-dev,
body.beta-tester-gold .chip-account,
body.beta-tester-gold .nav-pill,
body.beta-tester-gold .btn-floor-toggle,
body.beta-tester-gold .admin-view-tab {
  background: linear-gradient(180deg, #27272A 0%, #18181B 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-bottom: 3px solid #09090B !important;
  border-radius: 9999px !important;
  color: #D4AF37 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.beta-tester-gold .nav-btn:hover,
body.beta-tester-gold .nav-item:hover,
body.beta-tester-gold .tab-btn:hover,
body.beta-tester-gold .tab-button:hover,
body.beta-tester-gold .subnav-btn:hover,
body.beta-tester-gold .inv-subnav-btn:hover,
body.beta-tester-gold .dev-nav-btn:hover,
body.beta-tester-gold .cat-btn:hover,
body.beta-tester-gold .cat-chip:hover,
body.beta-tester-gold .db-pill:hover,
body.beta-tester-gold .zone-tab:hover,
body.beta-tester-gold .audit-chip:hover,
body.beta-tester-gold .kds-tab:hover,
body.beta-tester-gold .pay-method-tab:hover,
body.beta-tester-gold .transfer-tab:hover,
body.beta-tester-gold .split-mode-btn:hover,
body.beta-tester-gold .com-mob-tab:hover,
body.beta-tester-gold .editor-subtabs-nav button:hover,
body.beta-tester-gold .btn-tool:hover,
body.beta-tester-gold .btn-sec:hover,
body.beta-tester-gold .btn-secundario:hover,
body.beta-tester-gold .btn-view-mode:hover,
body.beta-tester-gold .btn-course-opt:hover,
body.beta-tester-gold .btn-tipo-ajuste:hover,
body.beta-tester-gold .btn-topbar-tool:hover,
body.beta-tester-gold .btn-top-modo-edicion:hover,
body.beta-tester-gold .btn-top-volver-dev:hover,
body.beta-tester-gold .chip-account:hover,
body.beta-tester-gold .nav-pill:hover,
body.beta-tester-gold .btn-floor-toggle:hover,
body.beta-tester-gold .admin-view-tab:hover {
  border-color: #FDE047 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3) !important;
}

/* Estado Activo para Menús y Submenús */
body.beta-tester-gold .nav-btn.active,
body.beta-tester-gold .nav-item.active,
body.beta-tester-gold .tab-btn.active,
body.beta-tester-gold .tab-button.active,
body.beta-tester-gold .subnav-btn.active,
body.beta-tester-gold .inv-subnav-btn.active,
body.beta-tester-gold .dev-nav-btn.active,
body.beta-tester-gold .cat-btn.active,
body.beta-tester-gold .cat-chip.active,
body.beta-tester-gold .db-pill.active,
body.beta-tester-gold .zone-tab.active,
body.beta-tester-gold .audit-chip.active,
body.beta-tester-gold .kds-tab.active,
body.beta-tester-gold .pay-method-tab.active,
body.beta-tester-gold .transfer-tab.active,
body.beta-tester-gold .split-mode-btn.active,
body.beta-tester-gold .com-mob-tab.active,
body.beta-tester-gold .editor-subtabs-nav button.active,
body.beta-tester-gold .btn-tool.active,
body.beta-tester-gold .nav-pill.active,
body.beta-tester-gold .btn-floor-toggle.active,
body.beta-tester-gold .admin-view-tab.active {
  background: linear-gradient(180deg, #F5D77F 0%, #D4AF37 50%, #AA820A 100%) !important;
  border: 1px solid #FFF1B0 !important;
  border-bottom: 3px solid #684F05 !important;
  color: #261B02 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

body.beta-tester-gold .nav-btn:active,
body.beta-tester-gold .nav-item:active,
body.beta-tester-gold .tab-btn:active,
body.beta-tester-gold .tab-button:active,
body.beta-tester-gold .subnav-btn:active,
body.beta-tester-gold .inv-subnav-btn:active,
body.beta-tester-gold .dev-nav-btn:active,
body.beta-tester-gold .cat-btn:active,
body.beta-tester-gold .cat-chip:active,
body.beta-tester-gold .db-pill:active,
body.beta-tester-gold .zone-tab:active,
body.beta-tester-gold .audit-chip:active,
body.beta-tester-gold .kds-tab:active,
body.beta-tester-gold .pay-method-tab:active,
body.beta-tester-gold .transfer-tab:active,
body.beta-tester-gold .split-mode-btn:active,
body.beta-tester-gold .com-mob-tab:active,
body.beta-tester-gold .editor-subtabs-nav button:active,
body.beta-tester-gold .btn-tool:active,
body.beta-tester-gold .nav-pill:active,
body.beta-tester-gold .btn-floor-toggle:active,
body.beta-tester-gold .admin-view-tab:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
}

/* -------------------------------------------------------------------------
   6. TECLADO NUMÉRICO, CALCULADORA, PIN, CANTIDADES (+ / -) Y MONTOS RÁPIDOS
   (3D MECHANICAL KEYCAPS)
   ------------------------------------------------------------------------- */
body.beta-tester-gold .calc-key,
body.beta-tester-gold .num-btn,
body.beta-tester-gold .numeric-keypad button,
body.beta-tester-gold .btn-pin-key,
body.beta-tester-gold .btn-qty,
body.beta-tester-gold .btn-balde-count,
body.beta-tester-gold .btn-split-counter,
body.beta-tester-gold .btn-cap-step,
body.beta-tester-gold .btn-cap-quick,
body.beta-tester-gold .btn-count,
body.beta-tester-gold .cash-chip,
body.beta-tester-gold .chip-usd,
body.beta-tester-gold .chip-medida,
body.beta-tester-gold .chip-modif,
body.beta-tester-gold .mixto-btn-restante,
body.beta-tester-gold .btn-desc-preset,
body.beta-tester-gold .split-btn-quick-move,
body.beta-tester-gold .btn-mesa-size,
body.beta-tester-gold #btnPinClear,
body.beta-tester-gold #btnPinDel {
  background: linear-gradient(180deg, #2E2E36 0%, #1C1C22 100%) !important;
  border: 1px solid #52525B !important;
  border-bottom: 4px solid #09090B !important;
  border-radius: 10px !important;
  color: #F4F4F5 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.beta-tester-gold .calc-key:hover,
body.beta-tester-gold .num-btn:hover,
body.beta-tester-gold .numeric-keypad button:hover,
body.beta-tester-gold .btn-pin-key:hover,
body.beta-tester-gold .btn-qty:hover,
body.beta-tester-gold .btn-balde-count:hover,
body.beta-tester-gold .btn-split-counter:hover,
body.beta-tester-gold .btn-cap-step:hover,
body.beta-tester-gold .btn-cap-quick:hover,
body.beta-tester-gold .btn-count:hover,
body.beta-tester-gold .cash-chip:hover,
body.beta-tester-gold .chip-usd:hover,
body.beta-tester-gold .chip-medida:hover,
body.beta-tester-gold .chip-modif:hover,
body.beta-tester-gold .mixto-btn-restante:hover,
body.beta-tester-gold .btn-desc-preset:hover,
body.beta-tester-gold .split-btn-quick-move:hover,
body.beta-tester-gold .btn-mesa-size:hover,
body.beta-tester-gold #btnPinClear:hover,
body.beta-tester-gold #btnPinDel:hover {
  border-color: #D4AF37 !important;
  color: #FEF08A !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 12px rgba(212, 175, 55, 0.3) !important;
}

body.beta-tester-gold .calc-key:active,
body.beta-tester-gold .num-btn:active,
body.beta-tester-gold .numeric-keypad button:active,
body.beta-tester-gold .btn-pin-key:active,
body.beta-tester-gold .btn-qty:active,
body.beta-tester-gold .btn-balde-count:active,
body.beta-tester-gold .btn-split-counter:active,
body.beta-tester-gold .btn-cap-step:active,
body.beta-tester-gold .btn-cap-quick:active,
body.beta-tester-gold .btn-count:active,
body.beta-tester-gold .cash-chip:active,
body.beta-tester-gold .chip-usd:active,
body.beta-tester-gold .chip-medida:active,
body.beta-tester-gold .chip-modif:active,
body.beta-tester-gold .mixto-btn-restante:active,
body.beta-tester-gold .btn-desc-preset:active,
body.beta-tester-gold .split-btn-quick-move:active,
body.beta-tester-gold .btn-mesa-size:active,
body.beta-tester-gold #btnPinClear:active,
body.beta-tester-gold #btnPinDel:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
}

/* -------------------------------------------------------------------------
   7. BOTONES ESPECÍFICOS DE COMANDA, MODIFICADORES Y COMANDERO
   ------------------------------------------------------------------------- */
body.beta-tester-gold #comanda-panel button,
body.beta-tester-gold .comanda-actions button,
body.beta-tester-gold .ticket-action-buttons button,
body.beta-tester-gold .btn-btn-cmd,
body.beta-tester-gold .btn-item-tool,
body.beta-tester-gold .btn-separar-mini,
body.beta-tester-gold .btn-toggle-modo-hh,
body.beta-tester-gold .btn-caja-op,
body.beta-tester-gold .btn-quick-action,
body.beta-tester-gold .btn-db-action,
body.beta-tester-gold .btn-edit-cliente-header,
body.beta-tester-gold .btn-volver-categorias,
body.beta-tester-gold .variante-option-card,
body.beta-tester-gold .btn-toggle-86,
body.beta-tester-gold .btn-admin-panel-trigger,
body.beta-tester-gold .btn-bell {
  background: linear-gradient(180deg, #27272A 0%, #18181B 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  border-bottom: 3px solid #09090B !important;
  border-radius: 10px !important;
  color: #FEF08A !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 175, 55, 0.25) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.beta-tester-gold #comanda-panel button:hover,
body.beta-tester-gold .comanda-actions button:hover,
body.beta-tester-gold .ticket-action-buttons button:hover,
body.beta-tester-gold .btn-btn-cmd:hover,
body.beta-tester-gold .btn-item-tool:hover,
body.beta-tester-gold .btn-separar-mini:hover,
body.beta-tester-gold .btn-toggle-modo-hh:hover,
body.beta-tester-gold .btn-caja-op:hover,
body.beta-tester-gold .btn-quick-action:hover,
body.beta-tester-gold .btn-db-action:hover,
body.beta-tester-gold .btn-edit-cliente-header:hover,
body.beta-tester-gold .btn-volver-categorias:hover,
body.beta-tester-gold .variante-option-card:hover,
body.beta-tester-gold .btn-toggle-86:hover,
body.beta-tester-gold .btn-admin-panel-trigger:hover,
body.beta-tester-gold .btn-bell:hover {
  border-color: #FDE047 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 12px rgba(212, 175, 55, 0.35) !important;
}

body.beta-tester-gold #comanda-panel button:active,
body.beta-tester-gold .comanda-actions button:active,
body.beta-tester-gold .ticket-action-buttons button:active,
body.beta-tester-gold .btn-btn-cmd:active,
body.beta-tester-gold .btn-item-tool:active,
body.beta-tester-gold .btn-separar-mini:active,
body.beta-tester-gold .btn-toggle-modo-hh:active,
body.beta-tester-gold .btn-caja-op:active,
body.beta-tester-gold .btn-quick-action:active,
body.beta-tester-gold .btn-db-action:active,
body.beta-tester-gold .btn-edit-cliente-header:active,
body.beta-tester-gold .btn-volver-categorias:active,
body.beta-tester-gold .variante-option-card:active,
body.beta-tester-gold .btn-toggle-86:active,
body.beta-tester-gold .btn-admin-panel-trigger:active,
body.beta-tester-gold .btn-bell:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
}

/* -------------------------------------------------------------------------
   8. BOTONES FLOTANTES Y MÓVILES (3D FABs)
   ------------------------------------------------------------------------- */
body.beta-tester-gold .mob-float-btn,
body.beta-tester-gold .floating-btn,
body.beta-tester-gold .fab,
body.beta-tester-gold .btn-floating {
  background: linear-gradient(180deg, #F9E7A2 0%, #D4AF37 50%, #AA820A 100%) !important;
  border: 1px solid #FFF3B8 !important;
  border-bottom: 4px solid #684F05 !important;
  border-radius: 9999px !important;
  color: #241802 !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 55, 0.4) !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.beta-tester-gold .mob-float-btn:hover,
body.beta-tester-gold .floating-btn:hover,
body.beta-tester-gold .fab:hover,
body.beta-tester-gold .btn-floating:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(212, 175, 55, 0.6) !important;
}

body.beta-tester-gold .mob-float-btn:active,
body.beta-tester-gold .floating-btn:active,
body.beta-tester-gold .fab:active,
body.beta-tester-gold .btn-floating:active {
  transform: translateY(3px) scale(0.98) !important;
  border-bottom-width: 1px !important;
}

/* -------------------------------------------------------------------------
   9. TODOS LOS BOTONES DENTRO DE MODALES Y DIÁLOGOS
   ------------------------------------------------------------------------- */
body.beta-tester-gold .modal button,
body.beta-tester-gold #modalContainer button,
body.beta-tester-gold .modal-footer button,
body.beta-tester-gold .modal-header button,
body.beta-tester-gold .modal-body button,
body.beta-tester-gold .dev-modal-action {
  border-radius: 10px !important;
}




/* =============================================================================
   SISTEMA MULTI-TEMA & MODIFICADOR 2D / 3D (POR RESTAURANTE)
   ============================================================================= */

/* Estilos de tarjetas y selector */
.theme-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.theme-option-card.active {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4) !important;
}
.theme-option-card.active .badge-theme-active {
  display: inline-block !important;
}

/* =============================================================================
   MODIFICADOR DIMENSIONAL: 2D PLANO vs 3D TÁCTIL
   ============================================================================= */
/* 2D: Bordes delgados, sin relieve de 4px, compresión suave scale(0.98) */
body.dim-2d button,
body.dim-2d .btn,
body.dim-2d a.btn,
body.dim-2d [role="button"],
body.dim-2d input[type="button"],
body.dim-2d input[type="submit"] {
  border-bottom-width: 1px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

body.dim-2d button:active,
body.dim-2d .btn:active,
body.dim-2d a.btn:active,
body.dim-2d [role="button"]:active {
  transform: scale(0.98) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* 3D: Relieve 4px rígido y pulsación física translateY(3px) */
body.dim-3d button:active,
body.dim-3d .btn:active,
body.dim-3d a.btn:active,
body.dim-3d [role="button"]:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
}

/* =============================================================================
   TEMA 1: 👑 ORO CHAMPAGNE & NOIR IMPERIAL
   Clases: body.theme-gold, body.theme-gold-3d, body.beta-tester-gold
   ============================================================================= */
body.theme-gold,
body.theme-gold-3d,
body.beta-tester-gold {
  --primary: #D4AF37;
  --primary-glow: #FDE047;
}

body.theme-gold button,
body.theme-gold .btn,
body.theme-gold-3d button,
body.theme-gold-3d .btn,
body.beta-tester-gold button,
body.beta-tester-gold .btn {
  background: linear-gradient(180deg, #27272A 0%, #18181B 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-bottom: 3px solid #09090B !important;
  border-radius: 10px !important;
  color: #FEF08A !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-gold button:hover,
body.theme-gold .btn:hover,
body.theme-gold-3d button:hover,
body.theme-gold-3d .btn:hover,
body.beta-tester-gold button:hover,
body.beta-tester-gold .btn:hover {
  border-color: #D4AF37 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25) !important;
}

body.theme-gold .btn-pri,
body.theme-gold .btn-primary,
body.theme-gold .btn-checkout,
body.theme-gold #btn-checkout,
body.theme-gold #btnPagarModal,
body.theme-gold #btnConfirmarCobro,
body.theme-gold #btnPagarComanda,
body.theme-gold #btnFinalizarCobro,
body.theme-gold #btnCobrar,
body.theme-gold .cobrar,
body.theme-gold .btn-cobro,
body.theme-gold .btn-login-submit,
body.theme-gold #btnLoginSubmit,
body.theme-gold .btn-pay-split,
body.theme-gold .guardar,
body.theme-gold .btn-save-plan,
body.theme-gold #btnGuardarPlano,
body.theme-gold button[type="submit"],
body.theme-gold-3d .btn-pri,
body.theme-gold-3d .btn-primary,
body.theme-gold-3d .btn-checkout,
body.theme-gold-3d #btn-checkout,
body.theme-gold-3d #btnPagarModal,
body.theme-gold-3d #btnConfirmarCobro,
body.theme-gold-3d #btnPagarComanda,
body.theme-gold-3d #btnFinalizarCobro,
body.theme-gold-3d #btnCobrar,
body.theme-gold-3d .cobrar,
body.theme-gold-3d .btn-cobro,
body.theme-gold-3d .btn-login-submit,
body.theme-gold-3d #btnLoginSubmit,
body.theme-gold-3d .btn-pay-split,
body.theme-gold-3d .guardar,
body.theme-gold-3d .btn-save-plan,
body.theme-gold-3d #btnGuardarPlano,
body.theme-gold-3d button[type="submit"],
body.beta-tester-gold .btn-pri,
body.beta-tester-gold .btn-primary,
body.beta-tester-gold .btn-checkout,
body.beta-tester-gold #btn-checkout,
body.beta-tester-gold #btnPagarModal,
body.beta-tester-gold #btnConfirmarCobro,
body.beta-tester-gold #btnPagarComanda,
body.beta-tester-gold #btnFinalizarCobro,
body.beta-tester-gold #btnCobrar,
body.beta-tester-gold .cobrar,
body.beta-tester-gold .btn-cobro,
body.beta-tester-gold .btn-login-submit,
body.beta-tester-gold #btnLoginSubmit,
body.beta-tester-gold .btn-pay-split,
body.beta-tester-gold .guardar,
body.beta-tester-gold .btn-save-plan,
body.beta-tester-gold #btnGuardarPlano,
body.beta-tester-gold button[type="submit"] {
  background: linear-gradient(180deg, #F9E7A2 0%, #D4AF37 50%, #AA820A 100%) !important;
  border: 1px solid #FFF3B8 !important;
  border-bottom: 4px solid #684F05 !important;
  border-radius: 12px !important;
  color: #241802 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 5px 16px rgba(212, 175, 55, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* =============================================================================
   TEMA 2: 🍂 BISTRO SALVIA NÓRDICO & TERRACOTA (NUEVO)
   Clase: body.theme-bistro-salvia
   ============================================================================= */
body.theme-bistro-salvia {
  --primary: #E07A5F;
  --primary-glow: #F4A261;
}

body.theme-bistro-salvia button,
body.theme-bistro-salvia .btn,
body.theme-bistro-salvia a.btn,
body.theme-bistro-salvia [role="button"],
body.theme-bistro-salvia input[type="button"],
body.theme-bistro-salvia input[type="submit"] {
  background: linear-gradient(180deg, #2F3E46 0%, #1E272C 100%) !important;
  border: 1px solid rgba(129, 178, 154, 0.4) !important;
  border-bottom: 3px solid #141C20 !important;
  border-radius: 10px !important;
  color: #CAD2C5 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-bistro-salvia button:hover,
body.theme-bistro-salvia .btn:hover {
  border-color: #F4A261 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(244, 162, 97, 0.3) !important;
}

body.theme-bistro-salvia .btn-pri,
body.theme-bistro-salvia .btn-primary,
body.theme-bistro-salvia .btn-checkout,
body.theme-bistro-salvia #btn-checkout,
body.theme-bistro-salvia #btnPagarModal,
body.theme-bistro-salvia #btnConfirmarCobro,
body.theme-bistro-salvia #btnPagarComanda,
body.theme-bistro-salvia #btnFinalizarCobro,
body.theme-bistro-salvia #btnCobrar,
body.theme-bistro-salvia .cobrar,
body.theme-bistro-salvia .btn-cobro,
body.theme-bistro-salvia .btn-login-submit,
body.theme-bistro-salvia #btnLoginSubmit,
body.theme-bistro-salvia .btn-pay-split,
body.theme-bistro-salvia .guardar,
body.theme-bistro-salvia .btn-save-plan,
body.theme-bistro-salvia #btnGuardarPlano,
body.theme-bistro-salvia button[type="submit"] {
  background: linear-gradient(180deg, #F4A261 0%, #E07A5F 50%, #C85A32 100%) !important;
  border: 1px solid #FFE3D8 !important;
  border-bottom: 4px solid #8B3A1C !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 5px 16px rgba(224, 122, 95, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

body.theme-bistro-salvia .btn-enviar-cocina,
body.theme-bistro-salvia #btnEnviarCocina,
body.theme-bistro-salvia #btnEnviarComandaCocina,
body.theme-bistro-salvia .btn-cocina,
body.theme-bistro-salvia .btn-kds-ready {
  background: linear-gradient(180deg, #81B29A 0%, #588157 100%) !important;
  border: 1px solid #A3B18A !important;
  border-bottom: 4px solid #344E41 !important;
  color: #E9F5ED !important;
  font-weight: 800 !important;
}

body.theme-bistro-salvia .nav-btn.active,
body.theme-bistro-salvia .tab-btn.active,
body.theme-bistro-salvia .tab-button.active,
body.theme-bistro-salvia .cat-chip.active,
body.theme-bistro-salvia .db-pill.active {
  background: linear-gradient(180deg, #F4A261 0%, #E07A5F 100%) !important;
  border: 1px solid #FFE3D8 !important;
  border-bottom: 3px solid #8B3A1C !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* =============================================================================
   TEMA 3: ☕ CAFÉ ESPRESSO & CARAMELO TOSTADO (NUEVO)
   Clase: body.theme-cafe-caramelo
   ============================================================================= */
body.theme-cafe-caramelo {
  --primary: #D97706;
  --primary-glow: #FBBF24;
}

body.theme-cafe-caramelo button,
body.theme-cafe-caramelo .btn,
body.theme-cafe-caramelo a.btn,
body.theme-cafe-caramelo [role="button"],
body.theme-cafe-caramelo input[type="button"],
body.theme-cafe-caramelo input[type="submit"] {
  background: linear-gradient(180deg, #271410 0%, #1B120C 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
  border-bottom: 3px solid #0F0906 !important;
  border-radius: 10px !important;
  color: #FEF3C7 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-cafe-caramelo button:hover,
body.theme-cafe-caramelo .btn:hover {
  border-color: #FBBF24 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.35) !important;
}

body.theme-cafe-caramelo .btn-pri,
body.theme-cafe-caramelo .btn-primary,
body.theme-cafe-caramelo .btn-checkout,
body.theme-cafe-caramelo #btn-checkout,
body.theme-cafe-caramelo #btnPagarModal,
body.theme-cafe-caramelo #btnConfirmarCobro,
body.theme-cafe-caramelo #btnPagarComanda,
body.theme-cafe-caramelo #btnFinalizarCobro,
body.theme-cafe-caramelo #btnCobrar,
body.theme-cafe-caramelo .cobrar,
body.theme-cafe-caramelo .btn-cobro,
body.theme-cafe-caramelo .btn-login-submit,
body.theme-cafe-caramelo #btnLoginSubmit,
body.theme-cafe-caramelo .btn-pay-split,
body.theme-cafe-caramelo .guardar,
body.theme-cafe-caramelo .btn-save-plan,
body.theme-cafe-caramelo #btnGuardarPlano,
body.theme-cafe-caramelo button[type="submit"] {
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 50%, #B45309 100%) !important;
  border: 1px solid #FEF3C7 !important;
  border-bottom: 4px solid #78350F !important;
  border-radius: 12px !important;
  color: #451A03 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 5px 16px rgba(217, 119, 6, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

body.theme-cafe-caramelo .btn-enviar-cocina,
body.theme-cafe-caramelo #btnEnviarCocina,
body.theme-cafe-caramelo #btnEnviarComandaCocina,
body.theme-cafe-caramelo .btn-cocina,
body.theme-cafe-caramelo .btn-kds-ready {
  background: linear-gradient(180deg, #3E2723 0%, #271410 100%) !important;
  border: 1px solid #D97706 !important;
  border-bottom: 4px solid #1B120C !important;
  color: #FEF3C7 !important;
  font-weight: 800 !important;
}

body.theme-cafe-caramelo .nav-btn.active,
body.theme-cafe-caramelo .tab-btn.active,
body.theme-cafe-caramelo .tab-button.active,
body.theme-cafe-caramelo .cat-chip.active,
body.theme-cafe-caramelo .db-pill.active {
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 100%) !important;
  border: 1px solid #FEF3C7 !important;
  border-bottom: 3px solid #78350F !important;
  color: #451A03 !important;
  font-weight: 800 !important;
}

/* =============================================================================
   TEMA 4: 💎 NEÓN CYBERPUNK / ZAFIRO
   Clase: body.theme-neon, body.theme-neon-3d
   ============================================================================= */
body.theme-neon,
body.theme-neon-3d {
  --primary: #0284C7;
  --primary-glow: #38BDF8;
}

body.theme-neon button,
body.theme-neon .btn,
body.theme-neon-3d button,
body.theme-neon-3d .btn {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-bottom: 3px solid #0369A1 !important;
  border-radius: 10px !important;
  color: #7DD3FC !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-neon button:hover,
body.theme-neon .btn:hover,
body.theme-neon-3d button:hover,
body.theme-neon-3d .btn:hover {
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(56, 189, 248, 0.35) !important;
}

body.theme-neon .btn-pri,
body.theme-neon .btn-primary,
body.theme-neon .btn-checkout,
body.theme-neon #btn-checkout,
body.theme-neon #btnPagarModal,
body.theme-neon #btnConfirmarCobro,
body.theme-neon #btnPagarComanda,
body.theme-neon #btnFinalizarCobro,
body.theme-neon #btnCobrar,
body.theme-neon .cobrar,
body.theme-neon .btn-cobro,
body.theme-neon .btn-login-submit,
body.theme-neon #btnLoginSubmit,
body.theme-neon .btn-pay-split,
body.theme-neon .guardar,
body.theme-neon .btn-save-plan,
body.theme-neon #btnGuardarPlano,
body.theme-neon button[type="submit"],
body.theme-neon-3d .btn-pri,
body.theme-neon-3d .btn-primary,
body.theme-neon-3d .btn-checkout,
body.theme-neon-3d #btn-checkout,
body.theme-neon-3d #btnPagarModal,
body.theme-neon-3d #btnConfirmarCobro,
body.theme-neon-3d #btnPagarComanda,
body.theme-neon-3d #btnFinalizarCobro,
body.theme-neon-3d #btnCobrar,
body.theme-neon-3d .cobrar,
body.theme-neon-3d .btn-cobro,
body.theme-neon-3d .btn-login-submit,
body.theme-neon-3d #btnLoginSubmit,
body.theme-neon-3d .btn-pay-split,
body.theme-neon-3d .guardar,
body.theme-neon-3d .btn-save-plan,
body.theme-neon-3d #btnGuardarPlano,
body.theme-neon-3d button[type="submit"] {
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 50%, #0369A1 100%) !important;
  border: 1px solid #BAE6FD !important;
  border-bottom: 4px solid #0C4A6E !important;
  border-radius: 12px !important;
  color: #082F49 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 5px 18px rgba(56, 189, 248, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* =============================================================================
   TEMA 5: 🌿 ESMERALDA ORGÁNICA & JADE ROYALE
   Clase: body.theme-emerald, body.theme-emerald-3d
   ============================================================================= */
body.theme-emerald,
body.theme-emerald-3d {
  --primary: #10B981;
  --primary-glow: #34D399;
}

body.theme-emerald button,
body.theme-emerald .btn,
body.theme-emerald-3d button,
body.theme-emerald-3d .btn {
  background: linear-gradient(180deg, #064E3B 0%, #022C22 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  border-bottom: 3px solid #065F46 !important;
  border-radius: 10px !important;
  color: #A7F3D0 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-emerald button:hover,
body.theme-emerald .btn:hover,
body.theme-emerald-3d button:hover,
body.theme-emerald-3d .btn:hover {
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(52, 211, 153, 0.35) !important;
}

body.theme-emerald .btn-pri,
body.theme-emerald .btn-primary,
body.theme-emerald .btn-checkout,
body.theme-emerald #btn-checkout,
body.theme-emerald #btnPagarModal,
body.theme-emerald #btnConfirmarCobro,
body.theme-emerald #btnPagarComanda,
body.theme-emerald #btnFinalizarCobro,
body.theme-emerald #btnCobrar,
body.theme-emerald .cobrar,
body.theme-emerald .btn-cobro,
body.theme-emerald .btn-login-submit,
body.theme-emerald #btnLoginSubmit,
body.theme-emerald .btn-pay-split,
body.theme-emerald .guardar,
body.theme-emerald .btn-save-plan,
body.theme-emerald #btnGuardarPlano,
body.theme-emerald button[type="submit"],
body.theme-emerald-3d .btn-pri,
body.theme-emerald-3d .btn-primary,
body.theme-emerald-3d .btn-checkout,
body.theme-emerald-3d #btn-checkout,
body.theme-emerald-3d #btnPagarModal,
body.theme-emerald-3d #btnConfirmarCobro,
body.theme-emerald-3d #btnPagarComanda,
body.theme-emerald-3d #btnFinalizarCobro,
body.theme-emerald-3d #btnCobrar,
body.theme-emerald-3d .cobrar,
body.theme-emerald-3d .btn-cobro,
body.theme-emerald-3d .btn-login-submit,
body.theme-emerald-3d #btnLoginSubmit,
body.theme-emerald-3d .btn-pay-split,
body.theme-emerald-3d .guardar,
body.theme-emerald-3d .btn-save-plan,
body.theme-emerald-3d #btnGuardarPlano,
body.theme-emerald-3d button[type="submit"] {
  background: linear-gradient(180deg, #6EE7B7 0%, #10B981 50%, #047857 100%) !important;
  border: 1px solid #D1FAE5 !important;
  border-bottom: 4px solid #064E3B !important;
  border-radius: 12px !important;
  color: #022C22 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 5px 18px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* =============================================================================
   TEMA 6: ⚡ AMATISTA CÓSMICA & OBSIDIANA
   Clase: body.theme-amethyst, body.theme-amethyst-3d
   ============================================================================= */
body.theme-amethyst,
body.theme-amethyst-3d {
  --primary: #8B5CF6;
  --primary-glow: #C084FC;
}

body.theme-amethyst button,
body.theme-amethyst .btn,
body.theme-amethyst-3d button,
body.theme-amethyst-3d .btn {
  background: linear-gradient(180deg, #3B0764 0%, #1E1035 100%) !important;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
  border-bottom: 3px solid #581C87 !important;
  border-radius: 10px !important;
  color: #E9D5FF !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-amethyst button:hover,
body.theme-amethyst .btn:hover,
body.theme-amethyst-3d button:hover,
body.theme-amethyst-3d .btn:hover {
  border-color: #C084FC !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(192, 132, 252, 0.35) !important;
}

body.theme-amethyst .btn-pri,
body.theme-amethyst .btn-primary,
body.theme-amethyst .btn-checkout,
body.theme-amethyst #btn-checkout,
body.theme-amethyst #btnPagarModal,
body.theme-amethyst #btnConfirmarCobro,
body.theme-amethyst #btnPagarComanda,
body.theme-amethyst #btnFinalizarCobro,
body.theme-amethyst #btnCobrar,
body.theme-amethyst .cobrar,
body.theme-amethyst .btn-cobro,
body.theme-amethyst .btn-login-submit,
body.theme-amethyst #btnLoginSubmit,
body.theme-amethyst .btn-pay-split,
body.theme-amethyst .guardar,
body.theme-amethyst .btn-save-plan,
body.theme-amethyst #btnGuardarPlano,
body.theme-amethyst button[type="submit"],
body.theme-amethyst-3d .btn-pri,
body.theme-amethyst-3d .btn-primary,
body.theme-amethyst-3d .btn-checkout,
body.theme-amethyst-3d #btn-checkout,
body.theme-amethyst-3d #btnPagarModal,
body.theme-amethyst-3d #btnConfirmarCobro,
body.theme-amethyst-3d #btnPagarComanda,
body.theme-amethyst-3d #btnFinalizarCobro,
body.theme-amethyst-3d #btnCobrar,
body.theme-amethyst-3d .cobrar,
body.theme-amethyst-3d .btn-cobro,
body.theme-amethyst-3d .btn-login-submit,
body.theme-amethyst-3d #btnLoginSubmit,
body.theme-amethyst-3d .btn-pay-split,
body.theme-amethyst-3d .guardar,
body.theme-amethyst-3d .btn-save-plan,
body.theme-amethyst-3d #btnGuardarPlano,
body.theme-amethyst-3d button[type="submit"] {
  background: linear-gradient(180deg, #C084FC 0%, #8B5CF6 50%, #6D28D9 100%) !important;
  border: 1px solid #EDE9FE !important;
  border-bottom: 4px solid #4C1D95 !important;
  border-radius: 12px !important;
  color: #2E1065 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 5px 18px rgba(139, 92, 246, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}



/* =============================================================================
   TEMA EXTRA 1: 🪙 PLATA TITANIO & PLATINO PURO (NUEVO)
   Clase: body.theme-plata-titanio
   ============================================================================= */
body.theme-plata-titanio {
  --primary: #94A3B8;
  --primary-glow: #F1F5F9;
}

body.theme-plata-titanio button,
body.theme-plata-titanio .btn,
body.theme-plata-titanio a.btn,
body.theme-plata-titanio [role="button"],
body.theme-plata-titanio input[type="button"],
body.theme-plata-titanio input[type="submit"] {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important;
  border: 1px solid rgba(226, 232, 240, 0.4) !important;
  border-bottom: 3px solid #020617 !important;
  border-radius: 10px !important;
  color: #F1F5F9 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-plata-titanio button:hover,
body.theme-plata-titanio .btn:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(226, 232, 240, 0.35) !important;
}

body.theme-plata-titanio .btn-pri,
body.theme-plata-titanio .btn-primary,
body.theme-plata-titanio .btn-checkout,
body.theme-plata-titanio #btn-checkout,
body.theme-plata-titanio #btnPagarModal,
body.theme-plata-titanio #btnConfirmarCobro,
body.theme-plata-titanio #btnPagarComanda,
body.theme-plata-titanio #btnFinalizarCobro,
body.theme-plata-titanio #btnCobrar,
body.theme-plata-titanio .cobrar,
body.theme-plata-titanio .btn-cobro,
body.theme-plata-titanio .btn-login-submit,
body.theme-plata-titanio #btnLoginSubmit,
body.theme-plata-titanio .btn-pay-split,
body.theme-plata-titanio .guardar,
body.theme-plata-titanio .btn-save-plan,
body.theme-plata-titanio #btnGuardarPlano,
body.theme-plata-titanio button[type="submit"] {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 45%, #94A3B8 100%) !important;
  border: 1px solid #FFFFFF !important;
  border-bottom: 4px solid #475569 !important;
  border-radius: 12px !important;
  color: #0F172A !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 5px 16px rgba(148, 163, 184, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

body.theme-plata-titanio .btn-enviar-cocina,
body.theme-plata-titanio #btnEnviarCocina,
body.theme-plata-titanio #btnEnviarComandaCocina,
body.theme-plata-titanio .btn-cocina,
body.theme-plata-titanio .btn-kds-ready {
  background: linear-gradient(180deg, #334155 0%, #1E293B 100%) !important;
  border: 1px solid #E2E8F0 !important;
  border-bottom: 4px solid #0F172A !important;
  color: #F8FAFC !important;
  font-weight: 800 !important;
}

body.theme-plata-titanio .nav-btn.active,
body.theme-plata-titanio .tab-btn.active,
body.theme-plata-titanio .tab-button.active,
body.theme-plata-titanio .cat-chip.active,
body.theme-plata-titanio .db-pill.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%) !important;
  border: 1px solid #FFFFFF !important;
  border-bottom: 3px solid #64748B !important;
  color: #0F172A !important;
  font-weight: 800 !important;
}

/* =============================================================================
   TEMA EXTRA 2: 🌫️ CARBÓN GRAFITO & ACERO AHUMADO (NUEVO)
   Clase: body.theme-carbon-grafito
   ============================================================================= */
body.theme-carbon-grafito {
  --primary: #64748B;
  --primary-glow: #94A3B8;
}

body.theme-carbon-grafito button,
body.theme-carbon-grafito .btn,
body.theme-carbon-grafito a.btn,
body.theme-carbon-grafito [role="button"],
body.theme-carbon-grafito input[type="button"],
body.theme-carbon-grafito input[type="submit"] {
  background: linear-gradient(180deg, #18181B 0%, #09090B 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-bottom: 3px solid #000000 !important;
  border-radius: 10px !important;
  color: #CBD5E1 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-carbon-grafito button:hover,
body.theme-carbon-grafito .btn:hover {
  border-color: #CBD5E1 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(148, 163, 184, 0.25) !important;
}

body.theme-carbon-grafito .btn-pri,
body.theme-carbon-grafito .btn-primary,
body.theme-carbon-grafito .btn-checkout,
body.theme-carbon-grafito #btn-checkout,
body.theme-carbon-grafito #btnPagarModal,
body.theme-carbon-grafito #btnConfirmarCobro,
body.theme-carbon-grafito #btnPagarComanda,
body.theme-carbon-grafito #btnFinalizarCobro,
body.theme-carbon-grafito #btnCobrar,
body.theme-carbon-grafito .cobrar,
body.theme-carbon-grafito .btn-cobro,
body.theme-carbon-grafito .btn-login-submit,
body.theme-carbon-grafito #btnLoginSubmit,
body.theme-carbon-grafito .btn-pay-split,
body.theme-carbon-grafito .guardar,
body.theme-carbon-grafito .btn-save-plan,
body.theme-carbon-grafito #btnGuardarPlano,
body.theme-carbon-grafito button[type="submit"] {
  background: linear-gradient(180deg, #64748B 0%, #475569 50%, #334155 100%) !important;
  border: 1px solid #94A3B8 !important;
  border-bottom: 4px solid #1E293B !important;
  border-radius: 12px !important;
  color: #F8FAFC !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 5px 16px rgba(71, 85, 105, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

body.theme-carbon-grafito .btn-enviar-cocina,
body.theme-carbon-grafito #btnEnviarCocina,
body.theme-carbon-grafito #btnEnviarComandaCocina,
body.theme-carbon-grafito .btn-cocina,
body.theme-carbon-grafito .btn-kds-ready {
  background: linear-gradient(180deg, #27272A 0%, #09090B 100%) !important;
  border: 1px solid #64748B !important;
  border-bottom: 4px solid #000000 !important;
  color: #E2E8F0 !important;
  font-weight: 800 !important;
}

body.theme-carbon-grafito .nav-btn.active,
body.theme-carbon-grafito .tab-btn.active,
body.theme-carbon-grafito .tab-button.active,
body.theme-carbon-grafito .cat-chip.active,
body.theme-carbon-grafito .db-pill.active {
  background: linear-gradient(180deg, #64748B 0%, #334155 100%) !important;
  border: 1px solid #94A3B8 !important;
  border-bottom: 3px solid #1E293B !important;
  color: #F8FAFC !important;
  font-weight: 800 !important;
}

/* =============================================================================
   TEMA EXTRA 3: 🍷 BORGOÑA IMPERIAL & ORO ROSA (NUEVO)
   Clase: body.theme-borgona-imperial
   ============================================================================= */
body.theme-borgona-imperial {
  --primary: #E11D48;
  --primary-glow: #FB7185;
}

body.theme-borgona-imperial button,
body.theme-borgona-imperial .btn,
body.theme-borgona-imperial a.btn,
body.theme-borgona-imperial [role="button"],
body.theme-borgona-imperial input[type="button"],
body.theme-borgona-imperial input[type="submit"] {
  background: linear-gradient(180deg, #2D0C14 0%, #150308 100%) !important;
  border: 1px solid rgba(251, 113, 133, 0.35) !important;
  border-bottom: 3px solid #0A0104 !important;
  border-radius: 10px !important;
  color: #FECDD3 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-borgona-imperial button:hover,
body.theme-borgona-imperial .btn:hover {
  border-color: #FB7185 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(244, 63, 94, 0.35) !important;
}

body.theme-borgona-imperial .btn-pri,
body.theme-borgona-imperial .btn-primary,
body.theme-borgona-imperial .btn-checkout,
body.theme-borgona-imperial #btn-checkout,
body.theme-borgona-imperial #btnPagarModal,
body.theme-borgona-imperial #btnConfirmarCobro,
body.theme-borgona-imperial #btnPagarComanda,
body.theme-borgona-imperial #btnFinalizarCobro,
body.theme-borgona-imperial #btnCobrar,
body.theme-borgona-imperial .cobrar,
body.theme-borgona-imperial .btn-cobro,
body.theme-borgona-imperial .btn-login-submit,
body.theme-borgona-imperial #btnLoginSubmit,
body.theme-borgona-imperial .btn-pay-split,
body.theme-borgona-imperial .guardar,
body.theme-borgona-imperial .btn-save-plan,
body.theme-borgona-imperial #btnGuardarPlano,
body.theme-borgona-imperial button[type="submit"] {
  background: linear-gradient(180deg, #F43F5E 0%, #BE123C 50%, #881337 100%) !important;
  border: 1px solid #FFE4E6 !important;
  border-bottom: 4px solid #4C0519 !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 5px 16px rgba(225, 29, 72, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}

body.theme-borgona-imperial .btn-enviar-cocina,
body.theme-borgona-imperial #btnEnviarCocina,
body.theme-borgona-imperial #btnEnviarComandaCocina,
body.theme-borgona-imperial .btn-cocina,
body.theme-borgona-imperial .btn-kds-ready {
  background: linear-gradient(180deg, #4C0519 0%, #150308 100%) !important;
  border: 1px solid #FB7185 !important;
  border-bottom: 4px solid #0A0104 !important;
  color: #FFE4E6 !important;
  font-weight: 800 !important;
}

body.theme-borgona-imperial .nav-btn.active,
body.theme-borgona-imperial .tab-btn.active,
body.theme-borgona-imperial .tab-button.active,
body.theme-borgona-imperial .cat-chip.active,
body.theme-borgona-imperial .db-pill.active {
  background: linear-gradient(180deg, #F43F5E 0%, #BE123C 100%) !important;
  border: 1px solid #FFE4E6 !important;
  border-bottom: 3px solid #4C0519 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* =============================================================================
   TEMA EXTRA 4: 🌸 MÁRMOL & CUARZO MINIMAL (NUEVO)
   Clase: body.theme-cuarzo-minimal
   ============================================================================= */
body.theme-cuarzo-minimal {
  --primary: #F472B6;
  --primary-glow: #FBCFE8;
}

body.theme-cuarzo-minimal button,
body.theme-cuarzo-minimal .btn,
body.theme-cuarzo-minimal a.btn,
body.theme-cuarzo-minimal [role="button"],
body.theme-cuarzo-minimal input[type="button"],
body.theme-cuarzo-minimal input[type="submit"] {
  background: linear-gradient(180deg, #261922 0%, #130A10 100%) !important;
  border: 1px solid rgba(244, 114, 182, 0.4) !important;
  border-bottom: 3px solid #0A0307 !important;
  border-radius: 10px !important;
  color: #FCE7F3 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-cuarzo-minimal button:hover,
body.theme-cuarzo-minimal .btn:hover {
  border-color: #F472B6 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(244, 114, 182, 0.35) !important;
}

body.theme-cuarzo-minimal .btn-pri,
body.theme-cuarzo-minimal .btn-primary,
body.theme-cuarzo-minimal .btn-checkout,
body.theme-cuarzo-minimal #btn-checkout,
body.theme-cuarzo-minimal #btnPagarModal,
body.theme-cuarzo-minimal #btnConfirmarCobro,
body.theme-cuarzo-minimal #btnPagarComanda,
body.theme-cuarzo-minimal #btnFinalizarCobro,
body.theme-cuarzo-minimal #btnCobrar,
body.theme-cuarzo-minimal .cobrar,
body.theme-cuarzo-minimal .btn-cobro,
body.theme-cuarzo-minimal .btn-login-submit,
body.theme-cuarzo-minimal #btnLoginSubmit,
body.theme-cuarzo-minimal .btn-pay-split,
body.theme-cuarzo-minimal .guardar,
body.theme-cuarzo-minimal .btn-save-plan,
body.theme-cuarzo-minimal #btnGuardarPlano,
body.theme-cuarzo-minimal button[type="submit"] {
  background: linear-gradient(180deg, #FBCFE8 0%, #F472B6 50%, #DB2777 100%) !important;
  border: 1px solid #FFF1F2 !important;
  border-bottom: 4px solid #831843 !important;
  border-radius: 12px !important;
  color: #500724 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 5px 16px rgba(244, 114, 182, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

body.theme-cuarzo-minimal .btn-enviar-cocina,
body.theme-cuarzo-minimal #btnEnviarCocina,
body.theme-cuarzo-minimal #btnEnviarComandaCocina,
body.theme-cuarzo-minimal .btn-cocina,
body.theme-cuarzo-minimal .btn-kds-ready {
  background: linear-gradient(180deg, #500724 0%, #1A030C 100%) !important;
  border: 1px solid #F472B6 !important;
  border-bottom: 4px solid #0A0104 !important;
  color: #FCE7F3 !important;
  font-weight: 800 !important;
}

body.theme-cuarzo-minimal .nav-btn.active,
body.theme-cuarzo-minimal .tab-btn.active,
body.theme-cuarzo-minimal .tab-button.active,
body.theme-cuarzo-minimal .cat-chip.active,
body.theme-cuarzo-minimal .db-pill.active {
  background: linear-gradient(180deg, #FBCFE8 0%, #F472B6 100%) !important;
  border: 1px solid #FFF1F2 !important;
  border-bottom: 3px solid #831843 !important;
  color: #500724 !important;
  font-weight: 800 !important;
}



/* =============================================================================
   5 NUEVOS TEMAS: MEDITERRÁNEO, MATCHA, COBRE, MACARON & MAGMA
   ============================================================================= */

/* 1. AZUL MEDITERRÁNEO SANTORINI */
body.theme-mediterraneo-santorini {
  --primary: #0284C7;
  --primary-glow: #38BDF8;
}
body.theme-mediterraneo-santorini button,
body.theme-mediterraneo-santorini .btn,
body.theme-mediterraneo-santorini a.btn,
body.theme-mediterraneo-santorini [role="button"],
body.theme-mediterraneo-santorini input[type="button"],
body.theme-mediterraneo-santorini input[type="submit"] {
  background: linear-gradient(180deg, #0C1A30 0%, #060D1A 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-bottom: 3px solid #030712 !important;
  border-radius: 10px !important;
  color: #93C5FD !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}
body.theme-mediterraneo-santorini button:hover,
body.theme-mediterraneo-santorini .btn:hover {
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(56, 189, 248, 0.35) !important;
}
body.theme-mediterraneo-santorini .btn-pri,
body.theme-mediterraneo-santorini .btn-primary,
body.theme-mediterraneo-santorini .btn-checkout,
body.theme-mediterraneo-santorini #btn-checkout,
body.theme-mediterraneo-santorini #btnPagarModal,
body.theme-mediterraneo-santorini #btnConfirmarCobro,
body.theme-mediterraneo-santorini #btnPagarComanda,
body.theme-mediterraneo-santorini #btnFinalizarCobro,
body.theme-mediterraneo-santorini #btnCobrar,
body.theme-mediterraneo-santorini .cobrar,
body.theme-mediterraneo-santorini .btn-cobro,
body.theme-mediterraneo-santorini .btn-login-submit,
body.theme-mediterraneo-santorini #btnLoginSubmit,
body.theme-mediterraneo-santorini .btn-pay-split,
body.theme-mediterraneo-santorini .guardar,
body.theme-mediterraneo-santorini .btn-save-plan,
body.theme-mediterraneo-santorini #btnGuardarPlano,
body.theme-mediterraneo-santorini button[type="submit"] {
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 50%, #1E40AF 100%) !important;
  border: 1px solid #BAE6FD !important;
  border-bottom: 4px solid #172554 !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 5px 16px rgba(2, 132, 199, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}
body.theme-mediterraneo-santorini .btn-enviar-cocina,
body.theme-mediterraneo-santorini #btnEnviarCocina,
body.theme-mediterraneo-santorini #btnEnviarComandaCocina,
body.theme-mediterraneo-santorini .btn-cocina,
body.theme-mediterraneo-santorini .btn-kds-ready {
  background: linear-gradient(180deg, #EA580C 0%, #C2410C 100%) !important;
  border: 1px solid #FFEDD5 !important;
  border-bottom: 4px solid #7C2D12 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
body.theme-mediterraneo-santorini .nav-btn.active,
body.theme-mediterraneo-santorini .tab-btn.active,
body.theme-mediterraneo-santorini .tab-button.active,
body.theme-mediterraneo-santorini .cat-chip.active,
body.theme-mediterraneo-santorini .db-pill.active {
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%) !important;
  border: 1px solid #BAE6FD !important;
  border-bottom: 3px solid #172554 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* 2. MATCHA ZEN & BAMBÚ JAPONÉS */
body.theme-matcha-zen {
  --primary: #84CC16;
  --primary-glow: #A3E635;
}
body.theme-matcha-zen button,
body.theme-matcha-zen .btn,
body.theme-matcha-zen a.btn,
body.theme-matcha-zen [role="button"],
body.theme-matcha-zen input[type="button"],
body.theme-matcha-zen input[type="submit"] {
  background: linear-gradient(180deg, #182218 0%, #0E150F 100%) !important;
  border: 1px solid rgba(163, 230, 53, 0.35) !important;
  border-bottom: 3px solid #050B05 !important;
  border-radius: 10px !important;
  color: #D9F99D !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}
body.theme-matcha-zen button:hover,
body.theme-matcha-zen .btn:hover {
  border-color: #A3E635 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(163, 230, 53, 0.3) !important;
}
body.theme-matcha-zen .btn-pri,
body.theme-matcha-zen .btn-primary,
body.theme-matcha-zen .btn-checkout,
body.theme-matcha-zen #btn-checkout,
body.theme-matcha-zen #btnPagarModal,
body.theme-matcha-zen #btnConfirmarCobro,
body.theme-matcha-zen #btnPagarComanda,
body.theme-matcha-zen #btnFinalizarCobro,
body.theme-matcha-zen #btnCobrar,
body.theme-matcha-zen .cobrar,
body.theme-matcha-zen .btn-cobro,
body.theme-matcha-zen .btn-login-submit,
body.theme-matcha-zen #btnLoginSubmit,
body.theme-matcha-zen .btn-pay-split,
body.theme-matcha-zen .guardar,
body.theme-matcha-zen .btn-save-plan,
body.theme-matcha-zen #btnGuardarPlano,
body.theme-matcha-zen button[type="submit"] {
  background: linear-gradient(180deg, #A3E635 0%, #84CC16 50%, #4D7C0F 100%) !important;
  border: 1px solid #ECFCCB !important;
  border-bottom: 4px solid #365314 !important;
  border-radius: 12px !important;
  color: #14532D !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 5px 16px rgba(132, 204, 22, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}
body.theme-matcha-zen .btn-enviar-cocina,
body.theme-matcha-zen #btnEnviarCocina,
body.theme-matcha-zen #btnEnviarComandaCocina,
body.theme-matcha-zen .btn-cocina,
body.theme-matcha-zen .btn-kds-ready {
  background: linear-gradient(180deg, #D97706 0%, #92400E 100%) !important;
  border: 1px solid #FEF3C7 !important;
  border-bottom: 4px solid #451A03 !important;
  color: #FEF3C7 !important;
  font-weight: 800 !important;
}
body.theme-matcha-zen .nav-btn.active,
body.theme-matcha-zen .tab-btn.active,
body.theme-matcha-zen .tab-button.active,
body.theme-matcha-zen .cat-chip.active,
body.theme-matcha-zen .db-pill.active {
  background: linear-gradient(180deg, #A3E635 0%, #84CC16 100%) !important;
  border: 1px solid #ECFCCB !important;
  border-bottom: 3px solid #365314 !important;
  color: #14532D !important;
  font-weight: 800 !important;
}

/* 3. COBRE AHUMADO & CUERO WHISKEY */
body.theme-cobre-whiskey {
  --primary: #EA580C;
  --primary-glow: #FB923C;
}
body.theme-cobre-whiskey button,
body.theme-cobre-whiskey .btn,
body.theme-cobre-whiskey a.btn,
body.theme-cobre-whiskey [role="button"],
body.theme-cobre-whiskey input[type="button"],
body.theme-cobre-whiskey input[type="submit"] {
  background: linear-gradient(180deg, #24140E 0%, #130A07 100%) !important;
  border: 1px solid rgba(251, 146, 60, 0.4) !important;
  border-bottom: 3px solid #080302 !important;
  border-radius: 10px !important;
  color: #FED7AA !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}
body.theme-cobre-whiskey button:hover,
body.theme-cobre-whiskey .btn:hover {
  border-color: #FB923C !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(234, 88, 12, 0.35) !important;
}
body.theme-cobre-whiskey .btn-pri,
body.theme-cobre-whiskey .btn-primary,
body.theme-cobre-whiskey .btn-checkout,
body.theme-cobre-whiskey #btn-checkout,
body.theme-cobre-whiskey #btnPagarModal,
body.theme-cobre-whiskey #btnConfirmarCobro,
body.theme-cobre-whiskey #btnPagarComanda,
body.theme-cobre-whiskey #btnFinalizarCobro,
body.theme-cobre-whiskey #btnCobrar,
body.theme-cobre-whiskey .cobrar,
body.theme-cobre-whiskey .btn-cobro,
body.theme-cobre-whiskey .btn-login-submit,
body.theme-cobre-whiskey #btnLoginSubmit,
body.theme-cobre-whiskey .btn-pay-split,
body.theme-cobre-whiskey .guardar,
body.theme-cobre-whiskey .btn-save-plan,
body.theme-cobre-whiskey #btnGuardarPlano,
body.theme-cobre-whiskey button[type="submit"] {
  background: linear-gradient(180deg, #FB923C 0%, #EA580C 50%, #9A3412 100%) !important;
  border: 1px solid #FFEDD5 !important;
  border-bottom: 4px solid #7C2D12 !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 5px 16px rgba(234, 88, 12, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7) !important;
}
body.theme-cobre-whiskey .btn-enviar-cocina,
body.theme-cobre-whiskey #btnEnviarCocina,
body.theme-cobre-whiskey #btnEnviarComandaCocina,
body.theme-cobre-whiskey .btn-cocina,
body.theme-cobre-whiskey .btn-kds-ready {
  background: linear-gradient(180deg, #451A03 0%, #270F03 100%) !important;
  border: 1px solid #EA580C !important;
  border-bottom: 4px solid #140701 !important;
  color: #FED7AA !important;
  font-weight: 800 !important;
}
body.theme-cobre-whiskey .nav-btn.active,
body.theme-cobre-whiskey .tab-btn.active,
body.theme-cobre-whiskey .tab-button.active,
body.theme-cobre-whiskey .cat-chip.active,
body.theme-cobre-whiskey .db-pill.active {
  background: linear-gradient(180deg, #FB923C 0%, #EA580C 100%) !important;
  border: 1px solid #FFEDD5 !important;
  border-bottom: 3px solid #7C2D12 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* 4. PASTEL MACARON & VAINILLA */
body.theme-pastel-macaron {
  --primary: #C084FC;
  --primary-glow: #E879F9;
}
body.theme-pastel-macaron button,
body.theme-pastel-macaron .btn,
body.theme-pastel-macaron a.btn,
body.theme-pastel-macaron [role="button"],
body.theme-pastel-macaron input[type="button"],
body.theme-pastel-macaron input[type="submit"] {
  background: linear-gradient(180deg, #231929 0%, #130D18 100%) !important;
  border: 1px solid rgba(232, 121, 249, 0.4) !important;
  border-bottom: 3px solid #08030C !important;
  border-radius: 10px !important;
  color: #F5D0FE !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}
body.theme-pastel-macaron button:hover,
body.theme-pastel-macaron .btn:hover {
  border-color: #E879F9 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(232, 121, 249, 0.35) !important;
}
body.theme-pastel-macaron .btn-pri,
body.theme-pastel-macaron .btn-primary,
body.theme-pastel-macaron .btn-checkout,
body.theme-pastel-macaron #btn-checkout,
body.theme-pastel-macaron #btnPagarModal,
body.theme-pastel-macaron #btnConfirmarCobro,
body.theme-pastel-macaron #btnPagarComanda,
body.theme-pastel-macaron #btnFinalizarCobro,
body.theme-pastel-macaron #btnCobrar,
body.theme-pastel-macaron .cobrar,
body.theme-pastel-macaron .btn-cobro,
body.theme-pastel-macaron .btn-login-submit,
body.theme-pastel-macaron #btnLoginSubmit,
body.theme-pastel-macaron .btn-pay-split,
body.theme-pastel-macaron .guardar,
body.theme-pastel-macaron .btn-save-plan,
body.theme-pastel-macaron #btnGuardarPlano,
body.theme-pastel-macaron button[type="submit"] {
  background: linear-gradient(180deg, #E879F9 0%, #C084FC 50%, #9333EA 100%) !important;
  border: 1px solid #FAE8FF !important;
  border-bottom: 4px solid #6B21A8 !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 5px 16px rgba(192, 132, 252, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}
body.theme-pastel-macaron .btn-enviar-cocina,
body.theme-pastel-macaron #btnEnviarCocina,
body.theme-pastel-macaron #btnEnviarComandaCocina,
body.theme-pastel-macaron .btn-cocina,
body.theme-pastel-macaron .btn-kds-ready {
  background: linear-gradient(180deg, #FBBF24 0%, #D97706 100%) !important;
  border: 1px solid #FEF3C7 !important;
  border-bottom: 4px solid #78350F !important;
  color: #451A03 !important;
  font-weight: 800 !important;
}
body.theme-pastel-macaron .nav-btn.active,
body.theme-pastel-macaron .tab-btn.active,
body.theme-pastel-macaron .tab-button.active,
body.theme-pastel-macaron .cat-chip.active,
body.theme-pastel-macaron .db-pill.active {
  background: linear-gradient(180deg, #E879F9 0%, #C084FC 100%) !important;
  border: 1px solid #FAE8FF !important;
  border-bottom: 3px solid #6B21A8 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* 5. MAGMA VOLCÁNICO & CARBÓN MATE */
body.theme-magma-volcanico {
  --primary: #FF5722;
  --primary-glow: #FF7043;
}
body.theme-magma-volcanico button,
body.theme-magma-volcanico .btn,
body.theme-magma-volcanico a.btn,
body.theme-magma-volcanico [role="button"],
body.theme-magma-volcanico input[type="button"],
body.theme-magma-volcanico input[type="submit"] {
  background: linear-gradient(180deg, #1C100D 0%, #0D0604 100%) !important;
  border: 1px solid rgba(255, 87, 34, 0.4) !important;
  border-bottom: 3px solid #000000 !important;
  border-radius: 10px !important;
  color: #FFCCBC !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}
body.theme-magma-volcanico button:hover,
body.theme-magma-volcanico .btn:hover {
  border-color: #FF7043 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(255, 87, 34, 0.4) !important;
}
body.theme-magma-volcanico .btn-pri,
body.theme-magma-volcanico .btn-primary,
body.theme-magma-volcanico .btn-checkout,
body.theme-magma-volcanico #btn-checkout,
body.theme-magma-volcanico #btnPagarModal,
body.theme-magma-volcanico #btnConfirmarCobro,
body.theme-magma-volcanico #btnPagarComanda,
body.theme-magma-volcanico #btnFinalizarCobro,
body.theme-magma-volcanico #btnCobrar,
body.theme-magma-volcanico .cobrar,
body.theme-magma-volcanico .btn-cobro,
body.theme-magma-volcanico .btn-login-submit,
body.theme-magma-volcanico #btnLoginSubmit,
body.theme-magma-volcanico .btn-pay-split,
body.theme-magma-volcanico .guardar,
body.theme-magma-volcanico .btn-save-plan,
body.theme-magma-volcanico #btnGuardarPlano,
body.theme-magma-volcanico button[type="submit"] {
  background: linear-gradient(180deg, #FF7043 0%, #FF5722 50%, #C2410C 100%) !important;
  border: 1px solid #FFCC80 !important;
  border-bottom: 4px solid #7F1D1D !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 5px 16px rgba(255, 87, 34, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}
body.theme-magma-volcanico .btn-enviar-cocina,
body.theme-magma-volcanico #btnEnviarCocina,
body.theme-magma-volcanico #btnEnviarComandaCocina,
body.theme-magma-volcanico .btn-cocina,
body.theme-magma-volcanico .btn-kds-ready {
  background: linear-gradient(180deg, #1C1917 0%, #0C0A09 100%) !important;
  border: 1px solid #FF5722 !important;
  border-bottom: 4px solid #000000 !important;
  color: #FED7AA !important;
  font-weight: 800 !important;
}
body.theme-magma-volcanico .nav-btn.active,
body.theme-magma-volcanico .tab-btn.active,
body.theme-magma-volcanico .tab-button.active,
body.theme-magma-volcanico .cat-chip.active,
body.theme-magma-volcanico .db-pill.active {
  background: linear-gradient(180deg, #FF7043 0%, #FF5722 100%) !important;
  border: 1px solid #FFCC80 !important;
  border-bottom: 3px solid #7F1D1D !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* =============================================================================
   TEMA EXTRA: 🍨 BLANCO MARFIL & CREMA LATTE (MINIMALISTA NÓRDICO)
   Clase: body.theme-crema-marfil
   Inspirado en estética nórdica minimalista: tarjetas marfil/blancas,
   chips en crema latte vainilla y botón principal en verde esmeralda fresco.
   ============================================================================= */
body.theme-crema-marfil {
  --primary: #D4BFA9;
  --primary-glow: #F5EBE1;
}

body.theme-crema-marfil button,
body.theme-crema-marfil .btn,
body.theme-crema-marfil a.btn,
body.theme-crema-marfil [role="button"],
body.theme-crema-marfil input[type="button"],
body.theme-crema-marfil input[type="submit"] {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%) !important;
  border: 1px solid #E5DFD7 !important;
  border-bottom: 3px solid #D1C7BB !important;
  border-radius: 12px !important;
  color: #26211C !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(120, 100, 80, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

body.theme-crema-marfil button:hover,
body.theme-crema-marfil .btn:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5EEE6 100%) !important;
  border-color: #D4BFA9 !important;
  color: #1A1512 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(180, 140, 100, 0.2) !important;
}

/* Botones principales de acción: Cobro / Pay & Close Bill / Guardar (Verde Esmeralda Fresco como en la imagen) */
body.theme-crema-marfil .btn-pri,
body.theme-crema-marfil .btn-primary,
body.theme-crema-marfil .btn-checkout,
body.theme-crema-marfil #btn-checkout,
body.theme-crema-marfil #btnPagarModal,
body.theme-crema-marfil #btnConfirmarCobro,
body.theme-crema-marfil #btnPagarComanda,
body.theme-crema-marfil #btnFinalizarCobro,
body.theme-crema-marfil #btnCobrar,
body.theme-crema-marfil .cobrar,
body.theme-crema-marfil .btn-cobro,
body.theme-crema-marfil .btn-login-submit,
body.theme-crema-marfil #btnLoginSubmit,
body.theme-crema-marfil .btn-pay-split,
body.theme-crema-marfil .guardar,
body.theme-crema-marfil .btn-save-plan,
body.theme-crema-marfil #btnGuardarPlano,
body.theme-crema-marfil button[type="submit"] {
  background: linear-gradient(180deg, #059669 0%, #047857 50%, #065F46 100%) !important;
  border: 1px solid #6EE7B7 !important;
  border-bottom: 4px solid #064E3B !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
}

/* Botón Cocina y KDS (Crema tostado elegante) */
body.theme-crema-marfil .btn-enviar-cocina,
body.theme-crema-marfil #btnEnviarCocina,
body.theme-crema-marfil #btnEnviarComandaCocina,
body.theme-crema-marfil .btn-cocina,
body.theme-crema-marfil .btn-kds-ready {
  background: linear-gradient(180deg, #FBF6EE 0%, #EFE4D6 100%) !important;
  border: 1px solid #DBC7B5 !important;
  border-bottom: 4px solid #BFA993 !important;
  color: #382A1E !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 8px rgba(120, 90, 60, 0.15) !important;
}

/* Elementos seleccionados / Pestañas activas / Chips activos (Tono Crema Vanilla Latte) */
body.theme-crema-marfil .nav-btn.active,
body.theme-crema-marfil .tab-btn.active,
body.theme-crema-marfil .tab-button.active,
body.theme-crema-marfil .cat-chip.active,
body.theme-crema-marfil .db-pill.active,
body.theme-crema-marfil .pay-method-tab.active {
  background: linear-gradient(180deg, #FBF6EE 0%, #F5EBE1 50%, #EADDCF 100%) !important;
  border: 1.5px solid #D4BFA9 !important;
  border-bottom: 3px solid #BFA993 !important;
  color: #382A1E !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(180, 140, 100, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* =============================================================================
   REGLAS MAESTRAS DE DIMENSIÓN: 2D PLANO vs 3D TÁCTIL (MÁXIMA ESPECIFICIDAD)
   ============================================================================= */

/* -------------------------------------------------------------------------
   MODO 2D PLANO MODERNO:
   Elimina bordes inferiores gruesos (4px/3px), quita sombras pesadas y
   reemplaza el desplazamiento 3D por un sutil y elegante scale(0.97).
   ------------------------------------------------------------------------- */
body.dim-2d button,
body.dim-2d .btn,
body.dim-2d a.btn,
body.dim-2d [role="button"],
body.dim-2d input[type="button"],
body.dim-2d input[type="submit"],
body.dim-2d .btn-pri,
body.dim-2d .btn-primary,
body.dim-2d .btn-checkout,
body.dim-2d #btn-checkout,
body.dim-2d #btnPagarModal,
body.dim-2d #btnConfirmarCobro,
body.dim-2d #btnPagarComanda,
body.dim-2d #btnFinalizarCobro,
body.dim-2d #btnCobrar,
body.dim-2d .cobrar,
body.dim-2d .btn-cobro,
body.dim-2d .btn-enviar-cocina,
body.dim-2d #btnEnviarCocina,
body.dim-2d #btnEnviarComandaCocina,
body.dim-2d .btn-cocina,
body.dim-2d .btn-kds-ready,
body.dim-2d .prefactura,
body.dim-2d .btn-prefactura,
body.dim-2d #btnPreFactura,
body.dim-2d .danger,
body.dim-2d .btn-danger,
body.dim-2d .btn-cancelar,
body.dim-2d .nav-btn,
body.dim-2d .tab-btn,
body.dim-2d .tab-button,
body.dim-2d .cat-chip,
body.dim-2d .db-pill,
body.dim-2d .calc-key,
body.dim-2d .num-btn,
body.dim-2d .numeric-keypad button,
body.dim-2d .btn-qty,
body.dim-2d .btn-tool,
body.dim-2d .btn-sec,
body.dim-2d .btn-login-submit,
body.dim-2d #btnLoginSubmit,
body.dim-2d .btn-pay-split,
body.dim-2d .btn-balde-count,
body.dim-2d .btn-split-counter,
body.dim-2d .cash-chip,
body.dim-2d .chip-usd,
body.dim-2d .exact,
body.dim-2d #btnPagoExacto,
body.dim-2d #btnPagoExactoUSD,
body.dim-2d .mob-float-btn,
body.dim-2d .floating-btn,
body.dim-2d .modal button {
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  text-shadow: none !important;
  transform: none !important;
}

body.dim-2d button:hover,
body.dim-2d .btn:hover,
body.dim-2d a.btn:hover,
body.dim-2d [role="button"]:hover,
body.dim-2d .btn-pri:hover,
body.dim-2d .btn-primary:hover,
body.dim-2d .btn-checkout:hover,
body.dim-2d .btn-enviar-cocina:hover,
body.dim-2d .prefactura:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  opacity: 0.95 !important;
}

body.dim-2d button:active,
body.dim-2d .btn:active,
body.dim-2d a.btn:active,
body.dim-2d [role="button"]:active,
body.dim-2d .btn-pri:active,
body.dim-2d .btn-primary:active,
body.dim-2d .btn-checkout:active,
body.dim-2d #btn-checkout:active,
body.dim-2d #btnPagarModal:active,
body.dim-2d #btnConfirmarCobro:active,
body.dim-2d #btnPagarComanda:active,
body.dim-2d #btnFinalizarCobro:active,
body.dim-2d #btnCobrar:active,
body.dim-2d .cobrar:active,
body.dim-2d .btn-cobro:active,
body.dim-2d .btn-enviar-cocina:active,
body.dim-2d #btnEnviarCocina:active,
body.dim-2d #btnEnviarComandaCocina:active,
body.dim-2d .btn-cocina:active,
body.dim-2d .btn-kds-ready:active,
body.dim-2d .prefactura:active,
body.dim-2d .btn-prefactura:active,
body.dim-2d #btnPreFactura:active,
body.dim-2d .calc-key:active,
body.dim-2d .num-btn:active,
body.dim-2d .btn-qty:active,
body.dim-2d .btn-tool:active,
body.dim-2d .btn-sec:active,
body.dim-2d .nav-btn:active,
body.dim-2d .tab-btn:active,
body.dim-2d .cat-chip:active,
body.dim-2d .db-pill:active {
  transform: scale(0.96) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* -------------------------------------------------------------------------
   MODO 3D TÁCTIL:
   Relieve rígido de 4px, sombras de elevación y desplazamiento translateY(3px)
   ------------------------------------------------------------------------- */
body.dim-3d button:active,
body.dim-3d .btn:active,
body.dim-3d a.btn:active,
body.dim-3d [role="button"]:active,
body.dim-3d .btn-pri:active,
body.dim-3d .btn-primary:active,
body.dim-3d .btn-checkout:active,
body.dim-3d #btn-checkout:active,
body.dim-3d #btnPagarModal:active,
body.dim-3d #btnConfirmarCobro:active,
body.dim-3d #btnPagarComanda:active,
body.dim-3d #btnFinalizarCobro:active,
body.dim-3d #btnCobrar:active,
body.dim-3d .cobrar:active,
body.dim-3d .btn-cobro:active,
body.dim-3d .btn-enviar-cocina:active,
body.dim-3d #btnEnviarCocina:active,
body.dim-3d #btnEnviarComandaCocina:active,
body.dim-3d .btn-cocina:active,
body.dim-3d .btn-kds-ready:active,
body.dim-3d .prefactura:active,
body.dim-3d .btn-prefactura:active,
body.dim-3d #btnPreFactura:active,
body.dim-3d .calc-key:active,
body.dim-3d .num-btn:active,
body.dim-3d .btn-qty:active,
body.dim-3d .btn-tool:active,
body.dim-3d .btn-sec:active,
body.dim-3d .nav-btn:active,
body.dim-3d .tab-btn:active,
body.dim-3d .cat-chip:active,
body.dim-3d .db-pill:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
}

/* Actualización visual de las tarjetas del modal según dimensión */
#modalSelectorEstilosBotones.preview-dim-2d .theme-option-card div[style*="border-bottom"] {
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}
#modalSelectorEstilosBotones.preview-dim-3d .theme-option-card div[style*="border-bottom"] {
  border-bottom-width: 3px !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35) !important;
}



/* =============================================================================
   REGLAS MAESTRAS DE ALTA ESPECIFICIDAD: 2D PLANO vs 3D TÁCTIL
   ============================================================================= */

/* --- MODO 2D PLANO: ABSOLUTAMENTE NINGÚN BORDE INFERIOR GRUESO --- */
body.dim-2d button,
body.dim-2d .btn,
body.dim-2d a.btn,
body.dim-2d [role="button"],
body.dim-2d input[type="button"],
body.dim-2d input[type="submit"],
body.dim-2d [class*="btn-"],
body.dim-2d [class*="-btn"],
body.dim-2d .cobrar,
body.dim-2d .guardar,
body.dim-2d .danger,
body.dim-2d .exact,
body.dim-2d .prefactura {
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  text-shadow: none !important;
  transform: none !important;
}

body.dim-2d button:hover,
body.dim-2d [class*="btn-"]:hover,
body.dim-2d [class*="-btn"]:hover {
  transform: none !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(1.08) !important;
}

body.dim-2d button:active,
body.dim-2d [class*="btn-"]:active,
body.dim-2d [class*="-btn"]:active {
  transform: scale(0.96) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* --- MODO 3D TÁCTIL: RELIEVE RÍGIDO DE 4px Y PUSH-DOWN --- */
body.dim-3d button,
body.dim-3d .btn,
body.dim-3d a.btn,
body.dim-3d [role="button"],
body.dim-3d [class*="btn-"],
body.dim-3d [class*="-btn"],
body.dim-3d .cobrar,
body.dim-3d .guardar,
body.dim-3d .danger,
body.dim-3d .exact,
body.dim-3d .prefactura {
  border-bottom-width: 4px !important;
  border-bottom-style: solid !important;
}

body.dim-3d button:active,
body.dim-3d [class*="btn-"]:active,
body.dim-3d [class*="-btn"]:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1px !important;
}


/* ============================================================================
   SISTEMA DE BOTONES CÁPSULA / PILL ELEGANTE MINIMALISTA (GAMMA CAPSULE SUITE)
   ============================================================================ */
.btn-capsule-secondary,
.btn-pill-white,
.btn-split-prefactura-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 50px !important;
  padding: 10px 20px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn-capsule-secondary:hover,
.btn-pill-white:hover,
.btn-split-prefactura-pill:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0284c7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.09) !important;
}

.btn-capsule-secondary:active,
.btn-pill-white:active,
.btn-split-prefactura-pill:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.btn-capsule-primary,
.btn-pill-amber,
.btn-split-cobrar-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn-capsule-primary:hover,
.btn-pill-amber:hover,
.btn-split-cobrar-pill:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.5) !important;
  color: #ffffff !important;
}

.btn-capsule-primary:active,
.btn-pill-amber:active,
.btn-split-cobrar-pill:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25) !important;
}

/* Variantes cápsula de la familia */
.btn-capsule-dark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
  transition: all 0.2s ease !important;
}
.btn-capsule-dark:hover {
  background: #1e293b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25) !important;
}

.btn-capsule-emerald {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
  transition: all 0.2s ease !important;
}
.btn-capsule-emerald:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45) !important;
}

.btn-capsule-pair {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.btn-capsule-pair > button,
.btn-capsule-pair > a {
  flex: 1 !important;
}

/* TEMA GLOBAL DE BOTONES: CÁPSULA MINIMALISTA & ÁMBAR */
body.theme-capsula-elegance .btn-pri,
body.theme-capsula-elegance .btn-primary,
body.theme-capsula-elegance .btn-btn-cmd.cobrar,
body.theme-capsula-elegance .btn-cobrar-split {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  border-radius: 50px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35) !important;
  border-bottom: none !important;
}

body.theme-capsula-elegance .btn-sec,
body.theme-capsula-elegance .btn-secondary,
body.theme-capsula-elegance .btn-btn-cmd.prefactura,
body.theme-capsula-elegance .btn-prefactura-split {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 50px !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
  border-bottom: none !important;
}


/* ============================================================================ */
/* WIDGET FLOTANTE & CHAT ASISTENTE IA (GAMMA POS)                             */
/* ============================================================================ */
.btn-float-ai {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45), 0 0 15px rgba(37, 99, 235, 0.35);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.btn-float-ai:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6), 0 0 22px rgba(219, 39, 119, 0.5);
  border-color: #ffffff;
}

.btn-float-ai .ai-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.btn-float-ai .ai-sparkle-icon {
  font-size: 0.95rem;
  animation: aiSparkleRotate 3s infinite linear;
}

@keyframes aiSparkleRotate {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.25) rotate(180deg); opacity: 1; }
  100% { transform: scale(1) rotate(360deg); opacity: 0.8; }
}

.btn-float-ai .ai-pulse-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: aiPulseDot 2s infinite ease-in-out;
}

@keyframes aiPulseDot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

/* CONTENEDOR MODAL DEL CHAT */
.widget-chat-ai {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(124, 58, 237, 0.25);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-chat-ai.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ENCABEZADO DEL CHAT */
.chat-ai-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-ai-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-ai-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.chat-ai-header-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.chat-ai-status {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-ai-status .status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
}

.chat-ai-actions {
  display: flex;
  gap: 6px;
}

.btn-chat-ai-ctrl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.btn-chat-ai-ctrl:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* CHIPS DE SUGERENCIA */
.chat-ai-quick-chips {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-ai-quick-chips::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex-shrink: 0;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.quick-chip:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
}

/* CUERPO DE MENSAJES */
.chat-ai-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: aiMsgFadeIn 0.2s ease-out;
}

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

.chat-ai-msg.bot {
  align-self: flex-start;
}

.chat-ai-msg.user {
  align-self: flex-end;
}

.chat-ai-msg .msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
  user-select: text;
}

.chat-ai-msg.bot .msg-bubble {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.chat-ai-msg.bot .msg-bubble strong {
  color: #38bdf8;
}

.chat-ai-msg.user .msg-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.chat-ai-msg .msg-time {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 3px;
  padding: 0 4px;
}
.chat-ai-msg.user .msg-time {
  align-self: flex-end;
}

/* INDICADOR DE PENSANDO */
.chat-ai-typing {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-ai-typing small {
  color: #94a3b8;
  font-size: 0.72rem;
  font-style: italic;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* FOOTER Y FORMULARIO DE ENVÍO */
.chat-ai-footer {
  padding: 10px 12px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-ai-footer input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.15s;
}

.chat-ai-footer input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.btn-send-ai {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  transition: all 0.15s;
  flex-shrink: 0;
}

.btn-send-ai:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.btn-send-ai:active {
  transform: scale(0.95);
}


/* Ocultar botón IA solo en pantalla de login */
#landingLoginView.active ~ #btnFloatAsistenteIA,
#landingLoginView.active ~ #widgetChatIA {
  display: none !important;
}

/* ============================================================================ */
/* RELOJ DIGITAL EN TIEMPO REAL (TOP BAR POS)                                    */
/* ============================================================================ */
.pos-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', 'Courier New', monospace, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
  user-select: none;
  transition: all 0.2s ease;
}

.pos-live-clock:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
}

.pos-live-clock .live-clock-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
}

.pos-live-clock .live-clock-time {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

@media (max-width: 768px) {
  .pos-live-clock {
    padding: 4px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }
}

.btn-vaciar-kardex-dev {
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid #ef4444 !important;
  color: #fca5a5 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-vaciar-kardex-dev:hover {
  background: rgba(239, 68, 68, 0.32) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

