/* Desinfecta Ops: tokens, base, shell, then components. Phone first. */
:root {
  --bg: #f1f5f8; --surface: #fff; --surface-2: #f6f9fb; --ink: #0e2233; --muted: #5a6f82; --line: #dce6ed; --line-strong: #8ea1b2;
  --brand: #2e5e95; --on-brand: #fff; --brand-soft: #e5eef8; --green: #148a57; --green-soft: #e1f4ea;
  --warn: #8a5208; --warn-bg: #fdf1d9; --bad: #b3302a; --bad-bg: #fcebe9; --ok: #11744a; --ok-bg: #e1f4ea; --info: #1b6c8f; --info-bg: #e0f2f9; --quiet-bg: #eaf0f4;
  --side: #0b2236; --side-2: #18344f; --side-ink: #d6e2ec; --side-dim: #8ea6ba; --side-accent: #5ccbeb;
  --grad: linear-gradient(120deg, #2e5e95 0%, #4fa3c9 50%, #1faa6b 100%);
  --radius: 14px; --radius-s: 10px; --shadow: 0 1px 2px rgba(14, 34, 51, .05), 0 4px 14px -6px rgba(14, 34, 51, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side-w: 248px; --tab-h: 62px; --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a1620; --surface: #12212d; --surface-2: #172937; --ink: #eaf2f7; --muted: #9fb3c3; --line: #233746; --line-strong: #5d7488;
    --brand: #7fb3ea; --on-brand: #06182a; --brand-soft: #1a3450; --green: #6fd8a4; --green-soft: #143627;
    --warn: #f4cc85; --warn-bg: #3a2d17; --bad: #ffb3ac; --bad-bg: #42231f; --ok: #8fe0b6; --ok-bg: #143627; --info: #8bd3ef; --info-bg: #13313f; --quiet-bg: #1c2f3d;
    --side: #07121b; --side-2: #15293a; --shadow: none; color-scheme: dark; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(72px + var(--safe-top)); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; margin: 4px 0 14px; }
h2 { font-size: 1rem; margin: 0 0 10px; }
h3 { font-size: .95rem; margin: 12px 0 4px; }
p { margin: 8px 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprite { display: none; }
.muted, .meta { color: var(--muted); font-size: .875rem; }
.pre { white-space: pre-wrap; }
.bad-text { color: var(--bad); }
.brand { font-weight: 700; text-decoration: none; }

/* Shell */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--side-w); display: flex; flex-direction: column; background: var(--side); color: var(--side-ink); transform: translateX(-100%); transition: transform .18s ease; }
.nav-open .sidebar { transform: none; }
.nav-open { overflow: hidden; }
.scrim { display: none; }
.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(14, 13, 11, .55); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: calc(18px + var(--safe-top)) 18px 14px; color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.sidebar-brand small { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--side-2); color: var(--side-ink); font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.side-label { margin: 16px 10px 4px; color: var(--side-dim); font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.side-nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 10px; border-radius: var(--radius-s); text-decoration: none; font-size: .925rem; }
.side-nav a:hover { background: var(--side-2); color: #fff; }
.side-nav a[aria-current] { background: var(--side-2); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 var(--side-accent); }
.side-nav a[aria-current] .icon { color: var(--side-accent); }
.side-nav .badge { margin-left: auto; }
.sidebar :focus-visible { outline-color: var(--side-accent); }
.side-install { display: flex; align-items: center; gap: 11px; width: calc(100% - 20px); min-height: 42px; margin: 0 10px 10px; padding: 0 10px; border: 1px solid var(--side-2); background: none; color: var(--side-ink); justify-content: flex-start; font-size: .875rem; }
.side-install:hover { background: var(--side-2); color: #fff; }
.sidebar-foot { display: flex; align-items: center; gap: 6px; padding: 10px 10px calc(10px + var(--safe-bottom)); border-top: 1px solid var(--side-2); }
.side-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-s); text-decoration: none; font-size: .875rem; color: #fff; }
.side-user:hover { background: var(--side-2); }
.side-user span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { display: block; color: var(--side-dim); font-size: .75rem; }
.sidebar .icon-button { color: var(--side-ink); }
.sidebar .icon-button:hover { background: var(--side-2); color: #fff; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: calc(6px + var(--safe-top)) 12px 6px 6px; background: var(--side); color: #fff; }
.topbar :focus-visible { outline-color: var(--side-accent); }
.topbar .icon-button:hover { background: var(--side-2); }
.topbar-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.tools { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: .825rem; color: var(--side-ink); }
.shell { padding-bottom: calc(var(--tab-h) + var(--safe-bottom)); }
.content { max-width: 1320px; padding: 16px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #d9443c; color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }

/* Page furniture */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0 14px; }
.page-head h1 { margin: 0; }
.lede { margin: -8px 0 14px; color: var(--muted); font-size: .925rem; }
.page-head h1 .pill { vertical-align: 3px; margin-left: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px 0 0; color: var(--muted); font-size: .875rem; text-decoration: none; }
.back:hover { color: var(--ink); }
.back .icon { width: 15px; height: 15px; }
.card, .panel, .table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 16px; margin: 0 0 14px; }
.card.narrow { max-width: 440px; }
.card > h2:first-child, .panel-head h2 { font-size: .95rem; font-weight: 650; }
.banner, .flash, .error { display: block; padding: 11px 14px; border-radius: var(--radius-s); margin: 0 0 12px; font-size: .925rem; text-decoration: none; }
.banner.bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.flash { background: var(--ok-bg); color: var(--ok); overflow-wrap: anywhere; }
.error { background: var(--bad-bg); color: var(--bad); }

/* Sign in */
.auth { max-width: 380px; margin: 48px auto; }
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: radial-gradient(900px 520px at 85% -10%, rgba(79, 163, 201, .45) 0%, transparent 60%), radial-gradient(700px 480px at -10% 110%, rgba(31, 170, 107, .35) 0%, transparent 60%), var(--side); }
.auth-page main { width: 100%; max-width: 420px; }
.auth-page .auth { width: 100%; margin: 0; padding: 28px 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.auth-logo { display: block; margin-bottom: 14px; }
.auth h1 { margin-bottom: 2px; }
.auth form { margin-top: 18px; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
a.stat:hover { border-color: var(--line-strong); }
.stat strong { grid-row: 2; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat > span:not(.stat-icon) { grid-row: 1; grid-column: 1; color: var(--muted); font-size: .8rem; }
.stat-icon { grid-row: 1 / span 2; grid-column: 2; align-self: start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--quiet-bg); color: var(--muted); }
.stat.good .stat-icon { background: var(--brand-soft); color: var(--brand); }
.stat.attn .stat-icon { background: var(--warn-bg); color: var(--warn); }
.stat.bad .stat-icon { background: var(--bad-bg); color: var(--bad); }

/* Panels and rows */
.columns { display: grid; gap: 14px; }
.columns > * { min-width: 0; }
.panel { margin-bottom: 14px; overflow: hidden; }
.panel.alert { border-color: var(--bad); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; }
.panel-head a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: var(--brand); font-size: .85rem; text-decoration: none; }
.panel-head a:hover { text-decoration: underline; }
.empty { margin: 0; padding: 22px 16px; color: var(--muted); font-size: .9rem; text-align: center; }
.list { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .12s; }
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--surface-2); }
.row.fresh, .table tr.fresh { background: var(--brand-soft); }
.row .main { font-weight: 600; }
.row-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card .row { padding-inline: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--quiet-bg); color: var(--ink); font-size: .75rem; font-weight: 600; line-height: 1.45; white-space: nowrap; align-self: flex-start; }
.pill.warn, .st-blocked { background: var(--warn-bg); color: var(--warn); }
.pill.bad, .st-cancelled { background: var(--bad-bg); color: var(--bad); }
.st-done { background: var(--ok-bg); color: var(--ok); }
.st-in_progress, .pill.info { background: var(--info-bg); color: var(--info); }
.st-planned { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.pill.quiet { background: var(--quiet-bg); color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }

/* Tables: cards on a phone, real columns from the tablet up. */
.table-card { overflow: hidden; margin-bottom: 14px; }
.table-note { padding: 10px 16px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; }
.table thead { display: none; }
.table tbody, .table tr, .table td { display: block; }
.table tr { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
/* On a phone a row reads as a short card: the lead line, then label and value
   pairs that flow side by side instead of one per line. */
.table td { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; min-width: 0; padding: 1px 0; font-size: .9rem; text-align: left; }
.table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
.table td.lead, .table td.wrap { flex: 1 0 100%; }
.table td.lead { display: block; font-weight: 600; }
.table td.wrap { display: block; }
.table td.wrap[data-label]::before { margin-right: 5px; }
.table td.lead .sub { display: inline; margin-left: 6px; }
.table .row-link { text-decoration: none; }
.table .row-link::after { content: ""; position: absolute; inset: 0; }
.table .row-link:focus-visible { outline: 0; }
.table .row-link:focus-visible::after { outline: 2px solid var(--brand); outline-offset: -2px; }
.table .sub { display: block; color: var(--muted); font-size: .825rem; font-weight: 400; }
.mono { font-variant-numeric: tabular-nums; }

/* Detail pages */
.detail-grid { display: grid; gap: 14px; }
.detail-grid > * { min-width: 0; }
.log { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log .meta { display: block; font-size: .78rem; }
dl { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 7px 16px; margin: 8px 0; font-size: .925rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.summary-big { margin: 0; font-size: 1.05rem; font-weight: 650; }

/* Filters and forms */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters input:not([type="checkbox"]), .filters select { flex: 1 1 150px; width: auto; min-width: 0; }
.filters input.search { flex: 2 1 200px; }
.filters button { flex: 1 1 110px; }
.filters label.check { margin: 0 6px; }
.filters-more { display: contents; }
.filters.folded .filters-more { display: none; }
.filters .filters-toggle { flex: 0 0 auto; }
.filters-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
.pager { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.pager:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.actions form { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.stack > button, .stack > .button { align-self: flex-start; margin-top: 4px; }
.stack > button.block { align-self: stretch; }
.card form + form { margin-top: 12px; }
.inline { display: flex; gap: 8px; margin-top: 6px; }
.inline input[type="time"] { width: auto; }
.form-grid { display: grid; gap: 10px 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid h2 { margin: 6px 0 0; }
.field { min-width: 0; }
.form-foot { position: sticky; bottom: calc(var(--tab-h) + var(--safe-bottom)); display: flex; justify-content: flex-end; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
fieldset { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
fieldset > .meta { flex: 1 0 100%; margin: 0 0 2px; }
legend { padding: 0 4px; color: var(--muted); font-size: .825rem; }
label { display: block; font-size: .85rem; font-weight: 550; margin: 4px 0 2px; }
label.check { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-weight: 400; font-size: .9rem; }
input, select, textarea { font: inherit; font-size: 16px; color: inherit; width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
textarea { resize: vertical; }
button, .button { font: inherit; font-size: .9rem; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--surface-2); }
button.primary, .button.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
button.primary:hover, .button.primary:hover { background: var(--brand); filter: brightness(1.08); }
button.danger { color: var(--bad); border-color: var(--bad); }
button.danger:hover { background: var(--bad-bg); }
button.link { min-height: 0; padding: 0; border: 0; background: none; font-weight: 400; text-decoration: underline; color: inherit; }
button[disabled] { opacity: .5; cursor: default; }
.icon-button { width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; }
.icon-button:hover { background: var(--quiet-bg); }
.block { display: flex; width: 100%; text-align: center; margin-top: 12px; }

/* Collapsible rows on the staff page */
details.card { padding: 0; }
details.card summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; padding: 10px 16px; cursor: pointer; }
details.card[open] summary { border-bottom: 1px solid var(--line); }
details.card > form { padding: 0 16px; margin: 12px 0; }

/* Dropdowns and date fields drawn over the native control */
.dd { position: relative; min-width: 0; }
.dd-native { position: absolute; left: 0; bottom: 0; width: 1px !important; height: 1px; min-width: 0; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.dd-trigger { display: flex; justify-content: space-between; width: 100%; gap: 8px; margin: 0; padding: 9px 10px 9px 12px; font-size: 16px; font-weight: 400; text-align: left; }
.dd-trigger:hover { background: var(--surface); border-color: var(--brand); }
.dd-trigger .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.dd.open .dd-trigger { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dd.open .dd-trigger .icon { transform: rotate(180deg); }
.dd:has(.cal).open .dd-trigger .icon { transform: none; color: var(--brand); }
.dd-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-placeholder { color: var(--muted); }
.filters .dd { flex: 1 1 130px; }
.filters .dd.has-value .dd-trigger { border-color: var(--brand); background: var(--brand-soft); }
.dd-panel { position: absolute; z-index: 35; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(380px, calc(100vw - 32px)); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 38px rgba(8, 14, 26, .22), 0 3px 8px rgba(8, 14, 26, .1); }
.dd.up .dd-panel { top: auto; bottom: calc(100% + 6px); }
.dd.right .dd-panel { left: auto; right: 0; }
.dd-title { display: none; }
.dd-search { position: relative; margin-bottom: 6px; }
.dd-search .icon { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--muted); }
.dd-search input { min-height: 38px; padding: 6px 10px 6px 33px; }
.filters .dd-search input { width: 100%; }
.dd-search input:focus-visible { outline: 0; border-color: var(--brand); }
.dd-list { list-style: none; margin: 0; padding: 0; max-height: 288px; overflow-y: auto; overscroll-behavior: contain; font-weight: 400; }
.dd-list:focus { outline: 0; }
.dd-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: .9rem; }
.dd-option.active { background: var(--quiet-bg); }
.dd-option .icon { width: 16px; height: 16px; visibility: hidden; color: var(--brand); }
.dd-option[aria-selected="true"] { color: var(--brand); font-weight: 600; }
.dd-option[aria-selected="true"] .icon { visibility: visible; }
.dd-empty { margin: 0; padding: 14px; color: var(--muted); font-size: .875rem; text-align: center; }
.dd-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(14, 13, 11, .55); }
.cal { width: 292px; font-weight: 400; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head .icon-button { width: 36px; min-height: 36px; }
.cal-title { font-size: .925rem; font-weight: 650; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 4px; }
.cal-dow { padding: 4px 0; color: var(--muted); font-size: .72rem; text-align: center; text-transform: capitalize; }
button.cal-day { min-height: 36px; padding: 0; border: 0; background: none; font-size: .875rem; font-weight: 400; font-variant-numeric: tabular-nums; }
button.cal-day:hover { background: var(--quiet-bg); }
button.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); font-weight: 600; }
button.cal-day.is-selected { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.cal-foot { display: flex; justify-content: space-between; padding: 4px 4px 2px; border-top: 1px solid var(--line); }
button.cal-link { min-height: 34px; padding: 0 8px; border: 0; background: none; color: var(--brand); font-size: .85rem; }

/* Installable app */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-bottom); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tab-h); color: var(--muted); font-size: .72rem; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; }
.tabbar .icon { width: 21px; height: 21px; }
.tabbar a[aria-current] { color: var(--brand); font-weight: 650; }
.tabbar .badge { position: absolute; top: 5px; left: calc(50% + 5px); min-width: 17px; padding: 0 4px; font-size: .65rem; line-height: 17px; }
.install-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 6px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.install-card img { flex: none; border-radius: 10px; }
.push-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.side-install[aria-pressed="true"] { color: var(--side-accent); border-color: var(--side-accent); }
.install-copy { flex: 1; min-width: 0; font-size: .875rem; line-height: 1.35; }
.install-copy strong { display: block; }
.install-copy span { color: var(--muted); font-size: .8rem; }
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } }

.toasts { position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px); display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: calc(100vw - 32px); }
.toast { background: var(--side); color: #fff; padding: 11px 16px; border-radius: 10px; border-left: 3px solid var(--side-accent); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); font-size: .9rem; }

@media (max-width: 639px) {
  .dd-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; width: auto; max-width: none; padding: 12px 12px calc(14px + var(--safe-bottom)); border: 0; border-radius: 18px 18px 0 0; animation: dd-sheet .18s ease-out; }
  .dd-title { display: block; margin: 0 4px 10px; color: var(--ink); font-size: 1rem; font-weight: 650; }
  .dd-list { max-height: 56vh; }
  .dd-option { min-height: 48px; font-size: 1rem; }
  .cal { width: auto; }
  button.cal-day { min-height: 44px; font-size: 1rem; }
  .cal-head .icon-button { width: 44px; min-height: 44px; }
  button.cal-link { min-height: 44px; font-size: .95rem; }
}
@keyframes dd-sheet { from { transform: translateY(24px); opacity: .4; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters button { flex: 0 0 auto; }
  .row.has-side { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .content { padding: 22px 24px; }
}

@media (min-width: 860px) {
  .table thead { display: table-header-group; }
  .table tbody { display: table-row-group; }
  .table tr { display: table-row; padding: 0; border: 0; }
  .table th { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-align: left; white-space: nowrap; }
  .table td, .table td.lead, .table td.wrap { display: table-cell; padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
  .table td[data-label]::before { content: none; }
  .table tbody tr:last-child td { border-bottom: 0; }
  .table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .table td.lead { white-space: nowrap; }
  .table td.lead .sub { display: block; margin-left: 0; }
  .table td.wrap { white-space: normal; min-width: 180px; }
}

@media (min-width: 1040px) {
  .sidebar { transform: none; transition: none; }
  .shell { margin-left: var(--side-w); padding-bottom: 0; }
  .menu-toggle, .topbar-brand, .scrim, .tabbar, .install-card { display: none !important; }
  .nav-open { overflow: visible; }
  .form-foot { bottom: 0; }
  .toasts { bottom: 16px; }
  .topbar { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
  .topbar :focus-visible { outline-color: var(--brand); }
  .tools { color: var(--muted); }
  input, select, textarea, .dd-trigger { font-size: 15px; }
  .topbar { min-height: 48px; padding: 6px 28px; }
  .columns { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .detail-grid { grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); align-items: start; }
  .content { padding: 22px 28px; }
  input, select, button, .button { min-height: 40px; }
  label.check { min-height: 32px; }
  input[type="checkbox"] { width: 17px; height: 17px; }
}

.email { overflow-wrap: anywhere; }
/* Rarely used or destructive forms stay folded until asked for. */
details.disclosure { margin-top: 12px; border-top: 1px solid var(--line); }
details.disclosure > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--muted); font-size: .9rem; font-weight: 550; cursor: pointer; list-style: none; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
details.disclosure[open] > summary::after { content: "–"; }
details.disclosure > form { margin-top: 0; padding-bottom: 4px; }

/* Desinfecta components */
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.eyebrow::first-letter, .vh-when::first-letter, .day-title::first-letter { text-transform: uppercase; }
.strong { font-weight: 650; }
.warn-text { color: var(--warn); }
.count { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--quiet-bg); color: var(--muted); font-size: .75rem; font-weight: 650; line-height: 20px; text-align: center; vertical-align: 1px; }
.badge.warn { background: #d98a1c; }
.badge.info { background: #2b86b3; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.avatar.warn { background: var(--warn-bg); color: var(--warn); }
.avatar.big { width: 52px; height: 52px; font-size: 1rem; }
.sidebar .avatar { background: var(--side-2); color: var(--side-accent); }
.side-user { gap: 10px; }
.profile { display: flex; align-items: center; gap: 14px; margin: 0; }
.profile small { display: block; color: var(--muted); }
.block-line { display: block; font-weight: 400; }
.sidebar-brand img, .topbar-brand img { border-radius: 6px; }
.topbar-new { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
.topbar-new { display: none !important; }
.offline-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .78rem; font-weight: 650; }
.offline-pill .icon { width: 15px; height: 15px; }
.banner.info { background: var(--info-bg); color: var(--info); }
.stat small { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; }
.stat.info .stat-icon { background: var(--info-bg); color: var(--info); }
.stat.good .stat-icon { background: var(--ok-bg); color: var(--ok); }
.panel-head h2 { display: flex; align-items: center; gap: 8px; }
.panel.alert .panel-head h2 { color: var(--bad); }
.pad { padding: 0 16px 6px; margin-top: 0; }
.lede { margin-top: -4px; }
.result-count { margin: -4px 2px 10px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; text-align: center; color: var(--muted); }
.empty-state .icon { width: 30px; height: 30px; color: var(--line-strong); }
.empty-state p { margin: 2px 0; }
.group { margin-bottom: 18px; }
.group-title { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.plain-list { margin: 4px 0 10px; padding-left: 18px; font-size: .925rem; }
.plain-list li { margin: 3px 0; }

/* Visit cards: the unit of work everywhere */
.cards { display: flex; flex-direction: column; gap: 8px; }
.panel .cards { padding: 10px; }
.visit-card { position: relative; display: flex; align-items: stretch; gap: 12px; padding: 12px 12px 12px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: border-color .12s, transform .12s; }
.visit-card::before { content: ""; flex: none; width: 4px; margin: -12px 0; background: var(--brand); }
.visit-card:hover { border-color: var(--line-strong); }
.visit-card:active { transform: scale(.995); }
.visit-card.vs-in_progress::before { background: #2b86b3; }
.visit-card.vs-done::before { background: var(--green); }
.visit-card.vs-blocked::before { background: #d98a1c; }
.visit-card.vs-cancelled { opacity: .6; }
.visit-card.vs-cancelled::before { background: var(--line-strong); }
.visit-card.is-urgent::before { background: var(--bad); }
.panel .visit-card { box-shadow: none; background: var(--surface-2); }
.vc-time { flex: none; width: 50px; display: flex; flex-direction: column; align-items: flex-start; font-variant-numeric: tabular-nums; line-height: 1.2; }
.vc-time strong { font-size: .95rem; }
.vc-time small { color: var(--muted); font-size: .75rem; }
.vc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vc-title { font-weight: 650; overflow-wrap: anywhere; }
.vc-place { display: flex; align-items: flex-start; gap: 4px; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.vc-place .icon { width: 14px; height: 14px; margin-top: 3px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; }
.vc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--quiet-bg); color: var(--ink); font-size: .72rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.tag.urgent, .tag.late { background: var(--bad-bg); color: var(--bad); }
.tag.quiet { color: var(--muted); font-weight: 500; }
.svc-deratizacija { background: #f3e9de; color: #7a4a1d; }
.svc-dezinsekcija { background: #fbf0cf; color: #7a5a00; }
.svc-dezinfekcija { background: var(--info-bg); color: var(--info); }
.svc-haccp { background: var(--green-soft); color: var(--green); }
.svc-hiperhlorinacija, .svc-aerosolizacija { background: var(--brand-soft); color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .svc-deratizacija { background: #3a2a1b; color: #f0c79b; }
  .svc-dezinsekcija { background: #3a3218; color: #f2d77c; }
}
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
.chip { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 700; }
.chip.empty { background: var(--warn-bg); color: var(--warn); }

/* Visit page */
.visit-head { margin: 2px 0 14px; }
.visit-head h1 { margin: 6px 0 4px; }
.vh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vh-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 6px; color: var(--muted); }
.vh-when .icon { width: 16px; height: 16px; }
.site-card .site-line { display: flex; gap: 12px; }
.site-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.site-line p { margin: 0 0 2px; }
.site-line a { color: var(--brand); }
.contact-line { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.contact-line .icon { width: 16px; height: 16px; }
.note-box { display: flex; gap: 8px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--warn-bg); color: var(--warn); font-size: .9rem; }
.note-box .icon { margin-top: 2px; }
.note-card { border-color: #e9cf9b; background: var(--warn-bg); }
.note-card h2 { color: var(--warn); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 12px 0 2px; }
.contact .button { gap: 6px; padding: 8px 6px; white-space: nowrap; }
.contact .icon { width: 17px; height: 17px; }
details.previous summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; cursor: pointer; font-weight: 600; list-style: none; }
details.previous summary::-webkit-details-marker { display: none; }
.previous-body { margin-top: 8px; font-size: .9rem; }
.previous-body a { color: var(--brand); }
.inf-none { background: var(--ok-bg); color: var(--ok); }
.inf-low { background: var(--info-bg); color: var(--info); }
.inf-medium { background: var(--warn-bg); color: var(--warn); }
.inf-high { background: var(--bad-bg); color: var(--bad); }
button.big { min-height: 54px; font-size: 1.02rem; border-radius: var(--radius); }
.start-form { margin: 0 0 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-head h2 { margin: 0; }
.report-form .card > h2:first-child { margin-bottom: 12px; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.chip-check { position: relative; display: inline-flex; margin: 0; font-weight: 500; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: .9rem; cursor: pointer; user-select: none; }
.chip-check input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.segmented { display: flex; margin: 4px 0 12px; padding: 3px; border-radius: 12px; background: var(--quiet-bg); }
.segmented label { flex: 1; margin: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; font-size: .88rem; font-weight: 550; cursor: pointer; }
.segmented input:checked + span { background: var(--surface); box-shadow: var(--shadow); color: var(--brand); font-weight: 650; }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }
.people { display: flex; flex-direction: column; gap: 2px; }
label.person { gap: 10px; min-height: 46px; padding: 0 4px; border-radius: var(--radius-s); }
label.person:has(input:checked) { background: var(--brand-soft); }

/* Bait station rounds: big targets, numbered in walking order */
.stations { display: flex; flex-direction: column; gap: 8px; }
.station { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); transition: border-color .12s, background .12s; }
.station.is-set { border-color: #9fd6bb; background: var(--ok-bg); }
.station.is-alert { border-color: #e9b36a; background: var(--warn-bg); }
.st-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--side); color: #fff; font-weight: 750; font-variant-numeric: tabular-nums; }
.st-body { flex: 1; min-width: 0; }
.st-where { margin: 0 0 6px; font-size: .88rem; font-weight: 600; }
.st-prev { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.st-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.st-controls .dd { flex: 1 1 180px; }
.st-controls label.check { min-height: 40px; font-size: .85rem; }
.st-note { min-height: 38px; margin-top: 6px; padding: 6px 10px; font-size: 15px; }
.station-list { display: flex; flex-direction: column; }
.st-item { border-bottom: 1px solid var(--line); }
.st-item:last-child { border-bottom: 0; }
.st-item > summary, div.st-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; cursor: pointer; list-style: none; }
div.st-item { cursor: default; }
.st-item > summary::-webkit-details-marker { display: none; }
.st-item .st-num { width: 34px; height: 34px; font-size: .9rem; }
.st-item.is-off { opacity: .55; }
.st-text { display: flex; flex-direction: column; font-size: .92rem; }
.st-text small { color: var(--muted); font-size: .78rem; }
.st-item > form { padding: 0 16px 14px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 6px 0 12px; }
.check-cell { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: .78rem; }
.check-cell strong { font-size: .95rem; }
.check-cell.is-alert { background: var(--warn-bg); color: var(--warn); }

/* Preparation lines */
.product-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.product-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 44px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.product-row label { margin-top: 0; font-size: .78rem; color: var(--muted); }
.pr-name, .pr-area { grid-column: 1 / -1; }
.pr-dil { grid-column: 1 / -1; }
.pr-remove { position: absolute; top: 4px; right: 2px; color: var(--muted); }

/* Signature */
.sig-pad { margin: 10px 0 6px; }
.sig-box { position: relative; height: 180px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-s); background: #fff; overflow: hidden; touch-action: none; }
.sig-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sig-hint { position: absolute; left: 0; right: 0; bottom: 14px; color: #8ea1b2; font-size: .9rem; text-align: center; pointer-events: none; }
.sig-pad .link { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.sig-image { max-width: 280px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.report-view h3 { margin-top: 14px; }

/* Sticky action bar above the tab bar */
.form-foot { gap: 10px; z-index: 15; }
.form-foot button { flex: 1; min-height: 50px; }
.disclosure-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; cursor: pointer; font-weight: 600; list-style: none; }
.disclosure-card > summary::-webkit-details-marker { display: none; }
.disclosure-card > summary::after { content: "+"; flex: none; color: var(--muted); font-size: 1.3rem; font-weight: 400; }
.disclosure-card[open] > summary::after { content: "–"; }
.disclosure-card > summary .icon { color: var(--brand); }
.disclosure-card.is-off { opacity: .7; }
.person-sum { display: flex; align-items: center; gap: 10px; }
details.plan-row { display: block; padding: 0; }
.plan-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.plan-sum::-webkit-details-marker { display: none; }
.plan-sum > span { display: flex; flex-direction: column; gap: 3px; }
.plan-sum .icon { color: var(--muted); }
.plan-sum .meta a { color: var(--brand); }
.plan-form { padding: 0 16px 14px; }
.form-grid.three { grid-template-columns: 1fr 1fr; }
.form-grid.three .field:first-child { grid-column: 1 / -1; }
.inline-filter { display: flex; flex: 1 1 100%; gap: 8px; min-width: 0; }
@media (min-width: 640px) { .inline-filter { flex: 0 1 440px; } }
.inline-filter .dd { flex: 1; }
td.pick { width: 44px; }
.table td.pick input { width: 22px; height: 22px; position: relative; z-index: 2; }

/* Dispatch board */
.week { display: flex; align-items: center; gap: 2px; margin: 0 -8px 8px; }
.week > .icon-button { width: 36px; flex: none; }
.week-days { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wd { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.25; }
.wd span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.wd strong { font-size: 1.05rem; }
.wd small { min-width: 20px; margin-top: 2px; padding: 0 5px; border-radius: 8px; background: var(--quiet-bg); color: var(--muted); font-size: .68rem; font-weight: 700; text-align: center; }
.wd.is-today strong { color: var(--brand); }
.wd.is-on { background: var(--side); }
.wd.is-on span, .wd.is-on strong { color: #fff; }
.wd.is-on small { background: var(--side-accent); color: var(--side); }
.day-title { margin: 0 2px 12px; color: var(--muted); font-size: .9rem; }
.day-title a { color: var(--brand); }
.board { display: grid; gap: 12px; }
.lane { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--radius); background: var(--quiet-bg); }
.lane-open { background: var(--warn-bg); }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.lane-head h2 { flex: 1; min-width: 0; margin: 0; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-head .icon-button { width: 36px; min-height: 36px; color: var(--muted); }
.lane .empty { padding: 10px 6px; font-size: .85rem; }
.lane .empty a { color: var(--brand); }
.lane-card { display: flex; flex-direction: column; gap: 6px; }
.quick-assign .dd-trigger { min-height: 40px; padding: 6px 10px; font-size: .9rem; background: var(--surface); }

/* Tab bar with a raised new-visit button */
.tabbar { grid-template-columns: repeat(5, 1fr); box-shadow: 0 -4px 18px rgba(14, 34, 51, .06); }
.tabbar.tabbar-3 { grid-template-columns: repeat(3, 1fr); }
.tab-new { justify-content: center; }
.tab-plus { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -18px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(46, 94, 149, .4); }
.tab-plus .icon { width: 24px; height: 24px; stroke-width: 2.2; }

@media (min-width: 640px) {
  .product-row { grid-template-columns: 2fr 1fr 1fr; }
  .pr-name { grid-column: 1 / 2; }
  .pr-dil { grid-column: auto; }
  .form-grid.three { grid-template-columns: 2fr 1fr 1fr; }
  .form-grid.three .field:first-child { grid-column: auto; }
  .form-foot button { flex: 0 0 auto; min-width: 150px; }
  .board { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
}
@media (min-width: 1040px) {
  .topbar { justify-content: flex-end; }
  .topbar-new { display: inline-flex !important; }
  .week { margin: 0 0 10px; }
  .vc-time { width: 56px; }
}

/* Printable record: A4, black on white */
.print-page { background: #e9eef2; color: #111; }
.print-tools { display: flex; justify-content: space-between; gap: 8px; max-width: 820px; margin: 0 auto; padding: 12px 16px; }
.doc { max-width: 820px; margin: 0 auto 32px; padding: 36px 40px; background: #fff; color: #111; box-shadow: 0 6px 30px rgba(0, 0, 0, .12); font-size: 13px; line-height: 1.45; }
.doc-head { display: flex; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid #2e5e95; }
.doc-head p { margin: 0; font-size: 11px; color: #333; }
.doc-company { font-size: 15px !important; font-weight: 700; color: #0b2236 !important; }
.doc-title { margin: 22px 0 2px; font-size: 20px; text-align: center; letter-spacing: .08em; }
.doc-title small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.doc-no { margin: 0 0 16px; text-align: center; }
.doc h2 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #2e5e95; }
.doc-table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.doc-table th, .doc-table td { padding: 6px 8px; border: 1px solid #b9c4cc; text-align: left; vertical-align: top; }
.doc-table thead th { background: #eef3f7; font-size: 11px; }
.doc-table.kv th { width: 28%; background: #f5f8fa; font-weight: 600; }
.doc-table.compact td, .doc-table.compact th { padding: 3px 6px; font-size: 12px; }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.sign-label { margin: 0; font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: .05em; }
.sign-name { margin: 4px 0; font-weight: 600; min-height: 18px; }
.sign-img { display: block; max-width: 220px; max-height: 90px; }
.sign-line { border-bottom: 1px solid #333; height: 28px; }
.doc-foot { margin-top: 26px; font-size: 10px; color: #666; text-align: center; }
@media (max-width: 639px) {
  .doc { padding: 20px 16px; font-size: 12px; }
  .doc-signs { grid-template-columns: 1fr; gap: 22px; }
  .doc-table.compact { font-size: 11px; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  .print-page { background: #fff; }
  .print-tools, .sprite { display: none !important; }
  .doc { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  .doc-table tr { break-inside: avoid; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 859px) {
  .table tr:has(td.pick) { padding-left: 54px; }
  .table td.pick { position: absolute; left: 16px; top: 12px; }
  .table td[data-label=""]::before { content: none; }
}
