@charset "UTF-8";

:root {

  /* Base */
  --alm-bg:             #F8F7FC;
  --alm-surface:        #F0EEF8;
  --alm-surface-alt:    #E5E2F2;
  --alm-border:         #D1CDEA;
  --alm-border-soft:    #E5E2F2;

  /* Texto */
  --alm-text-primary:   #1E1B33;
  --alm-text-secondary: #4B4669;
  --alm-text-muted:     #9590B0;
  --alm-text-inverse:   #F8F7FC;

  /* Acento violeta índigo */
  --alm-indigo:         #4F46E5;
  --alm-indigo-light:   #EEF2FF;
  --alm-indigo-mid:     #C7D2FE;
  --alm-indigo-dark:    #3730A3;
  --alm-indigo-hover:   #4338CA;

  /* Colores de grupo — hasta 8 paletas para diferenciar grupos */
  --alm-g1:   #4F46E5;  /* índigo   */
  --alm-g1b:  #EEF2FF;
  --alm-g2:   #0891B2;  /* cian     */
  --alm-g2b:  #ECFEFF;
  --alm-g3:   #16A34A;  /* verde    */
  --alm-g3b:  #DCFCE7;
  --alm-g4:   #D97706;  /* ámbar    */
  --alm-g4b:  #FEF3C7;
  --alm-g5:   #DC2626;  /* rojo     */
  --alm-g5b:  #FEE2E2;
  --alm-g6:   #DB2777;  /* rosa     */
  --alm-g6b:  #FCE7F3;
  --alm-g7:   #7C3AED;  /* violeta  */
  --alm-g7b:  #EDE9FE;
  --alm-g8:   #0284C7;  /* azul     */
  --alm-g8b:  #E0F2FE;

  /* Estados */
  --alm-ok:         #16A34A;
  --alm-ok-bg:      #DCFCE7;
  --alm-warn:       #D97706;
  --alm-warn-bg:    #FEF3C7;
  --alm-danger:     #DC2626;
  --alm-danger-bg:  #FEE2E2;
  --alm-info:       #0284C7;
  --alm-info-bg:    #E0F2FE;

  /* Tipografía */
  --alm-font-ui:   'Sora', system-ui, sans-serif;
  --alm-font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Escala de tipo */
  --alm-text-xs:   0.72rem;
  --alm-text-sm:   0.82rem;
  --alm-text-base: 0.92rem;
  --alm-text-md:   1rem;
  --alm-text-lg:   1.125rem;
  --alm-text-xl:   1.35rem;
  --alm-text-2xl:  1.65rem;

  /* Radios y sombras */
  --alm-radius-sm:  6px;
  --alm-radius:     10px;
  --alm-radius-lg:  16px;
  --alm-radius-pill:999px;
  --alm-shadow-sm:  0 1px 3px rgba(30,27,51,.07);
  --alm-shadow:     0 3px 10px rgba(30,27,51,.09);
  --alm-shadow-md:  0 6px 20px rgba(30,27,51,.12);
  --alm-shadow-lg:  0 12px 36px rgba(30,27,51,.15);

  /* Transición */
  --alm-transition: 180ms cubic-bezier(.4,0,.2,1);


  --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;
  --pos-bg: #f5f7fb;              /* fondo general */
  --pos-surface: #ffffff;        /* barras y top */
  --pos-card: #ffffff;           /* tarjetas */
  --pos-border: #e5e7eb;         /* bordes suaves */
  --pos-accent: #10b981;         /* verde moderno */
  --pos-accent2: #3b82f6;        /* azul */
  --pos-accent3: #f59e0b;        /* naranja */
  --pos-danger: #ef4444;         /* rojo */
  --pos-text: #1f2937;           /* texto principal oscuro */
  --pos-muted: #6b7280;          /* texto secundario */

  --gtt-bg: #2b2b33;          /* fondo del globo (oscuro tipo title) */
  --gtt-text: #f4f1ea;        /* texto del globo */
  --gtt-radius: 8px;
  --gtt-arrow: 7px;           /* tamaño de la flechita */
  --gtt-gap: 10px;            /* separación globo <-> input */
  --gtt-shadow: 0 8px 22px rgba(0,0,0,.22);

  /* Variantes semánticas */
  --gtt-info: #2b2b33;
  --gtt-error: #b3261e;
  --gtt-success: #1f7a4d;
  --gtt-warning: #9a6a00;

  /* Acento ámbar — identidad del módulo Naranja */
  --rec-amber:          #D97706;
  --rec-amber-light:    #FEF3C7;
  --rec-amber-mid:      #FDE68A;
  --rec-amber-dark:     #92400E;
  --rec-amber-hover:    #B45309; 

  /* Hover / énfasis */
  --en-50:           #e6f9f2;
  --en-100:          #b3edd8;
  --en-200:          #6dd9b3;
  --en-400:          #1ab87a;   /* Color principal / botones */
  --en-600:          #0e8a59;   /* Hover / énfasis */
  --en-800:          #075e3c;   /* Texto fuerte */
  --en-900:          #033d27;
 

  --modal-bg:      #ffffff;
  --surface:       #f7f6f3;
  --border:        rgba(0,0,0,0.10);
  --border-md:     rgba(0,0,0,0.18);
  --accent:        #185FA5;
  --accent-light:  #E6F1FB;
  --accent-dark:   #0C447C;
  --success:       #3B6D11;
  --success-light: #EAF3DE;
  --danger:        #A32D2D;
  --danger-light:  #FCEBEB;
  --warning:       #854F0B;
  --warning-light: #FAEEDA;
  --radius:        8px;
  --radius-lg:     12px;   
  
  --badge-primary:  rgba(59, 130, 246, 0.15);
  --badge-success:  rgba(34, 197, 94, 0.15);
  --badge-warning:  rgba(234, 179, 8, 0.15);
  --badge-danger:   rgba(220, 38, 38, 0.15);
  --badge-negro:    rgba(0, 0, 0, 0.1);
  --badge-morado:   rgba(124, 58, 237, 0.15);
  
  --badgeColor-primary: #1D4ED8;
  --badgeColor-success: #15803D;
  --badgeColor-warning: #A16207;
  --badgeColor-danger:  #B91C1C;
  --badgeColor-negro:   #111827;
  --badgeColor-morado:  #5B21B6; 

  --badgeHover-primary: rgba(59, 130, 246, 0.25);
  --badgeHover-success: rgba(34, 197, 94, 0.25);
  --badgeHover-warning: rgba(234, 179, 8, 0.25);
  --badgeHover-danger:  rgba(220, 38, 38, 0.25);
  --badgeHover-negro:   rgba(0, 0, 0, 0.2);
  --badgeHover-morado:  rgba(124, 58, 237, 0.25);  

  --pos-mono: 'IBM Plex Mono', monospace;
  --pos-sans: 'Sora', sans-serif;
}

.modulos {

  /* Base */

  /*--vta-bg:            #F9FAF7;*/
  --vta-bg:            #f2f7fb;
  --vta-surface:       #F0F4EE;
  --vta-surface-alt:   #E4EBE1;
  --vta-border:        #D1D9CD;
  --vta-border-soft:   #E4EBE1;

  /* Texto */
  --vta-text-primary:   #1A1F18;
  --vta-text-secondary: #4D5A49;
  --vta-text-muted:     #8FA38A;
  --vta-text-inverse:   #F9FAF7;

  /* Acento verde esmeralda — identidad ventas */
  --vta-green:          #16A34A;
  --vta-green-light:    #DCFCE7;
  --vta-green-mid:      #BBF7D0;
  --vta-green-dark:     #14532D;
  --vta-green-hover:    #15803D;

  /* Secundario ámbar — precios / totales */
  --vta-amber:          #D97706;
  --vta-amber-light:    #FEF3C7;
  --vta-amber-dark:     #92400E;

  /* Estados */
  --vta-success:        #16A34A;
  --vta-success-bg:     #DCFCE7;
  --vta-warning:        #D97706;
  --vta-warning-bg:     #FEF3C7;
  --vta-danger:         #DC2626;
  --vta-danger-bg:      #FEE2E2;
  --vta-info:           #2563EB;
  --vta-info-bg:        #EFF6FF;

  /* Estados de venta */
  --vta-est-completada: #16A34A;
  --vta-est-comp-bg:    #DCFCE7;
  --vta-est-pendiente:  #D97706;
  --vta-est-pend-bg:    #FEF3C7;
  --vta-est-cancelada:  #DC2626;
  --vta-est-canc-bg:    #FEE2E2;

  /* Métodos de pago */
  --vta-mp-efectivo:    #16A34A;
  --vta-mp-tarjeta:     #2563EB;
  --vta-mp-transfer:    #7C3AED;
  --vta-mp-mixto:       #D97706;

  /* Tipografía */
  --vta-font-ui:        'Sora', system-ui, sans-serif;
  --vta-font-mono:      'IBM Plex Mono', 'Courier New', monospace;

  /* Escala tipo */
  --vta-text-xs:        0.72rem;
  --vta-text-sm:        0.82rem;
  --vta-text-base:      0.92rem;
  --vta-text-md:        1rem;
  --vta-text-lg:        1.125rem;
  --vta-text-xl:        1.35rem;
  --vta-text-2xl:       1.65rem;
  --vta-text-3xl:       2rem;

  /* Radios y sombras */
  --vta-radius-sm:      6px;
  --vta-radius:         10px;
  --vta-radius-lg:      16px;
  --vta-radius-pill:    999px;
  --vta-shadow-sm:      0 1px 3px rgba(26,31,24,.07);
  --vta-shadow:         0 3px 10px rgba(26,31,24,.09);
  --vta-shadow-md:      0 6px 20px rgba(26,31,24,.12);
  --vta-shadow-lg:      0 12px 36px rgba(26,31,24,.14);

  /* Transición */
  --vta-transition:     180ms cubic-bezier(.4,0,.2,1);

  /* Base */
  font-family: var(--vta-font-ui);
  font-size:   var(--vta-text-base);
  color:       var(--vta-text-primary);
  background:  var(--vta-bg);
  min-height:  100vh;
  padding:     1.5rem 1rem 3rem;
}

.caja-modulo {
  /* Base */
  --alm-bg:             #F8F7FC;
  --alm-surface:        #F0EEF8;
  --alm-surface-alt:    #E5E2F2;
  --alm-border:         #D1CDEA;
  --alm-border-soft:    #E5E2F2;

  /* Texto */
  --alm-text-primary:   #1E1B33;
  --alm-text-secondary: #4B4669;
  --alm-text-muted:     #9590B0;
  --alm-text-inverse:   #F8F7FC;

  /* Acento violeta índigo */
  --alm-indigo:         #4F46E5;
  --alm-indigo-light:   #EEF2FF;
  --alm-indigo-mid:     #C7D2FE;
  --alm-indigo-dark:    #3730A3;
  --alm-indigo-hover:   #4338CA;

  /* Colores de grupo — hasta 8 paletas para diferenciar grupos */
  --alm-g1:   #4F46E5;  /* índigo   */
  --alm-g1b:  #EEF2FF;
  --alm-g2:   #0891B2;  /* cian     */
  --alm-g2b:  #ECFEFF;
  --alm-g3:   #16A34A;  /* verde    */
  --alm-g3b:  #DCFCE7;
  --alm-g4:   #D97706;  /* ámbar    */
  --alm-g4b:  #FEF3C7;
  --alm-g5:   #DC2626;  /* rojo     */
  --alm-g5b:  #FEE2E2;
  --alm-g6:   #DB2777;  /* rosa     */
  --alm-g6b:  #FCE7F3;
  --alm-g7:   #7C3AED;  /* violeta  */
  --alm-g7b:  #EDE9FE;
  --alm-g8:   #0284C7;  /* azul     */
  --alm-g8b:  #E0F2FE;

  /* Estados */
  --alm-ok:         #16A34A;
  --alm-ok-bg:      #DCFCE7;
  --alm-warn:       #D97706;
  --alm-warn-bg:    #FEF3C7;
  --alm-danger:     #DC2626;
  --alm-danger-bg:  #FEE2E2;
  --alm-info:       #0284C7;
  --alm-info-bg:    #E0F2FE;

  /* Tipografía */
  --alm-font-ui:   'Sora', system-ui, sans-serif;
  --alm-font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Escala de tipo */
  --alm-text-xs:   0.72rem;
  --alm-text-sm:   0.82rem;
  --alm-text-base: 0.92rem;
  --alm-text-md:   1rem;
  --alm-text-lg:   1.125rem;
  --alm-text-xl:   1.35rem;
  --alm-text-2xl:  1.65rem;

  /* Radios y sombras */
  --alm-radius-sm:  6px;
  --alm-radius:     10px;
  --alm-radius-lg:  16px;
  --alm-radius-pill:999px;
  --alm-shadow-sm:  0 1px 3px rgba(30,27,51,.07);
  --alm-shadow:     0 3px 10px rgba(30,27,51,.09);
  --alm-shadow-md:  0 6px 20px rgba(30,27,51,.12);
  --alm-shadow-lg:  0 12px 36px rgba(30,27,51,.15);

  /* Transición */
  --alm-transition: 180ms cubic-bezier(.4,0,.2,1);

  /* Base */
  font-family: var(--alm-font-ui);
  font-size:   var(--alm-text-base);
  color:       var(--alm-text-primary);
  background:  var(--alm-bg);
  min-height:  100vh;
  padding:     1.5rem 1rem 3rem;
}


a:hover {
  color: inherit;
  text-decoration: none;
}

/* 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-msj {
  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);
}

.tooltip-validacion {
  position: relative;
  /*display: block;*/
  display: inline-block;
  margin-top: .35rem;
  /*padding: .5rem .75rem;*/
  padding: .25rem .5rem;
  border-radius: .375rem;
  font-size: .75rem;
}

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

input.is-invalid {
  border-color: #dc3545 !important;
}

.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) ------------ */
  
  /* 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-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.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-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);
  }
  
/***************************************************/

.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;
   }
  }  

/* 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-size: 14px;*/
    /*font-weight: 500;*/
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;

  }

  .damcoti .form-control, .form-select {
    font-size: 14px;
    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 */

/* REPORTES VENTAS */

  .pos-toolbar {
    background: var(--pos-surface);
    border-bottom: 1px solid var(--pos-border);
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }  
  .pos-btn {
    font-family: var(--pos-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--pos-border);
    background: transparent;
    color: var(--pos-muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .pos-btn:hover { border-color: var(--pos-accent); color: var(--pos-accent); }
  .pos-btn.active {
    background: rgba(0,212,160,0.12);
    border-color: rgba(0,212,160,0.4);
    color: var(--pos-accent);
  }
  .pos-btn-primary {
    background: var(--pos-accent);
    color: white;
    border-color: var(--pos-accent);
    font-weight: 600;
  }
  .pos-btn-primary:hover { background: #00b88a; color: #0f1117; border-color: #00b88a; }

  .pos-select {
    font-family: var(--pos-sans);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--pos-border);
    background: var(--pos-card);
    color: var(--pos-text);
    cursor: pointer;
  }
  .pos-select:focus { outline: none; border-color: var(--pos-accent2); }

  .pos-sep { width: 1px; height: 24px; background: var(--pos-border); margin: 0 4px; }
  .pos-spacer { flex: 1; }

  .pos-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }

  .pos-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
  }
  .pos-kpi {
    background: var(--pos-card);
    border: 1px solid var(--pos-border);
    border-radius: 10px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
  }
  .pos-kpi::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--kpi-color, var(--pos-accent));
  }
  .pos-kpi-label {
    font-size: 15px;
    color: var(--pos-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }
  .pos-kpi-value {
    font-family: var(--pos-mono);
    font-size: 22px;
    font-weight: 500;
    color: var(--pos-text);
    margin-bottom: 4px;
  }
  .pos-kpi-delta {
    font-family: var(--pos-mono);
    font-size: 11px;
  }

  .pos-main-grid { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
  .pos-kpi-delta.up { color: var(--pos-accent); }
  .pos-kpi-delta.down { color: var(--pos-danger); }

  .tab-row { display: flex; gap: 2px; }
  .pos-tab {
    font-size: 10px; 
    padding: 4px 10px; 
    border-radius: 5px;
    border: none; 
    background: transparent; 
    color: var(--pos-muted);
    cursor: pointer; 
    font-family: var(--pos-sans); font-weight: 500;
  }
  .pos-tab.active { 
    background: var(--badge-primary); 
    color: var(--pos-accent2); 
  }
  .pos-tab.limpiar { 
    background: rgba(220, 38, 38, 0.1); 
    color: var(--pos-danger); 
  }
  .pos-tab.success { 
    background: var(--badge-success); 
    color: var(--pos-accent); 
  }
  .pos-tab.fecha { 
    background: var(--surface-2); 
    color: var(--text-muted); 
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 12px; 
    cursor: default; 
  }

  .pos-tab.limpiar:hover { background: #FECACA; }
  .pos-tab.active:hover { background: var(--badgeHover-primary); }
  .pos-tab.success:hover { background: var(--badgeHover-success); }

/* FIN REPORTES VENTAS */

/* =========================================
MODAL PARA REPORTE DE TICKETS
========================================= */
  .modalTicket .modal-overlay {
    display: none; /* JS lo cambia a flex al abrir */
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  .modalTicket .modal-overlay.activo {
    display: flex;
  }

  .modalTicket .modal-ticket {
    background: var(--modal-bg);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-md);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: var(--text-primary);
  }

  .modalTicket .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 0.5px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .modalTicket .modal-header-left { display: flex; flex-direction: column; gap: 6px; }

  .modalTicket .ticket-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .modalTicket .ticket-number {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
  }

  .modalTicket .badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
  }
  .badge-status.pagado    { background: var(--success-light); color: var(--success); }
  .badge-status.pendiente { background: var(--warning-light); color: var(--warning); }
  .badge-status.cancelado { background: var(--danger-light);  color: var(--danger);  }
  .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

  
  .modalTicket .btn-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 22px;
    padding: 2px 6px;
    line-height: 1;
    border-radius: var(--radius);
    transition: background 0.15s;
  }
  .modalTicket .btn-close:hover { background: var(--border); }

  .modalTicket .modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 0.5px solid var(--border);
  }
  .modalTicket .meta-cell {
    padding: 0.9rem 1.5rem;
    border-right: 0.5px solid var(--border);
  }
  .modalTicket .meta-cell:last-child { border-right: none; }
  .modalTicket .meta-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
  }
  .modalTicket .meta-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

  .modalTicket .modal-body { padding: 1.25rem 1.5rem; }

  .modalTicket .section-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
  }
 
  .modalTicket .nota-box {
    background: var(--warning-light);
    border-left: 3px solid #EF9F27;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--warning);
    margin-bottom: 1.25rem;
  }

  .modalTicket .tabla-productos {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    table-layout: fixed;
  }
  .modalTicket .tabla-productos th {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 0 8px;
    text-align: left;
    border-bottom: 0.5px solid var(--border-md);
  }
  .modalTicket .tabla-productos th.derecha,
  .modalTicket .tabla-productos td.derecha { text-align: right; }
  .modalTicket .tabla-productos th.centro,
  .modalTicket .tabla-productos td.centro  { text-align: center; }

  .modalTicket .tabla-productos td {
    padding: 10px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 13px;
    color: var(--text-primary);
    vertical-align: middle;
  }
  .modalTicket .tabla-productos tr:last-child td { border-bottom: none; }
  .modalTicket .prod-nombre { font-weight: 600; }
  .modalTicket .prod-sku    { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-family: monospace; }

  .modalTicket .qty-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
  }

  .modalTicket .totales {
    background: var(--surface);
    border-radius: var(--radius);
    border: 0.5px solid var(--border);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
  }
  .modalTicket .totales-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: var(--text-muted);
  }
  .modalTicket .totales-row.descuento   { color: var(--success); }
  .modalTicket .totales-row.total-final {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 0.5px solid var(--border-md);
    margin-top: 8px;
    padding-top: 10px;
  }

  .modalTicket .pago-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .modalTicket .pago-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border: 0.5px solid var(--border-md);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .modalTicket .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 1rem 1.5rem;
    border-top: 0.5px solid var(--border);
    background: var(--surface);
  }

  .modalTicket .btn {
    padding: 7px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 0.5px solid var(--border-md);
    background: var(--modal-bg);
    color: var(--text-primary);
    transition: background 0.15s, transform 0.1s;
  }
  .modalTicket .btn:hover  { background: var(--surface); }
  .modalTicket .btn:active { transform: scale(0.98); }

  .modalTicket .btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .modalTicket .btn-primary:hover { background: var(--accent-dark); }
    
  @media (max-width: 480px) {
    .modalTicket .modal-meta { grid-template-columns: 1fr 1fr; }
    .modalTicket .meta-cell:nth-child(3) { border-right: none; grid-column: 1 / -1; border-top: 0.5px solid var(--border); }
    .modalTicket .modal-footer { flex-direction: column; }
    .modalTicket .btn { width: 100%; text-align: center; }
  }

/* FIN - MODAL PARA REPORTE DE TICKETS */

/* ================================================
  ZONA DE IMPRESIÓN 
================================================ */
  #zona-impresion { display: none; }

  /* 
    @MEDIA PRINT — todo lo que NO es el ticket,
    desaparece; el ticket se imprime limpio
   */
  @media print {

    /* 1. Configuración de página */
    @page {
      size: A4 portrait;
      margin: 12mm 14mm 16mm 14mm;
    }

    /* 2. Resetear el body para impresión */
    body {
      background: #fff !important;
      margin: 0 !important;
      padding: 0 !important;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 10pt;
      color: #111 !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;          /* fuerza colores de fondo */
      color-adjust: exact;
    }

    /* 3. Ocultar TODO excepto la zona de impresión */
    body > *,
    .modal-overlay {
      display: none !important;
    }

    #zona-impresion {
      display: block !important;
      width: 100%;
    }

    /* ---- ENCABEZADO DEL PDF ---- */
    .pdf-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding-bottom: 10pt;
      border-bottom: 1.5pt solid #185FA5;
      margin-bottom: 14pt;
    }

    .pdf-empresa-nombre {
      font-size: 17pt;
      font-weight: 700;
      color: #185FA5;
      letter-spacing: -0.3pt;
    }
    .pdf-empresa-datos {
      font-size: 8pt;
      color: #555;
      line-height: 1.6;
      margin-top: 3pt;
    }
    .pdf-ticket-info { text-align: right; }
    .pdf-ticket-numero {
      font-size: 13pt;
      font-weight: 700;
      font-family: 'Courier New', monospace;
      color: #111;
    }
    .pdf-ticket-fecha {
      font-size: 8pt;
      color: #666;
      margin-top: 3pt;
    }

    /* Badge de estado imprimible */
    .pdf-badge {
      display: inline-block;
      margin-top: 5pt;
      padding: 2pt 9pt;
      border-radius: 12pt;
      font-size: 8pt;
      font-weight: 600;
    }
    .pdf-badge.pagado    { background: #EAF3DE; color: #3B6D11; }
    .pdf-badge.pendiente { background: #FAEEDA; color: #854F0B; }
    .pdf-badge.cancelado { background: #FCEBEB; color: #A32D2D; }

    /* ---- META: cliente / vendedor ---- */
    .pdf-meta {
      display: flex;
      gap: 0;
      margin-bottom: 14pt;
      border: 0.5pt solid #ddd;
      border-radius: 5pt;
      overflow: hidden;
    }
    .pdf-meta-cell {
      flex: 1;
      padding: 7pt 10pt;
      border-right: 0.5pt solid #ddd;
      background: #f7f6f3;
    }
    .pdf-meta-cell:last-child { border-right: none; }
    .pdf-meta-label {
      font-size: 7pt;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #888;
      font-weight: 600;
      margin-bottom: 2pt;
    }
    .pdf-meta-valor {
      font-size: 9pt;
      font-weight: 600;
      color: #111;
    }

    /* ---- NOTA ---- */
    .pdf-nota {
      background: #FAEEDA;
      border-left: 3pt solid #EF9F27;
      padding: 6pt 10pt;
      font-size: 8.5pt;
      color: #854F0B;
      margin-bottom: 14pt;
      border-radius: 0 4pt 4pt 0;
    }

    /* ---- SECCIÓN TITLE ---- */
    .pdf-section-title {
      font-size: 7.5pt;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: #888;
      margin-bottom: 6pt;
      padding-bottom: 3pt;
      border-bottom: 0.5pt solid #e0e0e0;
    }

    /* ---- TABLA DE PRODUCTOS ---- */
    .pdf-tabla {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 14pt;
      font-size: 9pt;
    }
    .pdf-tabla thead tr {
      background: #185FA5;
      color: #fff;
    }
    .pdf-tabla thead th {
      padding: 5pt 8pt;
      font-size: 7.5pt;
      font-weight: 600;
      text-align: left;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .pdf-tabla thead th.derecha { text-align: right; }
    .pdf-tabla thead th.centro  { text-align: center; }

    .pdf-tabla tbody tr:nth-child(even) { background: #f4f4f2; }
    .pdf-tabla tbody tr:nth-child(odd)  { background: #ffffff; }

    .pdf-tabla tbody td {
      padding: 6pt 8pt;
      border-bottom: 0.4pt solid #e8e8e8;
      color: #111;
      vertical-align: middle;
    }
    .pdf-tabla tbody td.derecha { text-align: right; }
    .pdf-tabla tbody td.centro  { text-align: center; }

    .pdf-prod-nombre { font-weight: 600; font-size: 9pt;}
    .pdf-prod-sku    { font-size: 7.5pt; color: #888; font-family: 'Courier New', monospace; }

    .pdf-qty {
      display: inline-block;
      background: #E6F1FB;
      color: #185FA5;
      border-radius: 4pt;
      padding: 1pt 7pt;
      font-size: 8pt;
      font-weight: 700;
    }

    /* ---- TOTALES ---- */
    .pdf-totales {
      width: 48%;
      margin-left: auto;
      margin-bottom: 14pt;
      border: 0.5pt solid #ddd;
      border-radius: 5pt;
      overflow: hidden;
    }
    .pdf-totales table {
      width: 100%;
      border-collapse: collapse;
      font-size: 9pt;
    }
    .pdf-totales table tr td {
      padding: 5pt 10pt;
      border-bottom: 0.4pt solid #eee;
    }
    .pdf-totales table tr:last-child td { border-bottom: none; }
    .pdf-totales table .label { color: #666; }
    .pdf-totales table .valor { text-align: right; font-weight: 500; }
    .pdf-totales table .descuento td { color: #3B6D11; }
    .pdf-totales table .total-final {
      background: #185FA5;
      color: #fff;
    }
    .pdf-totales table .total-final td {
      font-size: 10.5pt;
      font-weight: 700;
      padding: 7pt 10pt;
      border-bottom: none;
    }
    .pdf-totales table .total-final .valor { color: #fff; }

    /* ---- PAGO ---- */
    .pdf-pago {
      display: flex;
      align-items: center;
      gap: 8pt;
      margin-bottom: 20pt;
      font-size: 8.5pt;
      color: #444;
    }
    .pdf-pago-label { font-weight: 600; color: #888; text-transform: uppercase; letter-spacing:.05em; font-size:7.5pt; }
    .pdf-pago-chip {
      display: inline-block;
      border: 0.5pt solid #ccc;
      border-radius: 10pt;
      padding: 2pt 8pt;
      background: #f7f6f3;
      font-size: 8pt;
      font-weight: 500;
    }

    /* ---- PIE DEL PDF ---- */
    .pdf-footer {
      border-top: 0.5pt solid #ddd;
      padding-top: 8pt;
      display: flex;
      justify-content: space-between;
      font-size: 7.5pt;
      color: #aaa;
    }
    .pdf-footer-firma {
      text-align: center;
      width: 120pt;
    }
    .pdf-firma-linea {
      border-top: 0.5pt solid #999;
      margin-bottom: 3pt;
      margin-top: 30pt;
    }

    /* Forzar salto de página si el contenido es muy largo */
    .pdf-salto-pagina { page-break-after: always; }

    /* Evitar corte de filas al cambiar de página */
    .pdf-tabla tbody tr { page-break-inside: avoid; }
  }
/* ZONA DE IMPRESIÓN */

/* ================================================
ZONA DE LOADER
================================================ */

  .damLoader.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
  }

  .damLoader .loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }
/* fin loader */

/* ================================================
ZONA CANCELAR TICKET
================================================ */ 
  /* =============================================
     MODAL CANCELAR TICKET — Estilos personalizados
     Compatible con Bootstrap 5
     ============================================= */

  /* ── Overlay ── */
  .modal-backdrop.show {
    opacity: 0.7;
  }

  /* ── Contenedor principal ── */
  .modal-content.modal-cancelar {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  /* ─────────────────────────────────────────────
     HEADER
  ───────────────────────────────────────────── */
  .modal-cancelar__header {
    background: #3d0f0f;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(240, 149, 149, 0.15);
  }

  .modal-cancelar__icono {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(240, 149, 149, 0.15);
    border: 1px solid rgba(240, 149, 149, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .modal-cancelar__titulo {
    font-size: 15px;
    font-weight: 600;
    color: #f7c1c1;
    margin: 0;
    letter-spacing: 0.01em;
  }

  .modal-cancelar__subtitulo {
    font-size: 12px;
    color: #f09595;
    margin: 0;
    opacity: 0.8;
  }

  /* ─────────────────────────────────────────────
     BODY
  ───────────────────────────────────────────── */
  .modal-cancelar__body {
    padding: 1.5rem;
    background: #ffffff;
  }

  /* ── Tarjeta de datos del ticket ── */
  .ticket-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
  }

  .ticket-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
  }

  .ticket-info-row:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
  }

  .ticket-info-label {
    color: #6c757d;
    font-weight: 400;
  }

  .ticket-info-valor {
    font-weight: 600;
    color: #212529;
  }

  .ticket-info-valor.monto {
    color: #a32d2d;
    font-size: 14px;
  }

  /* ── Badge de estado ── */
  .badge-estado {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    background: #FCEBEB;
    color: #A32D2D;
    border: 0.5px solid #F09595;
  }
  
  .badge-estado-activo {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    background: #F0FDF4;
    color: #166534;
    border: 0.5px solid #BBF7D0;
  }

  /* ── Labels ── */
  .cancelar-motivo-label {
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 6px;
    display: block;
  }

  .cancelar-motivo-label .requerido {
    color: #e24b4a;
    margin-left: 2px;
  }

  /* ── Select ── */
  .cancelar-select {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 9px 36px 9px 12px;
    font-size: 13px;
    color: #212529;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
  }

  .cancelar-select:focus {
    border-color: #e24b4a;
    box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.12);
  }

  .cancelar-select.error {
    border-color: #e24b4a;
    box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.2);
  }

  /* ── Textarea ── */
  .cancelar-textarea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: #212529;
    background: #ffffff;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
    font-family: inherit;
  }

  .cancelar-textarea:focus {
    border-color: #e24b4a;
    box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.12);
  }

  /* ── Alerta informativa ── */
  .alerta-cancelar {
    background: #fcebeb;
    border: 1px solid #f09595;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1.25rem;
  }

  .alerta-cancelar__icono {
    flex-shrink: 0;
    margin-top: 1px;
  }

  .alerta-cancelar__texto {
    font-size: 12px;
    color: #791f1f;
    line-height: 1.55;
    margin: 0;
  }

  /* ── Checkbox de confirmación ── */
  .checkbox-confirmar {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
  }

  .checkbox-confirmar input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #a32d2d;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .checkbox-confirmar span {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.45;
  }

  /* ─────────────────────────────────────────────
     FOOTER
  ───────────────────────────────────────────── */
  .modal-cancelar__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
  }

  /* ─────────────────────────────────────────────
     BOTONES
  ───────────────────────────────────────────── */
  .btn-cancelar-accion {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
    line-height: 1;
  }

  /* Botón secundario — Regresar */
  .btn-cancelar-accion.secundario {
    background: transparent;
    border-color: #ced4da;
    color: #6c757d;
  }

  .btn-cancelar-accion.secundario:hover {
    background: #e9ecef;
    color: #343a40;
    border-color: #adb5bd;
  }

  .btn-cancelar-accion.secundario:active {
    background: #dee2e6;
  }

  /* Botón de peligro — Confirmar cancelación */
  .btn-cancelar-accion.peligro {
    background: #a32d2d;
    border-color: #791f1f;
    color: #fcebeb;
  }

  .btn-cancelar-accion.peligro:hover:not(:disabled) {
    background: #791f1f;
    border-color: #501313;
  }

  .btn-cancelar-accion.peligro:active:not(:disabled) {
    transform: scale(0.97);
    background: #501313;
  }

  /* Estado deshabilitado */
  .btn-cancelar-accion.peligro:disabled {
    background: #adb5bd;
    border-color: #9ba3ab;
    color: #dee2e6;
    cursor: not-allowed;
    opacity: 1;
  }

  /* Spinner dentro del botón al procesar */
  .btn-cancelar-accion .spinner-border {
    width: 13px;
    height: 13px;
    border-width: 2px;
    margin-right: 6px;
    vertical-align: middle;
  }

  /* ─────────────────────────────────────────────
     RESPONSIVE — pantallas pequeñas
  ───────────────────────────────────────────── */
  @media (max-width: 576px) {
    .modal-cancelar__header {
      padding: 1rem 1.25rem;
    }

    .modal-cancelar__body {
      padding: 1.25rem;
    }

    .modal-cancelar__footer {
      padding: 0.875rem 1.25rem;
      flex-direction: column-reverse;
    }

    .btn-cancelar-accion {
      width: 100%;
      text-align: center;
      padding: 11px 20px;
    }

    .ticket-info-card {
      padding: 0.875rem 1rem;
    }
  }

/* fin cancelar ticket */

/* ─────────────────────────────────────────────
  FORMATEO TEXTO PRODUCTOS
───────────────────────────────────────────── */

  .fm-item-name { font-weight: 500; color: var(--pos-text); }
  .fm-item-code {
    font-size: 11px;
    color: var(--pos-muted);
    font-family: 'DM Mono', monospace;
  }

  .fm-price { font-family: 'DM Mono', monospace; color: var(--pos-text); }
  .fm-total { font-family: 'DM Mono', monospace; font-weight: 600; color: var(--en-600); }

.error-msj {
  color: var(--pos-danger);
  font-size: .875rem;
  margin-top: .25rem;
}

.card.minimized .form-card__body{
    display:none;
}

.btn-card-toggle{
    border:none;
    background:none;
    cursor:pointer;
}

/* COLAPSAR / EXPANDIR CARDS */
.collapse-btn {
  width: 28px; height: 28px;
  border-radius: var(--vta-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--vta-text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  transition: all var(--vta-transition);
  flex-shrink: 0;
  margin-left: .25rem;
}
.collapse-btn:hover { background: rgba(0,0,0,.06); color: var(--vta-text-secondary); }
.collapse-btn i { transition: transform var(--vta-transition); }

/* Cuerpo colapsable */
.collapsible-body {
  /*overflow: hidden;*/
  transition: max-height .25s ease, opacity .2s ease;
}
.collapsed .collapsible-body {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: none !important;
}
.collapsed .collapse-btn i { transform: rotate(-90deg); }

/* =============================================
CARD PANEL
============================================= */
.card-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeUp .4s .25s ease both;
}

.b-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--adj-transition);
}

.b-card:hover {
  border-color: rgba(37,99,235,.2);
}


.b-card-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}

.b-card-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--adj-accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-monoIBM);
}

.b-card-title {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0;
}

/* =============================================
BOTONES GENERALES
============================================= */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--surface-alt);
  border-color: rgba(0,0,0,0.14);
}
.btn-outline.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline.active.warning{
  border-color: var(--rec-amber); 
  color: var(--rec-amber); 
  background: var(--rec-amber-light);
}


/* =============================================
RESUMEN DE DATOS
============================================= */

/* Barra de filtro de tipo (debajo del panel de consulta) */
.filtro-sumary-tab {
  display: none; 
  align-items: center; 
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
}
.filtro-sumary-tab.visible { display: flex; }
.filtro-sumary-tab-label { font-size: 12px; color: var(--text-muted); margin-right: 4px; }

.sumary-tab{
  font-family:var(--font-mono);
  background:var(--kx-accent-light);
  color:var(--kx-accent-dark);
  padding:2px 8px;
  border-radius:6px;
  font-size:12px;
}

.span-sumary-tab{
  font-size:13px;
  font-weight:500;
  color:var(--text-primary);
}

.div-sumary-btns{
  margin-left:auto;
  display:flex;
  gap:8px;
}

/* =============================================
DIVS WRAPPER
============================================= */
.div-search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  flex: 1;
  min-width: 200px;
  transition: var(--transition);
}
.div-search-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(24,95,165,.12);
}
.div-search-wrapper i { color: var(--text-muted); font-size: 15px; }
.div-search-wrapper input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
}
.div-search-wrapper input::placeholder { color: var(--text-muted); }

/* =============================================
NAV TABS
============================================= */
.nav-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--cat-border);
  margin-bottom: 1.5rem;
}

.cp-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  font-family: var(--font-modulo);
  font-size: var(--cat-text-sm);
  font-weight: 600;
  color: var(--cat-text-muted);
  border: none;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--cat-transition), border-color var(--cat-transition);
}

.cp-nav-tab:hover { color: var(--cat-text-secondary); }
.cp-nav-tab.active { color: var(--cat-accent); border-bottom-color: var(--cat-accent); }
.cp-nav-tab.active.warning  { color:var(--rec-amber); border-bottom-color:var(--rec-amber); }

/* ── 9. FORMULARIO ──────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--cat-border-soft);
  border-radius: var(--cat-radius-lg);
  /*overflow: hidden;*/
  box-shadow: var(--cat-shadow-sm);
  margin-bottom: 1.25rem;
}

.form-card__header {
  padding: .7rem 1.2rem;
  background: var(--cat-surface);
  border-bottom: 1px solid var(--cat-border);
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--cat-text-sm);
  font-weight: 780;
  color: var(--cat-text-secondary);
}

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

/*.form-card__header i { color: var(--cat-accent); }*/
.form-card__body { padding: 1.1rem 1.2rem; }

/* Labels */
.form-label {
  display: block;
  font-size: var(--cat-text-sm);
  font-weight: 600;
  color: var(--cat-text-secondary);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.form-label--required::after { content: ' *'; color: var(--cat-danger); }

.f-input {
  display: block;
  width: 100%;
  font-family: var(--font-modulo);
  font-size: var(--cat-text-base);
  outline: none;
  line-height: 1.5;
  padding: 8px 12px;
  border: 1.5px solid var(--cat-border);
  border-radius: var(--cat-radius);
}

/*.f-input.primary {
  padding: .5rem .8rem;
  color: var(--cat-text-primary);
  background: #fff;
  transition: border-color var(--cat-transition), box-shadow var(--cat-transition);
}*/

.f-input:focus {
  border-color: var(--cat-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.13);
}

.f-input.warning:focus {
  border-color: var(--rec-amber);
  box-shadow: 0 0 0 3px rgba(217,119,6,.14);
}

.f-input::placeholder { color: var(--cat-text-muted); font-weight: 400; }

.f-input.is-invalid { border-color: var(--cat-danger); }
.f-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.13); }

.f-input--mono {
  font-family: var(--font-monoIBM);
  letter-spacing: .04em;
}

select.f-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8A29E' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.f-input-wrap {
  position: relative;
}

.f-input-wrap .f-input { padding-left: 1.75rem; }

.f-input-prefix {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-monoIBM);
  font-size: var(--cat-text-sm);
  font-weight: 600;
  color: var(--cat-text-muted);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cat-btn, .cat-chip, .f-input, .cat-toggle__track, .cat-toggle__thumb { transition: none; }
}

.cat-search-wrap .f-input {
  padding-left: 2.2rem;
  font-size: var(--cat-text-sm);
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
}

/* ============================================================
GLOBO TOOLTIP  ·  prefijo scoped .gtt-*
Muestra un mensaje tipo globo en la esquina superior
derecha del input (parecido al title de HTML).
============================================================ */

.toast-close{
  background:none;
  border:0;
  color:inherit;
   pointer-events: auto;
  cursor:pointer;
  padding:.2rem;
  opacity:.75;
}

.toast-close:hover{
  opacity:1;
}

/* Contenedor: punto de referencia para posicionar el globo. */
  .gtt-field {
    position: relative;
    display: block;
  }

  /* El globo (oculto por defecto) */
  .gtt-globo {
    position: absolute;
    bottom: calc(100% + var(--gtt-gap));
    right: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 280px;
    width: max-content;
    padding: 8px 9px 8px 11px;
    background: var(--gtt-bg);
    color: var(--gtt-text);
    font-family: 'Sora', system-ui, sans-serif;
    font-size: .8rem;
    line-height: 1.35;
    font-weight: 400;
    border-radius: var(--gtt-radius);
    box-shadow: var(--gtt-shadow);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  }

  /* Estado visible: SOLO se activa agregando la clase .is-visible desde JS */
  .gtt-globo.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
  } 

  /* Boton para remover (x) */
  .gtt-close {
    flex: 0 0 auto;
    margin-top: -1px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    opacity: .7;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background .12s ease, opacity .12s ease;
  }
  .gtt-close:hover  { opacity: 1; background: rgba(255,255,255,.16); }
  .gtt-close:focus-visible {
    outline: 2px solid var(--gtt-text);
    outline-offset: 1px;
    opacity: 1;
  }

  /* Flechita apuntando a la esquina derecha del input */
  .gtt-globo::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 14px;
    width: 0;
    height: 0;
    border-left: var(--gtt-arrow) solid transparent;
    border-right: var(--gtt-arrow) solid transparent;
    border-top: var(--gtt-arrow) solid var(--gtt-bg);
  }

  /* Variantes de color */
  .gtt-globo.gtt--info    { --gtt-bg: var(--gtt-info); }
  .gtt-globo.gtt--error   { --gtt-bg: var(--gtt-error); }
  .gtt-globo.gtt--success { --gtt-bg: var(--gtt-success); }
  .gtt-globo.gtt--warning { --gtt-bg: var(--gtt-warning); }

  @media (prefers-reduced-motion: reduce) {
    .gtt-globo { transition: opacity .16s ease, visibility 0s linear .16s; transform: none; }
    .gtt-globo.is-visible { transition: opacity .16s ease, visibility 0s; transform: none; }
  }


/* ── 11. BOTONES ────────────────────────────────────────────── */

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem 1.1rem;
  border-radius: var(--cat-radius);
  font-family: var(--font-modulo);
  font-size: var(--cat-text-sm);
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--cat-transition);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  line-height: 1.4;
}

.cat-btn:focus-visible { box-shadow: 0 0 0 3px rgba(37,99,235,.28); }

.cat-btn--primary { background: var(--cat-accent); color: #fff; border-color: var(--cat-accent); }
.cat-btn--primary:hover { background: var(--cat-accent-hover); border-color: var(--cat-accent-hover); }

.cat-btn--secondary { background: transparent; color: var(--cat-text-secondary); border-color: var(--cat-border); }
.cat-btn--secondary:hover { border-color: var(--cat-accent); color: var(--cat-accent); background: var(--cat-accent-light); }
.cat-btn--secondary:hover.warning { border-color: var(--rec-amber); color: var(--rec-amber); background: var(--rec-amber-light); }

.cat-btn--morado { background: transparent; color: var(--cat-purple); border-color: var(--cat-purple); }
.cat-btn--morado:hover { background: var(--cat-purple-bg); }

.cat-btn--danger { background: transparent; color: var(--cat-danger); border-color: var(--cat-danger); }
.cat-btn--danger:hover { background: var(--cat-danger-bg); }

.cat-btn--ghost { background: transparent; color: var(--cat-text-muted); border-color: transparent; padding: .38rem .55rem; }
.cat-btn--ghost:hover { background: var(--cat-surface); color: var(--cat-text-secondary); }

.cat-btn--sm { padding: .28rem .7rem; font-size: var(--cat-text-xs); }
.cat-btn--block { width: 100%; justify-content: center; }

.cat-btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.cat-btn--warning { background: var(--rec-amber); color: #fff; border-color: var(--rec-amber);
}
.cat-btn--warning:hover { background: var(--rec-amber-hover); border-color: var(--rec-amber-hover); }

/* ── 12. ESTADOS ────────────────────────────────────────────── */
.estado {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-align: center;
  min-width: 30px;
}

.estado.activo {
  background: #d1fae5;
  color: #065f46;
}

.estado.inactivo {
  background: #fee2e2;
  color: #991b1b;
}

.estado.pendiente {
  background: #fef3c7;
  color: #92400e;
}

.estado.proceso {
  background: #dbeafe;
  color: #1e40af;
}

.estado.cancelado {
  background: #e5e7eb;
  color: #374151;
}



.selector-fecha {
    position: relative;
    display: inline-block;
    font-size: 14px;
}

.selector-fecha__input {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 230px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    transition: .15s;
}

.selector-fecha__input:hover {
    border-color: #adb5bd;
}

.selector-fecha__input > span {
    flex: 1;
    text-align: left;
}

.selector-fecha__input > i:last-child {
    font-size: 11px;
}


/* PANEL */
.selector-fecha__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1050;
  display: none;
  width: 500px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 9px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  overflow: hidden;
}

.selector-fecha.abierto .selector-fecha__panel { display: flex; }

/* PRESETS */
.selector-fecha__presets {
  width: 130px;
  padding: 8px;
  border-right: 1px solid #e9ecef;
  background: #f8f9fa;
}

.selector-fecha__presets button {
  display: block;
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  text-align: left;
  font-size: 12px;
  color: #495057;
  cursor: pointer;
}

.selector-fecha__presets button:hover { background: #e9ecef; }
.selector-fecha__presets button.activo {
  background: #e7f1ff;
  color: #0d6efd;
  font-weight: 500;
}

/* CONTENIDO */
.selector-fecha__contenido { width: 370px; padding: 12px; }

/* ENCABEZADO */
.selector-fecha__encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.selector-fecha__mes { text-transform: capitalize; font-size: 13px; }
.selector-fecha__nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.selector-fecha__nav:hover { background: #f1f3f5; }

/* DÍAS */
.selector-fecha__dias,
.selector-fecha__calendario {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.selector-fecha__dias { margin-bottom: 3px; }
.selector-fecha__dias span {
  padding: 3px;
  text-align: center;
  font-size: 10px;
  color: #868e96;
  font-weight: 600;
}

/* CALENDARIO */
.selector-fecha__dia {
  position: relative;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #343a40;
  cursor: pointer;
}
.selector-fecha__dia:hover { background: #f1f3f5; }
.selector-fecha__dia.otro-mes { color: #adb5bd; }
.selector-fecha__dia.hoy { font-weight: 700; }
.selector-fecha__dia.desde,
.selector-fecha__dia.hasta { background: #0d6efd; color: #fff; }
.selector-fecha__dia.en-rango { background: #e7f1ff; border-radius: 0; color: #0d6efd; }

/* RANGO */
.selector-fecha__rango {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e9ecef;
}

.selector-fecha__rango div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.selector-fecha__rango small { color: #868e96; font-size: 10px; }
.selector-fecha__rango strong { font-size: 12px; }

/* ACCIONES */
.selector-fecha__acciones {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e9ecef;
}

/* ========================================
   DISPOSITIVOS MÓVILES
======================================== */

@media (max-width: 576px) {

  .selector-fecha { width: 100%; }
  .selector-fecha__input { width: 100%; min-width: 0; }
  
  /* PANEL */
  .selector-fecha__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 20px);
    max-width: 400px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
  }

  .selector-fecha.abierto .selector-fecha__panel { display: block; }

  /* RANGOS RÁPIDOS */
  .selector-fecha__presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #e9ecef;
  }
  .selector-fecha__presets button { margin: 0; padding: 8px; text-align: center;}

  /* CONTENIDO */
  .selector-fecha__contenido { width: 100%; padding: 12px; }

  /* CALENDARIO */
  .selector-fecha__dia { height: 40px; }

  /* RANGO */
  .selector-fecha__rango { gap: 12px; }

  /* ACCIONES */
  .selector-fecha__acciones { display: grid;grid-template-columns: 1fr 1fr; }
  .selector-fecha__acciones button { width: 100%; }
}

@media (max-width: 360px) {

  .selector-fecha__panel {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
  }

  .selector-fecha__contenido {
    padding: 8px;
  }

  .selector-fecha__presets {
    grid-template-columns: 1fr 1fr;
  }

  .selector-fecha__dia {
    height: 36px;
  }

  .selector-fecha__rango {
    gap: 8px;
  }

  .selector-fecha__rango strong {
    font-size: 12px;
  }
}



