/* Trazabilidad CICLA — "carnet del material".
   Mineral ground, petrol ink, CICLA yellow only where you are (current step, active nav).
   Archivo wide for headings (sack-stencil feel), Plex Mono only for lot codes and fingerprints. */
:root {
  --bg: #eef2f0;
  --surface: #ffffff;
  --ink: #12302f;
  --ink-2: #2e4a48;
  --muted: #5b6e6b;
  --line: #d5dedb;
  --line-2: #e6ecea;
  --yellow: #f9bd00;
  --red-brand: #db4040;
  --blue-brand: #1f8ffe;
  --ok: #1b8a55;
  --ok-bg: #e3f3ea;
  --warn: #8a5600;
  --warn-line: #e9a23b;
  --warn-bg: #fff1d6;
  --bad: #c8372d;
  --bad-bg: #fbe6e4;
  --focus: #1f8ffe;
  --r-lg: 14px;
  --r: 10px;
  --r-sm: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 "Archivo", system-ui, sans-serif; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.15; font-weight: 700; font-stretch: 118%; letter-spacing: -0.01em; }
h1 { font-size: 31px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
a { color: var(--ink); text-underline-offset: 3px; }
p { max-width: 70ch; }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.brandline { height: 4px; background: linear-gradient(90deg, var(--yellow) 0 33.3%, var(--red-brand) 33.3% 66.6%, var(--blue-brand) 66.6%); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 4px); background: linear-gradient(90deg, var(--surface) 247px, var(--line) 247px 248px, transparent 248px); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { height: 44px; width: auto; align-self: flex-start; margin: 0 10px 22px; }
.side .group { font-size: 12px; color: var(--muted); padding: 14px 14px 4px; }
.side a.nav { display: block; padding: 9px 12px 9px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; text-decoration: none; position: relative; }
.side a.nav:hover { background: var(--bg); }
.side a.nav.on { background: var(--bg); color: var(--ink); }
.side a.nav.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--yellow); }
.who { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px 6px 8px; border-top: 1px solid var(--line-2); }
.who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.who b { display: block; font-size: 14px; line-height: 1.2; }
.who span { font-size: 13px; color: var(--muted); }
.corfo { font-size: 12px; color: var(--muted); padding: 4px 6px 0; }
.clock { font: 500 11.5px/1.4 "IBM Plex Mono", monospace; color: var(--ink); padding: 10px 6px 0; }
main { padding: clamp(18px, 2.4vw, 40px) clamp(16px, 3vw, 48px) 96px; width: 100%; max-width: 1600px; justify-self: center; min-width: 0; }
.topbar { display: none; }
.scrim { display: none; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead h1 { margin: 0; }
.pagehead p { margin: 4px 0 0; color: var(--muted); }
.pagehead > div:first-child { min-width: 0; flex: 1 1 420px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 20px; }
.panel > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel > h2 .small { font-weight: 400; font-stretch: 100%; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2.2fr); gap: clamp(14px, 1.6vw, 24px); align-items: start; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.form-right { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }

/* summary strip: one surface split by rules (not four cards) */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; }
.strip > div { padding: 18px 22px; border-left: 1px solid var(--line-2); }
.strip > div:first-child { border-left: 0; }
.strip .k { color: var(--muted); font-size: 14px; }
.strip .v { font-size: 30px; font-weight: 700; font-stretch: 118%; line-height: 1.2; }
.strip .v.ok { color: var(--ok); }
.strip .v.bad { color: var(--bad); }

/* ---------- alerts ---------- */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); margin: 0 0 12px; font-weight: 500; border: 1px solid; }
.note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; background: currentColor; }
.note.ok { background: var(--ok-bg); border-color: #b9dfc9; color: #135f3b; }
.note.warn { background: var(--warn-bg); border-color: #f2cf8f; color: var(--warn); }
.note.bad { background: var(--bad-bg); border-color: #efb9b3; color: #8f2219; }
.note.info { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.error { background: var(--bad-bg); border: 1px solid #efb9b3; color: #8f2219; padding: 12px 16px; border-radius: var(--r); font-weight: 600; margin: 12px 0; }

/* ---------- status pills (fixed colours) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.flag { background: transparent; border: 1px dashed #a9b9b5; color: var(--muted); }
.pill.flag::before { display: none; }
.stream { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }

/* five-step rail used in lists */
.rail { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 8px; }
.rail i { width: 16px; height: 6px; border-radius: 3px; background: var(--line); }
.rail i.on { background: var(--ink); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f7f9f8; }
td .code { font-family: "IBM Plex Mono", monospace; font-weight: 500; white-space: nowrap; }
td .sub { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
td.num, th.num { text-align: right; }

/* bars: lots per stream / composition */
.hbars { display: grid; gap: 14px; }
.hbar .lab { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hbar .track { height: 10px; background: var(--line-2); border-radius: 5px; margin-top: 6px; }
.hbar .fill { height: 100%; background: var(--ink); border-radius: 5px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--ink-2); }
label .small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); padding: 11px 13px; min-height: 48px; border: 1px solid #b8c6c2; border-radius: var(--r-sm); background: #fff; }
textarea { min-height: 88px; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--ink); }
input[type="file"] { padding: 9px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31, 143, 254, 0.3); border-color: var(--focus); }
input.out { border-color: var(--warn-line); background: var(--warn-bg); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-top: 14px; color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 20px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  font: 600 15px "Archivo", sans-serif; border-radius: var(--r-sm); border: 1px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
button:hover, .btn:hover { background: var(--ink-2); }
button.ghost, .btn.ghost { background: #fff; color: var(--ink); border-color: #b8c6c2; }
button.ghost:hover, .btn.ghost:hover { background: var(--bg); }
button.danger { background: #fff; color: var(--bad); border-color: #e6a8a2; }
button.sm, .btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
button.link { background: none; border: 0; color: var(--muted); min-height: 0; padding: 2px 4px; text-decoration: underline; font-weight: 500; }
button:disabled { opacity: 0.55; cursor: progress; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- the carnet (lot header): the one bold element ---------- */
.carnet { display: grid; grid-template-columns: auto 1fr; gap: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px 0 32px; margin-bottom: 22px; overflow: hidden; position: relative; }
.carnet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--yellow) 0 33.3%, var(--red-brand) 33.3% 66.6%, var(--blue-brand) 66.6%); }
.carnet .qr svg { width: 128px; height: 128px; display: block; }
.carnet .kind { color: var(--muted); font-size: 14px; }
.carnet .code { font-family: "IBM Plex Mono", monospace; font-size: 34px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 2px 0 6px; overflow-wrap: anywhere; }
.carnet .material { font-size: 18px; font-weight: 600; font-stretch: 112%; }
.carnet .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.carnet .seal { grid-column: 1 / -1; margin: 20px -26px 0 -32px; padding: 12px 26px 12px 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.carnet .seal.ok { background: var(--ok-bg); color: #135f3b; }
.carnet .seal.bad { background: var(--bad-bg); color: #8f2219; }
.carnet .seal .mono { font-weight: 400; font-size: 13px; opacity: 0.85; }

/* stage rail (stepper) */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 24px; }
.stage { position: relative; padding-top: 32px; padding-right: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: var(--line); }
.stage::after { content: attr(data-num); position: absolute; left: 0; top: 0; width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.stage:last-child::before { display: none; }
.stage.done { color: var(--ink); }
.stage.done::before { background: var(--ink); }
.stage.done::after { content: "✓"; background: var(--ink); border-color: var(--ink); color: #fff; }
.stage.cur { color: var(--ink); }
.stage.cur::after { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* facts list */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 0; }
.facts dt { color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.flow { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line-2); margin: 16px 0 8px; }
.flow i { display: block; height: 100%; }
.flow .a { background: var(--ink); }
.flow .b { background: #9fb3ae; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* history: vertical rail of sealed events */
.history { list-style: none; margin: 0; padding: 0; }
.ev { position: relative; padding: 0 0 24px 36px; }
.ev::before { content: ""; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.ev:last-child { padding-bottom: 0; }
.ev:last-child::before { display: none; }
.ev .node { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--surface); }
.ev.warn .node { background: var(--warn-line); }
.ev.bad .node { background: var(--bad); }
.ev.meta .node { background: var(--surface); border: 2px solid #9fb3ae; }
.ev .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ev .top h3 { margin: 0; font-size: 17px; }
.ev .when { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ev .body { margin-top: 10px; background: #f7f9f8; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.ev.bad .body { background: var(--bad-bg); border-color: #efb9b3; }
.ev dl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.ev dt { color: var(--muted); }
.ev dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ev .why { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--warn-line); background: var(--warn-bg); color: var(--warn); font-size: 14px; border-radius: 0 6px 6px 0; }
.ev .alt { margin-top: 10px; color: #8f2219; font-weight: 600; font-size: 14px; }
.ev .files { margin-top: 10px; font-size: 14px; display: grid; gap: 4px; }
.ev .tools { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.hash { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- quote (cotización) ---------- */
.photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); display: block; margin-top: 10px; }
.total { font-size: 38px; font-weight: 700; font-stretch: 118%; line-height: 1.1; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 34px; }
.sheet .head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.sheet .head img { height: 46px; }
.lines td { padding: 10px 0; }
.lines tr.sum td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 20px; padding-top: 14px; }

/* ---------- tutoriales ---------- */
.tutos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.tuto { display: flex; flex-direction: column; margin: 0; }
.tuto video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--ink); display: block; margin-bottom: 14px; }
.tuto h2 { margin-bottom: 2px; }
.tuto ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.tuto .actions { margin-top: auto; padding-top: 16px; }

/* ---------- login ---------- */
.login { min-height: calc(100vh - 4px); display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--ink); color: #e8efed; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.login .art h1 { color: #fff; font-size: 46px; max-width: 13ch; font-stretch: 125%; line-height: 1.05; }
.login .art p { color: #b7c8c4; max-width: 38ch; }
.login .art .sample { font-family: "IBM Plex Mono", monospace; font-size: 15px; color: #fff; border: 1px solid #3b5c59; border-radius: var(--r); padding: 14px 16px; max-width: 380px; line-height: 1.7; }
.login .art .sample .ok { color: #7fd6a6; }
.login form { align-self: center; justify-self: center; width: min(400px, calc(100% - 32px)); }
.login form img { height: 52px; margin-bottom: 26px; }

dialog { border: 0; border-radius: var(--r-lg); padding: 24px; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(18, 48, 47, 0.25); color: var(--ink); }
dialog::backdrop { background: rgba(18, 48, 47, 0.35); }
#print-area { display: none; }

/* tutorial launcher + driver.js theme */
.helpbtn { position: fixed; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 40; min-height: 46px; border-radius: 999px; padding: 0 18px 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(18, 48, 47, 0.16); }
.helpbtn:hover { background: var(--surface); border-color: var(--ink); }
.helpbtn b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; }
.driver-popover.cicla { font-family: "Archivo", sans-serif; color: var(--ink); border-radius: var(--r-lg); padding: 18px 20px; max-width: min(360px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(18, 48, 47, 0.3); }
.driver-popover.cicla .driver-popover-title { font: 700 18px/1.25 "Archivo", sans-serif; font-stretch: 112%; }
.driver-popover.cicla .driver-popover-description { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.driver-popover.cicla .driver-popover-progress-text { color: var(--muted); font-size: 13px; }
.driver-popover.cicla .driver-popover-footer button { font: 600 14px "Archivo", sans-serif; text-shadow: none; border-radius: var(--r-sm); padding: 8px 14px; border: 1px solid #b8c6c2; background: #fff; color: var(--ink); min-height: 0; }
.driver-popover.cicla .driver-popover-footer .driver-popover-next-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.driver-popover.cicla .driver-popover-close-btn { color: var(--muted); }

/* ---------- responsive ---------- */
@media (min-width: 1700px) {
  body { font-size: 17px; }
}
/* tablet & small laptop: sidebar becomes a drawer behind a top bar */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px clamp(12px, 3vw, 28px); }
  .topbar img { height: 34px; width: auto; }
  .topbar .where { margin-left: auto; font-size: 14px; color: var(--muted); }
  .side { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100%; transform: translateX(-102%); transition: transform 0.2s ease; box-shadow: 0 0 40px rgba(18, 48, 47, 0.25); }
  .shell.menu-open .side { transform: none; }
  .shell.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(18, 48, 47, 0.35); }
  .cols { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.8fr); }
}
@media (max-width: 900px) {
  .cols, .cols.even, .cols.form-right { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .carnet .code { font-size: 28px; }
}
/* phone: tables become labelled cards, forms one column, full-width actions */
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .panel { padding: 16px; border-radius: var(--r); }
  .pagehead { align-items: stretch; }
  .pagehead .actions { width: 100%; }
  .pagehead .actions > * { flex: 1 1 auto; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .strip .v { font-size: 24px; }
  .strip > div { padding: 14px 16px; }
  .carnet { grid-template-columns: 1fr; padding: 18px 18px 0 24px; gap: 14px; }
  .carnet .qr svg { width: 104px; height: 104px; }
  .carnet .code { font-size: 22px; }
  .carnet .seal { margin: 14px -18px 0 -24px; padding: 12px 18px 12px 24px; }
  .stage { font-size: 0; padding-right: 0; }
  .stage.cur { font-size: 12px; }
  .ev { padding-left: 30px; }
  .ev dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ev dd { margin-bottom: 6px; }
  form .actions > button, form .actions > .btn { flex: 1 1 100%; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr:first-child:has(th) { display: none; }
  table.stack tr { border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 12px; margin-bottom: 10px; background: var(--surface); }
  table.stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); text-align: right; }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; flex: none; }
  table.stack td[data-label=""]::before { display: none; }
  table.stack td .sub { justify-content: flex-end; }
  tr.click:hover td { background: none; }
  .helpbtn span { display: none; }
  .helpbtn { padding: 0 10px; }
  .login { grid-template-columns: 1fr; }
  .login .art { padding: 28px 22px; }
  .login .art h1 { font-size: 30px; }
  .login .art .sample { display: none; }
  .sheet { padding: 20px; }
  .sheet .head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  body:has(#print-area) > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  body { background: #fff; }
}
