/* Informe imprimible: fondo claro, tablas simples. */
:root { --ink: #111827; --muted: #6b7280; --line: #d1d5db; --bad: #b91c1c; --warn: #b45309; --ok: #047857; }
* { box-sizing: border-box; }
body { margin: 0; padding: 16px; background: #fff; color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.no-print { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px; margin: 0 auto 18px; max-width: 1000px;
  background: #f3f4f6; border-radius: 10px; }
.no-print label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 3px; }
.no-print input, .no-print select, .no-print button { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.no-print button { background: #1d4ed8; color: #fff; border-color: #1d4ed8; cursor: pointer; }
.no-print button:disabled { opacity: .5; cursor: default; }
.back { align-self: center; color: #1d4ed8; text-decoration: none; margin-right: 8px; }
.error { color: var(--bad); align-self: center; }
article { max-width: 1000px; margin: 0 auto; }
.head { display: flex; gap: 16px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.head img { height: 56px; }
.head h1 { font-size: 20px; margin: 0 0 4px; }
.head p { margin: 2px 0; }
h2 { font-size: 15px; margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.muted { color: var(--muted); font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.card .v { font-size: 22px; font-weight: 700; }
.card .k { font-size: 12px; color: var(--muted); }
.card.bad .v, td.bad, .bad { color: var(--bad); }
.card.warn .v, td.warn { color: var(--warn); }
.card.ok .v, td.ok { color: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.n { text-align: right; white-space: nowrap; }
tr { break-inside: avoid; }
footer { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 640px) { table { font-size: 11px; } .head img { height: 40px; } }
@media print {
  body { padding: 0; }
  .no-print { display: none !important; }
  @page { margin: 14mm; }
  h2 { break-after: avoid; }
}
