/* 🔄 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: 4px 8px;          /* reducido */
  gap: 4px;                  /* 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: 16px 0;
  border-left: 4px solid #007bff;
  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: #1a1a1a;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  line-height: 1.2;
}

/* 

[data-bs-theme="dark"] .empresa-info {
  background: linear-gradient(to right, #1e1e1e, #2a2a2a);
  border-left-color: #66b2ff;
}

[data-bs-theme="dark"] .etiqueta-empresa {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .nombre-empresa {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

*/

.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);
}

/*

[data-bs-theme="dark"] .verificacion-box label {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .verificacion-box input[name="verificacion"] {
  background-color: #2a2a2a;
  color: #fff;
  border-color: #555;
}

*/
.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;
}

/*
[data-bs-theme="dark"] .topbar-sombra {
  box-shadow:
    0 -1px 2px rgba(0, 123, 255, 0.25),
    0 1px 2px rgba(0, 123, 255, 0.25);
  transition: box-shadow 0.3s ease;
}
*/

.centrado {
  text-align: center;
}
