@charset "UTF-8";

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
}

/* ALTER EGO*/

.nomeveas{
  display: none !important;
}

.puntero{
  cursor: pointer;
}

/* BGS */
  .bg-inicia2 {
    background-color: #ff7043 !important; 
  } 
  .bg-inicia3 {
    background-color: #8bc34a !important;
  }
  .bg-inicia4 {
    background-color: #ff3547 !important; 
  } 
  .bg-green-light {
    background-color: #8bc34a !important;
  }
  .bg-red-light {
    background-color: #e57373 !important;
  }
  .bg-yellow-light {
    background-color: #ffbb33 !important;
  }
  .bg-verde-s{
    background-color: rgba(34, 178, 118, 0.78) !important;
  }
  .bg-rojo-s{
    background-color: rgba(178, 34, 34, 0.78) !important;
  }
  .bg-azul-s{
    background-color: rgba(34, 145, 178, 0.78) !important;
  }
  .bg-info-s{
    background-color: #4C566A !important;
  }
  .bg-morado-s{
    background-color: rgba(178, 34, 147, 0.78) !important;
  }
  .valor-s{
    width: 250px;
    float: right;
    text-align: center;
  }


/* MODAL PARA AGRANDAR IMAGEN */
.myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modalimg {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px;  /*Location of the box */
  left: 200px;  
  top: 100px;
  width: 40%; /* Full width */
  height: auto; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal_img {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px;  /*Location of the box */
  top: 100px;
  overflow: auto; 
  
}
/* Modal Content (image) */
.modal-contentimg {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 500px;
}
/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}
/* The Close Button */
.closeImg {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}
.closeImg:hover,
.closeImg:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* BOTONES PRINCIPALES PARA MODULOS */
.module-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.module-subtitle {
  font-size: 14px;
  color: #6b7280;
}

/* Grid de botones responsivo */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.btn-module-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.btn-module:hover .btn-module-icon {
  transform: scale(1.1);
}

.btn-module-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-module-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.btn-module-description {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* Indicador de contador (opcional) tipo badge */
.btn-module-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.btn-app {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
  position: relative;
  overflow: hidden;
  text-align: center;  
}

.btn-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.btn-app:active, .btn-app:focus {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Barra de color lateral */
.btn-app::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-module:hover::before {
  opacity: 1;
}

.btn-add .btn-module-icon {
  background: #d1fae5;
  color: #059669;
}

.btn-add:hover {
  background: #f0fdf4;
  border-color: #10b981;
}

.btn-add::before {
  background: #10b981;
}

/* Color Azul */
.btn-anadir .btn-module-icon {
   background: #dbeafe;
   color: #2563eb;
}

.btn-anadir:hover {
   background: #eff6ff;
   border-color: #3b82f6;
}

.btn-anadir::before {
   background: #3b82f6;
}

/* Naranja */
.btn-missing .btn-module-icon {
    background: #fed7aa;
    color: #d97706;
}

.btn-missing:hover {
    background: #fffbeb;
    border-color: #f59e0b;
}

.btn-missing::before {
  background: #f59e0b;
}

.btn-missing .btn-module-badge {
  background: #fed7aa;
  color: #d97706;
}

/* Dados de Baja - Rojo */
.btn-deactivated .btn-module-icon {
  background: #fee2e2;
  color: #dc2626;
}

.btn-deactivated:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

.btn-deactivated::before {
  background: #ef4444;
}

/* Lista Negra - Gris oscuro */
.btn-blacklist .btn-module-icon {
  background: #e5e7eb;
  color: #374151;
}

.btn-blacklist:hover {
  background: #f9fafb;
  border-color: #6b7280;
}

.btn-blacklist::before {
  background: #374151;
}

/* Rango de Fechas - Púrpura */
.btn-daterange .btn-module-icon {
 background: #e9d5ff;
 color: #9333ea;
}

.btn-daterange:hover {
 background: #faf5ff;
 border-color: #a855f7;
}

.btn-daterange::before {
 background: #9333ea;
}


/* Estados deshabilitados */
.btn-module:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-module:disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

/* CAMBIO DE COLOR DE BOTONES SWALL */
.swal-confirm-btn {
  background-color: #0d6efd !important; /* azul bootstrap */
  color: #fff !important;
  font-weight: bold;
  border-radius: 5px;
  padding: 10px 20px;
}
.swal-confirm-btn:hover {
   background-color: #0b5ed7 !important;
}

/* MENSAJES DE ALERTA en INPUT TIPO TOOLTIP */
.tooltip-msg {
  position: absolute;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1050 !important;
  opacity: 0;
  transition: opacity 0.3s;
  animation: fadeInTooltip 0.2s ease-in;
  pointer-events: none;
    
}

.tooltip-msg.show {
  display: flex !important;
  opacity: 1 !important;
}

.tooltip-msg .tooltip-arrow {
  position: absolute;
  top: -6px;
  left: 15px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.tooltip-msg .tooltip-error {
  background-color: #f44336 !important;
  color: #fff !important;
}
.tooltip-msg .tooltip-error .tooltip-arrow {
  border-bottom: 6px solid #f44336 !important;
}

.tooltip-msg .tooltip-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}
.tooltip-msg .tooltip-warning .tooltip-arrow {
  border-bottom: 6px solid #ffc107 !important;
}

.tooltip-msg .tooltip-info {
  background-color: #17a2b8 !important;
  color: #fff !important;
}
.tooltip-msg .tooltip-info .tooltip-arrow {
  border-bottom: 6px solid #17a2b8 !important;
}

.tooltip-msg .tooltip-success {
  background-color: #28a745 !important;
  color: #fff !important;
}
.tooltip-msg .tooltip-success .tooltip-arrow {
  border-bottom: 6px solid #28a745 !important;
}

.tooltip-msg span.icon {
  font-size: 16px;
}

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

.border-info {
  border-color: #0dcaf0 !important;
  border-width: 1px !important;
}

/*------------- ESTILOS PARA BOTONES EXPORTAR/ACCIONES (FUERA DE DATATABLE) ------------ */
  .btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
  }

  .btn-export:hover {
    transform: translateY(-1px);
  }

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

  .btn-export i {
    font-size: 16px;
  }

  /* Variante compacta */
  .btn-export-compact {
    padding: 6px 12px;
    font-size: 13px;
  }

  .btn-export-compact i {
    font-size: 14px;
  }

  /* Botón solo icono */
  .btn-export-icon {
    padding: 8px 10px;
    gap: 0;
  }

  .btn-export-icon .btn-text {
    display: none;
  }

  /* Variante con borde */
  .btn-export-outline {
    background: white;
    border: 2px solid;
  }

  /* Estado deshabilitado */
  .btn-export:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    border-color: #d1d5db !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .btn-export:disabled:hover {
    transform: none;
    box-shadow: none;
  }

  /* Colores específicos - Excel */
  .btn-excel {
    background: #34a853;
  }

  .btn-excel:hover {
    background: #1a5c37;
    box-shadow: 0 4px 8px rgba(33, 115, 70, 0.2);
  }

  .btn-excel:active {
    box-shadow: 0 2px 4px rgba(33, 115, 70, 0.2);
  }

  .btn-excel.btn-export-outline {
    color: #34a853;
    border-color: #34a853;
  }

  .btn-excel.btn-export-outline:hover {
    background: #34a853;
    color: white;
  }
  
  .btn-export.primary {
    background: #3a86ff;
  }

  .btn-export.primary:hover {
    background: #023e8a;
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.2);
  }

  .btn-export.primary:active {
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
  }

  .btn-export.primary.btn-export-outline {
    color: #3a86ff;
    border-color: #3a86ff;
  }

  .btn-export.primary.btn-export-outline:hover {
    background: #3a86ff;
    color: white;
  }

  .btn-export.danger {
    background: #e63946;
  }

  .btn-export.danger:hover {
    background: #780000;
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.2);
  }

  .btn-export.danger:active {
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
  }

  .btn-export.danger.btn-export-outline {
    color: #e63946;
    border-color: #e63946;
  }

  .btn-export.danger.btn-export-outline:hover {
    background: #e63946;
    color: white;
  }

  .btn-csv {
    background: #06b6d4;
  }

  .btn-csv:hover {
    background: #0e7490;
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.2);
  }

  .btn-csv:active {
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
  }

  .btn-csv.btn-export-outline {
    color: #06b6d4;
    border-color: #06b6d4;
  }

  .btn-csv.btn-export-outline:hover {
    background: #06b6d4;
    color: white;
  }
/***************************************************/

.export-btn {
  width: 70px;
  height: 40px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 0;
}

.export-btn i {
  font-size: 20px;
}

.export-btn span {
  display: none;
}

.export-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.export-btn:active {
  transform: translateY(-2px);
}


.btn-print {
  background: #0dcaf0;
  color: white;
}

.btn-print:hover {
  background: #31d2f2;
  color: white;
}

.btn-pdf {
  background: #dc3545;
  color: white;
}

.btn-pdf:hover {
  background: #e15361;
  color: white;
}

@media (max-width: 768px) {
  .export-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ARGEGANDO NEGRITA A LOS LAVEL DE CADA FORM-GROUP */
.form-group label {
  font-weight: bold;
  padding-bottom: 6px;
}

input[readonly], textarea[readonly], select[readonly] {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  cursor: not-allowed;
  font-weight: 500;
}

/* CENTRAR ICONOS Y DISEÑO EN BOTONES PARA DATATABLE */
.btn-icon {
  width: 60px; /* o el tamaño que prefieras */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* elimina el padding lateral de Bootstrap */
}

.btn i {
  margin: 0 auto;
  display: block;
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

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

/* Botón Editar - Verde menta suave */
.action-btn-editar {
  background-color: #d1fae5;
  color: #047857;
}

.action-btn-editar:hover {
  background-color: #a7f3d0;
}

/* Botón Ver/Visualizar - Azul suave */
.action-btn-vista {
  background-color: #e0f2fe;
  color: #0369a1;
}

.action-btn-vista:hover {
  background-color: #bae6fd;
}

/* Botón Eliminar - Rojo coral suave */
.action-btn-borrar {
  background-color: #ffe4e6;
  color: #be123c;
}

.action-btn-borrar:hover {
  background-color: #fecdd3;
}

/* Botón Descargar - Púrpura suave */
.action-btn-descargar {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.action-btn-descargar:hover {
  background-color: #e9d5ff;
}

/* Botón Compartir - Naranja melocotón suave */
.action-btn-share {
  background-color: #ffedd5;
  color: #c2410c;
}

.action-btn-share:hover {
  background-color: #fed7aa;
}

/* Botón Duplicar - Gris azulado suave */
.action-btn-duplicar {
  background-color: #e0e7ff;
  color: #4338ca;
}

.action-btn-duplicar:hover {
  background-color: #c7d2fe;
}

/* Botón Más opciones/Config - Gris suave */
.action-btn-opciones {
  background-color: #f1f5f9;
  color: #475569;
}

.action-btn-opciones:hover {
  background-color: #e2e8f0;
}

/* Botón Guardar/Confirmar - Verde lima suave */
.action-btn-guardar {
  background-color: #ecfccb;
  color: #4d7c0f;
}

.action-btn-guardar:hover {
  background-color: #d9f99d;
}

/* PARA CAMPOS DE STOCK DE UNA TABLA */

.stock-table {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);  
}

.stock-alto {
  background-color: #d1fae5;
  color: #047857;
}

.stock-bajo {
  background-color: #ffedd5;
  color: #c2410c;
}

.stock-medio {
  background-color: #ffedd5;
  color: #c2410c;
}

.stock-vacio {
  background-color: #ffe4e6;
  color: #be123c;
}


/* Cambie le estilo del readonly */
.readonly-clasico {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    cursor: not-allowed;
    font-weight: 500;
}

.readonly-clasico:focus {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    box-shadow: none;
}

/* ESTILOS PARA CAMPOS DE TABLAS */
.fecha-proxima {
  background: #ffd93d !important;
  color: #000 !important;
  font-weight: 600;
  font-size: 0.800rem;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: left;
  display: inline-block;
  min-width: 100px;
}

.fecha-proxima:hover {
  transform: translateY(-1px);
}

.fecha-ultimo {
  background: #d8d8d8 !important;
  color: black !important;
  font-weight: 600;
  font-size: 0.800rem;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: left;
  display: inline-block;
  min-width: 100px;
}

.fecha-ultimo:hover {
  transform: translateY(-1px);
}

.montosServ {
  background: #5cb85c !important;
  color: white !important;
  font-weight: 600;
  font-size: 0.800rem;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: left;
  display: inline-block;
  min-width: 100px;
}

.montosServ:hover {
  transform: translateY(-1px);
}

/* Botones de acción compactos */
.btn-sm-custom {
  padding: 2px 10px;
  font-size: 0.90rem;
  border-radius: 6px;
}

/* Botón Pagar - Verde (acción principal positiva) */
.btn-pagar {
    background: #20c997;
    color: white;
}

.btn-pagar:hover {
    background: #1aa179;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
}

/* Botón Enviar Correo - Azul (comunicación) */
.btn-correo {
    background: #007bff;
    text-align: center;
    color: white;
}

.btn-correo:hover {
    background: #004085;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
}

/* Botón PDF - Naranja/Gris (acción secundaria) */
.btn-pdf {
    background: #fd7e14;
    color: white;
}

.btn-pdf:hover {
    background: #d3510a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(253, 126, 20, 0.4);
}

/* Botón Borrar - Rojo (acción destructiva) */
.btn-borrar {
    background: #c82333;
    color: white;
}

.btn-borrar:hover {
  background: #bd2130;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
}

.badge-custom {
  font-size: 0.75rem;
  padding: 4px 8px;
  font-weight: 500;
}

 /* Truncado de texto con tooltip */
.text-truncate-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

.text-truncate-cell:hover {
    color: #0d6efd;
}

/* Para columnas específicas más pequeñas */
.text-truncate-sm {
  max-width: 100px;
}

.text-truncate-lg {
  max-width: 200px;
}

/* Texto wrap para columnas que deben expandirse */
.text-wrap-cell {
  white-space: normal;
  word-wrap: break-word;
  max-width: 200px;
  line-height: 1.3;
}

/* Quitar cuadro de select2 */
.select2-container--default .select2-selection--single {
  display: none;
}

/* CONTENEDOR PARA VENTA */
.pos-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 120px 180px 140px;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.descripcion-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.item-row:hover {
  background: #f0f0f0;
}

.btn-eliminar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-eliminar:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.btn-eliminar:active {
  transform: scale(0.95);
}

.input-descripcion {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
  color: #333;
}

.input-descripcion:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fafffe;
}

.input-precio {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
  text-align: right;
  color: #6b7280;
}

.input-precio:focus {
  outline: none;
  border-color: #f59e0b;
  background: #fafffe;
}

.input-numero {
  width: 70px;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
  text-align: center;
  color: #333;
}

.cantidad-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cantidad {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cantidad:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.btn-cantidad:active {
  transform: scale(0.95);
}

.btn-cantidad.menos {
  background: #ef4444;
}

.btn-cantidad.menos:hover {
  background: #dc2626;
}

.total-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.descuento-item {
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.iva-container {
  margin-top: 20px;
  padding: 16px;
  background: #f0f9ff;
  border: 2px solid #3b82f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-iva {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.iva-label {
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  cursor: pointer;
  user-select: none;
}

.iva-info {
  margin-left: auto;
  font-size: 14px;
  color: #3b82f6;
  font-weight: 600;
}

.input-numero:focus {
  outline: none;
  border-color: #10b981;
  background: #fafffe;
}

.input-total {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  text-align: right;
  color: #059669;
  cursor: not-allowed;
}

.btn-agregar {
  width: 100%;
  padding: 14px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.btn-agregar:hover {
  background: #2563eb;
}

.total-general {
  margin-top: 30px;
  padding: 20px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
}

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

.total-general span {
  color: #374151;
  font-size: 20px;
  font-weight: 600;
}

.total-general .monto {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
}

.descuento-info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.descuento-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

.labels {
  display: grid;
  grid-template-columns: 1fr 120px 180px 140px;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 12px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .item-row {
      grid-template-columns: 1fr;
      gap: 8px;
  }

  .labels {
      display: none;
  }

  .input-numero, .input-total {
      text-align: left;
  }
}


/* Boton para cobrar */
.btn-cobrar {
  background: #10b981;
  color: white;
  font-size: 24px;
  font-weight: 600;
  padding: 24px 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  min-width: 250px;
}

.btn-cobrar:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-cobrar:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-cobrar:focus {
  outline: 3px solid rgba(16, 185, 129, 0.3);
  outline-offset: 2px;
}

/* Estilos personalizados para la DataTable */
.data-table-container {
  margin-top: 20px;
  padding: 20px;
  background-color: #ffffff; /* Fondo blanco para mayor contraste */
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05); /* Sombra más suave */
}

/* Estilo para el encabezado de la tabla (más suave) */
.table-header-soft {
  background-color: #e9ecef; /* Gris muy claro, similar a 'table-light' pero más consistente */
  color: #495057; /* Texto oscuro */
  
}

/* Estilo para la columna de estatus */
.status-badge {
  font-weight: 600; /* Un poco más de peso */
  padding: 6px 12px;
  border-radius: 20px; /* Bordes más redondeados (pill-like) */
  display: inline-block;
  min-width: 140px; 
  text-align: center;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Paleta de colores suaves */
.status-pendiente {
  background-color: #fff3cd; /* Amarillo pastel muy claro */
  color: #664d03; /* Texto marrón oscuro */
  border: 1px solid #ffecb5;
}

.status-pagado {
  background-color: #d1e7dd; /* Verde pastel muy claro */
  color: #0f5132; /* Texto verde oscuro */
  border: 1px solid #badbcc;
}

.status-cancelado {
  background-color: #f8d7da; /* Rojo pastel muy claro */
  color: #842029; /* Texto rojo oscuro */
  border: 1px solid #f5c2c7;
}

/* Estilo para la columna de 'a pagar' */
.currency {
  font-weight: bold;
  color: #495057; /* Texto oscuro */
}

/* Estilo para los botones de acción */
.btn-action-soft {
  background-color: #0d6efd; /* Azul primario de Bootstrap */
  border-color: #0d6efd;
  transition: all 0.3s ease;
}

.btn-action-soft:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#dtPagoServActivo thead {
  display: none;
}

/* CALLOUT */
.callout {
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  background-color: #ffffff;
  border-left: 5px solid #e9ecef;
  margin-bottom: 1rem;
  padding: 1rem;
}
.callout a {
  color: #495057;
  text-decoration: underline;
}
.callout a:hover {
  color: #e9ecef;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout.callout-danger {
  border-left-color: #bd2130;
}
.callout.callout-warning {
  border-left-color: #d39e00;
}
.callout.callout-info {
  border-left-color: #117a8b;
}
.callout.callout-success {
  border-left-color: #1e7e34;
}
.callout.callout-oscuro {
  border-left-color: #000000;
}

/* TARJETAS PARA REPORTES ENCABEZADOS */
.card-rptes-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card-rpte {
  /*background: white;*/
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e5e7eb;
  /*border: 1px solid #e5e7eb;
  border-left: 4px solid transparent;*/
}

.card-rpte:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-rpte-header {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 19px;
  font-weight: 500;
  font-family: 'Arial', sans-serif;
}

/* Colores específicos para cada tarjeta */
.card-neto {
  /*border-left-color: #2563eb;*/
  background: #356EC4;
}

.card-neto .card-rpte-header {
  /*color: #2563eb;*/
  color: white;
}

.card-neto .card-value {
  /*color: #1e3a8a;*/
  color: white;
}

.card-impuestos {
  /*border-left-color: #dc2626;*/
  background: #BB5555;
}

.card-impuestos .card-rpte-header {
  /*color: #dc2626;*/
  color: white;
}

.card-impuestos .card-value {
  /*color: #991b1b;*/
  color: white;
}

.card-descuentos {
  /*border-left-color: #f59e0b;*/
  background: #5BBAE9; 
}

.card-descuentos .card-rpte-header {
  /*color: #f59e0b;*/
  color: white; 
}

.card-descuentos .card-value {
  /*color: #b45309;*/
  color: white; 
  
}

.card-totales {
  /*border-left-color: #059669;*/
  background: #128A7A;
}

.card-totales .card-rpte-header {
  /*color: #059669;*/
  color: white;
}

.card-totales .card-value {
  /*color: #065f46;*/
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .card-rpte-header {
      font-size: 16px;
  }

  .card-value {
      font-size: 28px;
  }
  
  .card-rptes-container {
      gap: 20px;
  }
}

/* BOX PARA RANGO DE FECHAS Y FILTROS*/
.contenedor-filtros {
  background: white;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.seccion-filtros {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filtros-label {
  font-weight: 700;
  color: #333;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-range-filtros {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-range-input-filtros {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  min-width: 280px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.3s ease;
}

.date-range-input-filtros:hover {
  border-color: #4CAF50;
}

.date-range-input-filtros .placeholder-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.date-range-input-filtros i {
  color: #666;
}

.date-range-input-filtros .fa-calendar {
  font-size: 16px;
}

.date-range-input-filtros .fa-chevron-down {
  font-size: 12px;
}

.btn-filtros {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-group-filtros {
  display: flex;
  gap: 15px;
  align-items: center;
}

.checkbox-item-filtros {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item-filtros input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4CAF50;
}

.checkbox-item-filtros label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

@media (max-width: 768px) {
  .contenedor-filtros {
      flex-direction: column;
      align-items: stretch;
  }

  .date-range-filtros,
  .buttons-group-filtros,
  .checkbox-group-filtros {
      width: 100%;
      justify-content: center;
  }
}


/* ESTILOS PARA MODULOS TICKETS */
  .header-modulo {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    position: relative;
    margin-bottom: 30px;
  }

  .header-modulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
  }

  .header-modulo .icon {
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
  }

  .header-modulo .ticket-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
    word-break: break-word;
    margin: 0;
  }

  .header-modulo .ticket-badge {
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  .header-modulo.border-left::after {
    left: 0;
    transform: none;
  }

  .header-modulo.border-right::after {
    left: auto;
    right: 0;
    transform: none;
  }

  .header-modulo.border-solid::after {
    background: #3498db;
  }

  /* Contenido adicional debajo del header */
  .adicional-info {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: -15px;
  }

  @media (max-width: 768px) {
    .header-modulo {
        padding: 15px 20px;
        gap: 12px;
    }

    .header-modulo .ticket-text {
        font-size: 18px;
        width: 100%;
        order: 2;
    }

    .header-modulo .icon {
        order: 1;
    }

    .header-modulo .ticket-badge {
        order: 3;
        margin-left: auto;
    }

    .header-modulo::after {
        width: 60%;
    }
  }

  @media (max-width: 480px) {
    .header-modulo {
        padding: 12px 15px;
    }

    .header-modulo .ticket-text {
        font-size: 16px;
    }

    .header-modulo .icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }

    .header-modulo .ticket-badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    .header-modulo::after {
        width: 80%;
    }
  }

  /* Estilos la info del ticket (contenedor) */
  .ticket-contenedor {
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .ticket-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .ticket-info-left,
  .ticket-info-right {
    flex: 1;
    min-width: 300px;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 0.5px solid #8d959c;
  }

  .info-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.75rem;
  }

  .info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .info-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-label {
    font-weight: 600;
    font-size: 0.875rem;
    /*color: #495057;*/
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .info-value {
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 0.125rem;
  }

  .totals-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    margin-top: 0.5rem;
  }

  .total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
  }

  .total-item .info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
  }

  .total-item:last-child .info-value {
    color: #0d6efd;
    font-size: 1.25rem;
  }

  .productos-tabla {
    width: 100%;
  }

  .productos-tabla thead {
    background: #e9ecef;
  }

  .productos-tabla th {
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #001524;
    text-transform: uppercase;
    border: none;
  }

  .productos-tabla tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
  }

  .productos-tabla tbody tr:hover {
    background-color: #f8f9fa;
  }

  .productos-tabla td {
    padding: 0.875rem 0.75rem;
    font-size: 0.9rem;
    color: #001524;
  }

  .col-product {
    font-weight: 500;
  }

  .col-quantity {
    text-align: center;
    font-weight: 600;
    color: #0d6efd;
  }

  .col-price,
  .col-total {
    text-align: right;
    font-weight: 500;
  }

  .col-total {
    color: #198754;
    font-weight: 600;
  }

  @media (max-width: 768px) {
    .ticket-info-left,
    .ticket-info-right {
      min-width: 100%;
    }
    
    .info-section {
      flex-direction: column;
      gap: 0.75rem;
    }
  }

  /* Estilos para botones de acción en el mismo contenedor de tickets */
  .ticket-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .actions-left {
    display: flex;
    gap: 0.5rem;
  }

  .actions-right {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .ticket-acciones .btn-ticket {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }

  .ticket-acciones .btn-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .ticket-acciones .btn-back {
    background-color: #ffffff;
    color: #6c757d;
    border-color: #6c757d;
  }

  .ticket-acciones .btn-back:hover {
    background-color: #6c757d;
    color: #ffffff;
  }

  .ticket-acciones .btn-pdf {
    background-color: #ffffff;
    color: #577590;
    border-color: #577590;
  }

  .ticket-acciones .btn-pdf:hover {
    background-color: #577590;
    color: #ffffff;
  }

  .ticket-acciones .btn-print {
    background-color: #ffffff;
    color: #0077b6;
    border-color: #0077b6;
  }

  .ticket-acciones .btn-print:hover {
    background-color: #0077b6;
    color: #ffffff;
  }

  .ticket-acciones .btn-facturar {
    background-color: #ffffff;
    color: #9d4edd;
    border-color: #9d4edd;
  }

  .ticket-acciones .btn-facturar:hover {
    background-color: #9d4edd;
    color: #ffffff;
  }

  .ticket-acciones .btn-facturar:disabled {
    background-color: #ffffff;
    color: #C5C3C6;
  }

  .ticket-acciones .btn-modificar {
    background-color: #ffffff;
    color: #3a86ff;
    border-color: #3a86ff;
  }

  .ticket-acciones .btn-modificar:hover {
    background-color: #3a86ff;
    color: #ffffff;
  }

  .ticket-acciones .btn-modificar:disabled {
    background-color: #ffffff;
    color: #C5C3C6;
  }

  .ticket-acciones .btn-cancelar {
    background-color: #ffffff;
    color: #f94144;
    border-color: #f94144;
  }

  .ticket-acciones .btn-cancelar:hover {
    background-color: #f94144;
    color: #ffffff;
  }

  @media (max-width: 992px) {
    .ticket-acciones {
      flex-direction: column;
      align-items: stretch;
    }
    
    .actions-left,
    .actions-right {
      width: 100%;
      justify-content: center;
    }
  }
/**/

/* SOLO MENSAJE PARA MODAL */
  .modal-body p.lead {
    font-size: 1.1rem ;
    line-height: 1.6 ;
  }
/**/

.rango{
  cursor: pointer;
}

/* Estilos para las tarjetas de productos */

  .damVtas .product-card {
   border: 2px solid #e0e0e0;
   border-radius: 12px;
   transition: all 0.3s ease;
   cursor: pointer;
   height: 100%;
   background: white;
   display: flex;
    flex-direction: column;  
  }

  .damVtas .product-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 16px rgba(0,0,0,0.1);
   border-color: #0d6efd;
  }

  .damVtas .product-image {
   width: 100%;
   height: 180px;
   /*object-fit: cover;*/
   border-radius: 10px 10px 0 0;
   /*background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);*/
   /*background: #17a2b8;*/
   background: #e5e9f0;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   /*font-size: 3rem;*/
   flex-shrink: 0;
   overflow: hidden;
   position: relative;
  }

  .damVtas .product-image img {
   width: 100%;
   height: 100%;
   /*object-fit: cover;*/
   position: absolute;
   top: 0;
   left: 0;
  }

  .damVtas .product-image-placeholder {
   font-size: 3rem;
   text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .damVtas .product-card-body {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .damVtas .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .damVtas .product-name {
   font-weight: 600;
   color: #333;
   margin: 10px 0 5px 0;
   height: 45px;
   /*min-height: 40px;*/
   /*display: flex;*/
   /*display: -webkit-box;*/
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   /*align-items: center;
   justify-content: center;*/
   overflow: hidden;
   text-overflow: ellipsis;
   line-height: 1.4;
  }

  .damVtas .product-price {
   color: #28a745;
   font-size: 1.2rem;
   font-weight: bold;
   margin-bottom: 10px;
  }

  .damVtas .btn-add-product {
   width: 100%;
   border-radius: 8px;
   font-weight: 600;
   transition: all 0.3s ease;
  }

  .damVtas .btn-add-product:hover {
   transform: scale(1.05);
  }

  /* Estilos para el carrito de venta */
  .damVtas .sale-box {
   background: white;
   border-radius: 12px;
   padding: 20px;
   box-shadow: 0 4px 12px rgba(0,0,0,0.1);
   position: sticky;
   top: 20px;
   max-height: calc(100vh - 40px);
   overflow-y: auto;
  }

  .damVtas .sale-box-header {
   /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
   background: #434c5e;
   color: white;
   padding: 15px;
   border-radius: 8px;
   margin-bottom: 20px;
  }

  .damVtas .sale-item {
   border-bottom: 1px solid #e0e0e0;
   padding: 12px 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   transition: background 0.2s ease;
  }

  .damVtas .sale-item:hover {
   background-color: #f8f9fa;
  }

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

  .damVtas .item-quantity {
   display: flex;
   align-items: center;
   gap: 10px;
  }

  .damVtas .quantity-btn {
   width: 30px;
   height: 30px;
   border-radius: 50%;
   border: none;
   background: #6c757d;
   color: white;
   font-weight: bold;
   cursor: pointer;
   transition: all 0.2s ease;
  }

  .damVtas .quantity-btn:hover {
   background: #5a6268;
   transform: scale(1.1);
  }

  .damVtas .quantity-value {
   min-width: 30px;
   text-align: center;
   font-weight: bold;
  }

  .damVtas .remove-item {
   color: #dc3545;
   cursor: pointer;
   font-size: 1.2rem;
   transition: all 0.2s ease;
  }

  .damVtas .remove-item:hover {
   color: #bd2130;
   transform: scale(1.2);
  }

  .damVtas .total-section {
   margin-top: 20px;
   padding-top: 20px;
   border-top: 2px solid #dee2e6;
  }

  .damVtas .total-amount {
   font-size: 1.8rem;
   font-weight: bold;
   color: #28a745;
  }

  .damVtas .empty-cart {
  text-align: center;
   padding: 40px 20px;
   color: #6c757d;
  }

  .damVtas .empty-cart i {
   font-size: 4rem;
   margin-bottom: 15px;
  }

  .damVtas .search-box {
   margin-bottom: 18px;
  }

  .damVtas .badge-quantity {
   background: #dc3545;
   color: white;
   border-radius: 50%;
   padding: 2px 8px;
   font-size: 0.8rem;
   margin-left: 10px;
  }

  /* Estilos para métodos de pago */
  .damVtas .payment-method-btn {
   padding: 30px 20px;
   transition: all 0.3s ease;
  }

  .damVtas .payment-method-btn:hover {
   transform: scale(1.05);
   box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .damVtas .payment-method-btn.active {
   background-color: #0d6efd;
   color: white;
   border-color: #0d6efd;
  }

  /* Estilos para el ticket */
  .damVtas .ticket-print {
   font-family: 'Courier New', monospace;
   background: white;
   padding: 20px;
   max-width: 300px;
   margin: 0 auto;
   border: 2px dashed #333;
  }

  .damVtas .ticket-header {
   text-align: center;
   border-bottom: 2px dashed #333;
   padding-bottom: 10px;
   margin-bottom: 15px;
  }

  .damVtas .ticket-item {
   display: flex;
   justify-content: space-between;
   margin-bottom: 5px;
   font-size: 0.9rem;
  }

  .damVtas .ticket-total {
   border-top: 2px dashed #333;
   padding-top: 10px;
   margin-top: 10px;
   font-weight: bold;
   font-size: 1.1rem;
  }

  .damVtas .ticket-footer {
   text-align: center;
   margin-top: 15px;
   padding-top: 10px;
   border-top: 2px dashed #333;
   font-size: 0.8rem;
  }

  /* Estilos para tarjetas de promoción */
  .damVtas .promo-card {
   cursor: pointer;
   transition: all 0.3s ease;
   border: 2px solid #e0e0e0;
  }

  .damVtas .promo-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 5px 15px rgba(0,0,0,0.2);
   border-color: #17a2b8;
  }

  .damVtas .customer-section, .promo-section {
   border-bottom: 1px solid #e0e0e0;
   padding-bottom: 15px;
  }

  /* Estilos para paginación */
  .damVtas .btn-arrow {
    background: none;
    border: none;
    color: #17a2b8;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
  }

  .damVtas .btn-arrow:hover:not(:disabled) {
    color: #0d6efd;
    transform: scale(1.2);
  }

  .damVtas .btn-arrow:disabled {
    color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.5;
  }

  .damVtas .pagination-info {
    font-size: 1rem;
  }

  .damVtas .page-number {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
  }

  .damVtas .page-number:hover {
    background-color: #e9ecef;
    border-color: #0d6efd;
  }

  .damVtas .page-number.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
  }

  /* Estilos para el escáner de código de barras */
  .damVtas .barcode-scanner {
   position: relative;
  }

  .damVtas .scanner-icon {
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);
   color: #6c757d;
   font-size: 1.5rem;
  }

  @media print {
   body * {
       visibility: hidden;
   }
   .damVtas .ticket-print, .ticket-print * {
       visibility: visible;
   }
   .damVtas .ticket-print {
       position: absolute;
       left: 0;
       top: 0;
   }
  }

  /* Loader para carga de productos*/
  .damVtas .loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*padding: 60px 20px;*/
    min-height: 400px;  /* Altura mínima para centrado vertical */
    width: 100%; 
  }

  .damVtas .loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #17a2b8;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spins 1s linear infinite;
  }

  /* Area de carga de loader - Modal oscuro y transparente */
  /*.damVtas .loader-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .damVtas .loader-content {
    color: #fff;
    font-family: Arial, sans-serif;
  }

  .damVtas .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px; height: 60px;
    margin: 0 auto 15px;
    animation: spins 1s linear infinite;
  }

  .damVtas .loader-text {
    font-size: 18px;
    font-weight: bold;
  }*/

  @keyframes spins {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
/* FIN - Estilos para ventas de productos */

/* DATATABLE - Reducir padding y tamaño de fuente*/
  .damReduceTable table.dataTable tbody th,
  table.dataTable tbody td {
    padding: 4px 6px;
    font-size: 13px;
  }

  .damReduceTable table.dataTable thead th {
    padding: 6px 6px;
    font-size: 13px;
  }

  .damReduceTable .dataTables_wrapper .dataTables_filter input {
    height: 28px;
    font-size: 13px;
  }

  /* SOLO afecta las filas del cuerpo */
  .damReduceTableFile table.dataTable tbody td,
    table.dataTable tbody th {
      padding: 3px 6px !important; /* reduce altura */
      font-size: 13px;             /* tamaño de texto más pequeño */
  }

  /* --- 2. Contro de paginas más pequeño --- */
  .damReduceTable .dataTables_wrapper .dataTables_paginate {
    height: 28px !important;
    padding: 2px 6px !important;
    font-size: 6px !important;
    line-height: 1 !important;
  }


  /* --- 3. Select de “Mostrar X registros” --- */
  .damReduceTable .dataTables_wrapper .dataTables_length select {
    height: 28px !important;
    padding: 2px 6px !important;
    font-size: 13px !important;
  }


  /* --- 4. Texto de “Mostrando registros…” --- */
  .damReduceTable .dataTables_wrapper .dataTables_info {
    font-size: 12px !important;
    padding-top: 6px !important;
  }
/*FIN DATABLE - Reducir padding y tamaño de fuente*/

/* COTIZACIONES */

  .damcoti .search-box  {
    position: relative;
  }

  .damcoti .search-box input {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem 0.75rem 3rem;
    transition: all 0.3s ease;
  }

  .damcoti .search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
  }

  .damcoti .search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
  }

  .damcoti .filter-buttons .btn {
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .damcoti .filter-buttons .btn.active {
    background: #118ab2;
    border-color: #118ab2;
    color: white;
  }

  .damcoti .section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
  }  

  .damcoti .table-container {
    border-radius: 12px;
    overflow: hidden;
  }

  .damcoti .table {
    margin: 0;
  }

  .damcoti .table thead {
    background: #f8fafc;
  }

  .damcoti .table thead th {
    border: none;
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .damcoti .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
  }  

  .damcoti .table tbody tr {
    transition: background-color 0.2s ease;
  }

  .damcoti .table tbody tr:hover {
    background-color: #f1f5f9;
  }  

  .damcoti #itemsTable {
    margin-bottom: 1rem;
  }

  .damcoti #itemsTable input, #itemsTable select {
    border: 1px solid var(--border-color);
    padding: 0.4rem;
    font-size: 0.9rem;
  }

  .damcoti .product-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .damcoti .product-input-container .item-description {
    flex: 1;
    margin: 0 !important;
  }

  .damcoti .product-input-container .btn-change-product {
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0 !important;
  }

  #dateFrom, #dateTo {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    transition: all 0.3s ease;
  }

  #dateFrom:focus, #dateTo:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
  }

  #clearDateFilter {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  #clearDateFilter:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
  }

  .damcoti .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
  }

  .damcoti .badge-pending {
    background: #ffd166;
    color: white;
  }

  .damcoti .badge-approved {
    background: #06d6a0;
    color: white;
  }

  .damcoti .badge-rejected {
    background: #ef476f;
    color: white;
  }   

  .damcoti .quote-number {
    font-weight: 600;
    color: var(--primary-color);
  }

  .damcoti .client-name {
    font-weight: 500;
    color: var(--text-primary);
  }

  .damcoti .amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
  }

  .damcoti .modal-content {
    border: none;
    border-radius: 16px;
  }

  .damcoti .modal-header {
    background: #37474f;
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
  }

  .damcoti .modal-title {
    font-weight: 600;
  }

  .damcoti .modal-body {
    padding: 2rem;
  }

  .damcoti .section-title {
    color: #37474f;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
  }

  .damcoti .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }

  .damcoti .form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    transition: all 0.3s ease;
  }

  .damcoti .form-control:focus, .form-select:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
  }  

  .damcoti .totals-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
  }

  .damcoti .total-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .damcoti .total-amount {
    font-size: 1.5rem;
    color: var(--success-color);
  }

  .damcoti .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
  }

  .damcoti .modal-footer .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
  }

  .damcoti .pagination-container {
    border-top: 2px solid var(--border-color);
    background: var(--bg-card);
  }

  .damcoti .pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }

  .damcoti .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .damcoti .page-item {
    margin: 0 0.2rem;
  }

  .damcoti .page-link {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #118ab2;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
    min-width: 40px;
    text-align: center;
  }

  .damcoti .page-link:hover {
    background: #118ab2;
    color: white;
    border-color: #118ab2;
  }

  .damcoti .page-item.active .page-link {
    background: #4cc9f0;
    color: white;
    border-color: #4cc9f0;
  }

  .damcoti .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .damcoti .page-item.disabled .page-link:hover {
    background: white;
    color: var(--text-primary);
    border-color: var(--border-color);
  }


/* FIN - Cotizaciones */

/* Efectos en input*/

  .shakeinput {
    animation: shake 0.3s ease;
  }

  @keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
  }
/* FIN - Efectos en input */




