/* public/app.css — Dotéo : dotations outillage et EPI */

:root {
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --ink: #1B2229;
  --ink-2: #444E59;
  --line: #D6DCE1;
  --line-2: #E9ECEF;
  --hover: #F7F9FA;

  --accent: #D4570A;
  --accent-dark: #A94406;
  --accent-tint: #FDF0E6;

  --tool: #2D5D8B;
  --tool-tint: #E6EEF6;
  --epi: #2D7646;
  --epi-tint: #E3F1E8;

  --danger: #B42318;
  --danger-tint: #FDECEA;
  --warn: #8A5A00;
  --warn-tint: #FFF4D6;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  --r-panel: 10px;
  --r-ctrl: 6px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-cond); line-height: 1.15; margin: 0; color: var(--ink); }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 10px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.code { font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: 0.01em; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-cond); font-weight: 700; font-size: 21px;
}
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand .org {
  font-family: var(--font); font-weight: 500; font-size: 12.5px; color: var(--ink-2);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.ro-badge {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--warn-tint); color: var(--warn);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 8px 12px; border-radius: var(--r-ctrl);
  font-weight: 500;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--ink); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); border-radius: var(--r-ctrl) var(--r-ctrl) 0 0; }

/* ---------- Vue ---------- */
.view { max-width: 1320px; margin: 0 auto; padding: 24px 24px 80px; outline: none; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.view-head p { margin: 4px 0 0; color: var(--ink-2); }
.crumb { font-size: 14px; margin-bottom: 6px; }
.crumb a { text-decoration: none; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 18px;
}
.panel + .panel, .grid + .panel, .panel + .grid { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

.grid { display: grid; gap: 18px; align-items: start; }
.grid.two { grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); }
.grid > .panel { margin-top: 0; min-width: 0; }

/* ---------- Filtres ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
  margin-bottom: 18px;
}
.filters label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.filters .reset { align-self: end; }
.filters label.check { display: flex; align-items: center; gap: 8px; height: 38px; color: var(--ink); font-size: 14px; }

/* ---------- Contrôles ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="search"], input[type="number"], input[type="date"], input[type="password"], input[type="email"], select, textarea {
  height: 38px; padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  min-width: 0;
}
textarea { height: auto; padding: 8px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input.search { width: 100%; max-width: 420px; }
input.big-search { width: 100%; height: 48px; font-size: 18px; padding: 0 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-ctrl);
  font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--hover); border-color: #C3CAD1; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.danger { color: var(--danger); border-color: #F0C5C0; }
.btn.danger:hover { background: var(--danger-tint); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.small { height: 30px; padding: 0 10px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-dark); cursor: pointer; text-decoration: underline; font-weight: 500; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--line-2); color: var(--ink-2);
}
.tag.outillage { background: var(--tool-tint); color: var(--tool); }
.tag.epi { background: var(--epi-tint); color: var(--epi); }
.tag.company { background: #EEF0F2; color: var(--ink); font-weight: 500; }
.tag.archived { background: var(--warn-tint); color: var(--warn); }
.tag.dup { background: var(--warn-tint); color: var(--warn); cursor: help; margin-left: 4px; }
.tag.forced { background: var(--tool-tint); color: var(--tool); cursor: help; margin-left: 4px; }
.link-btn.small { font-size: 13px; margin-left: 6px; }
.link-btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- Totaux sociétés ---------- */
.companies {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 18px;
}
.co {
  text-align: left; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 16px 18px 14px;
  display: grid; gap: 8px; align-content: start;
}
.co:hover { border-color: #BFC7CF; }
.co.total { border-top: 4px solid var(--accent); padding-top: 13px; cursor: default; }
.co.selected { outline: 2px solid var(--accent); outline-offset: -1px; }
.co-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.co-name strong { font-family: var(--font-cond); font-size: 18px; font-weight: 600; }
.co-name span { font-size: 13px; color: var(--ink-2); }
.figure {
  display: block;
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line-2); }
.split i { display: block; height: 100%; }
.split .s-out { background: var(--tool); }
.split .s-epi { background: var(--epi); }
.co-detail { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.co-detail b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.dot.out { background: var(--tool); }
.dot.epi { background: var(--epi); }

/* ---------- Tables ---------- */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; }
table.t th {
  font-family: var(--font-cond); font-weight: 600; font-size: 14px;
  color: var(--ink-2); text-align: left;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--surface);
}
table.t th.num { text-align: right; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tbody tr:hover td { background: var(--hover); }
table.t tr.click { cursor: pointer; }
table.t tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 600; }
table.t th.sortable { cursor: pointer; user-select: none; }
table.t th.sortable:hover { color: var(--ink); }
table.t th .arrow { color: var(--accent); margin-left: 3px; }
table.t tr.group-start td { border-top: 1px solid var(--line); }
table.t tr.detail td { background: #FAFBFC; padding: 4px 10px 14px 28px; }
table.t tr.detail:hover td { background: #FAFBFC; }
table.t .who { display: grid; min-width: 130px; }
table.t .who small { color: var(--ink-2); font-size: 12.5px; }
.bar { position: relative; height: 6px; background: var(--line-2); border-radius: 3px; min-width: 60px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink-2); }
tr.current td { background: var(--accent-tint); }
.inner { width: 100%; border-collapse: collapse; font-size: 14px; }
.inner td { padding: 4px 8px; border-bottom: 1px solid var(--line-2); }

/* ---------- Fiche salarié ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tabs button {
  background: none; border: 0; cursor: pointer;
  padding: 10px 14px; font-weight: 600; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  display: flex; gap: 8px; align-items: baseline;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button span { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-2); }
.ec-cell { white-space: nowrap; }
.cat-block[data-inactive] { display: none; }
.cat-block { padding-top: 6px; }

/* ---------- États vides, messages ---------- */
.empty {
  text-align: left; padding: 28px; border: 1px dashed var(--line);
  border-radius: var(--r-panel); background: var(--surface);
}
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); max-width: 60ch; }
.steps { margin: 0 0 16px; padding-left: 22px; max-width: 70ch; display: grid; gap: 6px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.note { padding: 10px 12px; border-radius: var(--r-ctrl); background: var(--hover); border: 1px solid var(--line-2); font-size: 14px; }
.note.warn { background: var(--warn-tint); border-color: #F1DEA4; color: #5C3E00; }
.note.error { background: var(--danger-tint); border-color: #F3C1BB; color: #7A1810; }
.warn-list { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.warn-list li { margin: 2px 0; }
.hint { font-size: 13px; color: var(--warn); margin-top: 4px; }

/* ---------- Connexion ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--r-panel); padding: 26px; display: grid; gap: 14px;
}
.login .brand { font-size: 26px; }
.login-org { margin: -6px 0 0; font-weight: 600; color: var(--ink); }
.login label { display: grid; gap: 6px; font-weight: 500; }
.login input { height: 44px; font-size: 17px; }
.login input[readonly] { background: var(--bg); color: var(--ink-2); }
.login label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.4; }
.login label.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.login p { margin: 0; }
.auth-title { font-size: 24px; }
.auth-links { font-size: 14px; text-align: center; }
.auth-alt { font-size: 14px; text-align: center; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line-2); }

/* ---------- Bandeau essai / abonnement ---------- */
.banner { background: var(--accent-tint); border-bottom: 1px solid #F3D3BC; }
.banner-inner {
  max-width: 1320px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink);
}
.banner:has(.warn) { background: var(--warn-tint); border-bottom-color: #F1DDA8; }

/* ---------- Compte ---------- */
.plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan > div:first-child { max-width: 60ch; }
.plan-price { font-family: var(--font-cond); font-weight: 700; font-size: 30px; color: var(--ink); }
.plan-price small { font-family: var(--font); font-weight: 500; font-size: 15px; color: var(--ink-2); }
.sub-h { font-size: 16px; margin: 18px 0 8px; }
.invite-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.invite-row input { flex: 1 1 220px; max-width: 360px; }
.invite-row .note { flex-basis: 100%; margin: 0; }
.invite-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.invite-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: var(--bg); border-radius: var(--r-ctrl); }
.danger-zone { border-color: #F0C5C0; }

/* ---------- Modale ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(27, 34, 41, .38);
  display: block;
  padding: 5vh 16px; overflow-y: auto; overflow-x: hidden;
}
.modal {
  margin: 0 auto; min-width: 0;
  background: var(--surface); width: 100%; max-width: 860px;
  border-radius: var(--r-panel); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(27, 34, 41, .18);
}
.modal.narrow { max-width: 480px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-body { padding: 18px 20px; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #FAFBFC; border-radius: 0 0 var(--r-panel) var(--r-panel); }
.close { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; border-radius: var(--r-ctrl); font-size: 24px; line-height: 1; color: var(--ink-2); }
.close:hover { background: var(--hover); color: var(--ink); }

.fields { display: grid; gap: 12px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.seg { justify-self: start; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-ctrl); overflow: hidden; height: 38px; }
.seg label { position: relative; display: flex; align-items: center; padding: 0 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: #FFFFFF; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }

.lines-head, .line-row {
  display: grid; gap: 8px; align-items: center;
  grid-template-columns: minmax(0, 1fr) 150px 74px 116px 36px;
}
.lines-head { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 0 2px; }
.line-row + .line-row { margin-top: 8px; }
.line-row input { width: 100%; }
.line-row .rm { width: 36px; height: 38px; border: 1px solid transparent; background: none; border-radius: var(--r-ctrl); cursor: pointer; color: var(--ink-2); font-size: 20px; }
.line-row .rm:hover { background: var(--danger-tint); color: var(--danger); }
.lines-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.order-total { font-family: var(--font-cond); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Paramètres ---------- */
.org-row { display: flex; gap: 10px; flex-wrap: wrap; }
.org-row input { flex: 1 1 260px; max-width: 460px; }
details.format { margin: 0 0 14px; font-size: 14px; }
details.format summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); }
details.format ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); max-width: 90ch; }
.co-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.co-row input { width: 100%; }
.drop {
  border: 2px dashed var(--line); border-radius: var(--r-panel);
  padding: 22px; display: grid; gap: 10px; justify-items: start; background: #FAFBFC;
}
.drop.over { border-color: var(--accent); background: var(--accent-tint); }
.backup-list { list-style: none; margin: 0; padding: 0; }
.backup-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }

/* ---------- Export ---------- */
.export-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.export-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px 18px; display: grid; gap: 10px; align-content: space-between; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: 8px;
  font-weight: 500; opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .18s ease, transform .18s ease; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

.loading { padding: 40px 0; color: var(--ink-2); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
  .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fields .field.wide { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .top-inner { flex-wrap: wrap; padding: 8px var(--gutter) 0; gap: 8px 12px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; }
  .new-order span { display: none; }
  .new-order { width: 40px; padding: 0; }
  .banner-inner { padding: 8px var(--gutter); font-size: 13.5px; }
  .view { padding: 18px var(--gutter) 80px; }
  h1 { font-size: 25px; }
  .panel { padding: 14px; }
  .companies { grid-template-columns: 1fr 1fr; gap: 10px; }
  .co { padding: 12px; min-width: 0; }
  .co.total { grid-column: 1 / -1; }
  .co-name { flex-direction: column; align-items: flex-start; gap: 0; }
  .co-name strong { font-size: 16px; }
  .figure { font-size: 28px; }
  .co-detail { flex-direction: column; gap: 2px; }
  .modal-back { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; border: 0; max-width: none; }
  .modal-foot { border-radius: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .lines-head { display: none; }
  .line-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
    grid-template-areas: "des des rm" "ref ref ref" "qty price price";
    padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-ctrl);
  }
  .line-row .l-des { grid-area: des; }
  .line-row .l-ref { grid-area: ref; }
  .line-row .l-qty { grid-area: qty; }
  .line-row .l-price { grid-area: price; }
  .line-row .rm { grid-area: rm; }
  .co-row { grid-template-columns: 1fr 1fr; }
  .co-row .co-count { grid-column: 1 / 2; }
  .filters label { flex: 1 1 140px; }
  .filters select { width: 100%; }

  /* « Qui a quoi » : une fiche par ligne sur petit écran */
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody { display: block; }
  table.t.cards tr {
    display: grid; gap: 3px 12px; padding: 12px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "mat price" "ref qty" "who co" "date ec";
    border-bottom: 1px solid var(--line-2);
  }
  table.t.cards td { display: block; padding: 0; border: 0; text-align: left; background: none !important; }
  table.t.cards .c-mat { grid-area: mat; font-weight: 600; }
  table.t.cards .c-price { grid-area: price; text-align: right; font-weight: 600; }
  table.t.cards .c-ref { grid-area: ref; font-size: 13px; color: var(--ink-2); }
  table.t.cards .c-qty { grid-area: qty; text-align: right; font-size: 13px; color: var(--ink-2); }
  table.t.cards .c-qty::before { content: "Qté "; }
  table.t.cards .c-who { grid-area: who; min-width: 0; display: grid; }
  table.t.cards .c-co { grid-area: co; text-align: right; }
  table.t.cards .c-date { grid-area: date; font-size: 13px; color: var(--ink-2); }
  table.t.cards .c-ec { grid-area: ec; text-align: right; font-size: 13px; color: var(--ink-2); }
  table.t.cards .c-ec:not(:empty)::before { content: "Bon "; }
}

/* ---------- Impression (fiche salarié) ---------- */
@media print {
  body { background: #FFFFFF; font-size: 12px; }
  .top, .no-print, .btn, .tabs, #toast { display: none !important; }
  .view { padding: 0; max-width: none; }
  .panel { border: 0; padding: 0; }
  .print-only { display: block !important; }
  .cat-block[data-inactive] { display: block !important; }
  table.t td, table.t th { padding: 4px 6px; }
  .print-block { break-inside: avoid; margin-bottom: 18px; }
}
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
