.atrasos-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.atrasos-titulo {
  text-align: center;
  color: #b30000;
}
.atrasos-descripcion {
  text-align: center;
  margin-bottom: 20px;
}
.atrasos-form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}
.atrasos-form input, .atrasos-form select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
#btnCalcular {
  background: #b30000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 600;
}
#btnCalcular:hover {
  background: #8c0000;
}
.atrasos-resultado {
  margin-top: 25px;
}
.atrasos-resultado table {
  width: 100%;
  border-collapse: collapse;
}
.atrasos-resultado td {
  padding: 6px 4px;
  border-bottom: 1px solid #ddd;
}
.btn-imprimir, .btn-descarga {
  display: block;
  text-align: center;
  background: #444;
  color: white;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn-imprimir:hover {
  background: #000;
}
.btn-descarga {
  background: #0074cc;
}
.btn-descarga:hover {
  background: #005fa3;
}
.nota-legal {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
  margin-top: 15px;
}
.aviso-privacidad {
  background: #f9f9f9;
  border-left: 4px solid #b30000;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 10px;
  line-height: 1.4;
}
/* ==== Encabezado y botón info ==== */
.atrasos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btn-info-popup {
  background: #b30000;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-info-popup:hover {
  background: #d90000;
}

/* ==== Popup ==== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.popup-overlay.activo {
  visibility: visible;
  opacity: 1;
}

.popup-contenido {
  background: #fff;
  color: #333;
  max-width: 720px;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  border-top: 5px solid #b30000;
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-contenido h2 {
  color: #b30000;
  margin-bottom: 10px;
  text-align: center;
}

.popup-contenido ul {
  margin: 5px 0 10px 25px;
}

.popup-contenido button {
  background: #b30000;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 20px auto 0 auto;
}

.popup-contenido button:hover {
  background: #d90000;
}
.popup-valores {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 15px 0;
  font-size: 0.95rem;
}

.popup-valores td {
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
}

.popup-valores td:first-child {
  font-weight: bold;
  color: #333;
}
.modulo-atrasos-informe {
  padding: 40px 20px;
  max-width: 950px;
  margin: auto;
  background: var(--bg-color, #fff);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.logo-informe {
  display: block;
  margin: 0 auto 15px auto;
  width: 160px;
}

.tabla-informe td {
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
}

.page-break { page-break-before: always; }

.btn-imprimir, .btn-volver {
  display: inline-block;
  margin: 25px 10px;
  background: #b30000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-imprimir:hover, .btn-volver:hover {
  background: #800000;
}

@media print {
  header, footer, nav, .btn-volver, .btn-imprimir {
    display: none !important;
  }
  body {
    background: white;
    margin: 20mm;
  }
}

