:root { --azul:#1f5f8b; --fondo:#f4f6f8; --borde:#d6dde4; --texto:#1b2430; --suave:#5b6773; --ok:#1d7a46; --mal:#b3261e; --aviso:#8a5a00; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.4 system-ui,-apple-system,sans-serif; background:var(--fondo); color:var(--texto); }
main { max-width:720px; margin:0 auto; padding:12px 16px 40px; }
header { position:sticky; top:0; background:var(--fondo); padding-top:4px; z-index:2; }
h1 { font-size:22px; margin:6px 0 10px; }
h2 { font-size:17px; margin:18px 0 8px; }
h3 { font-size:15px; margin:14px 0 6px; }
nav { display:flex; gap:4px; overflow-x:auto; padding-bottom:8px; border-bottom:1px solid var(--borde); margin-bottom:12px; }
nav a { flex:0 0 auto; padding:8px 12px; border-radius:99px; text-decoration:none; color:var(--texto); background:#fff; border:1px solid var(--borde); font-weight:600; font-size:14px; }
nav a.on { background:var(--azul); color:#fff; border-color:var(--azul); }
section { background:#fff; border:1px solid var(--borde); border-radius:12px; padding:14px; margin-bottom:14px; }
label { display:block; font-weight:600; margin:12px 0 4px; }
select,input,textarea,button { font:inherit; width:100%; padding:10px; border:1px solid var(--borde); border-radius:8px; background:#fff; color:var(--texto); }
textarea { min-height:60px; }
button { background:var(--azul); color:#fff; border:0; font-weight:600; margin-top:12px; padding:12px; cursor:pointer; }
button.sec { background:#fff; color:var(--texto); border:1px solid var(--borde); font-weight:500; }
button.mal { background:var(--mal); }
button.ok { background:var(--ok); }
button:disabled { opacity:.5; }
.fila { display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-top:1px solid var(--borde); align-items:center; }
.fila:first-child { border-top:0; }
.fila .t { font-weight:600; }
.fila .d { color:var(--suave); font-size:14px; }
.fila .imp { font-variant-numeric: tabular-nums; white-space:nowrap; font-weight:600; }
.lin { display:flex; justify-content:space-between; gap:8px; padding:5px 0; font-size:15px; border-top:1px dashed var(--borde); }
.lin.total { font-weight:700; border-top:1px solid var(--borde); }
.lin .imp { font-variant-numeric: tabular-nums; white-space:nowrap; }
.suave { color:var(--suave); font-size:14px; }
.etq { display:inline-block; font-size:12px; padding:1px 8px; border-radius:99px; background:#e6edf3; margin-left:6px; vertical-align:middle; }
.etq.pagada { background:#d6f0de; } .etq.generada { background:#fff0c9; } .etq.sustituida { background:#eee; } .etq.propuesto { background:#fff0c9; } .etq.aprobado { background:#d6f0de; } .etq.rechazado { background:#f3d9d7; }
.pill { background:var(--mal); color:#fff; border-radius:99px; padding:0 7px; font-size:12px; }
.botones { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.botones button, .botones a.btn { width:auto; margin:0; padding:8px 12px; font-size:14px; }
a.btn { display:inline-block; text-decoration:none; background:var(--azul); color:#fff; border-radius:8px; font-weight:600; }
.check { display:flex; gap:8px; align-items:center; font-weight:400; margin:8px 0; }
.check input { width:auto; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#msg { margin-top:10px; font-weight:600; min-height:1.2em; }
#msg.mal { color:var(--mal); } #msg.ok { color:var(--ok); }
.oculto { display:none; }
details { margin:6px 0; } summary { cursor:pointer; font-weight:600; padding:6px 0; }
pre { white-space:pre-wrap; font-size:13px; background:#f7f9fb; padding:8px; border-radius:8px; }
.aviso { border-left:4px solid var(--aviso); padding-left:10px; margin:8px 0; }
.aviso.leido { opacity:.6; border-color:var(--borde); }
@media (min-width:600px) { nav a { font-size:15px; } }
a.btn.sec { background:#fff; color:var(--texto); border:1px solid var(--borde); font-weight:500; }
