/* ================================
   PANTALLA CIERRE RUTA / INFORME DE INCIDENCIAS
   ================================ */

.informe-contenedor {
  background-color: #fafafa; /* fondo muy claro para buena lectura */
  color: #2f5d3a;            /* texto en verde oscuro contrastado */
  border-radius: 8px;
  padding: 1.5rem;
  width: 90%;
  max-width: 800px;          /* ancho mayor que otras modales */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  position: relative;
}

/* Cabecera de informe: disposición */
.informe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #c8ddc4;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.informe-header-left,
.informe-header-center,
.informe-header-right {
  display: flex;
  align-items: center;
}

.informe-header-left {
  flex: 1;
  gap: 1rem;
}

.inf-texto {
  font-size: 1rem;
  font-weight: bold;
  color: #3a3a3a;
}

.informe-header-center {
  flex: 1;
  justify-content: center;
}

.informe-titulo {
  font-size: 1.5rem;
  color: #0f3117;
  margin: 0;
}

.informe-header-right {
  flex: 1;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Botones específicos de informe (más grandes y claros) */
.informe-btn {
  background-color: #2f5d3a;
  color: #fafafa;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: background-color 0.2s;
}
.informe-btn:hover {
  background-color: #375f40;
}

/* Contenedor del listado con scroll interno */
.informe-listado-contenedor {
  max-height: 400px; /* ajustable según necesidad */
  overflow-y: auto;
  border: 1px solid #c8ddc4;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Estilos de la tabla de incidencias */
.informe-tabla {
  width: 100%;
  border-collapse: collapse;
}
.informe-tabla th,
.informe-tabla td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #d9e6d1;
}
.informe-tabla th {
  background-color: #c8ddc4;
  color: #2f5d3a;
  font-weight: bold;
  position: sticky;
  top: 0; /* fija el encabezado al hacer scroll */
  z-index: 2;
}
.informe-tabla tr:nth-child(even) {
  background-color: #f0faf2;
}

/* Ajuste para impresión: solo mostrar la ventana de informe */
@media print {
  body * {
    visibility: hidden;
  }
  #informe-incidencias-screen,
  #informe-incidencias-screen * {
    visibility: visible;
  }
  #informe-incidencias-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
}
