/* 🔄 Sección animada (filtros/reportes) */
.seccion-animada {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.4s ease, opacity 0.4s ease;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}

.seccion-animada:not(.visible) {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

.seccion-animada.visible {
  opacity: 1;
}

.contenido-seccion {
  padding: 16px;
  display: flow-root;
}

.contenido-seccion > :first-child { margin-top: 1; }
.contenido-seccion > :last-child { margin-bottom: 0; }

/* ✅ Botón activo visualmente */
.btn-activo {
  background-color: #e8e8e8;
  color: white;
  border-color: #0d6efd;
}

/* 📱 Botones iguales en escritorio */
@media (min-width: 768px) {
  .row.g-2 > .col-md-6 > .btn {
    height: 100%;
    white-space: nowrap;
  }
}

/* 📱 Botones apilados en móvil */
@media (max-width: 767.98px) {
  .row.g-2 > .col-12 > .btn {
    width: 100%;
  }
}

/* 🖨️ Ocultar reportes al imprimir */
@media print {
  #seccion-reportes {
    display: none !important;
  }
}

/* 🔍 Barra de búsqueda enriquecida */
.buscador-enriquecido {
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #d0d0d0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 2px 4px;          /* reducido */
  gap: 2px;                  /* reducido */
}

.buscador-enriquecido:hover {
  background: linear-gradient(145deg, #f9f9f9, #eaeaea);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Ícono de búsqueda a la izquierda */
.buscador-enriquecido .input-group-text {
  background: transparent;
  border: none;
  font-size: 18px;           /* reducido */
  /* color: #6c757d; */
  padding: 2px 4px;          /* reducido */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Campo de texto */
.buscador-enriquecido .form-control {
  border: none;
  box-shadow: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  padding: 4px 6px;          /* compacto */
  flex: 1;                   /* ocupa espacio disponible */
  min-width: 0;              /* evita overflow en flex */
}

/* 📏 Separadores verticales */
.input-divider {
  width: 1px;
  height: 24px;              /* reducido */
  background-color: #d0d0d0;
  margin: 0 6px;             /* reducido */
  align-self: center;
}

/* 🎛️ Botones de acción (filtros e impresión) */
.buscador-enriquecido .btn-icon {
  border: none;
  background: transparent;
  color: #0d6efd;
  font-size: 16px;           /* reducido */
  padding: 2px 4px;          /* reducido */
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.buscador-enriquecido .btn-icon:hover {
  transform: scale(1.12);
  color: #084298;
}

.buscador-enriquecido .btn-icon i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-resaltado {
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.3);
  background-color: rgba(13, 110, 253, 0.08); /* azul muy tenue */
  border-radius: 8px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

[data-bs-theme="dark"] .btn-resaltado {
  box-shadow: 0 0 6px rgba(144, 202, 249, 0.3);
  background-color: rgba(144, 202, 249, 0.1);
}

[data-bs-theme="dark"] .seccion-animada {
  background-color: #1f1f1f;
  border-color: #444;
}

[data-bs-theme="dark"] .contenido-seccion { color: #e0e0e0; }

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1f1f1f;
  color: #e0e0e0;
  border-color: #444;
}

[data-bs-theme="dark"] .form-label { color: #b0bec5; }

[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .buscador-enriquecido .input-group-text {
  background-color: #2a2a2a;
  color: #b0bec5;
  border-color: #444;
}

[data-bs-theme="dark"] .buscador-enriquecido {
  background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
  border: 1px solid #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .buscador-enriquecido:hover {
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .buscador-enriquecido .form-control { color: #e0e0e0; }
[data-bs-theme="dark"] .buscador-enriquecido .btn-icon { color: #90caf9; }

[data-bs-theme="dark"] .buscador-enriquecido .btn-icon:hover {
  transform: scale(1.12);
  color: #64b5f6;
}

[data-bs-theme="dark"] .input-divider { background-color: #444; }

[data-bs-theme="dark"] .btn-outline-primary { color: #90caf9; border-color: #90caf9; }
[data-bs-theme="dark"] .btn-outline-secondary { color: #b0bec5; border-color: #b0bec5; }
[data-bs-theme="dark"] .btn-outline-success { color: #81c784; border-color: #81c784; }

/* 📱 Optimización extra en móviles muy pequeños */
@media (max-width: 420px) {
  .buscador-enriquecido {
    padding: 4px 6px;   /* aún más compacto */
    gap: 2px;
  }
  .buscador-enriquecido .input-group-text { font-size: 16px; padding: 2px 3px; }
  .buscador-enriquecido .btn-icon { font-size: 15px; padding: 2px 3px; }
  .input-divider { height: 22px; margin: 0 4px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.empresa-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin: 12px;
  /* margin: 16px 0; */
  border-left: 2px solid #FCDE53;
  border-bottom: 1px solid #FCDE53;
  border-right: 2px solid #007bff;
  border-top: 1px solid #007bff;
  background-color: var(--highdmin-card-bg);
  /* background: linear-gradient(to right, #f0f4ff, #f0e1e1); */
  border-radius: 6px;
  text-align: center;
}

/* Etiqueta: Empresa */
.etiqueta-empresa {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* Nombre de la empresa */
.nombre-empresa {
  font-size: 18px;
  font-weight: bold;
  color: var(--highdmin-emphasis-color) !important;
  /* font-family: 'Segoe UI', 'Roboto', sans-serif; */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  line-height: 1.2;
}

.verificacion-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  margin-top: 12px;
}

.verificacion-box label {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}

.verificacion-box input[name="verificacion"] {
  width: 50px;
  text-align: center;
  font-size: 14px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.topbar-sombra {
  box-shadow:
    0 -1px 2px rgba(0, 123, 255, 0.25), /* línea superior azul */
    0 1px 2px rgba(0, 123, 255, 0.25);  /* línea inferior azul */
  transition: box-shadow 0.3s ease;
}

.centrado {
  text-align: center;
}

#nav-buttons .btn-nav {
    width: 40px;              /* más pequeño */
    height: 40px;
    border-radius: 50%;       /* círculo perfecto */
    background-color: rgba(248, 249, 250, 0.2); /* fondo semi-transparente */
    border: 1px solid rgba(222, 226, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px); /* efecto vidrio sutil */
}

/* Ícono sólido, no afectado por la transparencia */
#nav-buttons .btn-nav i {
    font-size: 18px;
    color: navy; /* color sólido */
    line-height: 1;
}

/* Hover: círculo más visible, ícono blanco */
#nav-buttons .btn-nav:hover {
    background-color: rgba(13, 110, 253, 0.8); /* azul translúcido */
    border-color: rgba(13, 110, 253, 0.9);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#nav-buttons .btn-nav:hover i {
    color: yellow; /* ícono sólido en hover */
}

input:read-only {
    background-color: #f4f6f6;
}

input:required {
    background-color: rgb(232, 248, 245); 
    border-style: solid; 
    border: 1px solid cyan;
}

input.resaltado {
  border: 2px solid #28a745;
  background-color: #e6ffe6;
}

input:focus {
    outline: none; /* Elimina el borde por defecto del navegador */
    border: 2px solid #00bfff; /* Borde azul celeste */
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5); /* Sombra suave */
    background-color: #e6faff; /* Fondo celeste claro */
    transition: all 0.2s ease-in-out; /* Animación suave */
}

iframe {
    border: none;
    width: 100%;
    height: 90vh;
    opacity: 0;
    animation: fadeInIframe 0.6s ease-out forwards;
}

.botones-confirmar {
    display: none;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid #ccc;
    background: #f8f8f8;
}

.botones-confirmar button {
    background: #28a745;
    color: white;
    font-size: 16px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.botones-confirmar button:hover {
    background: #218838;
}

#notificacion {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1055;
}

@keyframes fadeInIframe { from { opacity: 0; } to { opacity: 1; } }

/* 🎨 Estilo para el toast */
#toastAviso {
    border: 3px solid var(--toast-border-color, #0d6efd);
    min-height: 120px;
    border-radius: 0.5rem;
    background-color: #212529;
    color: #f8f9fa;
}

/* 🎨 Estilo para la modal de confirmación */
#modalConfirmacion .modal-content {
    border: 3px solid var(--toast-border-color, #0d6efd); /* usa misma variable */
    min-height: 140px;
    border-radius: 0.5rem;
    background-color: #212529;
    color: #f8f9fa;
}

#modalConfirmacion .modal-header {
    background-color: #343a40;
    color: #ffffff;
    border-bottom: none;
}

#modalConfirmacion .modal-title {
    font-weight: 600;
}

#modalConfirmacion .modal-body {
    font-weight: 500;
    font-size: 1.1rem;
}

#modalConfirmacion .modal-footer {
    border-top: none;
}

#modalConfirmacion .btn {
    min-width: 120px;
}

.botonSeleccion {
    cursor: pointer;
    font-size: 12px;
    padding: 5px 8px;
    border: none;
    border-radius: 999px;
    background-color: #dbe0db;
    color: black;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.custom-badge {
    border-radius: 50% !important;
    font-size: 0.90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px; 
    min-height: 30px;
}

.alterno-badge {
    border-radius: 50% !important;
    font-size: 0.70em;
    margin: 0px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px; 
    min-height: 25px;
}

#contenedor {
    padding: 0px;
    margin: 0px;
    margin-top: -20px;
    margin-left: -30px;
}