/* ========================================================== */
/* === ESTILOS GLOBALES === */
/* ========================================================== */


body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  
}

#page-wrapper,
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

button {
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: #007bff;
  width: 100%;
}
button:hover {
  background-color: #0056b3;
}

input[type="date"],
input[type="number"],
input[type="text"],
input[type="password"],
select {
  border-radius: 5px;
  padding: 10px;
  border: 1px solid #555;
  background-color: #333;
  color: white;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}
input[type="checkbox"] {
  transform: scale(1.5);
}
select {
  text-align-last: center;
}

/* ========================================================== */
/* === BARRA DE NAVEGACIÓN (NAVBAR) === */
/* ========================================================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1f1f1f;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #444;
  margin-bottom: 30px;
}
.nav-section {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-item {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 16px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.nav-item:hover {
  background-color: #333;
}
.nav-logout-btn {
  background-color: #dc3545;
  font-weight: bold;
}
.nav-logout-btn:hover {
  background-color: #c82333;
}

/* ========================================================== */
/* === TERMINAL DE APUESTAS ('vendedor.html') === */
/* ========================================================== */

.padre {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 0 20px 20px 20px;
}

/* --- Columna Izquierda: Pagos --- */
.pagos {
  background-color: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #444;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-shrink: 0;
  width: 320px;
}
.pagoBoleto,
.anular {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pagos h2,
.pagos h3 {
  color: white;
  margin-bottom: 5px;
}
.reprint-btn {
  background-color: #6c757d;
}
.reprint-btn:hover {
  background-color: #5a6268;
}

/* --- Columna Derecha: Generar Apuesta --- */
.generarApuesta {
  background-color: #1f1f1f;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  width: 65%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
}
.miniNav {
  display: flex;
  justify-content: center;
  gap:20px ;
 
  border-bottom: 1px solid #444;
}
.miniNav > div {
  text-align: center;
}
.miniNav p {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  color: #aaa;
}
.instructions {
  background-color: #333;
  border: 1px solid #555;
  color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}
.caballos {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid #444;
  margin-bottom: 20px;
}
table { 
    border-collapse: collapse; 
    width: 100%; 
    text-align: center; 
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid #333;
  white-space: nowrap;
}
th {
  background-color: #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* --- Sección de Costos (Actualizada) --- */
.costos {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #444;
  padding-top: 20px;
}
.costos-izquierda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.costos-derecha {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 25px;
}
.costo-item-vertical {
  text-align: left;
}
.costo-item-horizontal {
  text-align: right;
}
.costo-item-vertical p,
.costo-item-horizontal label,
.costo-total p {
  margin: 0 0 5px 0;
  font-size: 0.9em;
  color: #aaa;
}
.valor {
  font-size: 2em;
  color: #ffc107;
  font-weight: bold;
  margin: 0;
}
.valor-total {
  font-size: 2.2em;
  font-weight: bold;
  color: #4caf50;
  margin: 0 0 10px 0;
}
.monto-input {
  padding: 8px;
  font-size: 1.2em;
  font-weight: bold;
  width: 120px;
  border-color: #007bff;
}
.refresh-btn {
  background-color: #17a2b8;
  padding: 10px 15px;
  font-size: 14px;
  width: auto;
}
.refresh-btn:hover {
  background-color: #138496;
}
.enviar-btn {
  background-color: #28a745;
}
.enviar-btn:hover {
  background-color: #218838;
}

/* ========================================================== */
/* === DASHBOARD DE ADMINISTRACIÓN ('index.html') === */
/* ========================================================== */

.container {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #444;
  display: none;
}
.container.active {
  display: block;
}
#login-container {
  max-width: 400px;
  margin: 10vh auto;
}

h1,
h2,
h3,
h4 {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  text-align: center;
  height: 20px;
}
.success-message {
  color: #28a745;
  font-size: 14px;
  text-align: center;
  height: 20px;
}

.admin-section,
#users-list-section {
  margin-bottom: 30px;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 5px;
}
hr {
  border: 1px solid #333;
  margin: 40px 0;
}
#report-table {
  width: 100%;
  border-collapse: collapse;
  color: #e0e0e0;
}
#report-table th,
#report-table td {
  padding: 12px;
  border: 1px solid #333;
  text-align: left;
}
#report-table th {
  background-color: #2a2a2a;
}

/* ========================================================== */
/* ===         NUEVO DISEÑO DE TICKET DE APUESTA          === */
/* ========================================================== */

.ticket-container {
  width: 320px; /* Ancho típico de un recibo de impresora térmica */
  padding: 15px;
  font-family: "Consolas", "Courier New", monospace; /* Tipografía clásica de recibo */
  font-size: 13px;
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
}

.ticket-header {
  text-align: center;
  margin-bottom: 15px;
}
.ticket-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
}
.ticket-header p {
  margin: 2px 0 0;
  font-size: 0.9em;
}

.ticket-section {
  padding: 10px 0;
  border-top: 1px dashed #555;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ticket-item span:first-child {
  font-weight: normal;
}
.ticket-item span:last-child {
  font-weight: bold;
}

.ticket-section h4 {
  text-align: center;
  margin: 0 0 10px 0;
  font-weight: bold;
  color: #000;
}

.selections-list {
  margin: 5px 0 0 15px;
}
.selections-list strong {
  font-size: 1.1em;
}
.selections-list ul {
  list-style-type: none;
  padding-left: 10px;
  margin: 2px 0 0;
}

.ticket-footer {
  border-top: 2px solid #000;
  margin-top: 10px;
}
.ticket-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 10px;
}

.ticket-barcode {
  text-align: center;
  margin-top: 20px;
}
.barcode-text {
  /* Para un mejor efecto, se podría usar una fuente de código de barras como "Libre Barcode 39" */
  font-size: 2.5em;
  margin: 0;
  letter-spacing: 2px;
}
.ticket-disclaimer {
  font-size: 0.8em;
  margin-top: 5px;
  font-style: italic;
}
/* ========================================================== */
/* ===           REGLAS ESPECIALES PARA IMPRESIÓN         === */
/* ========================================================== */

/* EN: operaciones.css */
/* REEMPLAZA el bloque @media print completo con este código compacto */

@media print {
  /* Reglas base para impresión en papel térmico */
  @page {
    margin: 2mm 5mm; /* Margen muy pequeño */
  }
  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  body > * {
    display: none !important;
  }
  .ticket-thermal,
  .ticket-thermal * {
    display: block !important;
    visibility: visible !important;
  }

  /* --- Estilos precisos para el Ticket Compacto --- */
  .ticket-thermal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px; /* Tamaño de letra base más pequeño */
    line-height: 1.3; /* Espacio entre líneas reducido */
    color: #000;
  }

  /* Secciones con borde punteado superior */
  .ticket-info,
  .ticket-race-info,
  .ticket-bet-details,
  .ticket-total-section {
    padding-top: 5px;
    margin-top: 5px;
    border-top: 1px dashed #000;
  }

  /* Títulos */
  .ticket-header {
    text-align: center;
  }
  .ticket-title {
    font-size: 1.4em;
    font-weight: bold;
  }
  .ticket-point-name {
    font-size: 1em;
  }

  /* Información de fecha, IDs, etc. */
  .ticket-info,
  .ticket-race-info {
    font-size: 0.9em;
  }

  /* Tipo de apuesta (WPS) */
  .ticket-bet-details {
    text-align: center;
  }
  .ticket-bet-type {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
  }

  /* Selecciones (GANADOR: 4) */
  .ticket-selection-block {
    margin: 0 auto; /* Centrar el bloque */
    width: 80%; /* Hacerlo un poco más angosto que el ticket */
  }
  .ticket-selection-pos {
    font-weight: bold;
    text-align: left;
  }
  .ticket-selection-val {
    text-align: left;
    padding-left: 20px;
    font-size: 1.1em;
    font-weight: bold;
  }

  /* Sección del Total (última sección) */
  .ticket-total-section {
    text-align: center;
    border-bottom: 1px dashed #000; /* Añadir borde final */
    padding-bottom: 5px;
  }
  .ticket-total-label {
    font-size: 1em;
  }
  .ticket-total-amount {
    font-size: 1.6em; /* Total un poco más pequeño pero aún destacado */
    font-weight: bold;
  }
}

/* --- Estilos precisos para el Ticket Térmico --- */
.ticket-thermal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #000;
}

/* Línea separadora */
.ticket-separator {
  font-size: 12px;
  text-align: center;
  overflow: hidden; /* Evita que los guiones se salgan */
  letter-spacing: -1px; /* Junta los guiones */
}

/* Bloques de texto */
.ticket-header,
.ticket-info,
.ticket-race-info,
.ticket-bet-details,
.ticket-total-section {
  margin: 8px 0;
}

/* Títulos */
.ticket-title {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
}
.ticket-point-name {
  font-size: 1.1em;
  margin-top: 5px;
}

/* Tipo de apuesta (WPS) */
.ticket-bet-type {
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
  margin: 10px 0;
}

/* Selecciones (GANADOR: 4) */
.ticket-selection-pos {
  font-weight: bold;
}
.ticket-selection-val {
  padding-left: 25px; /* Indentación para el número */
  font-size: 1.2em;
  font-weight: bold;
}

/* Sección del Total */
.ticket-total-label {
  text-align: center;
}
.ticket-total-amount {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
}

/* Estilos para el menú desplegable en la navbar */
.nav-item.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden; /* Para que los bordes redondeados se apliquen a los items */
}
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-content a:hover {
  background-color: #555;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* ========================================================== */
/* ===     ESTILOS ESPECÍFICOS PARA LA PÁGINA DEL VENDEDOR  === */
/* ========================================================== */

/* --- Contenedor Principal --- */
#vendedor-container {
  max-width: 800px; /* Un poco más ancho */
  text-align: left; /* Alinear el texto a la izquierda es más profesional */
}

/* --- Panel de Información (Usuario y Punto Asignado) --- */
.info-panel {
  background-color: #e9ecef; /* Un fondo sutil para el panel */
  border: 1px solid #dee2e6;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  display: flex; /* Usamos flexbox para alinear bien la info */
  justify-content: space-around; /* Distribuir el espacio */
  flex-wrap: wrap; /* Permitir que se ajuste en pantallas pequeñas */
}

.info-panel p {
  margin: 5px 10px;
  font-size: 1.1em;
  color: #495057;
}

.info-panel strong {
  color: #007bff; /* Un color primario para destacar los datos */
  font-weight: 600;
}

/* --- Sección de Acciones de Venta --- */
#sales-actions {
  text-align: center; /* Centramos el contenido de esta sección */
  padding: 20px;
  border-top: 1px solid #eee;
}

#sales-actions h2 {
  margin-bottom: 20px;
  font-size: 1.8em;
  color: #4a4a4a;
}

#sales-actions p {
  font-size: 1.1em;
  color: #6c757d;
  margin-bottom: 25px;
}

/* --- Contenedor para los Botones de Acción --- */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Espacio entre los botones */
  flex-wrap: wrap;
}

/* --- Estilo de los Botones de Acción --- */
.action-buttons button {
  background-color: #28a745; /* Verde para acciones positivas */
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-buttons button:hover {
  background-color: #218838; /* Verde más oscuro al pasar el ratón */
  transform: translateY(-2px); /* Un ligero efecto de levantamiento */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- Mensajes de Error (por si los necesitas después) --- */
.error-message {
  color: #dc3545;
  font-size: 0.9em;
}

/* Estilos para el menú desplegable en la navbar */
.nav-item.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden; /* Para que los bordes redondeados se apliquen a los items */
}
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-content a:hover {
  background-color: #555;
}
.dropdown:hover .dropdown-content {
  display: block;
}
/* ========================================================== */
/* ===         ESTILOS PARA EL INTERRUPTOR DE IMPRESIÓN   === */
/* ========================================================== */

.print-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333; /* Fondo oscuro sutil */
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #444;
}

.print-toggle label {
  font-size: 1em;
  font-weight: bold;
  color: #f0f0f0;
  margin: 0;
}

/* Reutilizamos el estilo de 'switch' que ya tienes */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6c757d;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #28a745;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* --- ¡NUEVOS ESTILOS PARA EL COMPROBANTE! --- */
/* (Reemplaza los estilos anteriores de .ticket-container si los tienes) */
.receipt-container {
  width: 320px;
  padding: 15px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  background-color: #fff;
  color: #000;
}
.receipt-header {
  text-align: center;
  margin-bottom: 15px;
}
.receipt-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: #000;
}
.receipt-header p {
  margin: 2px 0 0;
}
.receipt-section {
  padding: 10px 0;
  border-top: 1px dashed #555;
}
.receipt-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.receipt-total {
  font-weight: bold;
  font-size: 1.4em;
  margin-top: 10px;
}

/* Estilo para filas de caballos retirados */
.withdrawn-horse {
  background-color: #4a2d2d !important; /* Fondo rojo oscuro */
  color: #aaa;
  text-decoration: line-through; /* Tachar el texto */
}

/* Opcional: Hacer que las casillas desactivadas sean más obvias */
input[type="checkbox"]:disabled {
  cursor: not-allowed;
}
/* EN: operaciones.css */
/* REEMPLAZA el bloque @media print completo con esta versión ULTRA COMPACTA */
/* EN: operaciones.css */
/* REEMPLAZA el bloque @media print completo con esta versión de FLUJO ÚNICO */

@media print {
  @page {
    margin: 2mm 4mm; /* Márgenes mínimos */
  }
  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  body > * {
    display: none !important; /* Oculta todo por defecto */
  }
  .ticket-thermal,
  .ticket-thermal * {
    display: block !important; /* Muestra solo el ticket y su contenido */
    visibility: visible !important;
  }

  /* --- Estilos para el Ticket de Flujo Único --- */
  .ticket-thermal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.3;
    color: #000;
  }

  /* Títulos y texto centrado */
  .ticket-title,
  .ticket-bet-type,
  .ticket-total-label,
  .ticket-total-amount {
    text-align: center;
  }

  /* Estilos de fuente y tamaño */
  .ticket-title {
    font-size: 1.4em;
    font-weight: bold;
  }
  .ticket-separator {
    font-size: 11px;
    letter-spacing: -1px;
    text-align: center;
  }
  .ticket-bet-type {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 5px;
  }
  .ticket-selection-val {
    padding-left: 20px;
    font-size: 1.1em;
    font-weight: bold;
  }
  .ticket-total-label {
    margin-top: 5px;
  }
  .ticket-total-amount {
    font-size: 1.6em;
    font-weight: bold;
  }

  
}

.ticket-thermal {
  font-family: "Courier New", Courier, monospace; /* ¡Fuente de recibo! */
  color: #000; /* ¡Todo negro! */
  font-weight: bold;
  width: 300px;
  padding: 10px 5px;
  box-sizing: border-box;
}

.ticket-thermal span,
.ticket-thermal div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
}

.ticket-thermal .title {
  font-size: 20px;
  justify-content: center; /* Centrar título */
  margin-bottom: 10px;
}

.ticket-thermal .header,
.ticket-thermal .info,
.ticket-thermal .race-info,
.ticket-thermal .bet-details,
.ticket-thermal .total-section,
.ticket-thermal .barcode {
  border-bottom: 1px dashed #000;
  padding-bottom: 5px;
}

.ticket-thermal .bet-details,
.ticket-thermal .selection-line {
  flex-direction: column; /* Apilar para las selecciones */
  align-items: flex-start;
}
.ticket-thermal .bet-details .bet-type {
  font-size: 22px;
  margin: 5px 0;
  justify-content: center;
}
.ticket-thermal .selection-line {
  border-bottom: none;
  font-size: 18px;
  padding-left: 10px;
  margin-bottom: 3px;
}

.ticket-thermal .total-section {
  padding-top: 10px;
  flex-direction: column;
  align-items: center;
}
.ticket-thermal .total-label {
  font-size: 16px;
  margin-bottom: 0;
}
.ticket-thermal .total-amount {
  font-size: 32px; /* Total ENORME */
}

.ticket-thermal .barcode {
  border-bottom: none; /* Sin línea al final */
  justify-content: center;
  font-family: "Libre Barcode 39", cursive; /* Si tienes una fuente de código de barras */
  font-size: 40px; /* Tamaño del código de barras */
  margin-top: 15px;
}
/* EN: operaciones.css (AÑADIR AL FINAL) */

/* ========================================================== */
/* ===      REGLAS ESPECIALES PARA IMPRESIÓN DEL TICKET   === */
/* ========================================================== */

@media print {
  /* Oculta todo lo que no sea la ventana de impresión */
  body > *:not(.ticket-thermal) {
    display: none !important;
  }

  /* Asegura que el ticket ocupe todo el espacio de impresión */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important; /* Fondo blanco para impresión */
  }

  .ticket-thermal {
    /* Reseteamos Flexbox y usamos el layout de bloque simple */
    display: block !important;
    width: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    font-size: 12px; /* Tamaño de letra consistente para impresión */
  }

  .ticket-thermal div,
  .ticket-thermal span {
    /* Forzamos que los elementos internos también usen el layout de bloque simple */
    display: block !important;
  }

  /* Estilos específicos para los elementos internos del ticket impreso */
  .ticket-thermal .title {
    text-align: center;
    font-size: 1.5em; /* 150% del tamaño base */
    margin-bottom: 10px;
  }

  .ticket-thermal .header span:not(.title),
  .ticket-thermal .info span,
  .ticket-thermal .race-info span {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
  }

  .ticket-thermal .bet-type {
    text-align: center;
    font-size: 1.3em;
    margin: 10px 0;
  }

  .ticket-thermal .selection-line span {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
    padding-left: 15px;
  }

  .ticket-thermal .total-label,
  .ticket-thermal .total-amount {
    text-align: center;
  }

  .ticket-thermal .total-amount {
    font-size: 2em; /* Total más grande */
  }

  .ticket-thermal .barcode {
    text-align: center;
    margin-top: 15px;
  }

  /* Ocultar elementos innecesarios en la impresión */
  .navbar,
  .pagos,
  .generarApuesta,
  #page-wrapper > *:not(div[id^="print-area"]) {
    display: none !important;
  }
}
/* EN: operaciones.css */
/* REEMPLAZA el bloque @media print completo con esto */

@media print {
  /* Reglas generales de impresión */
  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  body > *:not(.ticket-thermal) {
    display: none !important;
  }

  /* --- ESTILOS MEJORADOS PARA EL TICKET TÉRMICO --- */

  .ticket-thermal {
    display: block !important;
    width: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px;
    font-family: "Courier New", Courier, monospace; /* Fuente de recibo clásica */
    font-size: 14px; /* Un poco más grande para legibilidad */
    color: #000;
  }

  /* Secciones con borde punteado */
  .ticket-header,
  .ticket-info,
  .ticket-race-info,
  .ticket-bet-details,
  .ticket-total-section {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #000;
  }

  /* Títulos y cabeceras */
  .ticket-title {
    text-align: center;
    font-size: 1.6em; /* 160% */
    font-weight: bold;
    margin-bottom: 5px;
  }
  .ticket-point-name {
    text-align: center;
    text-transform: uppercase;
  }

  /* Filas de información (Fecha, Hora, etc.) */
  .ticket-row {
    display: flex !important;
    justify-content: space-between;
  }

  /* Detalles de la apuesta */
  .ticket-bet-type {
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
  }
  .ticket-selection-line {
    display: flex !important;
    justify-content: space-between;
    padding-left: 20px; /* Indentación para las selecciones */
  }
  .ticket-selection-pos {
    font-weight: bold;
  }

  /* Sección del Total */
  .ticket-total-label {
    text-align: center;
    font-size: 1.1em;
    margin-top: 5px;
  }
  .ticket-total-amount {
    text-align: center;
    font-size: 2.2em; /* Total bien grande */
    font-weight: bold;
  }

  /* Sección de Códigos */
  .ticket-barcode-section {
    text-align: center;
    margin-top: 15px;
    border-bottom: none; /* Sin borde para la última sección */
  }
  .ticket-barcode-label {
    font-size: 0.9em;
    letter-spacing: 1px;
  }
  .ticket-barcode-value {
    font-size: 1.8em;
    font-weight: bold;
  }
}

/* EN: operaciones.css (Añadir al final) */

.quick-bet-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.quick-bet-row input {
  padding: 8px;
  font-size: 14px;
  text-align: center;
}

/* ========================================================== */
/* ===         OPTIMIZACIONES PARA VISTA MÓVIL (V2)       === */
/* ========================================================== */

/* Solo se aplica si el body tiene la clase .mobile-view */
.mobile-view #page-wrapper {
  padding: 10px 5px;
}

.mobile-view .container.active {
  padding: 10px;
}

/* --- ¡CORRECCIÓN CLAVE! Resetear el contenedor principal de la terminal --- */
.mobile-view .generarApuesta {
  width: 100%; /* Anular el width: 65% del CSS de escritorio */
  max-width: none; /* Anular cualquier max-width */
  height: auto; /* Anular la altura fija para que el contenido crezca naturalmente */
  padding: 15px; /* Un padding interno consistente */
  box-sizing: border-box; /* Importante para que el padding no rompa el layout */
  margin-bottom: 20px; /* Espacio entre la terminal y el historial de apuestas */
}

/* --- Ajustes a los componentes internos de la terminal --- */

.mobile-view .miniNav {
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
}

.mobile-view .costos {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.mobile-view .costos-izquierda,
.mobile-view .costos-derecha {
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.mobile-view .costo-total {
  text-align: right;
}

.mobile-view .monto-input {
  width: 120px;
}

/* --- Contenedor con scroll horizontal para tablas anchas --- */
.mobile-view .caballos,
.mobile-view .table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #444;
  border-radius: 5px;
  
}

/* --- Estilos internos de la tabla --- */
.mobile-view table {
  width: 100%;
  border-collapse: collapse;
}

.mobile-view th,
.mobile-view td {
  padding: 12px 10px;
  white-space: nowrap;
  text-align: center;
}

.mobile-view td:nth-child(2) {
  /* Columna del nombre del caballo */
  text-align: left;
  min-width: 150px;
}

/* --- Ajustes para la apuesta rápida WPS --- */
.mobile-view .quick-bet-row {
  grid-template-columns: 60px 1fr 1fr 1fr;
}

.mobile-view .quick-bet-row input {
  font-size: 14px;
}

/* ========================================================== */
/* ===         ¡NUEVO! AJUSTES RESPONSIVOS PARA MÓVILES     === */
/* ========================================================== */

@media (max-width: 600px) {

    /* --- 1. Ajustes generales para el layout en móvil --- */
    .padre {
        flex-direction: column;
    }
    .pagos, .generarApuesta {
        width: 100%;
        max-width: none;
        height: auto;
    }
    
    /* --- 2. Arreglo para Apuesta Rápida (el mismo de antes, funciona bien) --- */
    .quick-bet-row {
        grid-template-columns: 50px 1fr;
        grid-template-areas:
            "horse amount1"
            " .    amount2"
            " .    amount3";
        row-gap: 8px;
        column-gap: 15px;
    }
    .quick-bet-row .quick-horse-num { grid-area: horse; }
    .quick-bet-row .quick-win-amount { grid-area: amount1; }
    .quick-bet-row .quick-place-amount { grid-area: amount2; }
    .quick-bet-row .quick-show-amount { grid-area: amount3; }

    /* --- 3. ¡LA MAGIA! Arreglo para la tabla de caballos sin scroll --- */

    /* Forzamos un layout fijo para un mejor control */
    .caballos table {
        table-layout: fixed;
        width: 100%;
    }

    .caballos th, .caballos td {
        padding: 12px 5px; /* Reducimos un poco el padding horizontal */
        text-align: center; /* Centramos todo para un look más uniforme */
        font-size: 0.9em; /* Reducimos ligeramente la fuente */
    }

    /* Columna para el número del caballo: delgada */
    .caballos th:first-child,
    .caballos td:first-child {
        width: 12%; 
    }

    /* Columna para el nombre del caballo: es la más ancha */
    .caballos th:nth-child(2),
    .caballos td:nth-child(2) {
        width: 38%; 
        text-align: left;
        
        /* ¡AQUÍ ESTÁ LA CLAVE! */
        word-break: break-word; /* Permite que las palabras largas se rompan */
        white-space: normal; /* Permite que el texto ocupe varias líneas */
    }

    /* Columnas de checkboxes: delgadas y flexibles */
    .caballos th:not(:first-child):not(:nth-child(2)),
    .caballos td:not(:first-child):not(:nth-child(2)) {
        width: auto; /* El resto de las columnas se reparten el espacio */
    }
}

/* ========================================================== */
/* ===         NUEVOS ESTILOS SOLO PARA VISTA MÓVIL       === */
/* ========================================================== */

/* Esta regla asegura que los estilos solo se apliquen en movil.html */
.mobile-view .costos {
  flex-shrink: 0;
  display: flex;
  flex-direction: column; /* Apila las secciones verticalmente */
  gap: 15px; /* Espacio entre las filas */
  border-top: 1px solid #444;
  padding-top: 20px;
}

.mobile-view .costos-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-view .summary-item {
  display: flex;
  flex-direction: column;
}

.mobile-view .summary-item label {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 2px;
}

.mobile-view .summary-item p {
  margin: 0;
  font-weight: bold;
  font-size: 1.8em;
}

.mobile-view #num-jugadas {
  color: #ffc107; /* Amarillo */
}
.mobile-view #total-costo {
  color: #28a745; /* Verde */
}

.mobile-view .total-item {
  align-items: flex-end;
}

.mobile-view .costos-input {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-view .costos-input label {
  font-size: 0.9em;
  color: #aaa;
}

.mobile-view .monto-input {
  padding: 12px;
  font-size: 1.4em;
  font-weight: bold;
  width: 100%;
  border-color: #007bff;
  text-align: right;
}

.mobile-view .costos-actions {
  display: flex;
  gap: 15px;
}

.mobile-view .refresh-btn {
  background-color: #17a2b8; /* Cian */
  padding: 12px;
  font-size: 1em;
  flex-grow: 1; /* Ocupa 1 parte del espacio */
}
.mobile-view .refresh-btn:hover {
  background-color: #138496;
}

.mobile-view .enviar-btn {
  background-color: #28a745; /* Verde */
  font-size: 1.2em;
  flex-grow: 3; /* Ocupa 3 partes del espacio (es más grande) */
}
.mobile-view .enviar-btn:hover {
  background-color: #218838;
}

/* ========================================================== */
/* ===         ESTILOS PARA FILTRO DE HISTORIAL (MÓVIL)   === */
/* ========================================================== */

#history-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #444;
}

#history-controls label {
  font-weight: bold;
  color: #ccc;
  flex-shrink: 0; /* Evita que el texto se encoja */
}

#history-controls input[type="date"] {
  padding: 8px;
  font-size: 1em;
  flex-grow: 1; /* Ocupa el espacio disponible */
  margin: 0;
}

#history-controls button {
  padding: 10px 20px;
  font-size: 1em;
  width: auto; /* Ancho automático basado en el texto */
  margin: 0;
  background-color: #6c757d; /* Color gris secundario */
}

#history-controls button:hover {
  background-color: #5a6268;
}

/* ========================================================== */
/* ===     NUEVOS ESTILOS PARA CABALLOS RETIRADOS (MÓVIL)   === */
/* ========================================================== */

/* Esta regla asegura que solo se aplique en movil.html */
.mobile-view .cell-withdrawn {
  background-color: #1f1f1f; /* Un fondo oscuro, casi negro */
  cursor: not-allowed; /* Muestra un cursor de "no permitido" */
  position: relative; /* Necesario para centrar el texto */
  text-align: center; /* Centra el contenido horizontalmente */
}

/* Ocultamos completamente el checkbox que está dentro */
.mobile-view .cell-withdrawn input[type="checkbox"]:disabled {
  display: none;
}

/* Usamos el pseudo-elemento ::after para añadir el texto "RET" */
.mobile-view .cell-withdrawn::after {
  content: 'RET'; /* El texto que se mostrará */
  color: #555; /* Un color gris oscuro y sutil */
  font-weight: bold;
  font-size: 0.9em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Técnica para centrar perfectamente */
}

/* ========================================================== */
/* ===     CENTRAR CHECKBOXES EN TABLA DE PICKS (FIX V3)    === */
/* ========================================================== */

/* Esta regla se aplica a todas las celdas (td) de la tabla de caballos
   en la vista móvil, EXCEPTO a la primera columna (la que tiene el número #).
   Esto centrará los checkboxes sin romper la estructura de la tabla. */
   .mobile-view .caballos td:not(:first-child) {
    text-align: center;
    vertical-align: middle;
}

/* Esta regla adicional asegura que en la tabla de carreras simples (no picks),
   el nombre del caballo permanezca alineado a la izquierda. */
    





/* ========================================================== */
/* ===         ¡NUEVO! AJUSTES RESPONSIVOS PARA MÓVILES     === */
/* ========================================================== */

@media (max-width: 800px) {

    /* --- 1. Ajustes generales para el layout en móvil --- */
    .padre {
        flex-direction: column; /* Apila las columnas principales verticalmente */
    }

    .pagos, .generarApuesta {
        width: 100%; /* Ambas columnas ahora ocupan el 100% del ancho */
        max-width: none;
        height: auto; /* La altura se ajusta al contenido, muy importante */
    }
    
    /* --- 2. Reorganiza los menús de selección de carrera --- */
    .miniNav {
        flex-direction: column;
        gap: 15px;
        align-items: stretch; /* Estira los elementos para que ocupen todo el ancho */
    }

    /* --- 3. Reorganiza la sección de costos y botones de apuesta --- */
    .costos {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .costos-izquierda, .costos-derecha {
        width: 100%;
        justify-content: space-between;
    }
    .costo-total {
        text-align: right;
    }

    /* --- 4. Arreglo para el formulario de Apuesta Rápida (WPS) --- */
    .quick-bet-row {
        /* Se convierte en una grilla de 2 columnas */
        grid-template-columns: 60px 1fr; 
        grid-template-areas:
            "horse amount1"
            " .     amount2"
            " .     amount3";
        row-gap: 8px;
        column-gap: 15px;
    }
    /* Asignamos cada campo a su área en la grilla */
    .quick-bet-row .quick-horse-num { grid-area: horse; }
    .quick-bet-row .quick-win-amount { grid-area: amount1; }
    .quick-bet-row .quick-place-amount { grid-area: amount2; }
    .quick-bet-row .quick-show-amount { grid-area: amount3; }


    /* --- 5. Mejora la legibilidad de la tabla de caballos en pantallas pequeñas --- */
    .caballos table {
        table-layout: fixed; /* Evita que las columnas se deformen */
        width: 100%;
        
    }

    .caballos th, .caballos td {
        padding: 12px 5px; /* Menos espacio a los lados */
        font-size: 0.9em;
    }

    /* Hacemos que la columna del nombre del caballo sea la más ancha y permita saltos de línea */
    .caballos th:nth-child(2),
    .caballos td:nth-child(2) {
        width: 40%; 
        white-space: normal; /* Permite que el texto se divida en varias líneas */
        word-break: break-word; /* Rompe palabras largas si es necesario */
        text-align: left;
    }
}
/* EN: apuestas_frontend/operaciones.css (o dark-theme.css) AÑADIR AL FINAL */

.void-btn-mobile {
    background-color: #dc3545; /* Rojo de anulación */
    color: white;
    font-size: 12px;
    font-weight: bold;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.void-btn-mobile:hover {
    background-color: #c82333;
}
/* ========================================================== */
/* ===    OPTIMIZACIÓN DE ESPACIO VERTICAL EN TERMINAL    === */
/* ========================================================== */

/* 1. Hacemos la tarjeta de apuestas un poco más alta, 
   pero sin exagerar para no romper el layout. */
.generarApuesta {
    height: calc(100vh - 120px); /* Antes era 150px, ganamos 30px */
}

/* 2. Compactamos el encabezado donde se eligen las carreras. */
.miniNav {
    margin-bottom: 10px;
    padding-bottom: 10px;
}
.miniNav p {
    margin-bottom: 5px;
}

/* 3. ¡LA CLAVE! Reducimos drásticamente la altura de cada fila de la tabla. */
.generarApuesta .caballos th,
.generarApuesta .caballos td {
    padding-top: 6px;    /* Mucho menos espacio vertical */
    padding-bottom: 6px;
    font-size: 15px;     /* Reducimos ligeramente la fuente */
}

/* 4. Compactamos el pie de página donde se ven los costos. */
.costos {
    padding-top: 10px;
}
.costos-izquierda {
    gap: 10px;
}
.costo-item-vertical .valor {
    font-size: 1.8em; /* Un poco más pequeño */
}
.costo-total .valor-total {
    font-size: 2em; /* Un poco más pequeño */
}

/* ========================================================== */
/* ===      RESPONSIVIDAD DE LA TERMINAL DE VENTA         === */
/* ========================================================== */

@media (max-width: 1000px) {
    
  /* 1. Contenedor Principal (Padre) */
  .padre {
      flex-direction: column-reverse; /* Pone la boleta arriba y los pagos abajo */
      padding: 10px;
      gap: 20px;
  }

  /* 2. Columnas Individuales */
  .pagos, 
  .generarApuesta {
      width: 100% !important; /* Ocupan todo el ancho */
      max-width: none !important;
      height: auto !important; /* Altura automática */
  }

  /* 3. Navegación Interna (Hipódromo/Carrera/Tipo) */
  .miniNav {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
  }
  
  .miniNav > div {
      width: 100%;
  }

  /* 4. Panel de Costos (Footer de la boleta) */
  .costos {
      flex-direction: column;
      gap: 20px;
      align-items: stretch;
  }

  .costos-izquierda, 
  .costos-derecha {
      width: 100%;
      justify-content: space-between; /* Separa etiqueta y valor */
      align-items: center;
  }

  /* Hacemos los botones más grandes para dedos */
  .refresh-btn, 
  .enviar-btn, 
  #payout-btn, 
  #void-btn {
      padding: 15px;
      font-size: 1.1em;
  }

  /* 5. Inputs de Pago/Anulación */
  .pagoBoleto div, 
  .anular div {
      flex-direction: column;
      align-items: stretch;
      width: 100%;
  }
  
  #payout-ticket-suffix,
  #void-ticket-suffix {
      width: 100% !important;
      padding: 15px;
      font-size: 1.2em;
  }

  /* 6. Tabla de Caballos */
  .caballos {
      max-height: 400px; /* Limitar altura en móvil */
  }
  
  /* Ajuste para que la tabla de caballos no se rompa */
  .caballos table {
      min-width: 100%; /* Ocupa el ancho disponible */
  }
  
  .caballos th, .caballos td {
      padding: 10px 5px; /* Reducir padding lateral */
      font-size: 0.9em;
  }
  
  /* Checkboxes más grandes para tocar fácil */
  input[type="checkbox"] {
      transform: scale(1.8); 
  }
}

/* ========================================================== */
/* ===      ARREGLO DEL NAVBAR EN MÓVILES (CORREGIDO)     === */
/* ========================================================== */

@media (max-width: 768px) {
    
  /* 1. Evitar desbordamiento global */
  html, body {
      overflow-x: hidden; 
      width: 100%;
      box-sizing: border-box;
  }

  /* 2. Ajustar navbar SOLO si NO es la app móvil nativa */
  body:not(.mobile-view) .navbar {
      display: flex;
      flex-direction: column; /* Pone el usuario/salir debajo de los botones */
      padding: 10px 5px;
      height: auto;
      gap: 10px;
  }

  /* 3. Ajustar la sección de botones */
  body:not(.mobile-view) .nav-section {
      display: flex;
      flex-wrap: wrap; /* Permite que bajen si no caben */
      justify-content: center;
      gap: 8px;
      width: 100%;
  }

  /* 4. Ajustar botones */
  body:not(.mobile-view) .nav-item {
      font-size: 13px;
      padding: 8px 12px;
      text-align: center;
      flex-grow: 1;
      margin: 0;
      min-width: 80px;
  }

  /* 5. Dropdowns flotantes fijos */
  body:not(.mobile-view) .dropdown-content {
      position: fixed; 
      top: auto;
      left: 10px;
      right: 10px; 
      width: auto;
      background-color: #333;
      z-index: 1000;
      box-shadow: 0 10px 30px rgba(0,0,0,0.9);
  }
}
/* ========================================================== */
/* ===   CORRECCIÓN TABLA DE APUESTAS EN MÓVIL (Compacta) === */
/* ========================================================== */

@media (max-width: 800px) {

  /* 1. Ajustes generales de la celda */
  .caballos th, .caballos td {
      padding: 8px 2px !important; /* Reducir espacio lateral al mínimo */
      vertical-align: middle;
  }

  /* 2. Transformar encabezado "CUALQUIER ORDEN" */
  /* Ocultamos el texto largo original */
  .generarApuesta .caballos th.any-order-column {
      font-size: 0; 
      width: 45px !important; /* Forzamos un ancho pequeño */
      padding: 0 !important;
      text-align: center;
  }
  /* Inyectamos el texto corto "ALL" */
  .generarApuesta .caballos th.any-order-column::after {
      content: "ALL";
      font-size: 11px;
      font-weight: bold;
      color: #ccc;
      display: block;
      text-align: center;
  }

  /* 3. Transformar botón "Seleccionar" en icono */
  .select-all-in-row-btn {
      font-size: 0 !important; /* Ocultar texto del botón */
      width: 32px !important;
      height: 32px !important;
      padding: 0 !important;
      margin: 0 auto; /* Centrar */
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 5px;
  }
  
  /* Añadir el Check (✔) dentro del botón */
  .select-all-in-row-btn::before {
      content: "\2713"; /* Código Unicode del Check */
      font-size: 18px;
      color: white;
      font-weight: bold;
  }

  /* 4. Ajustar tamaño de checkboxes para ganar espacio */
  .caballos input[type="checkbox"] {
      transform: scale(1.2) !important; /* Un poco más pequeños que en PC */
      margin: 0;
  }
  
  /* 5. Asegurar que el nombre del caballo no ocupe demasiado espacio si no es necesario */
  /* Opcional: Si el nombre es muy largo, se corta con "..." */
  .caballos td:nth-child(2) {
      max-width: 100px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
}

/* ========================================================== */
/* ===   CORRECCIÓN FINAL DE ALINEACIÓN NAV/TERMINAL      === */
/* ========================================================== */

@media (max-width: 800px) {

  /* 1. Controlamos el contenedor principal de toda la página */
  /* Esto asegura que no haya espacios extraños a los lados */
  #page-wrapper {
      padding: 10px !important; /* Un pequeño margen uniforme alrededor de todo */
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box;
  }

  /* 2. Alineamos la Navbar */
  .navbar:not(.mobile-nav) {
      width: 100% !important;
      margin: 0 0 15px 0 !important; /* Solo margen abajo, 0 a los lados */
      box-sizing: border-box; /* Para que el padding no sume al ancho */
      border-radius: 8px; /* Bordes redondeados iguales al de abajo */
  }

  /* 3. Quitamos paddings internos del contenedor flex ".padre" */
  .padre {
      padding: 0 !important;
      width: 100% !important;
      gap: 15px; /* Espacio entre bloques */
  }

  /* 4. Alineamos el bloque de la Terminal (.generarApuesta) */
  .generarApuesta {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important; /* Sin márgenes externos */
      box-sizing: border-box; /* Importante para alinear con el navbar */
  }

  /* 5. Alineamos el bloque de Pagos (por si aparece abajo) */
  .pagos {
      width: 100% !important;
      margin: 0 !important;
      box-sizing: border-box;
  }
}
/* ========================================================== */
/* ===         BLOQUEO VISUAL DE SECCIONES DE APUESTA     === */
/* ========================================================== */

/* Esta clase hará que una sección se vea gris y no se pueda interactuar con ella */
.betting-section-disabled {
    opacity: 0.4;
    pointer-events: none; /* ¡La clave! Evita cualquier clic o interacción */
}

/* Notificaciones en Navbar */
.nav-notification-container {
  position: relative;
  cursor: pointer;
  padding: 5px 10px;
}

.nav-notification-icon {
  font-size: 1.2em;
  color: #f0f0f0;
}

.nav-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 50%;
  border: 2px solid #1f1f1f;
  display: none; /* Oculto si es 0 */
}

/* Modal/Dropdown de mensajes */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.notif-item {
  background-color: #333;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #555; /* Leído */
  transition: background 0.2s;
}

.notif-item.unread {
  border-left: 4px solid #00aaff; /* Sin leer */
  background-color: #3a3a3a;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.notif-title {
  font-weight: bold;
  color: #fff;
}

.notif-time {
  font-size: 0.8em;
  color: #aaa;
}

.notif-body {
  font-size: 0.95em;
  color: #ccc;
  line-height: 1.4;
  white-space: pre-wrap; /* Mantiene saltos de línea */
}

.void-btn-mobile {
  background-color: #dc3545; /* Rojo */
  color: white;
  font-size: 11px;
  font-weight: bold;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
}

.void-btn-mobile:active {
  transform: scale(0.9);
  background-color: #c82333;
}

.refresh-btn {
  background-color: #17a2b8; /* Color Cian/Azul */
  padding: 10px 15px;
  font-size: 14px;
  width: auto; /* Para que no ocupe todo el ancho */
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

.refresh-btn:hover {
  background-color: #138496;
}