/* ============================================================
   VOLUNTARY TIP MODULE (v3.4.54)
   ============================================================ */
.charge-tip-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
.charge-tip-box .tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.charge-tip-box .tip-label {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 5px;
}
.charge-tip-box .tip-value {
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
}
.tip-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 78px), 1fr));
  gap: 6px;
}
@media (max-width: 440px) {
  .tip-options-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .tip-btn.custom-btn {
    grid-column: 1 / -1 !important;
  }
}
.tip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #94a3b8;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}
.tip-btn:hover {
  border-color: #f59e0b;
  color: #f1f5f9;
}
.tip-btn:active {
  transform: scale(0.96);
}
.tip-btn.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.tip-btn.custom-btn.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}
.tip-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.tip-custom-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 800;
  text-align: right;
  outline: none;
}
.tip-custom-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}


/* ==========================================================================
   MODAL DE CAMBIO DE MES & RETENCIÓN DE DATOS (90 DÍAS)
   ========================================================================== */
#modal-monthly-backup .modal-dialog {
  animation: monthlyModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =========================================================================
   BLINDAJE TOTAL: SUPRESIÓN DE COCINA Y COMANDAS (VENTA DIRECTA / TIENDAS)
   ========================================================================= */
body.cocina-disabled .btn-kitchen,
body.cocina-disabled #btn-send-kitchen-cart,
body.cocina-disabled .quick-notes-container,
body.cocina-disabled .manual-note-container,
body.cocina-disabled .cart-add-note-btn,
body.cocina-disabled #btn-tab-comanda,
body.cocina-disabled #stat-pill-kitchen,
body.cocina-disabled #card-kitchen-printer,
body.cocina-disabled #admin-tab-btn-suggestions,
.cart-action-buttons button.hidden-by-module,
.cart-action-buttons button[style*="display: none"],
.cart-action-buttons button[style*="display:none"],
#btn-send-kitchen-cart.hidden-by-module,
#btn-send-kitchen-cart[style*="none"] {
  display: none !important;
}

body.cocina-disabled .cart-action-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

body:not(.cocina-disabled) #btn-save-pending-order {
  display: none !important;
}

