/**
 * SolfactPeru - Estilos Personalizados
 * Sistema Food - Módulo de Ventas
 * Fecha: Octubre 2025
 */

/* ===================================================================
   BOTONES DE ACCIÓN EN PRODUCTOS
   Funcionalidad: Botones flotantes para ver imagen y detalles
   ================================================================ */

/* Contenedor de producto */
.product.p-w-t,
.product {
  position: relative;
}

/* Contenedor de botones de acción */
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Separación entre botones */
  z-index: 10;
  opacity: 0;
  transform: translateX(15px);
  transition: all .3s ease;
}

/* Mostrar botones al hacer hover sobre el producto */
.product:hover .product-actions,
.product.p-w-t:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

/* Estilo de botones de acción */
.btn-action {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  backdrop-filter: blur(12px);
}

/* Efecto hover en botones */
.btn-action:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 1);
}

/* Iconos dentro de los botones */
.btn-action i {
  font-size: 20px;
  color: #495057;
  transition: all .2s ease;
}

/* Color de iconos en hover */
.btn-action:hover i {
  color: #0d6efd;
}

/* ===================================================================
   RESPONSIVE - DISPOSITIVOS MÓVILES
   ================================================================ */

@media (max-width: 768px) {
  /* Mostrar siempre los botones en móviles */
  .product-actions {
    opacity: 1;
    transform: translateX(0);
    gap: 10px;
    top: 8px;
    right: 8px;
  }
  
  /* Botones más pequeños en móviles */
  .btn-action {
    width: 36px;
    height: 36px;
  }
  
  /* Iconos más pequeños en móviles */
  .btn-action i {
    font-size: 18px;
  }
}

/* ===================================================================
   CONTADORES DE RANGO (Range Value Display)
   Funcionalidad: Mostrar valor actual de inputs tipo range
   ================================================================ */

.range-value-display {
  min-width: 55px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.range-value-display:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

/* Estilo mejorado para los inputs de rango */
.form-control-range {
  cursor: pointer;
}

.form-control-range::-webkit-slider-thumb {
  cursor: grab;
}

.form-control-range:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.form-control-range::-moz-range-thumb {
  cursor: grab;
}

.form-control-range:active::-moz-range-thumb {
  cursor: grabbing;
}

/* ===================================================================
   MESAS OCUPADAS — texto e iconos en blanco (no afecta libres/precuenta)
   ================================================================ */
button.btn-reed .bottom-mesas,
button.custom-btn-reed .bottom-mesas,
.btn-reed.custom-btn-reed .bottom-mesas {
  color: #ffffff !important;
}

button.btn-reed .bottom-mesas span,
button.btn-reed .bottom-mesas strong,
button.btn-reed .bottom-mesas i,
button.custom-btn-reed .bottom-mesas span,
button.custom-btn-reed .bottom-mesas strong,
button.custom-btn-reed .bottom-mesas i,
.btn-reed.custom-btn-reed .bottom-mesas span,
.btn-reed.custom-btn-reed .bottom-mesas strong,
.btn-reed.custom-btn-reed .bottom-mesas i {
  color: #ffffff !important;
}

/* ===================================================================
   PANEL WHATSAPP (ajuste/whatsapp)
   ================================================================ */
.wsp-panel .wsp-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.wsp-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.wsp-badge-off { background: #fde8e8; color: #c62828; }
.wsp-badge-on { background: #e8f5e9; color: #2e7d32; }
.wsp-badge-warn { background: #fff8e1; color: #f57c00; }
.wsp-badge-ban { background: #fce4ec; color: #ad1457; }
#btn-wsp-qr:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}
.wsp-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.wsp-alert {
  border-radius: 10px;
  padding: 16px 18px;
}
.wsp-alert-warn { background: #fdecea; border: 1px solid #f5c6cb; }
.wsp-alert-ok { background: #e8f5e9; border: 1px solid #a5d6a7; }
.wsp-alert-ban { background: #fce4ec; border: 1px solid #f48fb1; }
.wsp-toggle-card {
  border: 1px solid #c8e6c9;
  background: #f1f8f2;
  border-radius: 12px;
  padding: 18px 20px;
}
.wsp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #666;
  display: block;
  margin-bottom: 6px;
}
.wsp-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: 12px;
}
.wsp-notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}

/* Modal QR WhatsApp */
.wsp-qr-modal {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.wsp-qr-modal-header {
  background: #25d366;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wsp-qr-modal-icon {
  font-size: 28px;
  color: #fff;
  margin-right: 12px;
}
.wsp-qr-modal-body {
  min-height: 380px;
}
.wsp-qr-steps {
  padding: 24px 22px 16px;
  border-right: 1px solid #eee;
  background: #fff;
}
.wsp-qr-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.wsp-qr-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.4;
  margin-left: 12px;   /* <-- Agrega este */
  color: #222;
}
.wsp-step-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wsp-qr-demo-img {
  max-width: 100%;
  height: auto;
  max-height: 140px;
  border-radius: 8px;
}
.wsp-qr-code-pane {
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.wsp-qr-code-box {
  width: 260px;
  height: 260px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.wsp-qr-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.wsp-qr-loading {
  text-align: center;
}
.wsp-qr-timer-wrap {
  width: 260px;
  margin-top: 18px;
  text-align: center;
}
.wsp-qr-timer-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.wsp-qr-timer-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: #25d366;
  border-radius: 4px;
}
.wsp-qr-timer-text {
  font-size: 13px;
  color: #777;
}
@media (max-width: 767px) {
  .wsp-qr-steps { border-right: none; border-bottom: 1px solid #eee; }
  .wsp-qr-demo { display: none; }
}

.wsp-section-title{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.wa-step-badge{
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #ff5722;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
/* ===================================================================
   FIN DE ESTILOS PERSONALIZADOS
   ================================================================ */

