:root { color-scheme: light; --borde: #d7dbe0; --texto: #1c2430; --suave: #5b6676; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, sans-serif; color: var(--texto); background: #f6f7f9; }
header, main, footer { padding: 12px 16px; max-width: 1400px; margin: 0 auto; }
nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
a { color: #14529e; }
.corte, footer { color: var(--suave); font-size: 13px; }
.aviso { background: #fff4ce; border: 1px solid #e3c65c; padding: 8px 10px; border-radius: 6px; }
.centro { max-width: 420px; margin: 12vh auto; text-align: center; }
.boton, button { display: inline-block; background: #14529e; color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; text-decoration: none; font: inherit; cursor: pointer; }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.cifras li { background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 10px; }
.cifras b { display: block; font-size: 24px; }
form.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
form.filtros label { display: flex; flex-direction: column; font-size: 12px; color: var(--suave); }
input, select { font: inherit; padding: 6px; border: 1px solid var(--borde); border-radius: 6px; max-width: 100%; }
.tabla { overflow-x: auto; background: #fff; border: 1px solid var(--borde); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--borde); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--suave); }
/* la tabla ya se desplaza por dentro: sin esto una nota larga deja la fila altísima y las fechas se parten */
.larga { min-width: 18em; }
.junto { white-space: nowrap; }
.etiqueta { display: inline-block; padding: 1px 8px; border-radius: 10px; white-space: nowrap; background: #e8ebf0; }
.ok { background: #d9f2dd; } .alerta { background: #fff0c2; } .mal { background: #fbdada; }
