/* =====================================================================
   JM Costos — estilos (tema claro: fondo gris, tarjetas blancas)
   Colores de marca tomados del logo de jminformatica.com.py
   ===================================================================== */
:root {
  --bg: #B3BDCA;        /* fondo gris pizarra: sobrio, y las tarjetas blancas resaltan */
  --surface: #FFFFFF;   /* tarjetas */
  --surface2: #EEF1F5;  /* bloques internos */
  --line: #BCC5D1;
  --txt: #0A1220;       /* texto principal casi negro */
  --dim: #2F3B4C;       /* textos secundarios bien legibles */
  --campo-borde: #7C899B;
  --barra: #1C2E5E;     /* barra de navegación: azul marino oscuro */
  --accent: #2E4890;    /* azul marino del logo JM */
  --accent-soft: rgba(46, 72, 144, .10);
  --celeste: #00A8F0;   /* celeste del logo JM */
  --amber: #A15C00;     /* advertencias (deuda de 31 a 60 días, pendiente) */
  --amber-soft: rgba(161, 92, 0, .11);
  --green: #1B7F55;
  --green-soft: rgba(27, 127, 85, .10);
  --red: #C0392B;
  --red-soft: rgba(192, 57, 43, .09);
  --radius: 14px;
  --sombra: 0 1px 2px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .10);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--txt); margin: 0; padding: 0 0 96px; min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
  font-weight: 500;
}
.wrap { max-width: 880px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 14px 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cab { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.cab .logo { height: 36px; width: auto; display: block; }
.cab .engranaje { margin-left: auto; }
/* oculto a la vista pero lo leen los lectores de pantalla */
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
h1 { flex: 1; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 0;
  padding-left: 10px; border-left: 2px solid var(--line); line-height: 28px; }
.engranaje { background: var(--surface); border: 1px solid var(--line); color: var(--dim); width: 40px; height: 40px; border-radius: 10px;
  font-size: 19px; line-height: 1; box-shadow: var(--sombra); }
.engranaje:hover { color: var(--accent); }
.engranaje.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.btn2 { background: #0079B8; color: #fff; }
.g8 { gap: 8px; }

/* ---------- tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--sombra); }
.card h2, .editando h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-weight: 800; }
.card.alerta { border-top-color: var(--red); }
.card.alerta { border-color: var(--red); }
.card.alerta h2 { color: var(--red); }
.card.hoy { border-color: var(--accent); }

/* ---------- formularios ---------- */
label { display: block; font-size: 13px; font-weight: 700; color: #16202E; margin: 0 0 5px; }
input, select, textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--campo-borde); border-radius: 10px;
  color: var(--txt); font-size: 16px; font-weight: 500; padding: 11px 12px; font-family: inherit; outline: none;
}
input::placeholder, textarea::placeholder { color: #6B7789; font-weight: 400; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #7F8B9A; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 72, 144, .18); }
input[readonly] { color: var(--dim); background: var(--surface2); }
textarea { resize: vertical; min-height: 62px; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row.centro { align-items: center; gap: 8px; }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 5px; line-height: 1.5; }

button { font-family: inherit; cursor: pointer; border: none; }
.btn { background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 14px; border-radius: 11px; width: 100%; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.chico { padding: 11px; font-size: 13px; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--txt); font-size: 13px; padding: 10px; border-radius: 10px; width: 100%; }
.btn-ghost:hover { background: var(--surface2); }
.btn-ghost.alto { padding: 14px; }
.mini { background: var(--surface); color: var(--txt); border: 1px solid var(--campo-borde); font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 7px; margin: 8px 6px 0 0; }
.mini:hover { color: var(--txt); border-color: var(--dim); }
.mini.elegido, .mini.destacado { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.mini.lleno { margin: 0; width: 100%; padding: 9px 6px; }
.mini.peligro, .peligro { color: var(--red) !important; border-color: var(--red) !important; }

.seg { display: flex; background: var(--barra); border-radius: 11px; padding: 3px; margin-bottom: 14px; box-shadow: var(--sombra); }
.seg button { flex: 1; background: transparent; color: #C9D3E6; font-size: 13px; padding: 9px 4px; border-radius: 9px; font-weight: 700; }
.seg button.on { background: var(--surface); color: var(--accent); box-shadow: var(--sombra); }

/* ---------- números y listas ---------- */
.big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.big.medio { font-size: 26px; }
.moneda { font-size: 14px; color: var(--dim); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.ambar { color: var(--amber); }
.tenue { color: var(--dim); }
.fuerte { font-weight: 700; }
.chico { font-size: 13px; }

.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--dim); font-size: 13px; }
.kv.chico { padding: 5px 0 5px 12px; border-bottom: none; }
.kv.chico span, .kv.chico b { font-size: 12px; font-weight: 500; }
.sub { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }
.flecha { color: var(--accent); }
.clic { cursor: pointer; }

.item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.item:last-child { border-bottom: none; }
.item .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item .name { font-weight: 600; font-size: 15px; }
.item .name.chico { font-size: 14px; }
.meta { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.item.anulada { opacity: .5; }
.item.editando { border-left: 3px solid var(--accent); padding-left: 10px; }

.tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; font-weight: 700; display: inline-block; margin-top: 4px; }
.tag.pend { background: var(--amber-soft); color: var(--amber); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.age { background: rgba(94, 107, 122, .12); color: var(--dim); }

.empty { color: var(--dim); font-size: 13px; text-align: center; padding: 26px 10px; line-height: 1.6; }
.empty.p14 { padding: 14px; }
.center { max-width: 360px; margin: 16vh auto 0; padding: 0 16px; }

/* ---------- medidor de equilibrio ---------- */
.gauge { height: 34px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; position: relative; overflow: hidden; margin: 6px 0 8px; }
.gauge .fill { height: 100%; background: var(--green); opacity: .8; transition: width .4s ease; }
.gauge .fill.short { background: var(--red); }
.gauge .notch { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.gauge .notch::after { content: "equilibrio"; position: absolute; top: -1px; left: 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.grafico { display: block; overflow: visible; }

/* ---------- navegación inferior ---------- */
nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--barra); border-top: 3px solid var(--celeste);
  display: flex; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); backdrop-filter: blur(12px); z-index: 50;
}
nav button { flex: 1; background: transparent; color: #B7C3D9; font-size: 11px; padding: 6px 2px; font-weight: 700; border-radius: 10px; }
nav button.on { color: #fff; background: rgba(0, 168, 240, .22); }
nav button i { display: block; font-size: 17px; font-style: normal; margin-bottom: 3px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 104px; background: var(--green); color: #fff;
  font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 10px; z-index: 99; opacity: 0; transition: opacity .25s;
  pointer-events: none; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.toast.show { opacity: 1; }
.toast.err { background: var(--red); }

/* ---------- semana ---------- */
.semhdr { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.semhdr .tit { flex: 1; font-size: 13px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.semhdr button { background: var(--surface); border: 1px solid var(--line); color: var(--txt); width: 34px; height: 34px; border-radius: 9px; font-size: 16px; line-height: 1; }
.semhdr button.ancho { width: auto; padding: 0 10px; font-size: 13px; }
.diahdr { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; }
.diahdr .d { font-size: 13px; font-weight: 700; text-transform: capitalize; }
.diahdr .carga { font-size: 11px; color: var(--dim); }
.diahdr .carga.over { color: var(--red); font-weight: 700; }
.semgrid { display: none; }
.semlista { display: block; }
@media (min-width: 760px) {
  .semlista { display: none; }
  .semgrid {
    display: grid; grid-template-columns: 46px repeat(5, 1fr); gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  }
  .semgrid > div { background: var(--surface); padding: 5px 6px; min-height: 34px; font-size: 11px; }
  .semgrid .gh { background: var(--surface2); font-weight: 700; text-transform: capitalize; text-align: center; color: var(--dim); padding: 7px 4px; }
  .semgrid .gh.hoy { color: var(--accent); }
  .semgrid .ghora { background: var(--surface2); color: var(--dim); text-align: right; font-size: 10px; font-family: var(--mono); }
  .semgrid .ev { background: var(--accent-soft); border-left: 2px solid var(--accent); border-radius: 4px; padding: 3px 5px; margin-bottom: 2px; line-height: 1.3; cursor: pointer; }
  .semgrid .ev.hecho { background: var(--green-soft); border-left-color: var(--green); }
  .semgrid .ev b { display: block; font-size: 11px; }
  .semgrid .ev span { color: var(--dim); font-size: 10px; }
}

/* ---------- factura ---------- */
.tot { background: var(--surface2); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.tot .grande { font-size: 22px; font-weight: 700; }
.letras { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; line-height: 1.5; margin-top: 6px; }
.lineafac { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: var(--surface2); }
.avisonum { font-size: 11px; color: var(--dim); margin-top: 5px; }
.avisonum.alerta { color: var(--red); font-weight: 700; }
.reparto { margin-top: 8px; }
.tag.mal { background: var(--red-soft); color: var(--red); }

/* ---------- WhatsApp ---------- */
.btn.wa { background: #1A8D4E; display: block; text-align: center; text-decoration: none; }
.btn.wa::before { content: "💬 "; }
.btn.wa.chico { padding: 10px; font-size: 14px; flex: 1; }
.mini.wa-mini { border-color: #1A8D4E; color: #1A8D4E; font-weight: 600; }
.modal-fondo { position: fixed; inset: 0; background: rgba(17, 26, 36, .45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
.modal h2 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; font-weight: 600; }
@media (min-width: 640px) { .modal-fondo { align-items: center; } .modal { border-radius: 16px; } }

/* ---------- órdenes de trabajo ---------- */
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--surface2); border: 1px solid var(--line); }
.fotos:empty { display: none; }
.foto-btn { display: block; text-align: center; cursor: pointer; }
canvas.firma { width: 100%; height: 160px; background: #fff; border: 1.5px dashed var(--campo-borde); border-radius: 10px; touch-action: none; display: block; }
.firma-img { width: 100%; max-height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.check.tarea { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.check.tarea input { width: 22px; height: 22px; }
.centro-txt { text-align: center; }
body.modo-tecnico nav, body.modo-tecnico #btn_ajustes { display: none !important; }
body.modo-tecnico { padding-bottom: 24px; }
.dato { flex: 1; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; }
.dato b { display: block; font-size: clamp(14px, 4.4vw, 22px); overflow-wrap: anywhere; line-height: 1.2; }
.dato { min-width: 0; padding: 8px 6px; }
.dato span { font-size: 11.5px; color: var(--dim); }
input.mono { font-family: var(--mono); letter-spacing: .03em; }
.punto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); vertical-align: middle; margin-left: 2px; }

/* ---------- dólar ---------- */
/* ---------- informes ---------- */
.medidor { height: 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 2px 0 8px; }
.medidor-barra { height: 100%; }
.medidor-barra.bien { background: var(--green); } .medidor-barra.medio { background: var(--amber); } .medidor-barra.mal { background: var(--red); }
.hbarras { display: flex; flex-direction: column; gap: 10px; }
.hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.hb-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-fondo { height: 9px; background: var(--surface2); border-radius: 5px; margin-top: 4px; overflow: hidden; }
.hb-barra { height: 100%; background: var(--accent); border-radius: 5px; }
.hb-barra.neg, .hb-barra.neg-bg { background: var(--red); } .hb-barra.ambar { background: var(--amber); }
.decision { margin-top: 14px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; }
.decision > div { margin-top: 4px; }
.decision-tit { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--accent); margin: 0 !important; }
.usa { font-size: 11.5px; color: var(--dim); margin-top: 10px; }
.tramo { border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; margin-top: 10px; }
.tramo-tit { font-weight: 800; font-size: 13px; color: var(--accent); margin-top: 6px; }
.seg.chico-seg button { font-size: 12px; padding: 7px 4px; }
.mini.m0 { white-space: nowrap; flex-shrink: 0; }

/* fuera de las tarjetas (sobre el fondo gris) los textos van más oscuros */
.wrap > #view > .field > label, .wrap > #view > .hint, .semhdr .tit { color: #0F1A2B; }

.dolar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--celeste);
  border-radius: 10px; padding: 8px 10px 8px 12px; margin-bottom: 12px; font-size: 14px; box-shadow: var(--sombra); }
.dolar.pendiente { border-left-color: var(--amber); }
.dolar input { padding: 7px 9px; font-size: 15px; }
.dolar .mini { white-space: nowrap; }
.usdbox { margin-top: 8px; padding: 8px 10px; background: rgba(0, 168, 240, .08); border: 1px solid rgba(0, 168, 240, .35); border-radius: 10px; }
.usdbox input { padding: 8px 10px; }
.usd { color: #00618F; font-weight: 600; }

/* ---------- presupuestos ---------- */
.lineafac.opcional { border-style: dashed; background: var(--surface); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt); margin: 8px 0 0; cursor: pointer; }
.check input { width: auto; margin: 0; }
.interno { border: 1px dashed var(--amber); background: var(--amber-soft); border-radius: 10px; padding: 8px 12px; }
.interno-tit { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 2px; }
.mini.m0 { margin: 0 0 0 4px; padding: 2px 7px; }
.pct { flex: 0 0 12px !important; color: var(--dim); font-size: 13px; }

/* ---------- utilidades de espaciado y anchos ---------- */
.m0 { margin: 0; } .mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; } .mb12 { margin-bottom: 12px; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; }
.sep8 { height: 8px; } .sep10 { height: 10px; }
.flex1 { flex: 1; min-width: 0; }
.g12 { gap: 12px; }
.w66 { flex: 0 0 66px !important; } .w84 { flex: 0 0 84px !important; } .w96 { flex: 0 0 96px !important; }
.w106 { flex: 0 0 106px !important; } .w108 { flex: 0 0 108px !important; } .w112 { flex: 0 0 112px !important; }
.w118 { flex: 0 0 118px !important; } .w120 { flex: 0 0 120px !important; } .w130 { flex: 0 0 130px !important; } .w140 { flex: 0 0 140px !important; }
.reparto input, .w106 input, .row.centro input { padding: 8px 10px; }


/* ---------- documentos (impresión y PDF) ---------- */
/* En pantalla no se ven; se muestran al imprimir (#impresion) o al generar el PDF (.pdf-render). */
.hoja, .doc { display: none; }
.pdf-render { position: fixed; left: -10000px; top: 0; width: 186mm; background: #fff; padding: 0; }
.pdf-render .doc { display: block; }

.doc { color: #000; background: #fff; font-family: Arial, Helvetica, sans-serif; }
.doc * { color: #000 !important; }
.doc-cab { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
.doc-emisor { font-size: 17pt; font-weight: 700; }
.doc-titulo { font-size: 13pt; font-weight: 700; }
.doc-chico { font-size: 9pt; }
.doc .der { text-align: right; }
.doc-cliente { margin-bottom: 12px; font-size: 11pt; }
.doc table { width: 100%; border-collapse: collapse; font-size: 10pt; }
.doc th, .doc td { border-bottom: 1px solid #999; padding: 5px 4px; text-align: left; }
.doc th { border-bottom: 2px solid #000; font-size: 9pt; text-transform: uppercase; letter-spacing: .06em; }
.doc .num { text-align: right; font-variant-numeric: tabular-nums; font-family: Arial, Helvetica, sans-serif; }
.doc-total td { font-weight: 700; border-bottom: none; text-align: right; }
.doc-total td.num { font-size: 12pt; }
.doc-letras { font-size: 10pt; margin-top: 14px; }
.doc-pie { font-size: 8.5pt; margin-top: 22px; border-top: 1px solid #999; padding-top: 6px; }

/* presupuesto con la plantilla POSSI */
.doc.pp { font-size: 10.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pp-logo { border: 2px solid var(--pp); padding: 8px 16px; font-size: 18pt; font-weight: 800; letter-spacing: .06em; color: var(--pp) !important; }
.pp-titulo { font-size: 20pt; font-weight: 800; letter-spacing: .12em; color: var(--pp) !important; }
.pp-barra { height: 6px; background: var(--pp); margin: 8px 0 12px; }
.pp-datos { display: flex; gap: 24px; margin-bottom: 6px; }
.pp-datos > div:first-child { flex: 1; }
.pp-datos span, .pp-ref span, .pp-cond span { color: #555 !important; font-size: 9pt; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.pp-ref { margin: 8px 0 12px; line-height: 1.45; }
.doc .pp-tabla th { background: var(--pp); color: #fff !important; border-bottom: none; padding: 6px 6px; }
.doc .pp-tabla td { padding: 6px; vertical-align: top; }
.pp-sec td { font-weight: 700; background: #E9EDF4; }
.pp-total td { font-weight: 800; font-size: 12pt; border-top: 2px solid var(--pp); border-bottom: none !important; text-align: right; }
.pp-opc { margin-top: 10px; font-size: 9.5pt; }
.pp-letras { margin: 12px 0 8px; font-weight: 700; }
.pp-cond { margin-bottom: 4px; }
.pp-pie { text-align: center; font-size: 9pt; }
.pp-marcas { text-align: center; font-size: 9pt; font-weight: 700; letter-spacing: .08em; margin-top: 4px; color: var(--pp) !important; }
.doc.pp tr { break-inside: avoid; }

@media print {
  body { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .wrap, nav, .toast, .modal-fondo { display: none !important; }
  #impresion .doc { display: block !important; }
  .hoja {
    display: block !important; position: relative; margin: 0; padding: 0; width: var(--hoja-w); height: var(--hoja-h);
    color: #000; background: #fff; font-family: "Courier New", Courier, monospace;
  }
  .hoja .campo { position: absolute; font-size: 11pt; white-space: pre; }
  .hoja .der { text-align: right; }
  .hoja .grilla { position: absolute; inset: 0; }
  .hoja .grilla i { position: absolute; background: #bbb; font-style: normal; font-size: 6pt; color: #666; }
  .hoja .grilla i.rot { background: none; }
  @page { margin: 12mm; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
