* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

header {
  background: linear-gradient(135deg, #0b3d2e, #157347);
  color: white;
  padding: 20px 24px;
}

.topbar {
  width: min(1250px, 96%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

h1 {
  margin: 0;
  font-size: 30px;
}

header p {
  margin: 6px 0 0;
  opacity: 0.9;
}

nav {
  display: flex;
  gap: 10px;
}

nav button {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
}

nav button.navActivo {
  background: white;
  color: #0b3d2e;
}

main {
  width: min(1250px, 94%);
  margin: 24px auto;
}

.pantalla {
  display: none;
}

.pantalla.activa {
  display: block;
}

.card {
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  margin-bottom: 22px;
}

.trabajadorCard {
  max-width: 620px;
  margin: auto;
}

.loginCard {
  max-width: 460px;
  margin: 60px auto;
}

h2, h3 {
  margin-top: 0;
  color: #0b3d2e;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

select,
input {
  width: 100%;
  padding: 13px;
  border: 1px solid #d5d8dc;
  border-radius: 12px;
  margin-top: 6px;
  font-size: 16px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  margin-top: 14px;
  cursor: pointer;
  background: #0b3d2e;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

button.ok {
  background: #157347;
}

button.warn {
  background: #ba4a00;
}

button.salir {
  background: #c0392b;
  margin-top: 0;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.trabajadorSeleccionadoDestacado {
  margin-top: 10px;
  padding: 14px 16px;
  border: 2px solid #2f5da8;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  box-shadow: 0 7px 18px rgba(47, 93, 168, 0.14);
  color: #183b70;
  overflow: hidden;
}

.trabajadorSeleccionadoDestacado > span {
  display: block;
  margin-bottom: 4px;
  color: #50698f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trabajadorSeleccionadoNombre {
  display: block;
  max-width: 100%;
  color: #214f91;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
  white-space: pre;
}

.trabajadorSeleccionadoDestacado > small {
  display: block;
  margin-top: 6px;
  color: #50698f;
  font-size: 14px;
  font-weight: 700;
}

.gpsRegistroEstado {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid #d5ddd9;
  border-radius: 12px;
  background: #f7f9f8;
  color: #5d6d65;
  font-size: 13px;
}

.gpsRegistroCabecera {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.gpsRegistroValores {
  display: grid;
  gap: 3px;
  padding-left: 18px;
}

.gpsRegistroValores span {
  display: block;
}

.gpsDispositivoEstado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  padding-top: 9px;
  border-top: 1px solid currentColor;
  font-weight: 700;
}

.gpsDispositivoEstado .miniBtn {
  flex: 0 0 auto;
  margin-top: 0;
}

.gpsSemaforo {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #95a5a6;
  box-shadow: 0 0 0 3px rgba(149, 165, 166, 0.16);
}

.gpsRegistroEstado.gpsValido {
  color: #0b6844;
  border-color: #a9dbc4;
  background: #edf9f3;
}

.gpsRegistroEstado.gpsValido .gpsSemaforo {
  background: #20a66a;
  box-shadow: 0 0 0 3px rgba(32, 166, 106, 0.18);
}

.gpsRegistroEstado.gpsError {
  color: #9b2f25;
  border-color: #efb9b3;
  background: #fff2f1;
}

.gpsRegistroEstado.gpsError .gpsSemaforo {
  background: #d6453d;
  box-shadow: 0 0 0 3px rgba(214, 69, 61, 0.16);
}

.gpsRegistroProgreso {
  margin-top: 10px;
  color: #9b2f25;
  font-size: 13px;
  font-weight: 700;
}

.gpsProgresoPuntos {
  display: inline-flex;
  gap: 5px;
  margin-left: 8px;
}

.gpsProgresoPuntos i {
  width: 9px;
  height: 9px;
  border: 1px solid #d6453d;
  border-radius: 50%;
  background: transparent;
}

.gpsProgresoPuntos i.activo {
  background: #d6453d;
}

.geoReporteFiltros {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geoReporteRadios {
  margin-top: 18px;
}

.gpsReporteResumen {
  margin-bottom: 16px;
  padding: 12px;
  border-left: 5px solid #16835c;
  border-radius: 10px;
  background: #eef8f3;
  color: #145c43;
  font-weight: 700;
}

.geoReporteResumen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.geoMetrica {
  padding: 13px;
  border: 1px solid #d9e5df;
  border-radius: 12px;
  background: #f7faf8;
}

.geoMetrica span,
.geoMetrica strong {
  display: block;
}

.geoMetrica span {
  color: #61736a;
  font-size: 12px;
}

.geoMetrica strong {
  margin-top: 5px;
  color: #0b5d40;
  font-size: 20px;
}

.geoDistribuciones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.geoDistribuciones > div,
.geoDistribuciones .tablaWrap,
.geoDistribuciones table {
  width: 100%;
  min-width: 0;
}

.geoDetalleWrap {
  max-height: 430px;
}

#geoTablaSesiones {
  min-width: 1460px;
}

.gpsDetalleSesion > td {
  padding: 0;
  background: #f4f8f6;
}

.gpsMuestrasDetalle {
  padding: 14px;
}

.gpsMuestrasDetalle p {
  margin: 0 0 10px;
}

.gpsMuestrasDetalle table {
  min-width: 820px;
}

.gpsMuestrasDetalle th,
.gpsMuestrasDetalle td {
  padding: 8px;
  font-size: 12px;
}

.gpsResultado {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.gpsResultadoExitoso {
  color: #0b6844;
  background: #daf3e6;
}

.gpsResultadoFallido {
  color: #9b2f25;
  background: #fde2df;
}

@media (max-width: 850px) {
  .geoReporteFiltros,
  .geoReporteResumen {
    grid-template-columns: 1fr;
  }
}

button.reporteGlobalBtn {
  background: #2874a6;
}

.aviso {
  background: #fff8e1;
  color: #7d6608;
  border-left: 5px solid #f1c40f;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: bold;
}

.cameraBox {
  position: relative;
  margin-top: 16px;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
}

.cameraBox video,
.fotoPreviewCongelada {
  width: 100%;
  max-height: 430px;
  display: block;
}

.cameraBox video {
  object-fit: cover;
}

.fotoPreviewCongelada {
  display: none;
  background: #111;
  object-fit: contain;
}

.cameraBox.fotoCongelada video,
.cameraBox.fotoCongelada .guiaRostroRegistro {
  display: none;
}

.cameraBox.fotoCongelada .fotoPreviewCongelada {
  display: block;
}

.guiaRostroRegistro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.guiaRostroOvalo {
  width: clamp(126px, 46%, 212px);
  aspect-ratio: 0.72;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.38), 0 0 18px rgba(0, 0, 0, 0.45);
}

.guiaRostroTexto {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.grid,
.adminGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.adminHeader,
.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 8px 2px 12px;
  margin: 6px 0 18px;
  border-bottom: 1px solid #dce8e1;
}

.admin-tab-btn {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid #cfe3d8;
  border-radius: 10px;
  background: #eef7f1;
  color: #0b3d2e;
  font-size: 14px;
  white-space: nowrap;
}

.admin-tab-btn.activa {
  background: #0b3d2e;
  border-color: #0b3d2e;
  color: white;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.activa {
  display: block;
}

.adminInicioCard {
  max-width: 760px;
}

.tablaWrap {
  overflow: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

th,
td {
  border-bottom: 1px solid #e5e7e9;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #0b3d2e;
  color: white;
}

a {
  color: #157347;
  font-weight: bold;
}

.miniBtn {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 8px;
  margin-top: 0;
  background: #2874a6;
  white-space: nowrap;
}

.nota {
  background: #eef7f1;
  border-left: 5px solid #157347;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0b3d2e;
  font-weight: bold;
}

.estadoActivo {
  display: inline-block;
  background: #d5f5e3;
  color: #117a3a;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 12px;
}

.estadoInactivo {
  display: inline-block;
  background: #fadbd8;
  color: #922b21;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 12px;
}

.filaInactiva {
  opacity: 0.65;
  background: #f9ebea;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 380px;
  padding: 16px 20px;
  border-radius: 14px;
  color: white;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.35s ease;
}

.toast.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #157347;
}

.toast.error {
  background: #c0392b;
}

.toast.warning {
  background: #ba4a00;
}

@media (max-width: 850px) {
  .topbar,
  .adminHeader,
  .sectionHeader {
    flex-direction: column;
    align-items: flex-start;
  }

  nav,
  nav button {
    width: 100%;
  }

  .grid,
  .adminGrid {
    grid-template-columns: 1fr;
  }

  .toast {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

.footerIA {
  text-align: center;
  padding: 18px 12px;
  color: #6c757d;
  font-size: 13px;
  font-weight: bold;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 18px;
}

.modalOverlay.mostrar {
  display: flex;
}

.modalBox {
  width: min(560px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  animation: modalEntrada 0.22s ease;
}

@keyframes modalEntrada {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modalHeader {
  background: linear-gradient(135deg, #0b3d2e, #157347);
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modalHeader h3 {
  margin: 0;
  color: white;
}

.modalCerrar {
  background: rgba(255,255,255,0.18);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

#modalContenido {
  padding: 20px;
}

.modalActions {
  padding: 16px 20px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #edf0f2;
}

.btnSecundario {
  background: #6c757d;
}

@media (max-width: 600px) {
  .modalActions {
    flex-direction: column;
  }

  .modalActions button {
    width: 100%;
  }
}

.estadoDiaBox {
  margin-top: 22px;
  background: #f8faf9;
  border: 1px solid #e1e7e4;
  border-radius: 16px;
  padding: 16px;
}

.estadoDiaBox h3 {
  margin: 0;
  color: #0b3d2e;
}

.modalBox.modalLocalBox {
  width: min(820px, 96vw);
}

.estadoBorrador,
.estadoCompleto {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 12px;
}

.estadoBorrador {
  background: #eef2f3;
  color: #566573;
}

.estadoCompleto {
  background: #d5f5e3;
  color: #117a3a;
}

.historialHorariosWrap {
  margin: 8px 0 16px;
  max-height: 220px;
}

.historialHorariosTabla th,
.historialHorariosTabla td {
  white-space: nowrap;
}

.checkLinea {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-weight: 600;
}

.checkLinea input {
  width: auto;
}

.accesoRecordarCheck {
  margin-top: 16px;
}

.accesoDispositivoBox {
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px solid #cfe0d8;
  border-radius: 12px;
  background: #f6faf8;
}

.accesoDispositivoBox .nota {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 11px;
}

.dispositivosAccesoHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #d6e6de;
}

.dispositivosAccesoHeader h4,
.dispositivosAccesoHeader p {
  margin-bottom: 0;
}

.dispositivosAccesoWrap {
  max-height: 440px;
}

#tablaDispositivosAcceso {
  min-width: 1220px;
  table-layout: fixed;
}

#tablaDispositivosAcceso th {
  position: sticky;
  top: 0;
  z-index: 2;
}

#tablaDispositivosAcceso th:nth-child(1) { width: 210px; }
#tablaDispositivosAcceso th:nth-child(2) { width: 145px; }
#tablaDispositivosAcceso th:nth-child(3) { width: 175px; }
#tablaDispositivosAcceso th:nth-child(4) { width: 190px; }
#tablaDispositivosAcceso th:nth-child(5) { width: 210px; }
#tablaDispositivosAcceso th:nth-child(6) { width: 230px; }

#tablaDispositivosAcceso td {
  vertical-align: top;
  font-size: 12px;
}

#tablaDispositivosAcceso td > strong,
#tablaDispositivosAcceso td > small,
.dispositivoUbicacion small {
  display: block;
}

#tablaDispositivosAcceso td > small,
.dispositivoUbicacion small {
  margin-top: 5px;
  color: #61736c;
  font-size: 10px;
  line-height: 1.35;
}

.dispositivoActual {
  display: table;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #d8f4e5;
  color: #087344;
  font-size: 10px;
  font-weight: 800;
}

.dispositivoAcciones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.localGeocercaConfig {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  background: #f4faf7;
}

.localGeocercaConfig h4 {
  margin: 0 0 10px;
}

.localGeocercaCampos {
  margin-top: 8px;
}

.localMapaBusqueda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.localMapaBusqueda button {
  margin-top: 6px;
  white-space: nowrap;
}

.localMapa {
  width: 100%;
  height: 330px;
  margin-top: 10px;
  border: 1px solid #b9cec2;
  border-radius: 12px;
  background: #e9efec;
  overflow: hidden;
  z-index: 0;
}

.localMapaAyuda {
  margin: 8px 0 0;
}

@media (max-width: 600px) {
  .localMapaBusqueda {
    grid-template-columns: 1fr;
  }

  .localMapaBusqueda button {
    width: 100%;
    margin-top: 0;
  }

  .localMapa {
    height: 280px;
  }
}

@media (max-width: 850px) {
  .dispositivosAccesoHeader {
    align-items: flex-start;
    flex-direction: column;
  }
}

.programacionMensualCard {
  margin-top: 18px;
}

.gridProgramacionMensual {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filaMensualPersonalizada td {
  background: #fff8dc;
}

.turnoMensualFila {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .gridProgramacionMensual,
  .turnoMensualFila {
    grid-template-columns: 1fr;
  }
}

.salidaPermitidaCampos {
  display: none;
}

.salidaPermitidaCampos.activa {
  display: grid;
}

.listaEstadoColaboradores {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.estadoColaborador {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: bold;
}

.estadoColaborador span {
  color: #17202a;
}

.estadoColaborador.registrado {
  background: #d5f5e3;
  border-left: 6px solid #157347;
}

.estadoColaborador.registrado strong {
  color: #117a3a;
}

.estadoColaborador.pendiente {
  background: #fff3cd;
  border-left: 6px solid #f39c12;
}

.estadoColaborador.pendiente strong {
  color: #9a6400;
}

.estadoVacio,
.estadoError {
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
}

.estadoVacio {
  background: #eef2f3;
  color: #566573;
}

.estadoError {
  background: #fadbd8;
  color: #922b21;
}

@media (max-width: 600px) {
  .estadoColaborador {
    flex-direction: column;
    align-items: flex-start;
  }
}

.textareaNota {
  width: 100%;
  min-height: 78px;
  padding: 13px;
  border: 1px solid #d5d8dc;
  border-radius: 12px;
  margin-top: 6px;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  resize: vertical;
}

.btnNaranja {
  background: #ba4a00;
  margin-left: 6px;
}

@media (max-width: 700px) {
  .btnNaranja {
    margin-left: 0;
    margin-top: 6px;
  }
}

.btnRojo {
  background: #c0392b;
  margin-left: 6px;
}

@media (max-width: 700px) {
  .btnRojo {
    margin-left: 0;
    margin-top: 6px;
  }
}

.btnMorado {
  background: #6f42c1;
  margin-left: 6px;
}

@media (max-width: 700px) {
  .btnMorado {
    margin-left: 0;
    margin-top: 6px;
  }
}

.modalConfirmacion {
  max-width: 520px;
}

.modalConfirmacion .modalHeader h3 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confirmContenido {
  position: relative;
  padding: 22px;
}

.confirmResumen {
  position: relative;
  min-height: 130px;
  padding-right: 90px;
}

.confirmFotoMiniatura {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(66px, 16vw, 72px);
  aspect-ratio: 9 / 16;
  border: 1px solid #d6dee8;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 5px 14px rgba(31, 56, 88, 0.18);
  object-fit: cover;
  object-position: center center;
}

.confirmColaborador {
  margin: 8px 0 18px;
  color: #214f91;
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.confirmTipoRegistro {
  display: block;
  margin-bottom: 5px;
  color: #183b70;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.confirmFotoHora {
  margin-bottom: 8px;
  color: #34495e;
  font-size: 16px;
  font-weight: 700;
}

.confirmNotaLabel {
  display: block;
  margin-top: 0;
  font-size: 15px;
  color: #566573;
  font-weight: bold;
}

.confirmNota {
  min-height: 68px;
  max-height: 130px;
  resize: vertical;
}

@media (max-width: 600px) {
  .trabajadorCard {
    padding: 16px;
  }

  .trabajadorSeleccionadoNombre {
    font-size: clamp(26px, 9vw, 34px);
  }

  .buttons button {
    flex: 1 1 100%;
    width: 100%;
  }

  .gpsDispositivoEstado {
    align-items: stretch;
    flex-direction: column;
  }

  .gpsDispositivoEstado .miniBtn {
    width: 100%;
  }

  .confirmColaborador {
    font-size: clamp(27px, 9vw, 36px);
  }

  .confirmContenido {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .confirmResumen {
    min-height: 120px;
    padding-right: 78px;
  }

  .confirmFotoMiniatura {
    width: 66px;
  }
}

@media (max-width: 360px) {
  main {
    width: calc(100% - 12px);
  }

  .trabajadorCard {
    padding: 12px;
  }

  .trabajadorSeleccionadoDestacado {
    padding: 12px 10px;
  }
}

.accionesReporte {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;

}

.btnIconoEliminar {
  width: 38px;
  height: 38px;
  padding: 0;
  margin-top: 0;
  border-radius: 10px;
  background: #c0392b;
  color: white;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
}

.btnIconoEliminar:hover {
  background: #922b21;
  transform: scale(1.04);
}

.detalleRegistroBox {
  display: grid;
  gap: 16px;
}

.detalleRegistroResumen {
  background: #f4f6f8;
  border-left: 6px solid #157347;
  border-radius: 14px;
  padding: 16px;
}

.detalleRegistroResumen h4 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0b3d2e;
}

.detalleRegistroResumen p,
.detalleRegistroNotas p {
  margin: 6px 0;
}

.detalleRegistroNotas {
  background: #fff8e1;
  border-left: 6px solid #f1c40f;
  border-radius: 14px;
  padding: 16px;
}

.detalleRegistroFotos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detalleRegistroFotos a,
.detalleRegistroFotos span {
  background: #eef2f3;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.detalleRegistroAcciones {
  display: grid;
  gap: 10px;
}

.accionBtn {
  width: 100%;
  text-align: left;
  margin-top: 0;
  background: #2874a6;
  padding: 14px 16px;
  border-radius: 12px;
}

.btnMorado {
  background: #6f42c1;
}

@media (max-width: 700px) {
  .accionesReporte {
    flex-direction: column;
    align-items: flex-start;
  }

  .detalleRegistroFotos {
    flex-direction: column;
  }
}

.apoyoBox {
  margin-top: 14px;
  background: #eef7f1;
  border-left: 5px solid #157347;
  border-radius: 14px;
  padding: 14px;
}

.checkLabel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  cursor: pointer;
  color: #0b3d2e;
}

.checkLabel input {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

#boxLocalApoyo {
  margin-top: 12px;
}

.resumenPositivo {
  display: inline-block;
  background: #d5f5e3;
  color: #117a3a;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
}

.resumenNegativo {
  display: inline-block;
  background: #fadbd8;
  color: #922b21;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
}

.resumenPendiente {
  display: inline-block;
  background: #fff3cd;
  color: #8a5a00;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
}

#tablaPlanilla .planillaDatoLinea > strong.resumenPositivo,
#tablaPlanilla .planillaDatoLinea > strong.resumenNegativo,
#tablaPlanilla .planillaDatoLinea > strong.resumenPendiente {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.botonesReporte {
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 18px;
}

.botonesReporte .btnRojo {
  margin-left: 0;
}

.resumenHeader {
  display: block;
}

.resumenHeader h3 {
  margin-bottom: 8px;
}

.resumenBotonBox {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.resumenCheckCol {
  text-align: center;
}

.sumarLimpiezaResumen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}

.sumarLimpiezaResumen input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.estadoColaborador {
  align-items: stretch;
}

.estadoColaboradorNombre {
  font-size: 15px;
  font-weight: bold;
  color: #17202a;
}

.estadoTurnos {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.estadoTurnoLinea {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.estadoTurnoHoras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingresoOk {
  background: #d5f5e3;
  color: #117a3a;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: bold;
}

.salidaOk {
  background: #d5f5e3;
  color: #117a3a;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: bold;
}

.salidaPendiente {
  background: #fadbd8;
  color: #922b21;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: bold;
}

.badgeApoyo {
  background: #c9b0f5;
  color: white;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  margin-left: 5px;
}

.estadoTurnoLocal {
  display: block;
  color: #566573;
  font-size: 12px;
  margin-top: 3px;
}

.sinTurnos {
  color: #7f8c8d;
  font-weight: bold;
}

#tablaProgramacion td {
  vertical-align: middle;
}

.programacionMinutos {
  display: grid;
  gap: 6px;
  min-width: 130px;
}

.programacionMinutos label {
  margin-top: 0;
  font-size: 11px;
  color: #0b3d2e;
}

.programacionMinutos input {
  padding: 7px 8px;
  margin-top: 3px;
  font-size: 12px;
}

#tablaProgramacion .miniBtn {
  margin-top: 4px;
  margin-right: 4px;
}

#tablaProgramacion .btnRojo {
  background: #c0392b;
}

/* Reporte diario compacto */
.reporteWrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #e2e8e4;
  border-radius: 8px;
}

#tablaReporte.reporteTabla {
  width: 2392px;
  min-width: 2392px;
  table-layout: fixed;
}

#tablaReporte th,
#tablaReporte td {
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: middle;
  overflow: hidden;
}

#tablaReporte th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
  background: #0b3d2e;
}

#tablaReporte tbody tr:nth-child(even) {
  background: #f8fbf9;
}

#tablaReporte tbody tr:hover {
  background: #eef7f1;
}

#tablaReporte th:nth-child(1),
#tablaReporte td:nth-child(1) { width: 96px; }
#tablaReporte th:nth-child(2),
#tablaReporte td:nth-child(2) { width: 160px; }
#tablaReporte th:nth-child(3),
#tablaReporte td:nth-child(3) { width: 180px; }
#tablaReporte th:nth-child(4),
#tablaReporte td:nth-child(4) { width: 180px; }
#tablaReporte th:nth-child(5),
#tablaReporte td:nth-child(5),
#tablaReporte th:nth-child(6),
#tablaReporte td:nth-child(6) { width: 118px; }
#tablaReporte th:nth-child(7),
#tablaReporte td:nth-child(7) { width: 110px; text-align: center; }
#tablaReporte th:nth-child(8),
#tablaReporte td:nth-child(8) { width: 130px; text-align: center; }
#tablaReporte th:nth-child(9),
#tablaReporte td:nth-child(9) { width: 136px; text-align: center; }
#tablaReporte th:nth-child(10),
#tablaReporte td:nth-child(10) { width: 128px; text-align: center; }
#tablaReporte th:nth-child(11),
#tablaReporte td:nth-child(11) { width: 130px; text-align: center; }
#tablaReporte th:nth-child(12),
#tablaReporte td:nth-child(12) { width: 130px; text-align: center; }
#tablaReporte th:nth-child(13),
#tablaReporte td:nth-child(13),
#tablaReporte th:nth-child(14),
#tablaReporte td:nth-child(14) { width: 155px; }
#tablaReporte th:nth-child(15),
#tablaReporte td:nth-child(15) { width: 250px; text-align: center; }
#tablaReporte th:nth-child(16),
#tablaReporte td:nth-child(16) { width: 78px; text-align: center; }
#tablaReporte th:nth-child(17),
#tablaReporte td:nth-child(17) { width: 180px; }

.reporteFecha,
.reporteEstado,
.reporteHora,
.reporteTiempo,
.reporteAnticipo,
.reporteTotal,
.reporteFoto,
.reporteAcciones,
.reporteAutorizar {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reporteTrabajador,
.reporteLocal,
.reporteNota {
  max-width: 180px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.reporteTiempo,
.reporteAnticipo,
.reporteTotal {
  font-variant-numeric: tabular-nums;
}

.reporteTotal {
  font-weight: 700;
  color: #0b3d2e;
}

.reporteNota span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 34px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

#tablaReporte .fotoLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #eef7f1;
  color: #157347;
  font-size: 11px;
  text-decoration: none;
}

#tablaReporte .accionesReporte {
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

#tablaReporte .reporteBtnEditar {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
}

#tablaReporte .btnIconoEliminar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
}

#tablaReporte .btnIconoEliminar:hover {
  transform: none;
}

.salidasLotePanel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #b8d8c8;
  border-radius: 12px;
  background: #f4fbf7;
}

.salidasLoteSeleccion,
.salidasLoteAcciones,
.paginacionReporte {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.salidasLoteSeleccion {
  margin-bottom: 14px;
}

.salidasLoteSeleccion strong {
  margin-left: auto;
  color: #0b3d2e;
}

.salidasLoteAcciones {
  padding-top: 13px;
  border-top: 1px solid #d7e9df;
}

.salidasLoteOpcion {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 600;
}

.salidasLoteOpcion input[type="radio"],
.salidasLoteOpcion input[type="checkbox"],
.salidaLoteCheck input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #157347;
}

#salidasLoteHora {
  width: 116px;
  margin: 0;
}

.salidaAutomatica {
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0c2;
  color: #7a5200;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

#tablaReporte.reporteTablaSalidasLote {
  width: 1120px;
  min-width: 1120px;
}

#tablaReporte.reporteTablaSalidasLote th:nth-child(1),
#tablaReporte.reporteTablaSalidasLote td:nth-child(1) { width: 78px; text-align: center; }
#tablaReporte.reporteTablaSalidasLote th:nth-child(2),
#tablaReporte.reporteTablaSalidasLote td:nth-child(2) { width: 104px; }
#tablaReporte.reporteTablaSalidasLote th:nth-child(3),
#tablaReporte.reporteTablaSalidasLote td:nth-child(3) { width: 190px; }
#tablaReporte.reporteTablaSalidasLote th:nth-child(4),
#tablaReporte.reporteTablaSalidasLote td:nth-child(4) { width: 150px; }
#tablaReporte.reporteTablaSalidasLote th:nth-child(5),
#tablaReporte.reporteTablaSalidasLote td:nth-child(5) { width: 120px; }
#tablaReporte.reporteTablaSalidasLote th:nth-child(6),
#tablaReporte.reporteTablaSalidasLote td:nth-child(6) { width: 140px; }
#tablaReporte.reporteTablaSalidasLote th:nth-child(7),
#tablaReporte.reporteTablaSalidasLote td:nth-child(7) { width: 230px; }
#tablaReporte.reporteTablaSalidasLote th:nth-child(8),
#tablaReporte.reporteTablaSalidasLote td:nth-child(8) { width: 150px; }

.turnoProgramadoLote {
  display: block;
  margin: 2px 0;
  white-space: nowrap;
}

.programacionSinDatos {
  color: #6c757d;
}

.relacionSalida {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.relacionSalida.posterior { background: #fde2e2; color: #9d2222; }
.relacionSalida.anterior { background: #e4efff; color: #1e4e8c; }
.relacionSalida.igual { background: #dff4e7; color: #176b3a; }
.relacionSalida.multiple { background: #fff0c2; color: #7a5200; }
.relacionSalida.pendiente { background: #eceff1; color: #536067; }

.filaSalidaLoteNoElegible {
  opacity: 0.58;
}

.paginacionReporte {
  justify-content: center;
  margin-top: 12px;
}

.paginacionReporte span {
  color: #536067;
  font-size: 13px;
  font-weight: 600;
}

.modalBox.modalSalidasLoteBox {
  width: min(1040px, 97vw);
}

.previewSalidasLoteWrap {
  margin-top: 14px;
  max-height: 55vh;
}

.previewSalidasLote {
  min-width: 860px;
}

.previewSalidasLote th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0b3d2e;
}

.previewSalidasLote td {
  vertical-align: middle;
}

.filaPreviewSalida.fallida td,
.avisoSalidaLote {
  color: #9d2222;
  background: #fff2f2;
}

.filaPreviewSalida.requiereSeleccion td {
  background: #fff9e8;
}

.filaPreviewSalida.sinCambio td {
  color: #6c757d;
}

.seleccionTurnoLote {
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 210px;
}

.seleccionTurnoLote span {
  color: #8a5a00;
  font-weight: 700;
}

.seleccionTurnoLote select {
  margin: 0;
}

.avisoSalidaLote {
  padding: 10px 12px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .salidasLotePanel {
    padding: 12px;
  }

  .salidasLoteSeleccion,
  .salidasLoteAcciones {
    align-items: stretch;
    flex-direction: column;
  }

  .salidasLoteSeleccion strong {
    margin-left: 0;
  }

  .salidasLotePanel button,
  .salidasLoteAcciones > button,
  #salidasLoteHora {
    width: 100%;
  }

  .salidasLoteOpcion {
    min-height: 44px;
  }

  .paginacionReporte {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .paginacionReporte span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}

.ingresoAnticipadoReporte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #cfe3d8;
  border-radius: 6px;
  background: #f3faf6;
  color: #0b3d2e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ingresoAnticipadoReporte input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.planillaWrap {
  max-height: 65vh;
}

#tablaPlanilla {
  width: 100%;
  min-width: 1320px;
  table-layout: fixed;
}

#tablaPlanilla th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
  background: #0b3d2e;
}

#tablaPlanilla td {
  vertical-align: top;
  white-space: normal;
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.3;
}

#tablaPlanilla th:nth-child(1) { width: 205px; }
#tablaPlanilla th:nth-child(2) { width: 155px; }
#tablaPlanilla th:nth-child(3) { width: 165px; }
#tablaPlanilla th:nth-child(4) { width: 180px; }
#tablaPlanilla th:nth-child(5) { width: 165px; }
#tablaPlanilla th:nth-child(6) { width: 195px; }
#tablaPlanilla th:nth-child(7) { width: 170px; }
#tablaPlanilla th:nth-child(8) { width: 150px; }

/* Primera columna inmóvil, como "Inmovilizar paneles" de Excel. */
#tablaPlanilla thead th:first-child,
#tablaCargaRapidaPlanilla thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 7px 0 9px -9px rgba(18, 52, 40, 0.9);
}

#tablaPlanilla tbody td:first-child,
#tablaCargaRapidaPlanilla tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 7px 0 9px -9px rgba(18, 52, 40, 0.65);
}

.planillaColaboradorNombre {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.planillaLocalNombre {
  display: inline-block;
  position: static;
  margin-top: 7px;
  padding: 4px 7px;
  border-left: 4px solid #16835c;
  border-radius: 7px;
  background: #eef7f2;
  color: #174c3a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.planillaEstadoAcciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.planillaEstadoAcciones .estadoCompleto,
.planillaEstadoAcciones .estadoBorrador {
  margin: 0;
}

.planillaEstadoAcciones .miniBtn {
  min-height: 27px;
  padding: 4px 7px;
  font-size: 10px;
}

.planillaDatoLinea {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 4px;
  min-width: 0;
}

.reporteGlobalBloque .planillaDatoLinea > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.reporteGlobalBloque .planillaDatoLinea > strong {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#tablaResumenHoras {
  min-width: 1740px;
  table-layout: fixed;
}

#tablaResumenHoras th,
#tablaResumenHoras td {
  font-size: 12px;
  vertical-align: middle;
}

#tablaResumenHoras th:nth-child(1) { width: 175px; }
#tablaResumenHoras th:nth-child(2) { width: 155px; }
#tablaResumenHoras th:nth-child(n+3):nth-child(-n+12) { width: 118px; }
#tablaResumenHoras th:nth-child(n+13) { width: 90px; }
#tablaResumenHoras td:nth-child(n+3):nth-child(-n+12) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#tablaPlanilla .planillaDatoLinea > span:first-child {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  text-align: left;
}

#tablaPlanilla .planillaDatoLinea {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  column-gap: 18px;
  width: 100%;
  max-width: 100%;
}

#tablaPlanilla .planillaDatoLinea > strong {
  margin-left: 0;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#tablaPlanilla .planillaDescuentosCelda .planillaDatoLinea {
  column-gap: 18px;
}

#tablaPlanilla .planillaDescuentosCelda .planillaDatoLinea > span:first-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.planillaBonoEstado {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
}

.planillaDescuentosCelda .planillaDatoLinea > strong {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 58px;
  text-align: right;
  white-space: nowrap;
}

.planillaDatoLinea > span:first-child,
.planillaSecundario {
  color: #5d7169;
  font-size: 10px;
}

.planillaSecundario {
  display: block;
  margin-top: 5px;
}

.planillaNeto {
  display: block;
  color: #0b6b4b;
  font-size: 14px;
}

.cargaRapidaPlanilla {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #cfe0d8;
  border-radius: 10px;
  background: #f8fbf9;
}

.cargaRapidaPlanilla > summary {
  cursor: pointer;
  color: #0b4b38;
  font-weight: 800;
  font-size: 15px;
}

.cargaRapidaPlanillaWrap {
  max-height: 62vh;
  margin-top: 10px;
}

#tablaCargaRapidaPlanilla {
  min-width: 2200px;
  table-layout: fixed;
}

#tablaCargaRapidaPlanilla th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: normal;
  vertical-align: middle;
}

#tablaCargaRapidaPlanilla th:first-child { width: 190px; }
#tablaCargaRapidaPlanilla th:nth-child(2) { width: 270px; }
#tablaCargaRapidaPlanilla th:nth-child(3) { width: 140px; }
#tablaCargaRapidaPlanilla th:nth-child(5) { width: 220px; }
#tablaCargaRapidaPlanilla th:nth-child(6),
#tablaCargaRapidaPlanilla th:nth-child(7) { width: 155px; }
#tablaCargaRapidaPlanilla th:nth-child(n+8):nth-child(-n+11) { width: 130px; }
#tablaCargaRapidaPlanilla th:nth-child(12) { width: 125px; }
#tablaCargaRapidaPlanilla th:nth-child(13) { width: 165px; }

#tablaCargaRapidaPlanilla td {
  vertical-align: top;
  padding: 8px 6px;
}

#tablaCargaRapidaPlanilla input[type="number"],
#tablaCargaRapidaPlanilla select {
  min-width: 0;
  width: 100%;
  padding: 7px 6px;
  font-size: 12px;
}

#tablaCargaRapidaPlanilla input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.cargaRapidaColaborador strong,
.cargaRapidaColaborador small,
.cargaRapidaCompuesta > small {
  display: block;
}

.cargaRapidaColaborador small,
.cargaRapidaCompuesta > small,
#tablaCargaRapidaPlanilla td > small {
  margin-top: 4px;
  color: #5d7169;
  font-size: 10px;
}

.cargaRapidaColaborador span {
  display: table;
  margin-top: 6px;
}

.cargaRapidaCompuesta label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 11px;
}

.cargaRapidaCompuesta > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.cargaRapidaProduccionResumen {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.cargaRapidaProduccionResumen small,
.cargaRapidaNoAplica {
  color: #5d7169;
  font-size: 10px;
}

.cargaRapidaProduccionLocales {
  display: grid;
  gap: 6px;
}

.cargaRapidaProduccionLocales label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #496158;
  font-size: 10px;
}

.cargaRapidaProduccionLocales label span {
  overflow-wrap: anywhere;
}

.cargaRapidaProduccionLocales input[type="number"] {
  text-align: right;
}

#tablaCargaRapidaPlanilla .miniBtn {
  width: 100%;
  margin-top: 5px;
}

#tablaCargaRapidaPlanilla tr.cargaRapidaModificada td {
  background: #fff8d9;
}

#tablaCargaRapidaPlanilla tr.cargaRapidaModificada td:first-child {
  background: #fff8d9;
}

.avisoPlanillaParcial {
  padding: 9px 11px;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  background: #fff7e6;
  color: #704000;
}

.oculto {
  display: none !important;
}

.reporteGlobalPlanilla {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 3px solid #0b6b4b;
}

.reporteGlobalGrid {
  display: grid;
  gap: 18px;
}

.reporteGlobalLocal {
  overflow: hidden;
  border: 1px solid #c9ddd3;
  border-radius: 14px;
  background: #fff;
}

.reporteGlobalLocalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #0b4b39;
  color: #fff;
}

.reporteGlobalLocalHeader h4,
.reporteGlobalLocalHeader span {
  margin: 0;
  color: inherit;
}

.reporteGlobalSecciones {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
  padding: 14px;
}

.reporteGlobalBloque {
  padding: 12px;
  border-radius: 10px;
  background: #f3faf6;
}

.reporteGlobalBloque h5 {
  margin: 0 0 9px;
  color: #0b4b39;
  font-size: 13px;
}

.reporteGlobalBloque .planillaDatoLinea {
  border-bottom: 1px solid #dbe9e2;
  padding-bottom: 4px;
}

@media (max-width: 1150px) {
  .reporteGlobalSecciones {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 650px) {
  .reporteGlobalSecciones {
    grid-template-columns: 1fr;
  }
}

.planillaDetalleAutomatico {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #cfe3d8;
  border-radius: 10px;
  background: #f3faf6;
}

.planillaDetalleAutomatico p {
  margin: 5px 0;
}

.programacionTiempoBono {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.programacionTiempoBono input {
  width: 72px;
  min-width: 72px;
}

@media (max-width: 700px) {
  #tablaReporte .accionesReporte {
    flex-direction: row;
    align-items: center;
  }
}
