* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f3f5f8; color: #1d2733; font-size: 15px; }
a { color: #1f5fbf; }
.barra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 10px 20px; background: #16324f; color: #fff; }
.barra a, .barra .link { color: #dfe9f5; text-decoration: none; }
.barra a:hover { color: #fff; text-decoration: underline; }
.marca { font-weight: 600; }
.marca small { display: block; font-weight: 400; font-size: 12px; opacity: .75; }
.barra nav { display: flex; flex-wrap: wrap; gap: 6px 14px; flex: 1; }
.barra .sep { opacity: .4; }
.salir { font-size: 13px; }
main { max-width: 1100px; margin: 20px auto; padding: 0 14px; }
.tarjeta { background: #fff; border-radius: 10px; padding: 18px 22px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow-x: auto; }
.tarjeta.angosta { max-width: 440px; margin-left: auto; margin-right: auto; }
.tarjeta.destacada { border-left: 5px solid #d98a00; }
.centro { text-align: center; }
h1 { font-size: 22px; margin: 0 0 14px; }
h2 { font-size: 17px; margin: 18px 0 10px; }
label { display: block; margin: 10px 0; font-weight: 500; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; border: 1px solid #c3ccd6; border-radius: 6px; background: #fff; }
input[type=checkbox] { width: auto; display: inline; margin: 0; }
button, .boton { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid #c3ccd6; background: #fff; cursor: pointer; text-decoration: none; color: #1d2733; display: inline-block; }
button.primario, .boton { background: #1f5fbf; color: #fff; border-color: #1f5fbf; }
button.link { background: none; border: none; padding: 0; color: #1f5fbf; text-decoration: underline; }
.barra button.link { color: #dfe9f5; }
h1 .boton { font-size: 14px; float: right; }
button.grande { font-size: 22px; padding: 18px 40px; border: none; color: #fff; border-radius: 12px; margin: 10px 0; min-width: 260px; }
button.entrada { background: #1c8a4a; }
button.salida { background: #c0392b; }
button:disabled { opacity: .5; }
.reloj { font-size: 46px; font-variant-numeric: tabular-nums; margin: 6px 0; font-weight: 300; }
.estado { font-size: 17px; }
.dentro { color: #1c8a4a; font-weight: 600; }
.fuera { color: #6b7785; }
.nota { color: #6b7785; font-size: 13px; }
.aviso { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.aviso.ok { background: #e3f5ea; color: #145c33; border: 1px solid #b7e2c7; }
.aviso.error { background: #fdecea; color: #8a2318; border: 1px solid #f3c1bb; }
table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e3e8ee; vertical-align: top; }
th { background: #f6f8fa; font-weight: 600; font-size: 13px; }
table.compacta td { font-size: 13px; }
tr.incidencia td { background: #fff6e5; }
tr.inactivo td { color: #9aa4af; }
.estado-aprobada { color: #1c8a4a; }
.estado-rechazada { color: #c0392b; }
.estado-pendiente { color: #d98a00; }
.fila { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.fila label { flex: 1; min-width: 150px; }
.filtro button { margin-bottom: 10px; }
.acciones { font-size: 14px; }
.resolver { display: flex; flex-wrap: wrap; gap: 6px; }
.resolver input { margin: 0; min-width: 140px; flex: 1; }
.terminos { background: #f9fafb; border: 1px solid #e3e8ee; border-radius: 8px; padding: 6px 18px; line-height: 1.5; }
code.hash { display: block; word-break: break-all; background: #f6f8fa; padding: 8px; border-radius: 6px; }
/* Reporte */
body.reporte .barra { display: none; }
body.reporte main { max-width: 900px; background: #fff; padding: 24px; }
table.datos th { width: 200px; }
.pie { font-size: 12px; color: #555; margin-top: 18px; word-break: break-all; }
.firmas { display: flex; gap: 60px; margin-top: 70px; }
.firmas div { flex: 1; border-top: 1px solid #333; padding-top: 6px; text-align: center; font-size: 13px; }
@media print {
  .no-imprimir { display: none !important; }
  body { background: #fff; }
  body.reporte main { padding: 0; margin: 0; max-width: none; }
  tr.incidencia td { background: none; font-style: italic; }
}
@media (max-width: 600px) {
  .reloj { font-size: 38px; }
  button.grande { width: 100%; min-width: 0; }
}

.boton.microsoft { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1d2733; border: 1px solid #8c959f; padding: 11px; margin: 6px 0 4px; }
.boton.microsoft:hover { background: #f3f5f8; }
.separador { text-align: center; color: #6b7785; font-size: 13px; border-top: 1px solid #e3e8ee; margin: 20px 0 4px; }
.separador span { position: relative; top: -10px; background: #fff; padding: 0 8px; }
.alerta { color: #b03a2e; }
.ok-texto { color: #1c8a4a; }
fieldset { border: 1px solid #e3e8ee; border-radius: 8px; margin: 12px 0; padding: 4px 14px 8px; }
legend { font-weight: 600; padding: 0 6px; }
.dias { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dias label { margin: 4px 0; }
small.nota { display: block; font-weight: 400; }
.insignia { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #d98a00; color: #fff; font-size: 12px; text-align: center; font-weight: 600; }
tr.no-leido td { background: #f1f6fd; }
.aviso-push { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; border-left: 5px solid #1f5fbf; }
.aviso-push p { margin: 0; flex: 1; min-width: 220px; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .barra { padding: 10px 14px; }
  .barra .marca { flex: 1; }
  .barra .salir { order: 2; }
  .barra nav { order: 3; flex-basis: 100%; gap: 6px 12px; font-size: 14px; }
  .barra .sep { display: none; }
}
