/* Facility Maintenance Tracker — hand-written CSS, no build step. Mobile first. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #1c2430;
  --muted: #5d6878;
  --border: #dde2e8;
  --primary: #1f4e79;
  --primary-hover: #173c5e;
  --primary-text: #ffffff;
  --focus: #3b82f6;

  --overdue: #b42318;
  --overdue-bg: #fdecea;
  --due-soon: #9a5b00;
  --due-soon-bg: #fff4dc;
  --upcoming: #1e7a46;
  --upcoming-bg: #e5f5ec;
  --unscheduled: #556070;
  --unscheduled-bg: #eceff3;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --gutter: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #171d24;
    --surface-2: #1e252e;
    --text: #e6eaef;
    --muted: #98a3b3;
    --border: #2b3440;
    --primary: #4b8fd1;
    --primary-hover: #6aa5de;
    --primary-text: #0b1520;
    --overdue: #ff8a80;
    --overdue-bg: #3a1714;
    --due-soon: #ffc55c;
    --due-soon-bg: #3a2a0c;
    --upcoming: #6fd49a;
    --upcoming-bg: #12301f;
    --unscheduled: #aab4c2;
    --unscheduled-bg: #232b35;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .25em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

main.container { flex: 1; padding-top: 20px; padding-bottom: 40px; }

/* ---------- Top bar & navigation ---------- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 56px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); text-decoration: none;
  margin-right: auto; padding: 10px 0;
  min-width: 0;
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { border-radius: 7px; flex-shrink: 0; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--text);
  border-radius: var(--radius-sm); cursor: pointer;
}

.nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 12px;
}
.topbar.is-open .nav { display: flex; }

.nav a:not(.btn) {
  color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm);
}
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 600; color: var(--primary); }
.nav__spacer { display: none; }
.nav__form { margin: 0; }
.nav .btn { align-self: flex-start; margin: 2px 0; padding-left: 12px; padding-right: 12px; font-weight: 400; font-size: 1rem; }
.nav .btn--primary { margin: 6px 12px; font-weight: 600; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; flex-direction: row; flex-basis: auto; flex: 1; align-items: center; padding: 0 0 0 24px; gap: 4px; }
  .brand { margin-right: 0; }
  .nav__spacer { display: block; flex: 1; }
  .nav a:not(.btn) { padding: 6px 10px; }
  .nav .btn { margin: 0 0 0 4px; align-self: center; font-size: .875rem; font-weight: 600; }
}

.offline-banner {
  background: var(--due-soon-bg); color: var(--due-soon);
  text-align: center; padding: 8px var(--gutter); font-size: .9rem;
  border-bottom: 1px solid var(--border);
}

.footer { color: var(--muted); font-size: .85rem; padding-top: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-text); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger-ghost { background: transparent; border-color: transparent; color: var(--overdue); }
.btn--danger-ghost:hover { background: var(--overdue-bg); color: var(--overdue); }
.btn--sm { min-height: 34px; padding: 5px 12px; font-size: .875rem; }
.btn--block { width: 100%; }
.inline-form { display: inline; margin: 0; }

/* ---------- Page structure ---------- */

.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px 16px; margin-bottom: 20px;
}
.page-head > div:first-child { min-width: 0; flex: 1 1 280px; }
.page-head p { margin: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.page-head__filter select { min-width: 200px; }

.crumbs { font-size: .9rem; margin-bottom: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.section { margin-top: 28px; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section__head .section__title { margin: 0; }
.section__title { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.subhead { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.count {
  display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center;
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card.narrow, .narrow { max-width: 640px; }
.card--link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.card--link:hover { border-color: var(--primary); color: var(--text); }
.card__title { font-size: 1.1rem; margin: 0; }
.card-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card-grid .card + .card { margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }

.notes p { margin: 0 0 .4em; }
.notes { margin-bottom: 16px; }
.card.notes { margin-bottom: 20px; }

.empty {
  text-align: center; padding: 48px 16px; background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty--inline { padding: 24px; }

.auth-card { max-width: 420px; margin: 24px auto; }

.plain-list { padding-left: 1.2em; }
details > summary { cursor: pointer; color: var(--muted); }

/* ---------- Status ---------- */

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: var(--unscheduled-bg); color: var(--unscheduled);
}
.badge--overdue { background: var(--overdue-bg); color: var(--overdue); }
.badge--due-soon { background: var(--due-soon-bg); color: var(--due-soon); }
.badge--upcoming { background: var(--upcoming-bg); color: var(--upcoming); }
.badge--problem-open { background: var(--overdue-bg); color: var(--overdue); }
.badge--problem-in_progress { background: var(--due-soon-bg); color: var(--due-soon); }
.badge--problem-resolved { background: var(--upcoming-bg); color: var(--upcoming); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 16px; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow);
  background: var(--unscheduled-bg); color: var(--unscheduled);
}
.tile__count { font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tile__label { font-weight: 600; font-size: .9rem; }
.tile--overdue { background: var(--overdue-bg); color: var(--overdue); }
.tile--due-soon { background: var(--due-soon-bg); color: var(--due-soon); }
.tile--upcoming { background: var(--upcoming-bg); color: var(--upcoming); }
.tile[aria-pressed="true"] { border-color: currentColor; }

.health-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.health-card {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--unscheduled);
  border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow);
}
.health-card:hover { color: var(--text); border-color: var(--primary); }
.health-card--overdue { border-left-color: var(--overdue); }
.health-card--due-soon { border-left-color: var(--due-soon); }
.health-card--upcoming { border-left-color: var(--upcoming); }
.health-card__counts { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 4px; }
.toolbar input[type="search"] { flex: 1 1 240px; }
.toolbar select { flex: 0 1 220px; }

/* Task cards */
.task-list { display: grid; gap: 10px; }
@media (min-width: 900px) { .task-list { grid-template-columns: repeat(2, 1fr); } }

.task-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--unscheduled);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.task-card--overdue { border-left-color: var(--overdue); }
.task-card--due-soon { border-left-color: var(--due-soon); }
.task-card--upcoming { border-left-color: var(--upcoming); }
.task-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.task-card__title { margin: 0; font-size: 1.05rem; }
.task-card__item { margin: 2px 0 0; font-size: .95rem; }
.task-card__supply { margin: 4px 0 0; }
.task-card__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px 16px; margin: 8px 0 0; font-size: .875rem; }
.task-card__meta dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.task-card__meta dd { margin: 0; }
.task-card__details { margin-top: 8px; font-size: .9rem; }
.task-card__details p { margin: 4px 0 0; }
.task-card__actions { display: flex; gap: 8px; }
.task-card__actions .btn { flex: 1; }
@media (min-width: 520px) { .task-card__actions .btn { flex: 0 0 auto; } }

.task-row { display: flex; flex-direction: column; gap: 4px; }
.task-row__tools { display: flex; justify-content: flex-end; }

/* ---------- Details lists ---------- */

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0 0 12px; }
.details dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.details dd { margin: 0; }

/* ---------- Tables (stack into cards on phones) ---------- */

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table .table__group th { background: transparent; color: var(--text); font-size: .95rem; text-transform: none; letter-spacing: 0; padding-top: 16px; }
.table tbody + tbody .table__group th { border-top: 1px solid var(--border); }

@media (max-width: 699px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; gap: 12px; padding: 3px 0; border: 0; text-align: left; }
  .table--stack td[data-label]::before {
    content: attr(data-label); flex: 0 0 90px; color: var(--muted);
    font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 3px;
  }
  .table--stack td > * { min-width: 0; }
  .table--stack td:empty { display: none; }
  .table--stack .num, .table--stack .actions { text-align: left; justify-content: flex-start; }
}

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field-row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 560px) { .field-row { flex-direction: row; } }
label, .label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.hint { margin: 0; color: var(--muted); font-size: .85rem; }
.field--narrow { flex: 0 0 auto; max-width: 200px; }

input[type="text"], input:not([type]), input[type="search"], input[type="password"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; min-height: 42px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 0; }
select:disabled { opacity: .6; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fieldset legend { font-weight: 700; padding: 0 6px; }

.form__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.inline-fields .field { flex: 0 1 260px; }
@media (max-width: 519px) { .form__actions .btn { flex: 1; } }

/* ---------- Alerts & flash ---------- */

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert--error { background: var(--overdue-bg); color: var(--overdue); }

.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px;
  background: var(--upcoming-bg); color: var(--upcoming); font-weight: 500;
  transition: opacity .25s, transform .25s;
}
.flash--error { background: var(--overdue-bg); color: var(--overdue); }
.flash--info { background: var(--surface-2); color: var(--text); }
.flash.is-leaving { opacity: 0; transform: translateY(-6px); }
.flash__close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }

/* Standalone (installed PWA) tweaks */
@media (display-mode: standalone) {
  .footer { display: none; }
}

/* ---------- Supplies ---------- */

.qty { font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; gap: 6px; }
.stepper__btn { min-width: 44px; font-size: 1.1rem; }
.stepper .btn:disabled { opacity: .4; cursor: not-allowed; }
.supply-stock__count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.supply-stock__qty { font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.supply-stock .form { margin-top: 12px; }
.supply-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 6px; }
.supply-buckets dt { color: var(--muted); font-size: .85rem; }
.supply-buckets dd { margin: 4px 0 0; display: flex; align-items: baseline; gap: 8px; }
/* Places: the tree on /places, tags, and the picker's narrowing box */
.tree { list-style: none; margin: 16px 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tree__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  padding: 8px 14px; border-top: 1px solid var(--border);
}
.tree__row:first-child { border-top: 0; }
.tree__row--d1 { padding-left: 38px; }
.tree__row--d2 { padding-left: 62px; }
.tree__row--d3 { padding-left: 86px; }
.tree__row--d4 { padding-left: 110px; }
.tree__row--d5 { padding-left: 134px; }
.tree__main, .tree__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kind { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip {
  display: inline-block; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: .8rem; font-weight: 500; text-decoration: none;
}
a.chip:hover { border-color: var(--primary); }
.chip--lg { font-size: 1rem; padding: 2px 14px; vertical-align: middle; }
.place-filter { margin-bottom: 6px; }
.also-in summary { cursor: pointer; font-weight: 600; }
.also-in__list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 0; }
.also-in__row { display: flex; padding: 4px 10px; }
.also-in__row.tree__row--d1 { padding-left: 34px; }
.also-in__row.tree__row--d2 { padding-left: 58px; }
.also-in__row.tree__row--d3 { padding-left: 82px; }
.also-in__row.tree__row--d4 { padding-left: 106px; }
.also-in__row.tree__row--d5 { padding-left: 130px; }
@media (max-width: 640px) {
  .tree__row--d1 { padding-left: 26px; }
  .tree__row--d2 { padding-left: 38px; }
  .tree__row--d3 { padding-left: 50px; }
  .tree__row--d4 { padding-left: 62px; }
  .tree__row--d5 { padding-left: 74px; }
}

.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500;
}
.segmented label:has(input:checked) { border-color: var(--primary); background: var(--surface-2); font-weight: 700; }
.segmented input { accent-color: var(--primary); }

/* Problems */
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { border-left: 3px solid var(--border); padding: 2px 0 2px 12px; }
.timeline p { margin: 4px 0 0; }
/* Honeypot: off-screen so people never fill it in; bots usually do. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Unit picker: one chip per numbered unit */
.unit-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; font-variant-numeric: tabular-nums;
}
.unit-chip:has(input:checked) { border-color: var(--primary); background: var(--surface-2); font-weight: 700; }
.unit-chip input { accent-color: var(--primary); }

/* Printable QR codes for "Report a problem" */
.qr-sheet { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 20px; }
.qr-card {
  background: #fff; color: #000; border: 1px dashed #999; border-radius: var(--radius);
  padding: 16px; text-align: center; break-inside: avoid;
}
.qr-card p { margin: 0; }
.qr-card .qr { display: block; width: 100%; max-width: 2.2in; margin: 8px auto; }
.qr-card__lead { font-weight: 700; font-size: 1.1rem; }
.qr-card__title { font-weight: 800; font-size: 1.25rem; margin-top: 4px; }
.qr-card__sub { color: #444; }
.qr-card__cta { margin-top: 8px; font-weight: 600; }
.qr-card__url { font-size: .7rem; color: #555; word-break: break-all; margin-top: 4px; }

@media print {
  .topbar, .toolbar, .tiles, .task-card__actions, .page-head__actions, .footer, .btn, .no-print, .flash, .offline-banner { display: none !important; }
  .qr-sheet { grid-template-columns: repeat(2, 1fr); margin: 0; }
  .qr-card { border-color: #bbb; }
  .task-card, .card, .table-wrap { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
