/* ==============================================
   ESTILOS EXTRAS - SEPARADOS POR ZONA
============================================== */

/* --------------------------
   SOLO TABLA PRINCIPAL
-------------------------- */

/* Sombreado al pasar el ratón */
#tabla-contenido tr:hover td {
  background-color: #e6f0fa !important;
}

/* Campos modificados */
#tabla-contenido .modificado {
  background-color: #bdd7f5 !important;
  border: 1px solid #89aedb !important;
  color: #2b4b72 !important;
}

/* Fila de totales */
#tabla-contenido .fila-totales {
  background-color: #d4e4f7 !important;
  font-weight: bold;
  color: #2b4b72;
}

#tabla-contenido .fila-totales td {
  border-top: 2px solid #89aedb !important;
  padding: 6px 4px !important;
}

/* --------------------------
   CONTROLES EXTRAS
-------------------------- */
.controles-extras {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
  padding: 6px;
  background: #f8fbfe;
  border-radius: 4px;
  border: 1px solid #d4e4f7;
  font-size: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #c9d8eb;
  border-radius: 18px;
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

input:checked + .slider {
  background-color: #5a9bd4;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.btn-extras {
  padding: 4px 8px;
  border: none;
  border-radius: 3px;
  background: #6fa8dc;
  color: white;
  cursor: pointer;
  font-size: 11.5px;
}

.btn-extras:hover {
  background: #5a9bd4;
}

/* --------------------------
   SOLO MODAL / RESUMEN
-------------------------- */
.modal .modal-contenido {
  max-width: 900px !important;
  max-height: 90vh !important;
  padding: 10px !important;
}

.modal .resumen-header {
  padding: 5px !important;
  font-size: 15px !important;
  margin-bottom: 6px !important;
}

.modal .totales-superior {
  gap: 3px !important;
  margin-bottom: 8px !important;
  font-size: 12px !important;
}

.modal .totales-superior div {
  padding: 3px !important;
}

.modal table th,
.modal table td {
  padding: 3px 5px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.modal .cerrar {
  font-size: 18px !important;
  top: 4px !important;
  right: 8px !important;
}