:root { --fondo:#f6f7f5; --texto:#1d2a24; --tinta:#1f5f4a; --borde:#d5dbd6; --alerta:#a33; }
@media (prefers-color-scheme: dark) {
  :root { --fondo:#151a17; --texto:#e6ebe7; --tinta:#6fc2a2; --borde:#34403a; --alerta:#f08a8a; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--fondo); color:var(--texto); font:16px/1.5 system-ui, sans-serif; }
header, main, footer { max-width:40rem; margin:0 auto; padding:1rem; }
header { border-bottom:2px solid var(--tinta); }
h1 { font-size:1.2rem; margin:.5rem 0 0; color:var(--tinta); }
header p { margin:.2rem 0 .8rem; font-size:.85rem; opacity:.8; }
form { border:1px solid var(--borde); border-radius:8px; padding:1rem; margin:1rem 0; }
label { display:block; margin:.6rem 0; font-size:.9rem; }
input, select { display:block; width:100%; padding:.6rem; margin-top:.2rem; font:inherit;
  color:inherit; background:transparent; border:1px solid var(--borde); border-radius:6px; }
button { padding:.6rem 1.2rem; font:inherit; color:var(--fondo); background:var(--tinta);
  border:0; border-radius:6px; cursor:pointer; }
table { width:100%; border-collapse:collapse; margin:.5rem 0 1.5rem; }
th, td { padding:.5rem; border-bottom:1px solid var(--borde); text-align:left; }
td { text-align:right; }
.total th, .total td { font-weight:700; font-size:1.1rem; }
.estado { padding:.1rem .6rem; border:1px solid var(--tinta); border-radius:99px; }
.error { color:var(--alerta); font-weight:600; }
.nota { font-size:.8rem; opacity:.75; }
footer { border-top:1px solid var(--borde); font-size:.85rem; }
.aviso { font-weight:600; }
