/* G-Suites — layout: sticky command bar, section tabs, wide data grids; printed forms mimic the ICS workbook */
:root {
  --bg: #f3f4f1;
  --panel: #ffffff;
  --panel-2: #eceee9;
  --ink: #1d2320;
  --ink-2: #56605a;
  --line: #d3d7d0;
  --line-strong: #aab1a9;
  --accent: #b4531a;          /* fireline orange */
  --accent-ink: #ffffff;
  --accent-soft: #f6e3d6;
  --focus: #1f6fb2;
  --ok: #2f7a45;
  --ok-soft: #dcefe1;
  --warn: #9a6a00;
  --warn-soft: #fbefcf;
  --bad: #b3261e;
  --bad-soft: #f9dedc;
  --field: #fffdf6;           /* "fill this in" cells, like the workbook's input color */
  --shadow: 0 1px 2px rgba(20, 30, 25, .08), 0 4px 16px rgba(20, 30, 25, .06);
  --f-ui: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-cond: "IBM Plex Sans Condensed", "Arial Narrow", "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 6px;
  --gl-lwd: #d9d9d9; --gl-1: #f8c9c4; --gl-23: #fcd9b6; --gl-45: #fff2b3; --gl-6: #cdeccd; --gl-ink: #1d2320;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151916; --panel: #1d221f; --panel-2: #252b27; --ink: #e7ebe6; --ink-2: #a3ada6;
    --line: #333b36; --line-strong: #4a544d; --accent: #e07a3a; --accent-ink: #1a0f06; --accent-soft: #3a2415;
    --focus: #6aaef0; --ok: #6cc587; --ok-soft: #1f3526; --warn: #e2b440; --warn-soft: #3a3016;
    --bad: #f08a80; --bad-soft: #3d1f1c; --field: #1a1f1c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151916; --panel: #1d221f; --panel-2: #252b27; --ink: #e7ebe6; --ink-2: #a3ada6;
  --line: #333b36; --line-strong: #4a544d; --accent: #e07a3a; --accent-ink: #1a0f06; --accent-soft: #3a2415;
  --focus: #6aaef0; --ok: #6cc587; --ok-soft: #1f3526; --warn: #e2b440; --warn-soft: #3a3016;
  --bad: #f08a80; --bad-soft: #3d1f1c; --field: #1a1f1c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--f-ui); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-size: 1.5rem; font-weight: 600; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: .95rem; font-weight: 600; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .02em; cursor: pointer; background: none; border: 0; padding: 0; }
.brand-mark { width: 26px; height: 26px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 11px var(--f-cond); letter-spacing: .04em; }
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.crumb .inc-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.local { background: var(--panel-2); color: var(--ink-2); }
.user-chip { display: flex; align-items: center; gap: 8px; }
.role-tag { font: 600 .7rem var(--f-cond); text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--panel-2); color: var(--ink-2); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab .form-no { font: 600 .72rem var(--f-mono); color: var(--ink-2); margin-left: 4px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtab { border: 1px solid var(--line); background: var(--panel); padding: 5px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.subtab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- layout ---------- */
main { padding-block: 20px 60px; padding-inline: 16px; max-width: 1500px; margin: 0 auto; display: grid; gap: 18px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; justify-content: space-between; }
.section-head > div { min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 14px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span { font: 600 .72rem var(--f-cond); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--ink-2); }

input[type="text"], input[type="password"], input[type="date"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--field);
}
textarea { resize: vertical; min-height: 64px; }
input:disabled, select:disabled, textarea:disabled { background: var(--panel-2); color: var(--ink-2); cursor: not-allowed; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
input.invalid { border-color: var(--bad); background: var(--bad-soft); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { padding: 4px 9px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 1px solid transparent; background: none; width: 28px; height: 28px; border-radius: 4px; cursor: pointer; color: var(--ink-2); display: inline-grid; place-items: center; font-size: 14px; }
.icon-btn:hover { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.icon-btn.danger:hover { color: var(--bad); }

.banner { padding: 10px 14px; border-radius: var(--r); border: 1px solid; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner.warn { background: var(--warn-soft); border-color: var(--warn); color: var(--ink); }
.banner.bad { background: var(--bad-soft); border-color: var(--bad); }
.banner.info { background: var(--panel-2); border-color: var(--line-strong); }

/* ---------- data tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.data { border-collapse: collapse; width: 100%; font-size: .88rem; }
table.data th { position: sticky; top: 0; background: var(--panel-2); font: 600 .72rem var(--f-cond); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; z-index: 1; }
table.data td { border-bottom: 1px solid var(--line); padding: 3px 4px; vertical-align: middle; }
table.data td input, table.data td select { padding: 5px 6px; border-color: transparent; background: transparent; border-radius: 3px; }
table.data td input:hover:not(:disabled), table.data td select:hover:not(:disabled) { border-color: var(--line-strong); }
table.data td input:focus, table.data td select:focus { border-color: var(--focus); background: var(--field); outline: none; }
table.data td.num { width: 34px; text-align: center; color: var(--ink-2); font: 600 .8rem var(--f-mono); }
table.data td.acts { white-space: nowrap; width: 1%; }
table.data tr.page-break td { background: var(--accent-soft); color: var(--ink); font: 600 .74rem var(--f-cond); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-bottom: 1px solid var(--line-strong); }
table.data input.freq { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.col-fn { width: 110px; } .col-name { width: 130px; } .col-assign { width: 190px; } .col-freq { width: 105px; } .col-tone { width: 72px; } .col-mode { width: 62px; } .col-remarks { min-width: 200px; }

/* assignment grid */
table.grid { border-collapse: collapse; font-size: .85rem; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; }
table.grid thead th { background: var(--panel-2); font: 600 .72rem var(--f-cond); letter-spacing: .04em; vertical-align: bottom; }
table.grid thead th.vert { height: 130px; white-space: nowrap; }
table.grid thead th.vert > span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; }
table.grid tbody th { text-align: left; background: var(--panel); position: sticky; left: 0; z-index: 1; white-space: nowrap; font-weight: 600; }
table.grid td.hl { background: var(--accent-soft); }
table.grid td.all-on { background: var(--ok-soft); }
table.grid .fn { color: var(--ink-2); font: 500 .75rem var(--f-cond); margin-right: 6px; }

/* home */
.inc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.inc-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; display: grid; gap: 6px; }
.inc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.inc-card .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); }
.empty { padding: 28px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-strong); border-radius: var(--r); }

/* division cards */
.div-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 10px; background: var(--panel); }
.div-card header { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.div-label { font: 700 1rem var(--f-cond); letter-spacing: .02em; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.person label { display: flex; gap: 4px; align-items: center; font-size: .78rem; color: var(--ink-2); }
details.more > summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.div-card .div-more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more[open] > summary { margin-bottom: 10px; }

/* modal */
.opt { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.opt input { flex: none; margin-top: 3px; }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 15, 12, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--panel); border-radius: 8px; box-shadow: var(--shadow); width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 20px; display: grid; gap: 14px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* auth */
.auth { max-width: 400px; margin: 8vh auto 0; }
.toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 6px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.placeholder { padding: 40px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }

/* ================= Printed ICS 205 (matches the workbook layout) ================= */
.print-stage { display: grid; gap: 20px; justify-items: center; overflow-x: auto; padding: 8px 0; }
.sheet {
  width: 11in; height: 8.5in; padding: .35in .4in; background: #fff; color: #000; box-shadow: var(--shadow);
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif; display: flex; flex-direction: column; flex: none;
}
.sheet table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.sheet td { border: 1px solid #000; padding: 1px 4px; overflow: hidden; }
.sheet .t-title { font-weight: 700; font-size: 11pt; text-align: center; line-height: 1.15; }
.sheet .t-lbl { font-weight: 700; font-size: 8pt; text-align: center; height: 16px; }
.sheet .t-val { font-weight: 700; font-size: 9pt; text-align: center; height: 26px; }
.sheet .band td { background: #bfbfbf; height: 12px; padding: 0; }
.sheet .colh td { font-size: 6.5pt; text-align: center; height: 26px; line-height: 1.1; }
.sheet .ch td { height: 34px; font-size: 10.5pt; white-space: nowrap; text-overflow: ellipsis; }
.sheet .ch td.c-num { font-size: 7pt; text-align: center; }
.sheet .ch td.c-freq { text-align: center; font-variant-numeric: tabular-nums; }
.sheet .ch td.c-mode { text-align: center; }
.sheet .ch td.c-small { font-size: 7pt; }
.sheet .gap td { height: 14px; border-left: 0; border-right: 0; }
.sheet .foot td { font-size: 9pt; height: 26px; text-align: center; }
.sheet .foot td.lbl { font-size: 8.5pt; text-align: right; }
.sheet .marking-top { text-align: center; font-size: 8.5pt; font-weight: 700; min-height: 13px; margin-bottom: 4px; }
.sheet .notes { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 8.5pt; margin-top: 2px; }
.sheet .notes div:nth-child(1) { padding-left: .7in; }
.sheet .notes div:nth-child(2) { text-align: center; padding-top: 11px; }
.sheet .notes div:nth-child(3) { text-align: right; padding-right: .7in; }
.sheet .pageno { margin-top: auto; font-size: 7pt; text-align: right; color: #444; }


@keyframes flashrow { from { background: var(--accent-soft); } to { background: transparent; } }
table.data tr.just-added td { animation: flashrow 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { table.data tr.just-added td { animation: none; } }

/* ---------- medical ---------- */
.auto-val { background: var(--panel-2); border: 1px dashed var(--line-strong); border-radius: 5px; padding: 6px 9px; font-size: .86rem; min-height: 32px; }
table.glide th, table.glide td { font-size: .78rem; padding: 3px 5px; white-space: nowrap; }
table.glide thead th { font-weight: 600; }
.gl { font: 600 .75rem var(--f-mono); text-align: center; border-radius: 3px; padding: 1px 5px; }
.gl.g0 { background: var(--gl-lwd); color: var(--gl-ink); }
.gl.g1 { background: var(--gl-1); color: var(--gl-ink); }
.gl.g23 { background: var(--gl-23); color: var(--gl-ink); }
.gl.g45 { background: var(--gl-45); color: var(--gl-ink); }
.gl.g6 { background: var(--gl-6); color: var(--gl-ink); }
td.gl-off { background: var(--panel-2); }

/* ================= Printed ICS 206 (portrait) ================= */
.sheet.portrait { width: 8.5in; height: auto; min-height: 11in; padding: .4in .45in; }
.sheet.portrait.mir { height: 11in; }
table.f206 { font-size: 8.5pt; }
table.f206 td { border: 1px solid #000; padding: 2px 4px; vertical-align: middle; overflow-wrap: anywhere; }
table.f206 thead td.mk, table.f206 tfoot td.mk { border: 0; text-align: center; font-weight: 700; font-size: 8pt; padding: 0 0 4px; }
table.f206 tfoot td.mk { padding: 4px 0 0; position: relative; }
table.f206 tfoot td.mk span { position: absolute; right: 0; font-weight: 400; font-size: 7pt; }
table.f206 .title { font-weight: 700; font-size: 14pt; text-align: center; height: 30px; }
table.f206 .lbl { font-weight: 700; font-size: 8pt; }
table.f206 .val { font-weight: 700; font-size: 10pt; text-align: center; height: 22px; }
table.f206 .sec { font-weight: 700; font-size: 10pt; background: #d9d9d9; }
table.f206 tr.hr6 td { font-weight: 700; font-size: 7.5pt; text-align: center; line-height: 1.15; }
table.f206 tr.hr6 td.l { text-align: left; }
table.f206 td.c { text-align: center; }
table.f206 td.sm { font-size: 7.5pt; }
table.f206 tr.hosp td { font-size: 8pt; }
table.f206 .two { display: flex; justify-content: space-around; }
table.f206 td.dname { text-align: center; font-size: 10pt; background: #f2f2f2; }
table.f206 td.lbl2 { font-weight: 700; font-size: 7.5pt; }
table.f206 td.lbl2.r { text-align: right; }
table.f206 td.hs { text-align: center; background: #f2f2f2; }
table.f206 td.mono-p { font-variant-numeric: tabular-nums; }
table.f206 tr.spacer-row td { border-left: 0; border-right: 0; height: 6px; padding: 0; }
table.f206 tr.sig td { height: 24px; }
table.f206 td.nest { padding: 0; border: 0; }
table.f206 table.sigt { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.f206 table.sigt td { white-space: nowrap; }
table.f206 td.muted-p { color: #555; font-style: italic; }
table.f206 tbody.keep { break-inside: avoid; page-break-inside: avoid; }

table.fmir { font-size: 7.5pt; }
table.fmir td { border: 1px solid #000; padding: 2px 5px; vertical-align: top; }
table.fmir .t1 { text-align: center; font-weight: 700; font-size: 12pt; border: 0; }
table.fmir .t2 { text-align: center; font-weight: 700; font-size: 8.5pt; border: 0; }
table.fmir .t3 { text-align: center; font-weight: 700; font-size: 12pt; background: #d9d9d9; }
table.fmir .p { line-height: 1.28; }
table.fmir .b, table.fmir .lb { font-weight: 700; }
table.fmir .lb { vertical-align: middle; }
table.fmir .ind { display: inline-block; padding-left: 2.2em; font-style: italic; }
table.fmir .hint-p { font-size: 7pt; text-align: center; vertical-align: middle; }
table.fmir .sec { font-weight: 700; background: #d9d9d9; }
table.fmir .sm { font-size: 7.5pt; }
table.fmir tr.tall td { height: 40px; }
table.fmir tr.mid td { height: 28px; }
table.fmir tr.sm2 td { height: 24px; }
table.fmir tr.big td { height: 46px; }
table.fmir td.mf { border: 0; padding: 3px 0 0; }
table.fmir tr.cr td { height: 20px; }
table.fmir tr.ch2 td { font-weight: 700; text-align: center; font-size: 7.5pt; }
.mir-foot { display: flex; justify-content: space-between; font-size: 7.5pt; margin-top: 4px; }

/* printed glidepath (landscape) */
.sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.glide-sheet .gs-head { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: baseline; font-size: 9pt; margin-bottom: 4px; }
.glide-sheet .gs-title { font-weight: 700; font-size: 13pt; margin-right: auto; }
.glide-sheet .gs-legend { font-size: 7.5pt; margin-bottom: 5px; }
.glide-sheet .gs-legend .gl { font-size: 7pt; }
table.gs { font-size: 7.5pt; }
table.gs th, table.gs td { border: 1px solid #000; padding: 1px 2px; text-align: center; height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.gs .d { padding: 1px 0; text-overflow: clip; font-size: 6.5pt; }
table.gs td.gl.d { font-size: 7pt; }
table.gs th { font-size: 7pt; background: #e6e6e6; line-height: 1.1; }
table.gs td.l { text-align: left; }
table.gs td.gl { font-family: Arial, sans-serif; font-weight: 700; border-radius: 0; }
table.gs td.off { background: #fff; }
.sheet.glp { width: 8.5in; height: 11in; padding: .35in .35in; }
.glp table.gs { font-size: 7pt; } .glp table.gs th { font-size: 6.5pt; } .glp table.gs th.d { font-size: 5.3pt; letter-spacing: -.2px; } .glp table.gs .d { font-size: 6pt; } .glp table.gs td.gl.d { font-size: 6.5pt; } .glp table.gs th, .glp table.gs td { height: 22px; }
.glp .gs-head { gap: 2px 18px; }
.glide-sheet .pageno { display: flex; justify-content: flex-end; align-items: center; position: relative; }
.glide-sheet .mk-bot { position: absolute; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 8.5pt; color: #000; }

/* ---------- IAP forms editors ---------- */
.list-ed { display: grid; gap: 6px; }
.list-ed .bullet { color: var(--ink-2); font-weight: 700; padding-top: 6px; }
.grow { flex: 1; min-width: 0; }
textarea { min-height: 38px; }
table.data td textarea { overflow: hidden; width: 100%; min-width: 0; padding: 5px 6px; border: 1px solid transparent; background: transparent; border-radius: 3px; resize: vertical; font-size: .86rem; }
table.data td textarea:hover:not(:disabled) { border-color: var(--line-strong); }
table.data td textarea:focus { border-color: var(--focus); background: var(--field); outline: none; }
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin-bottom: 8px; }
table.data tr.auto-row td { background: var(--panel-2); color: var(--ink-2); font-size: .85rem; padding: 6px 8px; }
.auto-val hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 6px 0; }
.po-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 620px; counter-reset: po; }
.po-list .po { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); counter-increment: po; }
.po-list .po::before { content: counter(po); font: 600 .8rem var(--f-mono); color: var(--ink-2); width: 18px; }
.po-list .po label { flex: 1; }
.po-list .po.na { opacity: .6; }

table.data.kinds tr.grp td { background: var(--accent-soft); }
table.data.kinds tr.grp td input { font-weight: 700; }
.kinds-wrap { max-height: 70vh; overflow: auto; }
/* Import tab */
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--panel-2); margin-top: 10px; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
table.data.docs td { vertical-align: top; }
/* Imported PDF pages in the IAP print (each prints at its own page size) */
.sheet.att { padding: 0; width: min(var(--w), 11in); height: auto; aspect-ratio: var(--ar); display: block; overflow: hidden; }
.sheet.att img { display: block; width: 100%; height: 100%; }
.sheet.att.att-msg { width: 8.5in; height: 2in; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; text-align: center; color: #555; font-size: 12pt; }
/* Resources tables scroll inside their own box so the column titles stay locked in view */
.res-wrap { max-height: calc(100vh - 230px); min-height: 240px; overflow: auto; }
.res-wrap table.data thead th { z-index: 3; box-shadow: 0 1px 0 var(--line-strong); }

/* ---------- printed IAP forms (portrait) ---------- */
table.f206.t203.fit203 td { height: var(--rh); max-height: var(--rh); padding: 0 3px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs); vertical-align: middle; }
table.f206.t203.fit203 td.sec { font-size: var(--fsh); }
table.f206.t203.fit203 td.sec.bd { font-size: var(--fs); font-weight: 400; text-align: center; }
table.f206.t203.fit203 td.title { font-size: var(--fst); height: var(--rh); }
table.f206.t203.fit203 td.title.t203h { font-size: min(var(--fst), calc(var(--fsh) * 1.25)); text-align: center; }
table.f206.t203.fit203 td.val { font-size: calc(var(--fs) * 1.1); }
table.f206.t203.fit203 tr.sig td { height: var(--rh); }

.measure204 { position: absolute !important; left: -10000px; top: 0; visibility: hidden; width: 7.9in !important; min-height: 0 !important; height: auto !important; padding: 0 !important; box-shadow: none; }
.measure204 table + table { margin-top: 0; }
.measure204.m206 { width: 7.6in !important; }
.sheet.pg204 { height: 11in; min-height: 11in; position: relative; display: flex; flex-direction: column; padding: .45in .3in .35in; }
.sheet.pg204 .foot204 { margin-top: -1px; }
.sheet.pg204 .res204, .measure204 .res204, .sheet.pg204 .com204, .measure204 .com204, .sheet.pg204 .tpe204, .measure204 .tpe204 { margin-top: -1px; } /* section 5 is its own table (its own column widths) joined to the header */
table.res204 td { text-align: center; } /* every cell in section 5 is centered */
table.res204 td.sec.res5 { text-align: left; } /* sits directly under section 5; any spare space goes below the footer */
.sheet.pg204 .mk-scr { position: absolute; left: .3in; right: .3in; text-align: center; font: 700 8pt Arial, sans-serif; }
.sheet.pg204 .mk-scr.top { top: .2in; }
.sheet.pg204 .mk-bot204 { position: relative; text-align: center; font: 700 8pt Arial, sans-serif; padding-top: 2px; color: #000; }
.sheet.pg204 .mk-bot204 span { position: absolute; right: 0; top: 2px; font-weight: 400; font-size: 7pt; }

table.f206 td.bul { text-align: center; border-right: 0; vertical-align: top; }
table.f206 td.bul + td { border-left: 0; }
table.f206 td.pre, .cover .pre { white-space: pre-wrap; }
table.f206 td.sub { font-weight: 700; font-style: italic; background: #f2f2f2; }
table.f206 .atts { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 3px 0; }
table.f206 .att { display: inline-flex; align-items: center; gap: 5px; }
.xbox { display: inline-grid; place-items: center; width: 12px; height: 12px; border: 1px solid #000; font-size: 8pt; font-weight: 700; line-height: 1; }
table.t203 td { font-size: 8pt; height: 17px; }
table.t203 td.pos { font-size: 7.5pt; }
table.t203 td.nm { text-align: center; }
table.t203 td.e { border-top-color: transparent; border-bottom-color: transparent; }
table.t204 td { font-size: 7.5pt; padding: 1px 3px; }
table.t204 td.sec { font-size: 9pt; }
table.t204 td.title { height: 24px; }
table.t204 .val.big { font-size: 12pt; }
table.t204 td.tt { font-size: 8pt; white-space: nowrap; }
table.t204 td.tt .xbox { margin-left: 6px; }
table.t204 tr.tpe td { vertical-align: top; font-size: 7.5pt; }
table.t204 td.b { font-weight: 700; }
.cover { padding: 6px 4px; display: grid; gap: 14px; }
.cover .cv-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; } /* logo + day block and title block centered on each other */
.cover .cv-title { font-size: 26pt; font-weight: 700; margin-bottom: 6px; }
.cover .cv-inc { font-size: 16pt; font-weight: 700; }
.cover .cv-inc span { font-size: 11pt; font-weight: 400; margin-left: 8px; }
.cover .cv-op { font-size: 16pt; font-weight: 700; margin-top: 6px; }
.cover .cv-op span, .cover .cv-team span { white-space: nowrap; }
.cover .cv-team { font-size: var(--cvteam, 16pt); font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.cover .cv-day { flex: none; align-self: center; border: 4px solid #000; padding: 2px 10px; font-size: 26pt; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.cover .cv-head { flex: 1; text-align: center; min-width: 0; }
.cover .cv-pair { display: grid; grid-auto-rows: var(--cvbox, auto); gap: 14px; } /* Notes and Safety Spotlight boxes: same size, filling the page */
.cover .cv-pair .cv-box { font-size: var(--cvfs, 9.5pt); overflow: hidden; }
.cvmeasure .cover .cv-pair { grid-auto-rows: auto; }
.cvmeasure .cover .cv-pair .cv-box { min-height: 0; }
.cover .cv-left { flex: 1 1 0; width: 0; min-width: 0; display: flex; flex-direction: column; }
.cover .cv-right { flex: none; order: -1; display: flex; flex-direction: column; align-items: center; gap: 8px; } /* logo against the left margin, day centred under it; the title block centres in the rest */
.cover .cv-logo { flex: none; max-width: 2.75in; height: 1.625in; display: flex; justify-content: flex-start; align-items: center; }
.cover .cv-logo img { display: block; max-width: 2.75in; max-height: 1.625in; object-fit: contain; }
.cover .cv-box { border: 1px solid #000; padding: 8px 10px; font-size: 9.5pt; }
.cover .cv-box.spot { border-width: 2px; }
.cover .cv-box.spotlight .sptext { font-size: var(--spfs, 9.5pt); line-height: 1.25; }
.cover .cv-h { font-weight: 700; font-size: 12pt; margin-bottom: 4px; text-align: center; }
.cover .cv-contacts { display: grid; gap: 6px; font-size: 10pt; text-align: center; }
.cover .cv-gps { font-size: 8.5pt; }
.cover .cv-link { display: flex; gap: 14px; align-items: center; justify-content: center; font-size: 9.5pt; text-align: center; overflow-wrap: anywhere; }
.cover .cv-qr svg { width: 1.6in; height: 1.6in; display: block; }
.cover .cv-notesrow { display: grid; grid-template-columns: 66% 1fr; gap: 14px; min-height: 0; }
.cover .cv-qrcol { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 0; text-align: center; font-size: 9pt; overflow-wrap: anywhere; }
.cover .cv-qrimg { width: 1.6in; height: 1.6in; object-fit: contain; display: block; }
.cover .cv-qrlink { line-height: 1.3; }
.cover .cv-notesrow.full { grid-template-columns: 1fr; }
.cover .cv-qr.sm svg { width: 1.1in; height: 1.1in; }

@media (max-width: 640px) {
  .crumb .inc-name { max-width: 22ch; }
  .tabs { padding: 0 8px; }
  main { padding-inline: 12px; }
}

@media print {
  /* The unnamed (default) page is portrait like most IAP pages; landscape forms name their own page. Chrome's print
     dialog can lay pages out at the default page's width and shrink everything to fit, so the default must match the
     portrait pages or they print small. */
  @page { size: letter portrait; margin: .4in .45in; }
  @page land { size: letter landscape; margin: 0; }
  .sheet { page: land; }
  @page p206 { size: letter portrait; margin: .4in .45in; }
  .sheet.portrait { page: p206; width: auto; height: auto; min-height: 0; padding: 0; }
  @page p206m { size: letter portrait; margin: .35in .45in; }
  @page p206p { size: letter portrait; margin: .4in .45in .35in; }
  .sheet.portrait.pg206 { page: p206p; padding: 0; }
  .sheet.pg206 .mk-scr { display: none; }
  .sheet.portrait.mirp { page: p206m; height: auto; }
  @page piap { size: letter portrait; margin: .4in .45in; }
  @page p215 { size: 36in 48in; margin: .5in; }
  @page p209 { size: letter portrait; margin: .35in .4in; }
  @page pmeal { size: letter landscape; margin: .35in .4in; }
  .sheet.mland { page: pmeal; height: auto; min-height: 0; padding: 0; width: auto; display: block; }
  .sheet.portrait.s209 { page: p209; }
  .sheet.portrait.s215 { page: p215; zoom: 4.6; } /* same layout as on screen, scaled up to fill the Arch E sheet (35in / 7.6in) */
  .sheet.portrait.iapf { page: piap; }
  @page pglp { size: letter portrait; margin: 0; }
  .sheet.glide-sheet.glp { page: pglp; }
  table.f206 thead:not(.rep), table.f206 tfoot, table.f206 tr.mkrow { display: none; }
  table.f206 thead.rep { display: table-header-group; }
  table.f206 thead.rep tr { break-inside: avoid; }
  @page p204 { size: letter portrait; margin: .45in .3in .35in; } /* side margins .3in (one third less than the other forms) */
  .sheet.portrait.pg204 { page: p204; height: 10.2in; min-height: 0; padding: 0; overflow: hidden; }
  .sheet.pg204 .mk-scr { display: none; }
  body { background: #fff; }
  .no-print, .topbar, .tabs, .toast, .modal-bg { display: none !important; }
  main { padding: 0; max-width: none; display: block; }
  .print-stage { display: block; padding: 0; overflow: visible; }
  /* a new page starts BEFORE each sheet after the first (never after the last one), so nothing hidden or empty at the
     end of the preview - an attachment still downloading, a message box - can push out an extra blank page */
  .sheet { box-shadow: none; page-break-after: auto; break-after: auto; }
  .sheet ~ .sheet { page-break-before: always; break-before: page; }
  .print-stage > :not(.sheet), .print-stage .empty, .sheet.att-msg { display: none !important; }
  /* no overflow clipping or fixed height here: Chrome ignores the named page size on such boxes */
  .sheet.att { width: var(--w); height: auto; aspect-ratio: auto; overflow: visible; }
  /* the page image stops 12pt (1/6 in) short of the paper edge and keeps its proportions: printed exactly to the edge,
     Chrome 155 tipped the last attachment page over by a hair and added an empty landscape page after it */
  .sheet.att img { width: auto; max-width: var(--w); height: calc(var(--h) - 12pt); margin: 0 auto; }
  .sheet.att.att-msg { display: none; }
}

.grid-2.pair { align-items: start; }

/* 204: Task Force / Strike Team rows are shaded light grey with the text blended in; only the resource name stays readable */
.t204 tr.rr.tfst > td { background: #d9d9d9 !important; color: #d9d9d9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.t204 tr.rr.tfst > td.rn, .t204 tr.rr.tfst > td.rn b { color: #000 !important; }

/* 203 tab: shaded heading rows in section 9 (branches, Night Division/Groups) */
table.data tr.auto-row.grp203 td { background: #d9d9d9; color: var(--ink); }

/* ICS 215 */
.s215 .t215-title { font: 700 9pt Arial, sans-serif; text-align: center; margin: 0 0 6px; }
.s215 .b215 { margin-bottom: 10px; break-inside: avoid; page-break-inside: avoid; display: block; }
.sheet.s215 .b215 table { break-inside: auto; }
.s215 .b215 > table:first-child { margin-top: 0; }
.s215 .b215 { padding-top: 1px; }
.s215 .b215.pb { break-before: page; page-break-before: always; }
.s215 .b215.tall { break-inside: auto; page-break-inside: auto; } /* longer than a sheet: allowed to run onto the next */
@media screen { .s215 .b215.pb { border-top: 2px dashed #9aa; padding-top: 12px; margin-top: 4px; } .s215 .b215.pb::before { content: 'New sheet'; display: block; font: 600 9px Arial, sans-serif; color: #7a8; margin: -10px 0 2px; } }
table.t215 { width: 100%; border-collapse: collapse; table-layout: fixed; font: 7pt Arial, sans-serif; margin-top: -1px; }
table.t215 td { border: 1px solid #000; padding: 1px 3px; vertical-align: middle; white-space: normal; overflow-wrap: break-word; }
table.t215.hd td.lb { background: #d0cece; text-align: center; font-weight: 700; font-size: 6.5pt; line-height: 1.15; }
table.t215.hd td.v { text-align: center; font-size: 7.5pt; }
table.t215.hd td.v.big { font-weight: 700; font-size: 9pt; }
table.t215 tr.sh td { background: #d9d9d9; text-align: center; font-weight: 700; font-size: 8.5pt; }
table.t215.tpe td.pre { white-space: pre-wrap; vertical-align: top; }
table.t215.rs { font-size: 5.3pt; }
table.t215.rs td { overflow: hidden; }
table.t215.rs td { padding: 1px 1.5px; }
table.t215.rs td.gap { border: 0; background: none; }
table.t215.rs td.c { text-align: center; }
table.t215.rs tr.gh td { text-align: center; font-weight: 700; font-size: 8pt; }
table.t215.rs tr.c215h td { background: #d9d9d9; font-weight: 700; text-align: center; font-size: 4.8pt; line-height: 1.1; padding: 1px 0; overflow-wrap: normal; word-break: normal; }
table.t215.rs tr.c215h td.gap { background: none; }
table.t215.rs td.k, table.t215.rs td.rn { white-space: nowrap; }
table.t215.rs tr.rr215 td { height: 15px; }
table.t215.rs td.c { white-space: nowrap; letter-spacing: -.2px; font-size: 5pt; }
table.t215 .g-oh { background: #adb9ca; } table.t215 .g-cr { background: #00b050; } table.t215 .g-en { background: #ff0000; } table.t215 .g-eq { background: #ffff00; } table.t215 .g-md { background: #f4b183; }
.s215 td, .s215 tr { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* 215 resource-needs block: 3 rows x 20 equal cells (Kind/Type, then a box to write the number needed) */
table.t215.needs { margin-top: -1px; font-size: 6pt; } /* sits directly under the resources table: their borders share one line */
table.t215.needs td { height: 15px; text-align: center; }
table.t215.needs td.nc { font-weight: 700; background: #f2f2f2; white-space: nowrap; }

/* 215: each Task Force / Strike Team and its members share a light colour */
table.t215.rs td.tf1 { background: #c6efce; } table.t215.rs td.tf2 { background: #ffc7ce; } table.t215.rs td.tf3 { background: #bdd7ee; } table.t215.rs td.tf4 { background: #fff2cc; }

/* 202 blocks 1-4: Date and Time boxes only as wide as their labels; Incident Name takes the rest; no divider inside block 4 */
table.f206 td.nest.h202 { padding: 0; border: 0; }
table.f206.hdr202 { width: 100%; table-layout: auto; border-collapse: collapse; margin: 0; }
table.f206.hdr202 td.fit { width: 1%; white-space: nowrap; }
table.f206.hdr202 .gap202 { display: inline-block; width: .6in; }
table.f206.fit202 td.iname { white-space: nowrap; overflow: hidden; max-width: 0; }
table.f206.t203.fit203 .gap203 { display: inline-block; width: 2.5em; }

/* 209 Personnel Count */
table.pc209 { width: calc(100% - 2px); margin: 0 1px; border-collapse: collapse; table-layout: fixed; font: 9pt Arial, sans-serif; }
table.pc209 td { border: 1px solid #000; height: 19.8px; padding: 0 3px; text-align: center; vertical-align: middle; white-space: nowrap; overflow: hidden; }
table.pc209 td.nb, table.pc209 tr.sp td { border: 0; }
table.pc209 tr.sp td { height: 8px; }
table.pc209 td.ttl { border: 0; font-size: 26pt; font-weight: 700; height: 44px; }
table.pc209 td.op { border: 0; font-size: 9pt; height: 16px; }
table.pc209 td.st { border: 0; font-size: 15pt; font-weight: 700; height: 30px; }
table.pc209 td.gh { background: #d9d9d9; font-size: 10pt; }
table.pc209 td.gh.sm { font-size: 7.5pt; white-space: normal; line-height: 1.1; }
table.pc209 td.gh.tl { font-weight: 700; font-size: 9pt; white-space: normal; }
table.pc209 td.n.big { font-size: 11pt; }
table.pc209 td.n.tv { font-weight: 700; font-size: 14pt; }
table.pc209 td.hand { background: #ffff00; }
table.pc209 td.k { font-size: 8pt; padding: 0 1px; letter-spacing: -.1px; }
.s209 td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pc-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pc-stat { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; background: var(--panel-2); min-width: 120px; display: grid; }
.pc-stat span { font-size: .75rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.pc-stat b { font-size: 1.4rem; }

/* IAP Order Form (printed) */
table.ord { width: calc(100% - 2px); margin: 0 1px; border-collapse: collapse; table-layout: fixed; font: 11pt Arial, sans-serif; }
table.ord td { border: 1px solid #000; height: 22px; padding: 1px 6px; text-align: center; vertical-align: middle; }
table.ord td.l { text-align: left; }
table.ord td.l .dv { display: block; font-size: 7pt; color: #333; font-weight: 400; }
table.ord td.ttl { background: #fde9d9; font-size: 22pt; font-weight: 700; height: 52px; }
table.ord td.sub { border: 0; font-size: 9pt; height: 20px; }
table.ord tr.hd td { font-weight: 700; font-size: 12pt; }
table.ord td.y, table.ord tr.hd td.y { background: #ffff00; font-weight: 700; }
table.ord td.hd2 { font-size: 12pt; }
table.ord td.b { font-weight: 700; }
table.ord td.big { font-size: 14pt; }
table.ord td.tl { background: #dce6f1; font-weight: 700; font-size: 12pt; }
table.ord td.nb { border: 0; }
table.ord td.hd3 { font-weight: 700; height: 28px; }
table.ord td.hd3 .txt { font-weight: 400; }
table.ord td.ordnotes { height: 240px; vertical-align: top; text-align: left; }
table.ord .ordpre { white-space: pre-wrap; font-size: 10pt; }
.ord td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ICS 206 pages: marking sits directly under the last section on each page */
.sheet.pg206 { position: relative; padding: .4in .45in .35in; }
/* divisions on the page before the last get taller rows when the last division moves down to join sections 7 and 8 */
table.f206 tbody.div-block.grow > tr > td { padding-top: calc(2px + var(--pg, 0px)); padding-bottom: calc(2px + var(--pg, 0px)); }
.sheet.pg206 .mk-scr { position: absolute; left: .45in; right: .45in; top: .15in; text-align: center; font: 700 8pt Arial, sans-serif; }
.sheet.pg206 .mk-bot206 { position: relative; text-align: center; font: 700 8pt Arial, sans-serif; padding-top: 3px; color: #000; }
.sheet.pg206 .mk-bot206 span { position: absolute; right: 0; top: 3px; font-weight: 400; font-size: 7pt; }

/* Meal Count Report */
.mealr .meal-title { font: 700 20pt Arial, sans-serif; text-align: center; }
.mealr .meal-sub { font: 9pt Arial, sans-serif; text-align: center; margin: 2px 0 10px; }
.mealr .meal-note { font: 8pt Arial, sans-serif; margin-top: 8px; color: #333; }
table.meal { width: calc(100% - 2px); margin: 0 1px 12px; border-collapse: collapse; table-layout: fixed; font: 9.5pt Arial, sans-serif; }
table.meal td { border: 1px solid #000; padding: 3px 5px; vertical-align: middle; }
table.meal td.sec { background: #d9d9d9; font-weight: 700; font-size: 12pt; }
table.meal tr.hd td { background: #f2f2f2; font-weight: 700; text-align: center; font-size: 9pt; }
table.meal td.c { text-align: center; } table.meal td.r { text-align: right; font-weight: 700; } table.meal td.b { font-weight: 700; } table.meal td.big { font-size: 12pt; }
table.meal tr.tot td { background: #f2f2f2; }
table.meal .own { font-size: 8pt; margin-top: 2px; font-style: italic; }
table.meal tr { break-inside: avoid; }
.mealr td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.meal-screen .mealr { background: #fff; color: #000; padding: 12px; border: 1px solid var(--line); overflow-x: auto; }

/* Meal Count: management team questions */
table.meal .mq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 9.5pt; }
table.meal .mq-t { font-weight: 700; flex: 1 1 320px; }
table.meal .mq-yn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
table.meal .mq-box { display: inline-block; width: 11px; height: 11px; border: 1px solid #000; font: 700 9px/11px Arial, sans-serif; text-align: center; }
table.meal .mq-f { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
table.meal .mq-n { width: 60px; }
table.meal .mq-v { display: inline-block; min-width: 40px; border-bottom: 1px solid #000; padding: 0 4px; }

/* Meal Count Report prints landscape */
@media screen { .sheet.mland { height: auto; min-height: 8.5in; display: block; } }
.sheet.mland td { overflow: visible; }

/* ================= ICS 220 WF Air Operations Summary (NWCG 03/25 layout, landscape letter) ================= */
.sheet.s220 { padding: .3in .35in .25in; display: flex; flex-direction: column; overflow: hidden; font-family: Arial, "Liberation Sans", Helvetica, sans-serif; color: #000; }
.s220 .in220 { flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.s220 .mk220 { text-align: center; font: 700 7.5pt Arial, sans-serif; }
.s220 .r220 { display: flex; gap: 4px; align-items: stretch; }
.s220 .r220 > table { align-self: flex-start; }
/* side-by-side blocks share the row width (after the gaps) in proportion, so nothing runs past the right margin */
.s220 .r220 > table { flex: 1 1 0; width: auto; min-width: 0; }
.s220 .r220 > .w28 { flex-grow: 28; } .s220 .r220 > .w30 { flex-grow: 30; } .s220 .r220 > .w42 { flex-grow: 42; } .s220 .r220 > .w58 { flex-grow: 58; } .s220 .r220 > .w70 { flex-grow: 70; }
table.t220 { border-collapse: collapse; width: 100%; table-layout: fixed; border: 1.5px solid #000; }
table.t220 td { border: 1px solid #000; padding: 1px 3px; font-size: var(--fs220, 7pt); vertical-align: middle; overflow-wrap: anywhere; height: var(--rh220, 13px); }
table.t220 td.c { text-align: center; }
table.t220 .b { font-weight: 700; }
table.t220 .l { font-weight: 700; font-size: 6.5pt; }
table.t220 .v { font-size: 8.5pt; text-align: center; min-height: 12px; }
table.t220 td.sh { font-weight: 700; font-size: 7.5pt; background: #d9d9d9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
table.t220 tr.c220h td { font-weight: 700; font-size: 6.5pt; text-align: center; background: #f2f2f2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
table.t220.hd td { vertical-align: top; }
table.t220.hd td.ttl { font-weight: 700; font-size: 11pt; text-align: center; vertical-align: middle; }
table.t220.hd td.ttl span { font-size: 8pt; }
table.t220.hd td.nest { padding: 0; border: 0; }
table.t220.in { border: 0; }
table.t220.in td { border-top: 1px solid #000; border-bottom: 0; }
table.t220.in td:first-child { border-left: 0; } table.t220.in td:last-child { border-right: 0; }
table.t220.rm td.rmc { vertical-align: top; height: calc(var(--rh220, 13px) * 3.4); }
.s220 .r220 > .w50 { flex-grow: 50; }
.s220 .r220 > table.rm { align-self: stretch; }
table.t220.rm .rmv { font-size: 7.5pt; margin-top: 1px; }
table.t220 td.ck { font-size: 6.5pt; white-space: nowrap; }
table.t220 .xb { display: inline-block; width: 8px; height: 8px; border: 1px solid #000; font-size: 6pt; line-height: 8px; text-align: center; vertical-align: -1px; }
table.t220 td.notfr { height: calc(var(--rh220, 13px) * 4); font-size: 9pt; }
.s220 .ft220 { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; font-size: 7pt; }
.s220 .ft220 > span { flex: 1; } .s220 .ft220 .mk { flex: 3; white-space: nowrap; text-align: center; font-weight: 700; font-size: 7.5pt; }
@media print { .sheet.s220 { height: calc(8.5in - 2px); } } /* always exactly one landscape page */
/* portrait ICS 220 option */
.sheet.s220.s220p { width: 8.5in; height: 11in; padding: .35in .35in .3in; }
@media print {
  @page p220p { size: letter portrait; margin: 0; }
  .sheet.s220.s220p { page: p220p; width: 8.5in; height: calc(11in - 2px); }
}

.p2-203 { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-2); margin-right: 6px; }
.top-inc { margin-left: 8px; }
.past-list { display: grid; gap: 8px; margin-top: 10px; }
.past-search { width: 100%; font-size: 1rem; padding: 10px 12px; margin-top: 4px; }
.past-inc { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.past-inc > summary { cursor: pointer; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.past-inc > summary .hint { flex-basis: 100%; }
.past-pers { display: grid; gap: 6px; padding: 0 12px 12px; }
.past-per { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: baseline; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); cursor: pointer; font: inherit; color: inherit; }
.past-per:hover { border-color: var(--accent); }

/* Phone List (letter portrait, from the team's template) */
.sheet.phl { font-family: Calibri, Carlito, Arial, sans-serif; color: #000; }
.phl .phl-head { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.phl .phl-head td { vertical-align: middle; border: 0; padding: 0 4px; }
.phl .phl-head td.lg { width: 30%; } .phl .phl-head td.lg img { max-height: 1.1in; max-width: 2.2in; }
.phl .phl-head td.ttl { width: 25%; font-size: 18pt; font-weight: 700; text-align: center; }
.phl .phl-head td.tm { width: 45%; font-size: 18pt; font-weight: 700; text-align: right; line-height: 1.25; }
table.phl-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.phl-t th { background: #4f81bd; color: #000; font-weight: 700; font-size: 9.5pt; border: 1px solid #000; padding: 1px 3px; }
table.phl-t td { border: 1px solid #000; font-size: 9.5pt; text-align: center; padding: 1px 3px; height: 15px; overflow-wrap: anywhere; }
table.phl-t td.em { text-decoration: underline; }
table.phl-t thead { display: table-header-group; } table.phl-t tr { break-inside: avoid; }
.phl tr.ph-command td { background: #ffff99; } .phl tr.ph-ops td { background: #e6b8b7; } .phl tr.ph-planning td { background: #c5d9f1; }
.phl tr.ph-medical td { background: #d9d9d9; } .phl tr.ph-logistics td { background: #fcd5b4; } .phl tr.ph-finance td { background: #c4d79b; }
.phl th, .phl td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
table.phl-ed tr.ph-command td { background: #ffffcc; } table.phl-ed tr.ph-ops td { background: #f3dcdb; } table.phl-ed tr.ph-planning td { background: #e2ecf8; }
table.phl-ed tr.ph-medical td { background: #ececec; } table.phl-ed tr.ph-logistics td { background: #fdeadb; } table.phl-ed tr.ph-finance td { background: #e2ebcd; }

/* ADMIN button (top right) and page */
.topbar { padding-right: 112px; } /* room for the ADMIN button, pinned to the top right corner */
.topbar:has(.ie-btn) { padding-right: 300px; } /* and the Import/Export Incident button beside it */
.topbar .corner-btns { position: absolute; right: 16px; top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.topbar .ie-stack { display: grid; gap: 6px; }
.topbar .ie-stack .btn { width: 100%; justify-content: center; }
.topbar .v215-btn { font-weight: 700; }
.topbar .ie-btn { font-weight: 700; }
.topbar .ie-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.topbar .admin-btn { font-weight: 800; letter-spacing: .06em; border-color: var(--accent, #b4441c); color: var(--accent, #b4441c); }
.topbar .admin-btn.on, .topbar .admin-btn:hover { background: var(--accent, #b4441c); color: #fff; }
.role-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; margin-top: 14px; font-size: 13px; }
.role-legend div { display: flex; flex-direction: column; padding: 6px 10px; border-left: 3px solid var(--line, #ccc); }
.role-legend b { font-size: 12px; letter-spacing: .05em; }
.role-legend span { color: var(--muted, #666); }
.adm-add .field { margin: 0; }
.subtabs .subtab.lib-tab { margin-left: 10px; border-style: dashed; }

/* resource lists: narrow columns, two-word headers stacked */
.res-wrap table.data th.stk { line-height: 1.15; text-align: center; padding-left: 2px; padding-right: 2px; letter-spacing: .02em; }
.res-wrap table.data td input.lwd { text-align: center; }

/* resource comments: a single line until selected, then tall enough for all of it */
table.data td textarea.cmt { display: block; width: 100%; box-sizing: border-box; height: 31px; min-height: 0; line-height: 19px; padding: 5px 6px; resize: none; overflow: hidden; white-space: nowrap; }
table.data td textarea.cmt:focus { white-space: pre-wrap; }
table.data td textarea.cmt:focus { overflow: auto; position: relative; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* resource lists: name, leader, division, drop-off and pick-up open to double width while being edited */
.res-wrap table.data td.wxc { position: relative; }
.res-wrap table.data td.wxc .wx:focus { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: calc(200% - 8px); z-index: 4; background: var(--field); box-shadow: 0 4px 14px rgba(0,0,0,.14); }

/* ICS 215 Expanded: one row per resource */
table.t215.rx { font-size: 7pt; }
table.t215.rx td { padding: 1px 3px; overflow: hidden; }
table.t215.rx tr.gh td { text-align: center; font-weight: 700; font-size: 8pt; }
table.t215.rx tr.c215h td { background: #d9d9d9; font-weight: 700; text-align: center; font-size: 6.5pt; }
table.t215.rx tr.rx215 td { height: 15px; white-space: nowrap; text-overflow: ellipsis; }
table.t215.rx td.tf1 { background: #c6efce; } table.t215.rx td.tf2 { background: #ffc7ce; } table.t215.rx td.tf3 { background: #bdd7ee; } table.t215.rx td.tf4 { background: #fff2cc; }

/* ICS 215 Dual Column: two halves side by side with a small gap */
table.t215.rd { font-size: 7pt; }
table.t215.rd td { padding: 1px 3px; overflow: hidden; }
table.t215.rd tr.rd215 td { height: 15px; white-space: nowrap; text-overflow: ellipsis; }
table.t215.rd tr.c215h td { background: #d9d9d9; font-weight: 700; text-align: center; font-size: 6.5pt; }
table.t215.rd td.gap, table.t215.rd tr.c215h td.gap { border-top: 0; border-bottom: 0; background: none; }
table.t215.rd td.ghd { text-align: center; font-weight: 700; font-size: 8pt; }
table.t215.rd td.cm { font-size: 6pt; }
table.t215.rd td.tf1 { background: #c6efce; } table.t215.rd td.tf2 { background: #ffc7ce; } table.t215.rd td.tf3 { background: #bdd7ee; } table.t215.rd td.tf4 { background: #fff2cc; }

/* ICS 205 portrait (letter): two rows per channel */
.sheet.s205p { width: 8.5in; height: 11in; padding: .35in .4in .3in; }
.sheet.s205p .colh td { height: 18px; }
.sheet.s205p .foot td { font-size: 8.5pt; }
.sheet.s205p .foot .lbl2 { font-weight: 700; font-size: 8pt; }
.sheet.s205p .notes div:nth-child(1) { padding-left: 0; } .sheet.s205p .notes div:nth-child(3) { padding-right: 0; }
@media print {
  @page p205p { size: letter portrait; margin: 0; }
  .sheet.s205p { page: p205p; width: 8.5in; height: calc(11in - 2px); }
}
.sheet.s205p table.foot205p { margin-top: 10px; }
.sheet.s205p .notes { grid-template-columns: 1fr 1.6fr 1fr; }
.sheet.s205p .notes div:nth-child(2) { white-space: nowrap; }
/* ICS 205: Function, Channel Name and Assignment centred (landscape) */
.sheet .ch td:nth-child(2), .sheet .ch td:nth-child(3), .sheet .ch td:nth-child(4) { text-align: center; }
/* ICS 205 (landscape and portrait): thin 1px lines throughout, no thick borders */
/* 204 section 8: Channel Name and Assignment centred */
table.com204 td:nth-child(2), table.com204 td:nth-child(3) { text-align: center; }
/* New Kind/Type form (Resources tab) */
.newkind { margin: 10px 0 14px; padding: 12px 14px; }
.newkind .nk-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.newkind .field select { min-width: 150px; }
.newkind .nk-abbr input { width: 150px; }
.newkind .nk-name { flex: 1 1 240px; }
.newkind p { margin: 8px 0 0; }
.section-head > .btn, .section-head > .head-btns { align-self: flex-start; margin-top: 4px; }
.head-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* Resources tab search, at the right end of the Import / Add / Sort row */
.res-tools { align-items: center; flex: 1 1 auto; justify-content: flex-end; }
.res-search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.res-search input { width: 230px; min-height: 0; height: 32px; padding: 4px 10px; }
/* Import from PDF preview */
.pdf-prev { max-height: 52vh; overflow: auto; margin-top: 10px; }
.pdf-prev table { font-size: .85rem; }
.pdf-prev td, .pdf-prev th { padding: 4px 8px; white-space: nowrap; }
.pdf-prev tr.dup td { color: var(--ink-2); }
.modal:has(.pdf-prev) { width: min(1000px, 100%); }
/* second-step warning before a resource import replaces the list */
.confirm-bg { z-index: 70; }
.confirm-box { width: min(420px, 100%); border-top: 4px solid var(--bad); }
.confirm-box h2 { margin: 0; color: var(--bad); }
.confirm-box p { margin: 0; font-weight: 600; }
.io-opts { display: grid; gap: 8px; margin-top: 12px; }
.io-opts .io-all { border-top: 1px solid var(--line, #ddd); padding-top: 8px; }
/* Duplicate Res # / Leader dialog */
.modal:has(.dup-grp) { width: min(900px, 100%); }
.dup-warn { color: var(--bad); }
.dup-grp h3 { margin: 6px 0; font-size: .95rem; }
.dup-grp td.hl { background: #fff3c4; font-weight: 600; }
.modal .dup-grp input.dupfix { width: 100%; min-height: 0; height: 30px; padding: 3px 8px; border: 1px solid #b9b9b0; border-radius: 4px; background: #fffdf5; }
/* 204 default block 9 boxes on the IAP Forms toolbar */
.sig204-wrap { margin-left: auto; display: grid; gap: 4px; justify-items: end; }
.sig204-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: flex-end; }
.sig204-note { margin: 0; font-size: .8rem; color: var(--ink-2); font-style: italic; }
.sig204-bar .sigf { display: flex; align-items: center; gap: 6px; }
.sig204-bar .sigf > span { font: 600 .72rem var(--f-cond); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.sig204-bar input { min-height: 0; height: 32px; padding: 4px 8px; width: 160px; }
.sig204-bar input[type=date] { width: 140px; }
/* Cover: the QR code sits in its own box joined to the Notes box (same top and bottom, shared border) */
.cover .cv-notesrow:not(.full) { gap: 0; align-items: stretch; }
.cover .cv-notesrow:not(.full) .cv-qrcol { border: 2px solid #000; border-left: 0; padding: 8px 10px; }

/* ================= Virtual 215 board (its own browser tab) ================= */
body.board-mode { background: #2b4a63; }
.vb-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 12px 20px; background: rgba(0,0,0,.28); color: #fff; position: sticky; top: 0; left: 0; z-index: 5; }
.vb-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vb-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--accent, #b4441c); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.vb-top h1 { margin: 0; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.vb-top p { margin: 2px 0 0; font-size: .92rem; opacity: .9; }
.vb-legend { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vb-lg { font: 600 .72rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; color: #111; }
.vb-lg.g-oh, .vb-card.g-oh { --gc: #adb9ca; } .vb-lg.g-cr, .vb-card.g-cr { --gc: #00b050; } .vb-lg.g-en, .vb-card.g-en { --gc: #ff0000; } .vb-lg.g-eq, .vb-card.g-eq { --gc: #e6d200; } .vb-lg.g-md, .vb-card.g-md { --gc: #f4b183; }
.vb-lg { background: var(--gc); } .vb-lg.g-en { color: #fff; }
.vb-board { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 28px; overflow-x: auto; min-height: calc(100vh - 70px); max-width: none; }
.vb-list { flex: 0 0 290px; background: #ebecf0; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 110px); transition: box-shadow .12s, background .12s; }
.vb-list.unassigned { background: #f6e7c8; }
.vb-list.over { box-shadow: 0 0 0 3px #ffd54a inset; background: #fff8dc; }
.vb-lh { padding: 4px 6px 2px; }
.vb-lh h2 { margin: 0; font-size: 1.02rem; color: #172b4d; }
.vb-lh p { margin: 2px 0 0; font-size: .78rem; color: #44546f; }
.vb-lh .vb-count { font-weight: 600; }
.vb-cards { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 40px; padding: 2px; }
.vb-card { background: #fff; border-radius: 8px; padding: 7px 9px 7px 12px; box-shadow: 0 1px 0 rgba(9,30,66,.25); border-left: 6px solid var(--gc, #ccc); cursor: grab; font-size: .86rem; color: #172b4d; }
.vb-card.g-md { border-left-color: #f4b183; } /* medical: light orange (white disappeared against the card) */
.vb-card.member { margin-left: 14px; }
.vb-card.tf { outline: 2px solid #5b6b85; outline-offset: -2px; }
.vb-card.dragging { opacity: .45; }
.vb-card:not([draggable]) { cursor: default; }
.vb-c1 { display: flex; align-items: baseline; gap: 6px; }
.vb-kind { font: 700 .74rem var(--f-mono, monospace); background: #f1f2f4; border-radius: 4px; padding: 1px 5px; flex: none; }
.vb-name { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: manual; }
.vb-ia { color: #b4441c; }
.vb-p { font: 700 .74rem var(--f-mono, monospace); background: #dfe1e6; border-radius: 10px; padding: 1px 7px; flex: none; }
.vb-c2 { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 3px; font-size: .76rem; color: #44546f; }
.vb-c3 { margin-top: 3px; font-size: .72rem; color: #5b6b85; font-style: italic; }
.vb-drop { border: 2px dashed #b3bac5; border-radius: 8px; padding: 12px; text-align: center; color: #6b778c; font-size: .82rem; }
.vb-more { background: #fff; border-radius: 8px; padding: 6px 9px; font-size: .8rem; color: #172b4d; }
.vb-more summary { cursor: pointer; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #44546f; }
.vb-more summary span { background: #dfe1e6; border-radius: 10px; padding: 0 6px; margin-left: 4px; }
.vb-tpe, .vb-sp, .vb-ch { padding: 5px 0; border-top: 1px solid #ebecf0; line-height: 1.35; }
.vb-tpe b { color: #44546f; font-size: .72rem; text-transform: uppercase; }
.vb-empty { padding: 30px; } .vb-empty .empty { background: #fff; }
.vb-ro { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; padding: 6px 14px; border-radius: 6px; font-size: .85rem; }
@media print { body.board-mode { background: #fff; } .vb-board { flex-wrap: wrap; overflow: visible; } .vb-list { max-height: none; break-inside: avoid; } }
.vb-list.pending { background: #fde2d6; border: 2px dashed #c4512b; }
.vb-list.pending .vb-lh h2 { color: #8a2f12; }
.vb-mv { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #d5d9e0; font-size: .78rem; color: #44546f; }
.vb-mv small { display: block; color: #6b778c; font-size: .7rem; }
.vb-ap { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.vb-ap label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #1e6b2f; cursor: pointer; }
.vb-ap input { width: 16px; height: 16px; min-height: 0; margin: 0; }
.vb-undo { background: none; border: 0; color: #6b778c; font-size: .74rem; text-decoration: underline; cursor: pointer; padding: 0; }
.vb-pc { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.vb-hist { font: 600 .64rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border: 1px solid #b3bac5; border-radius: 4px; background: #f7f8f9; color: #44546f; cursor: pointer; line-height: 1.5; }
.vb-hist:hover { background: #e9f2ff; border-color: #579dff; color: #0c66e4; }
.modal:has(table.hs) { width: min(820px, 100%); }
.hs-wrap { max-height: 60vh; overflow: auto; margin-top: 8px; }
table.hs td { font-size: .86rem; vertical-align: top; }
table.hs tr.hs-start td { background: #f4f5f7; }
table.hs tr.hs-req td { color: #8a5a00; } table.hs tr.hs-cancel td { color: #6b778c; }
table.hs .hs-ok { font-size: .72rem; font-weight: 700; color: #1e6b2f; background: #dcfff1; border-radius: 4px; padding: 0 5px; }
.vb-chg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.vb-chl { font: 700 .68rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .05em; color: #44546f; min-width: 42px; }
.vb-chg s { color: #8590a2; }
.vb-chg small { flex-basis: 100%; color: #6b778c; font-size: .68rem; }
.vb-ed { min-height: 0; height: 26px; padding: 2px 6px; font-size: .8rem; width: 140px; border: 1px solid #b3bac5; border-radius: 4px; background: #fffdf5; }
.vb-ed[type=date] { width: 130px; }
.vb-pc .vb-hist + .vb-hist { margin-top: 0; }
.vb-irow { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 3px; }
.vb-ilink { background: none; border: 0; padding: 0; color: #0c66e4; font-size: .74rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.vb-ptag { font-size: .68rem; font-weight: 700; color: #a54800; background: #fff3e0; border-radius: 4px; padding: 0 6px; }
.vb-auto { font-size: .66rem; color: #6b778c; font-style: italic; }
.vb-add { width: 100%; margin-top: 6px; padding: 5px 8px; border: 1px dashed #8590a2; border-radius: 6px; background: #f7f8f9; color: #44546f; font-weight: 600; font-size: .78rem; cursor: pointer; text-align: left; }
.vb-add:hover { background: #e9f2ff; border-color: #579dff; color: #0c66e4; }
.vb-add + .vb-ptag { display: inline-block; margin-top: 4px; }
.vb-chgcard { border-left-color: #6e5dc6; cursor: default; }
.vb-was { margin-top: 5px; font-size: .76rem; color: #8590a2; } .vb-was div { text-decoration: line-through; }
.vb-tl { display: grid; gap: 2px; margin-top: 5px; } .vb-tl > span { font: 700 .66rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .05em; color: #44546f; }
.vb-tl textarea.vb-ed { width: 100%; height: auto; min-height: 44px; resize: vertical; }
.vc-grid { display: grid; gap: 10px; margin-top: 10px; } .vc-grid textarea { width: 100%; }
/* the whole list scrolls (cards + open sections), so cards are never squeezed */
.vb-list { overflow-y: auto; }
.vb-list > * { flex-shrink: 0; }
.vb-cards { overflow: visible; }
.vb-chgcard.del { border-left-color: #c9372c; } .vb-chgcard.del .vb-kind { background: #ffeceb; color: #ae2e24; }
/* Virtual 215: first column = New Resource box above Unapproved Changes */
.vb-col1 { flex: 0 0 300px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 110px); overflow-y: auto; }
.vb-col1 > .vb-list { flex: 0 0 auto; max-height: none; overflow: visible; }
.vb-new { background: #e3f0e6; border: 2px solid #2f7d45; border-radius: 10px; padding: 14px 16px; flex: none; width: min(420px, 100%); box-shadow: 0 12px 40px rgba(0,0,0,.35); max-height: 92vh; overflow: auto; }
.vb-newbg { z-index: 40; }
.vb-new .hint { margin: 8px 0 0; font-size: .78rem; }
.vb-new h2 { margin: 0 0 6px; font-size: 1.02rem; color: #1e5c31; }
.vb-nfgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.vb-nf { display: grid; gap: 2px; min-width: 0; }
.vb-nf > span { font: 700 .64rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .05em; color: #44546f; }
.vb-nf input, .vb-nf select { min-height: 0; height: 28px; padding: 2px 6px; font-size: .8rem; width: 100%; border: 1px solid #b3bac5; border-radius: 4px; background: #fff; }
.vb-nf-ia { grid-column: 1; align-content: start; } .vb-nf-ia input { width: 18px; height: 18px; }
.vb-nf-name, .vb-nf-leader, .vb-nf-div, .vb-nf-tfst { grid-column: span 2; }
.vb-nfbtns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.vb-newcard { border-style: dashed; border-width: 1px 1px 1px 6px; border-color: #2f7d45; }

.vb-legend { justify-self: end; }
.vb-newbtn { justify-self: center; background: #2f7d45; color: #fff; border-color: #2f7d45; font-weight: 700; padding: 8px 18px; }
.vb-newbtn:hover { background: #25663a; }
@media (max-width: 900px) { .vb-top { grid-template-columns: 1fr; } .vb-legend, .vb-newbtn { justify-self: start; } }
/* Kind/Type type-ahead list */
.kp { position: fixed; z-index: 90; background: var(--panel, #fff); border: 1px solid #8590a2; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.28); padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.kp-q { min-height: 0; height: 32px; padding: 4px 8px; font: 600 .9rem var(--f-mono, monospace); text-transform: uppercase; border: 1px solid #b3bac5; border-radius: 5px; }
.kp-q::placeholder { text-transform: none; font-family: inherit; font-weight: 400; }
.kp-list { overflow-y: auto; display: flex; flex-direction: column; }
.kp-row { display: flex; gap: 10px; align-items: baseline; text-align: left; border: 0; background: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; color: inherit; font-size: .85rem; line-height: 1.25; }
.kp-row b { font-family: var(--f-mono, monospace); min-width: 72px; flex: none; }
.kp-row span { color: var(--ink-2, #555); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-row:hover { background: #eef3fb; } .kp-row.hi { background: #dbe8ff; } .kp-row.cur b::after { content: ' ✓'; color: #2f7d45; }
.kp-clear { color: var(--ink-2, #666); font-style: italic; }
.kp-g { font: 700 .66rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .06em; color: #8590a2; padding: 6px 8px 2px; }
.kp-none { padding: 8px; color: #8590a2; font-size: .85rem; }
/* Open Virtual 215 / Open Status Check-In side by side under Import/Export Incident */
.topbar .ie-row2 { display: flex; gap: 6px; }
.topbar .ie-row2 .btn { flex: 1; white-space: nowrap; }
.topbar:has(.ie-btn) { padding-right: 420px; }
/* Status Check-In page */
.ci-tag { justify-self: center; font: 700 .9rem var(--f-cond, sans-serif); letter-spacing: .08em; text-transform: uppercase; background: #2f7d45; color: #fff; padding: 6px 14px; border-radius: 6px; }
.ci-main { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; padding: 24px 16px 40px; max-width: none; }
.ci-form { width: min(520px, 100%); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ci-form .vb-nf input, .ci-form .vb-nf select { height: 34px; font-size: .92rem; }
.ci-wait { width: min(360px, 100%); background: #ebecf0; border-radius: 10px; padding: 12px; }
.ci-wait h2 { margin: 0 0 8px; font-size: 1rem; color: #172b4d; } .ci-wait h2 span { background: #dfe1e6; border-radius: 10px; padding: 0 8px; font-size: .85rem; }
.ci-row { background: #fff; border-radius: 6px; padding: 6px 9px; margin-top: 6px; font-size: .86rem; color: #172b4d; }
.ci-row small { display: block; color: #6b778c; font-size: .72rem; }
/* Virtual 215 fills the window exactly: header on top, the board below it with its sideways scroll bar always at the bottom of
   the screen; each list scrolls up/down on its own */
html:has(body.v215-mode), body.v215-mode { height: 100%; overflow: hidden; }
body.v215-mode #app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.v215-mode .vb-top { position: relative; flex: none; }
body.v215-mode .vb-board { flex: 1 1 auto; min-height: 0; height: auto; overflow-x: scroll; overflow-y: hidden; padding: 14px 20px 10px; align-items: stretch; scrollbar-gutter: stable; }
body.v215-mode .vb-list, body.v215-mode .vb-col1 { max-height: 100%; align-self: flex-start; }
body.v215-mode .vb-col1 > .vb-list { max-height: none; }
body.v215-mode .vb-board::-webkit-scrollbar { height: 16px; }
body.v215-mode .vb-board::-webkit-scrollbar-track { background: rgba(0,0,0,.25); border-radius: 8px; }
body.v215-mode .vb-board::-webkit-scrollbar-thumb { background: #c9d3df; border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
body.v215-mode .vb-board::-webkit-scrollbar-thumb:hover { background-color: #ffffff; }
body.v215-mode .vb-board { scrollbar-color: #c9d3df rgba(0,0,0,.25); }
body.v215-mode .vb-board { margin: 0; width: 100%; min-width: 0; box-sizing: border-box; }
/* the board itself scrolls both ways: the up/down bar on the right and the sideways bar along the bottom are always on screen;
   lists grow to their full height instead of scrolling inside */
body.v215-mode .vb-board { overflow: scroll; align-items: flex-start; }
body.v215-mode .vb-list, body.v215-mode .vb-col1 { max-height: none; overflow: visible; }
body.v215-mode .vb-board::-webkit-scrollbar { width: 16px; height: 16px; }
body.v215-mode .vb-board::-webkit-scrollbar-corner { background: rgba(0,0,0,.25); }
/* Resources tab: changes waiting for approval (Virtual 215 / Status Check-In) */
.pend-btn { background: #ffd6d2; border-color: #e0786e; color: #8a1f14; font-weight: 700; animation: pendFlash 10s infinite; }
.pend-btn span { background: #c9372c; color: #fff; border-radius: 10px; padding: 0 7px; margin-left: 4px; font-size: .8rem; }
.pend-btn:hover { background: #ffbdb6; }
@keyframes pendFlash { 0%, 4%, 8%, 10%, 100% { background: #ffd6d2; color: #8a1f14; box-shadow: none; } 2%, 6% { background: #ff6b5e; color: #fff; box-shadow: 0 0 0 4px rgba(255,107,94,.35); } }
@media (prefers-reduced-motion: reduce) { .pend-btn { animation: none; } }
.pend-bg { z-index: 45; }
.pend-dlg { position: relative; width: min(380px, 100%); max-height: 92vh; display: flex; }
.pend-dlg .vb-list { flex: 1; max-height: 92vh; overflow-y: auto; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.pend-x { position: absolute; top: 8px; right: 8px; z-index: 2; border: 0; background: rgba(255,255,255,.7); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 14px; color: #8a2f12; }
.topbar:has(.pend-btn) { padding-right: 640px; }
.topbar .ie-row2 .pend-btn { flex: 0 0 auto; }
.topbar .pend-btn span { font-size: .72rem; }
.topbar .ie-stack { grid-template-columns: max-content; }
.topbar .ie-stack .ie-row2 .btn { width: auto; flex: 1 0 auto; }
.topbar .ie-stack .ie-row2 .pend-btn { flex: 0 0 auto; }
/* Import/Export Incident keeps its own width (right-aligned) instead of stretching over the buttons below */
.topbar .ie-stack { justify-items: end; }
.topbar .ie-stack > .ie-btn { width: auto; }
/* Comms / Medical / Air OPS Plan windows */
.plan-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 20px; padding: 10px 20px; background: var(--panel, #fff); border-bottom: 1px solid var(--line, #ddd); position: sticky; top: 0; z-index: 6; }
.plan-top h1 { margin: 0; font-size: 1.25rem; }
.plan-top p { margin: 3px 0 0; }
.plan-per { min-height: 0; height: 30px; padding: 2px 8px; font-size: .85rem; max-width: 100%; }
.plan-tag { justify-self: center; font: 700 1rem var(--f-cond, sans-serif); letter-spacing: .06em; text-transform: uppercase; background: var(--ink, #1f2a37); color: var(--bg, #fff); padding: 7px 16px; border-radius: 6px; }
.plan-tag span { font: 600 .78rem var(--f-mono, monospace); opacity: .75; margin-left: 6px; }
.plan-top .vb-legend { justify-self: end; }
.tabs.none { display: none; }
.plan-only:empty { display: none; } .plan-only { padding: 8px 20px; color: var(--ink-2); font-size: .85rem; }
.topbar .ie-row2 { flex-wrap: wrap; justify-content: flex-end; }
.topbar:has(.ie-btn) { padding-right: 720px; }
.topbar:has(.pend-btn) { padding-right: 860px; }
@media (max-width: 1500px) { .topbar:has(.ie-btn), .topbar:has(.pend-btn) { padding-right: 16px; padding-top: 96px; } }
@media print { .plan-top { display: none !important; } }
/* top bar layout: row 1 = brand, incident / period, + New period, + New Incident, Past Incidents ... status, Import/Export + ADMIN (top right);
   row 2 = window buttons starting at the left edge */
.topbar .corner-btns { align-items: center; }
.topbar:has(.ie-btn), .topbar:has(.pend-btn) { padding-right: 330px; padding-top: 10px; }
@media (max-width: 1500px) { .topbar:has(.ie-btn), .topbar:has(.pend-btn) { padding-right: 330px; padding-top: 10px; } }
.topbar .tb-row2 { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; order: 99; }
.topbar .tb-row2 .btn { white-space: nowrap; }
@media (max-width: 760px) { .topbar:has(.ie-btn) { padding-right: 16px; padding-top: 52px; } }
.role-landing { max-width: 560px; margin: 40px auto; text-align: center; } .role-landing .row { justify-content: center; margin-top: 14px; }
/* Status Check-In: check-in form at the left edge, waiting list in the centre, Update Existing Resource at the right edge */
.ci-main { display: grid; grid-template-columns: minmax(360px, 480px) minmax(280px, 1fr) minmax(360px, 480px); gap: 20px; align-items: start; justify-content: stretch; padding: 20px 16px 40px; }
.ci-main > .ci-wait { justify-self: center; width: min(380px, 100%); }
.ci-main > .ci-form { width: 100%; }
@media (max-width: 1150px) { .ci-main { grid-template-columns: 1fr; justify-items: center; } .ci-main > .ci-form { width: min(520px, 100%); } }
.ci-uh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ci-uh h2 { margin: 0; }
.ci-q { min-height: 0; height: 32px; padding: 4px 10px; width: 230px; border: 1px solid #8fae98; border-radius: 16px; background: #fff; font-size: .85rem; }
.ci-results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ci-results:empty { display: none; }
.ci-hit { text-align: left; background: #fff; border: 1px solid #c9d6cc; border-radius: 6px; padding: 6px 9px; cursor: pointer; font-size: .85rem; color: #172b4d; }
.ci-hit:hover { background: #eef7f0; border-color: #2f7d45; }
.ci-none { font-size: .82rem; color: #6b778c; padding: 4px 2px; }
.ci-picked { margin: 10px 0 6px; padding: 6px 9px; background: #fff; border-radius: 6px; font-size: .88rem; border-left: 4px solid #2f7d45; }
.ci-upd { margin-top: 0; }
.ci-tg { font: 700 .62rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: 1px 5px; margin-right: 6px; }
.ci-tg.n { background: #dcfff1; color: #1e6b2f; } .ci-tg.u { background: #fff3e0; color: #a54800; }
.ci-uh { flex-wrap: nowrap; }
.ci-uh h2 { white-space: nowrap; font-size: 1rem; }
.ci-q { width: auto; flex: 0 1 210px; min-width: 120px; }
/* ICS 205 portrait: a narrow grey row between channels makes each channel stand apart */
/* Print IAP page numbers on edge-to-edge sheets */
.sheet .pg-all { display: none; }
.print-stage .sheet:has(> .pg-all) { position: relative; }
.print-stage .sheet > .pg-all { display: block; position: absolute; right: .4in; bottom: .3in; font: normal 8pt Arial, sans-serif; color: #000; z-index: 2; }
.print-stage .sheet.att > .pg-all { right: .25in; bottom: .3in; background: #fff; padding: 0 3px; }
/* ICS 205 Portrait #3 (test layout): landscape columns, wrapped text, rows stretched to fill the page */
.sheet.s205r table.th205r { margin-top: -1px; }

.sheet.s205r .th205r .colh td { height: 26px; font-size: 7pt; }
.sheet.s205r .fill205r { flex: 1 1 auto; min-height: 0; display: flex; }
.sheet.s205r table.bd205r { height: 100%; margin-top: -1px; }
.sheet.s205r .cr td { font-size: 9pt; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; padding: 1px 3px; }
.sheet.s205r .cr td.c-num { font-size: 8.5pt; font-weight: 700; text-align: center; }
.sheet.s205r .cr td.c-freq, .sheet.s205r .cr td.c-mode { text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.sheet.s205r .cr td.c-small { font-size: 7.5pt; }
.sheet.s205r .cr + .cr td { border-top: 1px solid #000; }
.sheet.s205r table.foot205p { margin-top: 8px; }
.sheet.s205r tr.cr { height: 6.25%; } /* 16 equal rows; a row with a lot of wrapped text can still grow */
/* more top tabs now that the IAP forms sit on the bar: wrap to a second line rather than hide off the edge */
.tabs { flex-wrap: wrap; overflow-x: visible; }
.tab { padding: 10px 12px; }
/* role landing pages: All incidents / Sign out beside the sync pill */
.rh-btn { margin-right: 6px; }
/* Look up: past incidents and their operational periods (plan pages and Virtual 215) */
.lk-box { display: flex; flex-direction: column; gap: 2px; margin-left: 14px; font-size: .78rem; font-weight: 600; min-width: 0; }
.lk-box span { opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.lk-sel { max-width: 360px; font-size: .88rem; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line, #ccc); background: #fff; color: #111; }
.vb-top .lk-sel { border-color: rgba(255,255,255,.4); }
.lk-past { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #f6c343; color: #222; font-size: .8rem; font-weight: 700; }
.lk-back { border: 0; background: none; color: #222; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
/* idle pause notice (bottom centre, above everything) */
.pause-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff7d6; color: #3d3200; border: 1px solid #e0c060; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: .92rem; max-width: calc(100vw - 32px); }
/* Medical-only locations (ICP, camp…) on Medical › Divisions & helispots */
.div-card.md-card { border-color: #f4b183; }
.div-card .md-head { display: flex; gap: 10px; align-items: flex-start; }
/* No trailing blank page: a sheet exactly as tall as the paper can tip over by a fraction of a pixel on some
   computers/printers (Windows display scaling), and the browser then adds an empty last page. Keep every fixed-height
   sheet a hair shorter than its printable area. */
@media print {
  html, body { margin: 0 !important; padding: 0 !important; height: auto !important; }
  .sheet:not(.portrait):not(.att):not(.mland):not(.s205p):not(.s220p) { height: calc(8.5in - 3px); min-height: 0; overflow: hidden; }
  .sheet.portrait.pg204 { height: calc(10.2in - 3px); }
  .print-stage > .sheet:last-child, .print-stage > :last-child { page-break-after: auto !important; break-after: auto !important; margin-bottom: 0 !important; }
}
/* Executive Summary entry page and its report */
body.exsum-mode { background: var(--bg); }
.exs-main { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; display: block; }
.exs-card { padding: 22px 24px; }
.exs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.exs-top h1 { margin: 0; }
.exs-id { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.exs-id .field:nth-child(3) { grid-column: 2; }
.exs-hint { margin: 12px 0 4px; font-style: italic; color: var(--ink-2); }
.exs-group { margin: 20px 0 8px; font-size: 1.02rem; }
.exs-group span { font-weight: 400; color: var(--ink-2); font-size: .9rem; margin-left: 8px; }
.exs-q { display: block; margin: 12px 0 4px 18px; font-weight: 600; font-size: .92rem; }
.exs-q span { display: inline-block; width: 1.4em; }
.exs-card textarea { width: 100%; margin-left: 0; resize: vertical; }
.exs-q + textarea { width: calc(100% - 18px); margin-left: 18px; }
.exs-table td { vertical-align: top !important; min-width: 140px; white-space: pre-wrap; }
.exs-table td.exs-when, .exs-table td.exs-name, .exs-table td.exs-unit { min-width: 100px; }
.exs-table td.exs-summary { min-width: 240px; }
/* Exec. Summary Inputs: the table scrolls inside a window-height box, so the horizontal scroll bar is always on screen (never below the fold) and never auto-hides */
.table-wrap.exs-scroll { overflow: scroll; max-height: calc(100vh - 250px); }
.exs-topbar { overflow-x: scroll; overflow-y: hidden; margin-bottom: 4px; }
.exs-topbar > div { height: 1px; }
.exs-topbar::-webkit-scrollbar { height: 14px; }
.exs-topbar::-webkit-scrollbar-track { background: var(--panel-2); border-radius: 7px; }
.exs-topbar::-webkit-scrollbar-thumb { background: #9aa6b4; border-radius: 7px; border: 3px solid var(--panel-2); }
.exs-topbar::-webkit-scrollbar-thumb:hover { background: #6f7c8b; }
.table-wrap.exs-scroll::-webkit-scrollbar { width: 14px; height: 14px; }
.table-wrap.exs-scroll::-webkit-scrollbar-track { background: var(--panel-2); }
.table-wrap.exs-scroll::-webkit-scrollbar-thumb { background: #9aa6b4; border-radius: 7px; border: 3px solid var(--panel-2); }
.table-wrap.exs-scroll::-webkit-scrollbar-thumb:hover { background: #6f7c8b; }
.table-wrap.exs-scroll::-webkit-scrollbar-corner { background: var(--panel-2); }
.exs-table thead th { z-index: 2; }
.sheet.exs-sheet { height: auto; min-height: 0; display: block; }
.exs-ptitle { font: 700 13pt Arial, sans-serif; text-align: center; }
.exs-pinc { text-align: center; font-size: 9pt; margin: 2px 0 8px; }
table.exs-ptable { border-collapse: collapse; width: 100%; table-layout: fixed; font: 8pt Arial, sans-serif; }
table.exs-ptable th { background: #d9d9d9; border: 1px solid #000; padding: 3px; font-size: 7.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
table.exs-ptable td { border: 1px solid #000; padding: 3px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
table.exs-ptable tr { break-inside: avoid; }
table.exs-ptable thead { display: table-header-group; }
@media (max-width: 640px) { .exs-id { grid-template-columns: 1fr; } .exs-id .field:nth-child(3) { grid-column: 1; } }
/* Executive Summary attachments */
.exs-qrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exs-qrow .exs-q { flex: 1; }
.exs-qrow .exs-group { margin-bottom: 8px; }
.exs-att { flex: none; margin-top: 8px; }
.exs-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.exs-files.ind { margin-left: 18px; }
.exs-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2, #f1f1ee); border: 1px solid var(--line, #ccc); border-radius: 14px; padding: 2px 4px 2px 10px; font-size: .84rem; max-width: 100%; }
.exs-chip .icon-btn { width: 22px; height: 22px; }
.exs-rfiles { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 6px; }
.exs-chip.link { cursor: pointer; padding: 2px 10px; color: var(--accent, #b4531a); text-decoration: underline; white-space: normal; text-align: left; }
.exs-pfiles { margin-top: 3px; font-style: italic; font-size: 7pt; }

/* Exec. Summary Inputs: the AI-written draft */
.exs-draft-card { margin-bottom: 14px; }
.exs-draft-card .banner { margin-bottom: 8px; }
textarea.exs-draft { width: 100%; min-height: 240px; resize: vertical; font: 400 .95rem/1.45 var(--f-ui); white-space: pre-wrap; }

/* Virtual 215: Review OP Changes */
.vb-midbtns { justify-self: center; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.vb-midbtns .vb-newbtn { justify-self: auto; }
.vb-revbtn { background: #1f5f99; color: #fff; border-color: #1f5f99; font-weight: 700; padding: 8px 18px; }
.vb-revbtn:hover { background: #174a78; }
.vb-revbtn.on { background: #fff; color: #1f5f99; }
.vb-revbar { padding: 8px 20px; color: #fff; background: rgba(0,0,0,.18); font-size: .9rem; }
.vb-review .vb-card { cursor: default; }
.vb-rnote { margin-top: 5px; padding: 4px 6px; border-radius: 5px; font-size: .78rem; line-height: 1.3; display: flex; flex-direction: column; }
.vb-rnote small { color: #6b778c; font-size: .68rem; }
.vb-rnote.mv-out { background: #fde2d6; color: #8a2f12; }
.vb-rnote.mv-in { background: #dcf1e2; color: #1f6b38; }
.vb-rnote.fld { background: #e4ecf8; color: #23426e; }
.vb-rnote s { color: #8590a2; }

/* Resources tab: Demob'd button and list */
.badge-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent, #b5521f); color: #fff; font-size: .72rem; line-height: 18px; text-align: center; }
.btn.on { box-shadow: inset 0 0 0 2px var(--accent, #b5521f); }
.demob-card { margin-bottom: 14px; }
.res-tools .demob-btn { margin-left: auto; }
.res-tools .demob-btn + .res-search { margin-left: 0; }

/* Virtual 215: Needs button and dialog */
.vb-needs { margin-left: 8px; font: 700 .72rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 10px; border: 1px solid #8590a2; background: #fff; color: #44546f; cursor: pointer; vertical-align: middle; }
.vb-needs:hover { background: #f4f5f7; }
.vb-needs.has { background: #1f5f99; border-color: #1f5f99; color: #fff; }
.vb-needs b { display: inline-block; margin-left: 3px; }
.needs-list { display: grid; gap: 6px; margin: 10px 0; }
.needs-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; align-items: center; }
.needs-row select, .needs-row input { width: 100%; }

/* Name picker (Rostered Personnel), grouped by position */
.rn-pop { position: fixed; z-index: 3000; background: #fff; border: 1px solid #b9c0cb; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); overflow-y: auto; font-size: .86rem; color: #172b4d; }
.rn-g { position: sticky; top: 0; background: #eef1f5; color: #44546f; font: 700 .7rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-top: 1px solid #dfe3e8; }
.rn-i { display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px 5px 16px; cursor: pointer; }
.rn-i:hover, .rn-i.hi { background: #dbe8fb; }
.rn-i small { color: #6b778c; white-space: nowrap; }
@media print { .rn-pop { display: none; } }

/* Virtual 215: two approvals (OSC + Plans) */
.vb-apboxes { display: flex; flex-direction: column; gap: 3px; }
.vb-apbox { display: flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: #172b4d; cursor: pointer; }
.vb-apbox small { font-weight: 400; color: #1f6b38; margin-left: 2px; }
.vb-apbox.on { color: #1f6b38; }
.vb-apbox input:disabled { cursor: not-allowed; }
.vb-apbox input:disabled + * , .vb-apbox:has(input:disabled) { color: #8590a2; cursor: not-allowed; }
.vb-ap:has(.vb-apboxes) { align-items: flex-end; flex-wrap: wrap; }
.vb-apboxes { flex: 1 1 150px; min-width: 0; }
.vb-apbox { white-space: nowrap; min-width: 0; }
.vb-apbox small { overflow: hidden; text-overflow: ellipsis; }
.vb-apbox small::before { content: '· '; }

/* Cover: represented agency logos beside the contact lines */
.cover .cv-crow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 .15in; align-items: stretch; }
.cover .cv-cmid { display: grid; gap: 6px; }
.cover .cv-al { position: relative; min-height: .5in; }
.cover .cv-alg { position: absolute; inset: 0; display: grid; gap: 4px; }
.cover .cv-alg > div { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; }
.cover .cv-alg img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cover .cv-al { min-height: .62in; }
.ag-logos { flex-wrap: wrap; }
.ag-logo { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.ag-logo img { height: 44px; max-width: 120px; object-fit: contain; }
.ag-logo .icon-btn { position: absolute; top: -8px; right: -8px; background: #fff; border-radius: 50%; }

/* ICS 207 Incident Organization Chart (landscape) */
.sheet.o207 { width: 11in; height: auto; min-height: 8.5in; padding: .35in .4in; display: block; font-family: Arial, "Liberation Sans", sans-serif; color: #000; }
.o7-mk { text-align: center; font: 700 8pt Arial, sans-serif; margin: 0 0 4px; }
.o7-hd { width: calc(100% - 2px); border-collapse: collapse; table-layout: fixed; }
.o7-hd td { border: 1px solid #000; padding: 3px 6px; font-size: 9pt; vertical-align: top; }
.o7-hd .o7-title { text-align: center; font: 700 12pt Arial, sans-serif; }
.o7-hd .o7-sh { background: #d9d9d9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.o7-hd .o7-ft { font-size: 8pt; }
.o7-body { padding: 10px 8px !important; }
.o7-chart { font-size: 8pt; }
.o7-box { border: 1.2px solid #000; background: #fff; padding: 2px 5px; text-align: center; min-width: 0; overflow-wrap: anywhere; break-inside: avoid; }
.o7-pos { font-size: 6.6pt; text-transform: uppercase; letter-spacing: .02em; color: #222; }
.o7-nm { font-weight: 700; font-size: 8pt; line-height: 1.2; }
.o7-box.ic { border-width: 2px; min-width: 2in; } .o7-box.ic .o7-nm { font-size: 9.5pt; }
.o7-box.chief { background: #e6e6e6; -webkit-print-color-adjust: exact; print-color-adjust: exact; margin-bottom: 6px; }
.o7-box.grp { background: #f2f2f2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.o7-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; }
.o7-cmd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.o7-staff { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; border-left: 1.2px solid #000; padding-left: 10px; position: relative; }
.o7-staff .o7-u { position: relative; } .o7-staff .o7-u::before { content: ''; position: absolute; left: -10px; top: 50%; width: 10px; border-top: 1.2px solid #000; }
.o7-staffbar { display: none; }
.o7-drop { width: 0; height: 12px; border-left: 1.2px solid #000; margin: 0 auto; }
.o7-secs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; position: relative; }
.o7-secs::before { content: ''; position: absolute; top: 0; left: calc((100% - 40px) / 12); right: calc((100% - 40px) / 12); border-top: 1.2px solid #000; }
.o7-sec { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.o7-tick { width: 0; height: 10px; border-left: 1.2px solid #000; margin: 0 auto; }
.o7-units { display: flex; flex-direction: column; gap: 4px; margin-left: 10px; border-left: 1.2px solid #000; padding-left: 8px; }
.o7-u { position: relative; } .o7-units > .o7-u::before, .o7-units > .o7-grp::before { content: ''; position: absolute; left: -8px; top: 12px; width: 8px; border-top: 1.2px solid #000; }
.o7-grp { position: relative; display: flex; flex-direction: column; gap: 4px; }
.o7-kids { display: flex; flex-direction: column; gap: 4px; margin-left: 10px; border-left: 1.2px dashed #000; padding-left: 8px; }
.o7-kids .o7-u::before { content: ''; position: absolute; left: -8px; top: 12px; width: 8px; border-top: 1.2px dashed #000; }
.sheet.o207.o207p { width: 8.5in; min-height: 11in; }
.o207p .o7-secs { gap: 6px; } .o207p .o7-units { margin-left: 6px; padding-left: 6px; } .o207p .o7-kids { margin-left: 6px; padding-left: 6px; }
@media print {
  @page p207 { size: letter landscape; margin: .35in .4in; }
  @page p207p { size: letter portrait; margin: .35in .4in; }
  .sheet.o207.o207p, .print-stage .sheet.o207.o207p { page: p207p; }
  .sheet.o207, .print-stage .sheet.o207 { page: p207; width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; box-shadow: none; overflow: visible; }
  .sheet.o207 .o7-mk { display: none; }
}

/* Virtual 215: find a resource */
.vb-search { background: #ebecf0; border-radius: 10px; padding: 8px; position: sticky; top: 0; z-index: 3; flex: 0 0 auto; }
.vb-search input { width: 100%; min-height: 0; height: 34px; padding: 4px 10px; border-radius: 6px; border: 1px solid #b9c0cb; font-size: .9rem; }
.vb-qmsg { font-size: .74rem; color: #44546f; margin-top: 4px; min-height: 1em; }
.vb-card.vb-found { box-shadow: 0 0 0 3px #ffd54a, 0 0 16px 4px rgba(255,213,74,.85); animation: vbPulse 1s ease-in-out 3; }
@keyframes vbPulse { 50% { box-shadow: 0 0 0 5px #ffb300, 0 0 22px 8px rgba(255,179,0,.9); } }

/* Task / Purpose / End State hand-out */
.sheet.tpl-sheet { height: auto; min-height: 11in; display: block; }
.tpl-head { text-align: center; margin-bottom: 8px; }
.tpl-title { font: 700 14pt Arial, sans-serif; }
.tpl-sub { font-size: 9pt; color: #333; }
table.tpl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8.5pt; }
table.tpl th { background: #d9d9d9; border: 1px solid #000; padding: 3px 4px; font-weight: 700; text-align: left; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
table.tpl td { border: 1px solid #000; padding: 3px 4px; vertical-align: top; white-space: pre-wrap; }
table.tpl td.tpl-n { text-align: center; }
table.tpl tr.tpl-cat td { background: #efefef; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
table.tpl tr { break-inside: avoid; }
table.tpl thead { display: table-header-group; }
@media print { .sheet.tpl-sheet { min-height: 0; } }

/* Chat */
#chat-root { position: fixed; right: 16px; bottom: 16px; z-index: 2500; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--f-ui, sans-serif); }
.ch-fab { order: 2; border: 0; border-radius: 22px; background: #1f5f99; color: #fff; font: 700 .9rem var(--f-ui, sans-serif); padding: 10px 16px; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ch-fab.on { background: #174a78; }
.ch-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #d0342c; color: #fff; font-size: .72rem; line-height: 18px; text-align: center; margin-left: 4px; }
.ch-panel { order: 1; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); background: #fff; color: #172b4d; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #c9d0da; }
.ch-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #1f5f99; color: #fff; }
.ch-head b { flex: 1; font-size: .95rem; }
.ch-head .ch-hq { flex: 0 1 150px; min-width: 90px; padding: 4px 8px; border: 1px solid #fff; border-radius: 6px; font-size: .82rem; color: #1b2a3a; background: #fff; }
.ch-head:has(.ch-hq) b { flex: 0 0 auto; } .ch-head .hint { color: #dbe8fb; }
.ch-head .btn.sm { background: #fff; color: #1f5f99; border-color: #fff; }
.ch-x, .ch-back { background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; padding: 2px 6px; }
.ch-tabs { display: flex; border-bottom: 1px solid #dfe3e8; } .ch-tabs button { flex: 1; background: #f4f5f7; border: 0; padding: 7px; font: 600 .78rem var(--f-ui, sans-serif); color: #44546f; cursor: pointer; } .ch-tabs button.on { background: #fff; color: #1f5f99; box-shadow: inset 0 -2px 0 #1f5f99; }
.ch-body { flex: 1; overflow-y: auto; padding: 8px; background: #fafbfc; }
.ch-conv { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; background: #fff; border: 1px solid #e2e6eb; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font: inherit; color: inherit; position: relative; }
.ch-conv:hover { background: #eef4fd; }
.ch-cn { font-weight: 700; font-size: .88rem; } .ch-cn i { font-weight: 400; color: #8590a2; } .ch-ct { font-size: .72rem; color: #6b778c; } .ch-cl { grid-column: 1 / -1; font-size: .78rem; color: #44546f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-conv .ch-badge { position: absolute; right: 8px; bottom: 8px; }
.ch-q { width: 100%; margin-bottom: 8px; min-height: 0; height: 34px; padding: 4px 10px; }
.ch-empty { color: #6b778c; font-size: .85rem; text-align: center; padding: 24px 8px; }
.ch-msgs { display: flex; flex-direction: column; gap: 6px; }
.ch-m { max-width: 82%; display: flex; flex-direction: column; } .ch-m.me { align-self: flex-end; align-items: flex-end; } .ch-m.them { align-self: flex-start; }
.ch-mb { padding: 7px 10px; border-radius: 12px; font-size: .86rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-m.me .ch-mb { background: #1f5f99; color: #fff; border-bottom-right-radius: 4px; } .ch-m.them .ch-mb { background: #e9edf2; color: #172b4d; border-bottom-left-radius: 4px; }
.ch-mt { font-size: .66rem; color: #8590a2; margin-top: 2px; } .ch-mw { font-size: .7rem; font-weight: 700; color: #44546f; margin-bottom: 2px; }
.ch-send { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #dfe3e8; background: #fff; } .ch-send textarea { flex: 1; resize: none; min-height: 0; font: .86rem var(--f-ui, sans-serif); padding: 6px 8px; }
@media print { #chat-root { display: none !important; } }

.icon-btn.cp-row { border-color: var(--line, #c9d3df); color: #1f5f99; padding: 0 8px; font-size: .78rem; white-space: nowrap;  width: auto; }
.cp-prev { margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid #1f5f99; background: #f3f7fc; font-size: .88rem; max-height: 120px; overflow: auto; }
.exs-q.exs-spec { font-weight: 600; } .exs-spec-note { margin-left: 18px; }
.exs-table td.exs-spec { min-width: 180px; }
table.pc209 td.pc-addl-td { vertical-align: top; padding: 2px 3px; white-space: normal; }
.pc-addl { height: 330px; overflow: hidden; text-align: left; line-height: 1.25; }
.pc-addl-h { font-weight: 700; text-align: center; border-bottom: 1px solid #000; margin-bottom: 2px; padding-bottom: 1px; }
.pc-addl-r { display: flex; justify-content: space-between; gap: 4px; } .pc-addl-r .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pc-addl-r .v { white-space: nowrap; } .pc-addl-r i { font-style: normal; color: #333; }
.pc-addl.two .pc-addl-l { column-count: 2; column-gap: 4px; } .pc-addl.two .pc-addl-r { break-inside: avoid; } .pc-addl.two .pc-addl-r i { display: none; }
/* ICS 214 Activity Log (Print IAP page that evens out the page count) */
.f214 .t214 { text-align: center; font: 700 13pt Arial, sans-serif; margin: 0 0 4px; }
table.t214t { border-collapse: collapse; table-layout: fixed; width: 100%; font: 8.5pt Arial, sans-serif; border: 2px solid #000; }
table.t214t td { border: 1px solid #000; padding: 1px 5px; height: 22px; vertical-align: middle; }
table.t214t tr.hd2 td { height: 42px; vertical-align: top; padding-top: 3px; }
table.t214t .v { font-size: 9pt; margin-top: 3px; }
table.t214t .op { display: grid; grid-template-columns: auto 1fr 1fr; gap: 2px 8px; } table.t214t .op i { font-style: normal; font-weight: 700; }
table.t214t td.sec { height: 22px; border-top: 2px solid #000; }
table.t214t tr.c214 td { text-align: center; } table.t214t tr.c214 td.l { text-align: left; }
table.t214t tr.pb td { height: 24px; border-top: 2px solid #000; white-space: nowrap; }
table.t214t u { display: inline-block; width: 1.25in; border-bottom: 1px solid #000; margin: 0 8px 0 3px; text-decoration: none; } table.t214t u.w { width: 4in; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent, #1f5f99); text-decoration: underline; cursor: pointer; font: inherit; }
.ug-btn { background: #fff; color: #1f5f99; border-color: #c9d3df; font-weight: 600; }
.modal:has(.ug) { width: min(820px, 100%); }
.ug { font-size: .9rem; line-height: 1.45; } .ug h3 { font-size: .98rem; margin: 14px 0 4px; } .ug p { margin: 6px 0; } .ug ul, .ug ol { margin: 4px 0 8px; padding-left: 22px; } .ug li { margin: 2px 0; }
.ug .ug-t { border-collapse: collapse; width: 100%; margin: 6px 0 10px; font-size: .85rem; } .ug .ug-t th, .ug .ug-t td { border: 1px solid var(--line, #d6dbe1); padding: 4px 8px; text-align: left; vertical-align: top; } .ug .ug-t th { background: #f1f3f6; }
.ug-main { font-weight: 600; }
.ug-full-bg { position: fixed; inset: 0; background: rgba(10, 15, 12, .45); z-index: 70; display: grid; place-items: center; padding: 16px; }
.ug-full { background: var(--panel, #fff); border-radius: 10px; box-shadow: var(--shadow); width: min(1180px, 100%); height: min(92vh, 100%); display: flex; flex-direction: column; overflow: hidden; }
.ug-full header { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line, #d6dbe1); }
.ug-full header h1 { font-size: 1.15rem; margin: 0; flex: 1; }
.ug-full .ug-find { width: 220px; padding: 5px 9px; border: 1px solid var(--line, #c9d3df); border-radius: 6px; }
.ug-body { display: flex; flex: 1; min-height: 0; }
.ug-toc { width: 250px; flex: none; overflow: auto; padding: 14px 10px; border-right: 1px solid var(--line, #d6dbe1); display: flex; flex-direction: column; gap: 2px; background: #f7f8fa; }
.ug-toc b { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6573; padding: 0 8px 6px; }
.ug-toc button { text-align: left; background: none; border: 0; padding: 5px 8px; border-radius: 5px; font: inherit; font-size: .86rem; cursor: pointer; color: #1f3b57; }
.ug-toc button:hover { background: #e7eef7; }
.ug-doc { flex: 1; overflow: auto; padding: 8px 28px 40px; }
.ug-doc h2 { font-size: 1.2rem; margin: 26px 0 8px; padding-top: 6px; border-top: 1px solid var(--line, #e1e5ea); scroll-margin-top: 8px; }
.ug-doc table { border-collapse: collapse; width: 100%; margin: 8px 0 14px; font-size: .85rem; } .ug-doc th, .ug-doc td { border: 1px solid var(--line, #d6dbe1); padding: 4px 8px; text-align: left; vertical-align: top; } .ug-doc th { background: #f1f3f6; }
.ug-doc figure { margin: 10px 0 16px; } .ug-doc figure img { max-width: 100%; border: 1px solid var(--line, #d6dbe1); border-radius: 6px; display: block; } .ug-doc figcaption { font-size: .8rem; color: #5b6573; margin-top: 4px; }
.ug-doc .ug-hit { background: #fff3b0; outline: 2px solid #f0c400; }
@media (max-width: 760px) { .ug-toc { display: none; } .ug-full .ug-find { width: 130px; } }
.ug-doc figure img { height: auto; }
.vb-mvnote { font-size: .76rem; margin-top: 3px; padding: 3px 6px; background: #fff8e1; border-left: 3px solid #e0a800; border-radius: 3px; white-space: pre-wrap; } .vb-mvnote span { font-weight: 700; text-transform: uppercase; font-size: .66rem; letter-spacing: .03em; color: #7a5b00; margin-right: 4px; }
.hs-note { font-size: .78rem; color: #5b4a00; margin-top: 2px; white-space: pre-wrap; }
.vb-rrem { display: block; font-size: .74rem; color: #5b4a00; padding: 0 8px 6px; white-space: pre-wrap; }
.vb-syn { display: block; width: 100%; margin: 0 0 8px; padding: 5px 8px; border-radius: 6px; border: 1px solid #1f5f99; background: #fff; color: #1f5f99; font: 700 .74rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.vb-syn:hover { background: #eef4fb; } .vb-syn.has { background: #1f5f99; color: #fff; } .vb-syn b { display: inline-block; margin-left: 4px; background: #fff; color: #1f5f99; border-radius: 8px; padding: 0 6px; }
.modal:has(.syn) { width: min(680px, 100%); }
.syn-log { max-height: 46vh; overflow: auto; border: 1px solid var(--line, #d6dbe1); border-radius: 6px; background: #f8f9fb; padding: 6px; display: grid; gap: 6px; margin: 8px 0 12px; }
.syn-e { background: #fff; border: 1px solid #e3e7ec; border-radius: 5px; padding: 6px 9px; } .syn-h { font-size: .76rem; color: #5b6573; margin-bottom: 2px; } .syn-t { white-space: pre-wrap; font-size: .9rem; } .syn-none { color: #8a93a0; font-size: .85rem; padding: 6px; }
.syn textarea { width: 100%; }
.vb-kcol { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: none; }
.vb-xs { display: inline-flex; align-items: center; gap: 3px; font: 700 .6rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .03em; color: #6b7480; white-space: nowrap; cursor: pointer; }
.vb-xs input { width: 12px; height: 12px; margin: 0; }
.vb-xs.on { color: #a14b00; } .vb-xs.ro { background: #fff1e0; border-radius: 3px; padding: 0 4px; }
.vb-excess { border: 1px dashed #d98a2b; background: #fff7ec; margin-top: 10px; }
.vb-xtab { width: 100%; border-collapse: collapse; font-size: .78rem; background: #fff; border-radius: 6px; overflow: hidden; }
.vb-xtab th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .03em; color: #6b4a1f; background: #fbe6c8; padding: 4px 6px; }
.vb-xtab td { padding: 4px 6px; border-top: 1px solid #f1e2cc; } .vb-xtab tbody tr { cursor: pointer; } .vb-xtab tbody tr:hover td { background: #fff1dc; }
.vb-xs { font-size: .56rem; letter-spacing: 0; }
.vb-excess { border: 1px dashed #d98a2b; background: #fff7ec; border-radius: 8px; padding: 8px; margin: 0 0 10px; }
.vb-excess h3 { margin: 0 0 2px; font-size: .95rem; color: #7a3e00; } .vb-excess > p { margin: 0 0 6px; font-size: .74rem; color: #6b5536; line-height: 1.3; }
.vb-xkey { background: #fff59d; padding: 0 3px; border-radius: 2px; }
.vb-xtab td[data-act] { cursor: pointer; } .vb-xtab tbody tr { cursor: default; }
.vb-xmove { width: 100%; min-width: 92px; font-size: .74rem; padding: 2px 4px; border: 1px solid #d9b98a; border-radius: 4px; background: #fff; }
.vb-xmove option.need { background: #fff59d; }
.vb-xtab th, .vb-xtab td { white-space: nowrap; padding: 4px 4px; } .vb-xtab td:last-child { width: 100%; }
.vb-xmove { min-width: 0; }
.vb-tops { display: grid; gap: 6px; margin: 0 0 8px; } .vb-tops .vb-more { border: 1px solid #dfe1e6; padding: 4px 8px; } .vb-tops .vb-more summary { font-size: .72rem; }
.vb-tops .vb-more summary { text-transform: none; letter-spacing: .01em; font-size: .8rem; }
.vb-opsum { width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: #1f5f99; color: #fff; font: 700 .82rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.2); } .vb-opsum:hover { background: #174a78; }
.modal:has(.ops-sum) { width: min(960px, 100%); }
.ops-sum { font-size: .88rem; } .os-top { margin-bottom: 10px; } .os-stats { color: #5b6573; font-size: .82rem; margin-top: 2px; }
.os-div { border-top: 1px solid var(--line, #d6dbe1); padding-top: 8px; margin-top: 10px; } .os-div h3 { margin: 0 0 6px; font-size: 1rem; } .os-div h3 span { font-weight: 400; color: #5b6573; font-size: .82rem; }
.os-tpe { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 0 0 8px; } .os-tpe th, .os-tpe td { border: 1px solid #dfe3e8; padding: 3px 6px; text-align: left; vertical-align: top; } .os-tpe th { background: #f1f3f6; } .os-tpe tr.ok td:last-child { color: #146c2e; font-weight: 700; white-space: nowrap; }
.os-ent { margin: 0; padding-left: 20px; } .os-ent li { margin: 0 0 8px; } .os-eh { color: #5b6573; font-size: .76rem; } .os-et { white-space: pre-wrap; }
.os-m { font-size: .8rem; color: #146c2e; margin-top: 2px; } .os-m span { color: #6b7480; } .os-m.none, .os-none { color: #8a93a0; font-size: .8rem; } .os-foot { color: #8a93a0; font-size: .74rem; margin-top: 12px; }
.vb-ext.on { color: #1f5f99; }
.vb-swap.on { color: #6b3fa0; }
.modal:has(.sw-grid) { width: min(1180px, 100%); }
.sw-grid { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 14px; align-items: start; }
.sw-blk { border: 1px solid var(--line, #d6dbe1); border-radius: 8px; padding: 8px; background: #fafbfc; }
.sw-h { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font: 700 .7rem var(--f-cond, sans-serif); text-transform: uppercase; letter-spacing: .04em; color: #44546f; margin-bottom: 6px; }
.sw-c5 .sw-h { grid-template-columns: 1fr; }
.sw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0; border-top: 1px dashed #e1e5ea; } .sw-row:first-of-type { border-top: 0; }
.sw-c1, .sw-c2 { display: grid; gap: 4px; align-content: start; }
.sw-lead { display: flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: #1f5f99; }
.sw-c5 { border: 1px solid var(--line, #d6dbe1); border-radius: 8px; padding: 8px; display: grid; gap: 6px; } .sw-q { font-weight: 600; font-size: .86rem; }
.sw-submit { margin-top: 10px; width: 100%; }
@media (max-width: 900px) { .sw-grid { grid-template-columns: 1fr; } }

/* ---------- Broadcast page and watch page ---------- */
.topbar .tb-row2 .bc-btn { margin-left: auto; background: #7a1f1f; border-color: #7a1f1f; color: #fff; }
.topbar .tb-row2 .bc-btn::before { content: "● "; color: #ff8a80; }
.bc-main { max-width: 1500px; margin: 0 auto; }
.bc-grid { display: grid; grid-template-columns: minmax(380px, 1.1fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-left, .bc-right { display: grid; gap: 16px; min-width: 0; }
.bc-grid .card { margin: 0; }
.bc-grid h2 { margin: 0 0 10px; font-size: 1.1rem; }
.bc-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bc-prev { position: relative; aspect-ratio: 16 / 9; background: #0d100e; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; display: grid; place-items: center; }
.bc-prev video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.bc-noprev { color: #8a948d; font-weight: 600; }
.bc-studio.on-air .bc-prev { outline: 3px solid #d32f2f; }
.bc-onair { font: 700 .85rem var(--f-cond); letter-spacing: .05em; color: #fff; background: #d32f2f; padding: 4px 10px; border-radius: 4px; }
.bc-srcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.bc-ctl { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bc-golive { background: #d32f2f !important; border-color: #d32f2f !important; color: #fff !important; font-weight: 700; }
.bc-golive:disabled { opacity: .5; }
.bc-msg { margin: 8px 0 0; font-weight: 600; color: var(--warn); }
.bc-recq { margin: 6px 0 0; font-size: .9rem; min-height: 1.2em; }
.bc-recdot { color: #d32f2f; animation: bcblink 1.2s infinite; }
@keyframes bcblink { 50% { opacity: .2; } }
.bc-bad { color: var(--bad); font-weight: 600; }
.bc-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 12px; }
.bc-chk { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-weight: 600; }
.bc-uhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bc-bar { height: 12px; border-radius: 6px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.bc-bar span { display: block; height: 100%; background: var(--ok); }
.bc-bar span.warm { background: var(--warn); }
.bc-bar span.hot { background: var(--bad); }
.bc-list { display: grid; gap: 10px; }
.bc-item { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--panel); }
.bc-item.is-sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bc-item.is-live { border-left: 5px solid #d32f2f; }
.bc-ih { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.bc-kind { font: 700 .72rem var(--f-cond); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.bc-title { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.bc-meta { font-size: .85rem; color: var(--ink-2); }
.bc-acts { gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bc-st { font: 700 .72rem var(--f-cond); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.bc-st.live { background: #d32f2f; color: #fff; }
.bc-st.sched { background: var(--panel-2); color: var(--ink-2); }
.bc-st.ended { background: var(--panel-2); color: var(--ink-2); text-decoration: none; opacity: .8; }
.bc-rec { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .88rem; }
.bc-rec > span:first-child { color: var(--ink-2); }
.bc-racts { display: flex; gap: 6px; }
.modal:has(.bc-play) { width: min(1100px, 100%); }
.bc-play { width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; background: #000; border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.bc-play video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.bc-qr { width: 180px; margin: 12px auto 0; background: #fff; padding: 6px; border-radius: 6px; }
.bc-qr svg { width: 100%; height: auto; display: block; }
body.watch-mode { background: #0d100e; color: #e7ebe6; }
.w-page { max-width: 1200px; margin: 0 auto; padding: 14px 16px 30px; }
.w-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.w-top h1 { margin: 0; font-size: 1.35rem; color: #fff; }
.w-inc { font: 700 .75rem var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: #a3ada6; }
.w-kind { color: #a3ada6; font-size: .9rem; }
.w-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.w-stage.audio { aspect-ratio: auto; min-height: 220px; }
.w-video, .w-video video { width: 100%; height: 100%; }
.w-video video { object-fit: contain; display: block; }
.w-stage.audio .w-video { position: absolute; inset: 0; opacity: 0; }
.w-audio { font-size: 1.4rem; color: #cfd6d1; }
.w-over { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); color: #fff; font-weight: 600; font-size: 1.05rem; text-align: center; }
.w-sound { position: absolute; top: 14px; right: 14px; background: #d32f2f; color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font: 700 1rem var(--f-ui); cursor: pointer; }
.w-ctl { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.w-ctl .spacer { flex: 1; }
.w-msg { background: #1d221f; border-radius: 8px; padding: 30px; text-align: center; }
.w-msg a { color: #e07a3a; }
.watch-mode .btn { background: #252b27; color: #e7ebe6; border-color: #4a544d; }
/* the button row runs to the right edge (under the corner buttons), so Broadcast sits at the far right */
.topbar .tb-row2 { flex-basis: calc(100% + 126px); margin-right: -126px; }
.topbar:has(.ie-btn) .tb-row2 { flex-basis: calc(100% + 314px); margin-right: -314px; }
.bc-days { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; }
.bc-days > span { font: 700 .72rem var(--f-cond); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-right: 4px; }
.bc-days label { display: flex; gap: 4px; align-items: center; font-weight: 600; }
.bc-rep { color: var(--ink); font-weight: 600; }
.bc-more { margin-top: 6px; }
.bc-racts a.btn { text-decoration: none; color: inherit; }
.bc-kindf { margin: 0 0 12px; max-width: 460px; }
.bc-livenow { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- QR Code tab and the public documents page ---------- */
.qr-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .qr-grid { grid-template-columns: 1fr; } }
.qr-codebox { display: grid; gap: 10px; justify-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.qr-code { background: #fff; padding: 8px; border-radius: 6px; width: 100%; max-width: 300px; justify-self: center; }
.qr-code svg { width: 100%; height: auto; display: block; }
.qr-codebox input { width: 100%; font-family: var(--f-mono); font-size: .8rem; }
.qr-codebox .row { flex-wrap: wrap; gap: 6px; }
.qr-docs { display: grid; gap: 12px; min-width: 0; }
.qr-docs > .row { flex-wrap: wrap; gap: 8px; align-items: center; }
.qr-table td { vertical-align: top; }
.qr-table td input { width: 100%; }
.qr-table .qr-desc { margin-top: 4px; font-size: .88rem; }
.qr-table .qr-ic { font-size: 1.5rem; width: 36px; text-align: center; }
.qr-table tr.qr-hidden td { opacity: .55; }
.qr-show { display: flex; gap: 5px; align-items: center; white-space: nowrap; font-weight: 600; }
.qr-table td.acts { white-space: nowrap; }
.sheet.qr-sign { width: 8.5in; height: 11in; align-items: center; justify-content: center; text-align: center; gap: .25in; padding: .6in; }
.qr-sign .qs-inc { font: 700 18pt Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.qr-sign h1 { font: 700 34pt Arial, sans-serif; margin: 0; }
.qr-sign .qs-sub { font: 16pt Arial, sans-serif; margin: 0; max-width: 6.5in; }
.qr-sign .qs-code { width: 5.2in; }
.qr-sign .qs-code svg { width: 100%; height: auto; display: block; }
.qr-sign .qs-url { font: 10pt monospace; word-break: break-all; max-width: 7in; }
.qr-sign .qs-foot { font: 700 14pt Arial, sans-serif; }
body.qrp-mode { background: #f3f4f1; }
.qp-page { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.qp-top { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.qp-top h1 { margin: 0; font-size: 1.4rem; }
.qp-inc { font: 700 .78rem var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.qp-team { color: var(--ink-2); font-size: .9rem; }
.qp-list { display: grid; gap: 10px; }
.qp-doc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; box-shadow: var(--shadow); }
.qp-doc:active { transform: scale(.99); }
.qp-doc.ready { border-color: var(--ok); }
.qp-ic { font-size: 1.8rem; }
.qp-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.qp-t b { font-size: 1.05rem; overflow-wrap: anywhere; }
.qp-t span { color: var(--ink-2); font-size: .92rem; }
.qp-t small { color: var(--ink-2); }
.qp-go { font-size: 1.6rem; color: var(--ink-2); }
.qp-empty, .qp-err { color: var(--ink-2); text-align: center; padding: 30px 10px; }
.qp-err { color: var(--bad); }
.qp-reload { margin-top: 16px; }
@media print { .sheet.qr-sign { height: 9.6in !important; min-height: 0 !important; padding: 0 !important; } }
.cv-qrpick label.row { gap: 6px; font-weight: 600; margin-top: 4px; }
.cv-qrauto { display: flex; gap: 12px; align-items: center; }
.cv-qrprev { width: 72px; background: #fff; padding: 3px; border: 1px solid var(--line); border-radius: 4px; }
.cv-qrprev svg { width: 100%; height: auto; display: block; }
.cv-qrauto .mono { font-size: .85rem; overflow-wrap: anywhere; }
.qr-iap { display: grid; gap: 4px; }
.qr-iap .hint { margin: 0; }
.qr-h { margin: 6px 0 0; font-size: 1rem; }
.qr-folder { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.qr-folder.open { border-color: var(--accent); }
.qr-fhead { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.qr-fhead b { font-size: 1.02rem; }
.qr-fic { font-size: 1.5rem; }
.qr-fgo { margin-left: auto; color: var(--ink-2); }
.qr-fbody { padding: 0 12px 12px; display: grid; gap: 8px; }
.qr-fbody .row { flex-wrap: wrap; gap: 8px; align-items: center; }
.qp-folder { border-color: var(--accent); }
.qp-back { background: none; border: 0; color: var(--accent); font: 600 1rem var(--f-ui); padding: 4px 0; cursor: pointer; justify-self: start; }
.qp-fh { margin: 0 0 4px; font-size: 1.15rem; }
/* the tab row stays under the top bar while scrolling (the top bar's height is measured into --tb-h) */
@media screen and (min-width: 700px) {
  nav.tabs { position: sticky; top: var(--tb-h, 0px); z-index: 19; }
}
.qp-vid { border-color: #d32f2f; }
.qr-live { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; background: var(--panel); }
.qr-lvh { display: grid; gap: 2px; }
.qr-lv { display: flex; align-items: center; gap: 10px; }
.qr-lv > div { flex: 1; min-width: 0; }
.qr-lvic { font-size: 1.2rem; }
.qp-live { border-color: #d32f2f; }
.qp-live.on { background: #fdecea; }
.qr-now { font-size: .9rem; padding: 8px 10px; border-radius: 6px; background: var(--ok-soft); border: 1px solid var(--ok); }
.qr-now.warn { background: var(--warn-soft); border-color: var(--warn); }
.qr-now.bad { background: var(--bad-soft); border-color: var(--bad); }
.qr-now .btn { margin-left: 6px; }
.qr-lv.off { opacity: .55; }
table.phl-t.phl-em { width: 70%; margin: 14px auto 0; } table.phl-t.phl-em.wph { width: 92%; }
table.phl-t.phl-em th { background: #d9d9d9; font-size: 13pt; }
table.phl-t.phl-em td { font-size: 11pt; }
.em-print { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 0; white-space: nowrap; }
table.em-dlg input { width: 100%; }
.sheet.phl { height: 11in; overflow: hidden; }
@media print { .sheet.portrait.phl { height: 10.2in; overflow: hidden; } }
table.em-ed td.em-chk { text-align: center; }
table.em-ed tr.em-off td input:not([type=checkbox]) { opacity: .5; }
/* 1.2.112: Excess/Demob list keeps dark text on its light background (phones in dark mode) */
.vb-excess, .vb-xtab td, .vb-xtab td.mono { color: #1f2933; }
.vb-xmove, .vb-xmove option { color: #1f2933; background-color: #fff; color-scheme: light; }
.vb-xmove:disabled { color: #4b5563; opacity: 1; }
/* 1.2.113: blank page added after the cover when the IAP has an odd number of pages */
.sheet.blank-pg { position: relative; height: 11in; display: flex; align-items: center; justify-content: center; }
.blank-wm { font: 700 30pt Arial, sans-serif; color: #c4c4c4; transform: rotate(-35deg); white-space: nowrap; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print { .sheet.portrait.blank-pg { height: 10.2in; overflow: hidden; display: flex; align-items: center; justify-content: center; } }
.qr-folder.qr-sub { margin-top: 4px; background: var(--panel-2); }
a.btn { text-decoration: none; }
.pc-tag { background: #1f5f9e; }
.pc-main { max-width: 1400px; margin: 0 auto; padding: 16px 20px 40px; display: grid; gap: 14px; } .pc-main .subtabs { justify-content: flex-start; }
/* 1.2.122: Plans Chief › Exec. Summary Questions */
.exq-list { display: grid; gap: 10px; }
.exq-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--panel); }
.exq-card.files { background: var(--panel-2); }
.exq-n { font: 700 1rem var(--f-mono); color: var(--ink-2); text-align: center; padding-top: 22px; }
.exq-body { display: grid; gap: 8px; min-width: 0; }
.exq-body textarea { width: 100%; resize: vertical; }
.exq-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.exq-row > .field { flex: 1 1 240px; min-width: 0; }
.exq-row > .exq-type { flex: 0 0 180px; }
.exq-chk { gap: 6px; padding-bottom: 8px; white-space: nowrap; }
.exq-acts { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
#exq-units { width: 100%; max-width: 420px; }
/* 1.2.125: Plans Chief top-level tabs */
.pc-top { display: flex; gap: 0; border-bottom: 2px solid rgba(255,255,255,.25); }
.pc-ttab { background: none; border: 0; color: #c9d6e2; font: 700 1.05rem var(--f-ui); padding: 10px 18px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pc-ttab[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent); }
.pc-ttab:hover { color: #fff; }
.pc-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-sub .btn { margin-left: auto; }
/* 1.2.127: Corrected Copy */
.per-btns { display: inline-flex; flex-direction: column; gap: 3px; align-items: stretch; }
.per-btns .btn { padding-top: 2px; padding-bottom: 2px; }
.cc-btn { border-color: #c62828 !important; color: #c62828 !important; }
select.op-cc, option.op-cc { background: #fff59d !important; color: #1f2933 !important; font-style: italic; }
.cc-banner { background: #c62828; color: #fff; text-align: center; padding: 8px 14px; font-size: .95rem; letter-spacing: .02em; border-bottom: 3px solid #8e0000; }
.cc-banner b { letter-spacing: .12em; }
body.cc-mode .print-stage .sheet:not(.s215), body.cc-mode .phl-wrap .sheet { position: relative; }
body.cc-mode .print-stage .sheet:not(.s215)::after { content: "CORRECTED COPY"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-35deg); font: 700 64pt Arial, sans-serif; color: rgba(198, 40, 40, .22); white-space: nowrap; pointer-events: none; z-index: 6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
  body.cc-mode .print-stage .sheet::after { display: none; }
  body.cc-mode::after { content: "CORRECTED COPY"; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-35deg); font: 700 64pt Arial, sans-serif; color: rgba(198, 40, 40, .22); white-space: nowrap; pointer-events: none; z-index: 9999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.cc-mode:has(.print-stage .s215)::after { display: none; }
}
b.op-cc { background: #fff59d; font-style: italic; padding: 0 3px; }
/* 1.2.128: Transfer of Command questionnaire and inputs */
.toc-prog { display: flex; align-items: center; gap: 10px; font: 500 .82rem var(--f-mono); color: var(--ink-2); margin: 10px 0 4px; }
.toc-bar { flex: 1; height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.toc-bar i { display: block; height: 100%; background: var(--ok); }
.toc-q { display: grid; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.toc-q .exs-group { margin: 0; }
.toc-q .toc-lbl { margin: 0; font-weight: 500; }
.toc-q textarea { width: 100%; resize: vertical; }
.toc-done { font: 600 .68rem var(--f-cond, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 1px 7px; border-radius: 10px; vertical-align: middle; }
details.toc-ex { font-size: .86rem; color: var(--ink-2); }
details.toc-ex summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
details.toc-ex div { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--panel-2); border-radius: 0 6px 6px 0; white-space: pre-wrap; }
.toc-imp table td.c, .toc-imp table th.c { text-align: center; width: 1%; white-space: nowrap; }
.toc-imp-btn { border-color: var(--accent); color: var(--accent); }
.toc-more span { font-size: .84rem; }
.toc-list { display: grid; gap: 10px; }
.toc-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.toc-item summary { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 10px 14px; cursor: pointer; background: var(--panel-2); }
.toc-doc { padding: 4px 16px 6px; }
.toc-doc h4 { margin: 12px 0 4px; font-size: .98rem; }
.toc-doc p { margin: 0 0 6px; white-space: pre-wrap; }
.toc-doc ul { margin: 0 0 6px; padding-left: 20px; }
.toc-add { border-left: 3px solid var(--accent); padding-left: 10px; }
.toc-files { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font-size: .86rem; }
.toc-acts { padding: 0 16px 12px; gap: 8px; }
.sheet.toc-sheet { height: auto; min-height: 0; display: block; font: 10pt Arial, sans-serif; }
.toc-ptitle { font: 700 15pt Arial, sans-serif; text-align: center; }
.toc-pinc { text-align: center; font-size: 9pt; margin: 2px 0 12px; }
.toc-psec { break-inside: avoid-page; margin-bottom: 14px; }
.toc-psec h3 { font: 700 12pt Arial, sans-serif; text-transform: uppercase; border-bottom: 1.5px solid #000; margin: 0 0 2px; }
.toc-pby { font-size: 8pt; color: #444; margin-bottom: 4px; }
.toc-psec h4 { font: 700 10pt Arial, sans-serif; margin: 8px 0 2px; }
.toc-psec p { margin: 0 0 4px; white-space: pre-wrap; }
.toc-psec ul { margin: 0 0 4px; padding-left: 18px; }
.toc-q textarea { margin-left: 0 !important; width: 100% !important; }
/* 1.2.129: lines added by hand on Transfer of Command imports */
.toc-imp tr.toc-man td { background: var(--accent-soft); padding: 3px 4px; }
.toc-imp tr.toc-man input { width: 100%; min-width: 70px; padding: 4px 6px; font-size: .86rem; }
.toc-imp tr.toc-man input { border: 1px solid var(--line-strong); background: var(--field); border-radius: 4px; }
/* 1.2.130: RESL Kind/Type counts */
.toc-step { display: inline-flex; align-items: center; gap: 6px; }
.toc-step b { min-width: 2.2em; text-align: center; font-size: 1rem; }
.toc-step .icon-btn { border: 1px solid var(--line-strong); border-radius: 4px; width: 28px; height: 26px; font-size: .7rem; }
.toc-imp tr.toc-zero td { color: var(--ink-2); text-decoration: line-through; }
.toc-imp tr.toc-zero td .toc-step, .toc-imp tr.toc-zero td .toc-step * { text-decoration: none; }
.toc-imp td.toc-foot { font-style: italic; color: var(--ink-2); background: var(--panel-2); }
.head-stack { display: flex; flex-direction: column; gap: 6px; }
.head-btns { align-items: flex-start; }
.toc-date { align-items: flex-end; gap: 12px; } .toc-date .field { margin: 0; }
/* 1.2.135: Daily Meeting Schedule (Plans Chief) — the team's workbook layout */
table.dms-ed input { width: 100%; }
table.dms-ed .dms-tin { width: 90px; text-align: center; font-weight: 600; }
table.dms-ed tr.dms-new td { background: var(--panel-2); }
.sheet.dms-sheet { height: auto; min-height: 11in; padding: .3in .45in; display: block; }
table.dms-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.dms-t td { border: 0; padding: 0 4px; vertical-align: middle; overflow: visible; }
.dms-logo { text-align: center; }
.dms-logo img { max-width: 100%; max-height: calc(1.45in * var(--kh, 1)); object-fit: contain; }
.dms-team { font: 700 calc(24pt * var(--kh, 1)) "Times New Roman", Times, serif; text-align: center; height: calc(.6in * var(--kh, 1)); line-height: 1.05; }
.dms-ic { font: 700 calc(16pt * var(--kh, 1)) "Times New Roman", Times, serif; text-align: center; height: calc(.4in * var(--kh, 1)); }
.dms-inc { font: 700 calc(24pt * var(--kh, 1)) "Times New Roman", Times, serif; color: #2f5597; text-align: center; height: calc(.6in * var(--kh, 1)); line-height: 1.05; }
.dms-title { font: 700 calc(19pt * var(--kh, 1)) "Times New Roman", Times, serif; text-align: center; height: calc(.48in * var(--kh, 1)); }
tr.dms-row td { height: calc(.36in * var(--k, 1)); font: 700 calc(16pt * var(--k, 1)) Calibri, Carlito, "Segoe UI", Arial, sans-serif; line-height: 1.1; }
tr.dms-row { break-inside: avoid; }
td.dms-time { text-align: center; }
@media print { .sheet.portrait.dms-sheet { height: auto; min-height: 0; padding: 0; } }
@media print { header.vb-top, .pc-tabs, .pc-main > .tabs, .no-print { display: none !important; } .pc-main { padding: 0 !important; margin: 0 !important; } }
/* Transition Glidepath (1.2.137) */
.tg-start { max-width: 320px; margin: 4px 0 12px; } .tg-start input { width: 120px; } .tg-start small { margin-left: 8px; }
table.tg-ed input { width: 100%; } table.tg-ed .tg-tin { width: 90px; text-align: center; font-weight: 600; }
table.tg-ed tr.tg-ed-day th { background: #bdd6ee; color: #1b2a3a; text-align: left; font-size: .9rem; text-transform: none; letter-spacing: 0; }
table.tg-ed tr.tg-hl td { background: #fbe4d5; }
.tg-add { margin: 0 0 14px; padding: 12px; border: 1px dashed var(--line, #c9ced6); border-radius: 8px; } .tg-add h3 { margin: 0 0 8px; font-size: 1rem; }
.tg-add .row { align-items: flex-end; flex-wrap: wrap; gap: 10px; } .tg-add .field { margin: 0; } .tg-add .tg-grow { flex: 1 1 200px; } .tg-add input.mono { width: 100px; }
.sheet.tg-sheet { height: auto; min-height: 11in; padding: .3in .45in; display: block; }
table.tg-t { width: 100%; border-collapse: collapse; table-layout: fixed; color: #000; }
table.tg-t td { padding: 0 4px; vertical-align: middle; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tg-head td { border: 0; }
.tg-logo { text-align: center; } .tg-logo img { max-width: 100%; max-height: 1.35in; object-fit: contain; }
.tg-team { font: 700 25pt "Times New Roman", Times, serif; text-align: center; height: .44in; white-space: normal !important; line-height: 1.05; }
.tg-ic { font: 700 17pt "Times New Roman", Times, serif; text-align: center; height: .3in; }
.tg-inc { font: 700 25pt "Times New Roman", Times, serif; color: #2f5597; text-align: center; height: .44in; }
.tg-title { font: 700 17pt "Times New Roman", Times, serif; text-align: center; height: .3in; }
table.tg-t .tg-cols td { background: #bdd6ee; font: 700 11.5pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; text-align: center; border: 1.5px solid #000; height: .23in; }
table.tg-t .tg-cols td:nth-child(3), table.tg-t .tg-cols td:nth-child(4) { text-align: left; }
tr.tg-row td { height: .228in; font: 400 11.5pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; border-bottom: 1.5px solid #000; border-right: 1.5px solid #000; }
tr.tg-row td:first-child { border-left: 1.5px solid #000; font-weight: 700; text-align: center; }
tr.tg-row td.tg-time { text-align: center; } tr.tg-row.b td { font-weight: 700; } tr.tg-row.hl td:not(:first-child) { background: #fbe4d5; }
tr.tg-sep td { background: #bdd6ee; height: .228in; border: 1.5px solid #000; border-width: 0 0 1.5px 0; } tr.tg-sep td:first-child { border-left-width: 1.5px; } tr.tg-sep td:last-child { border-right-width: 1.5px; }
tbody.tg-day { break-inside: avoid; page-break-inside: avoid; }
@media print { .sheet.portrait.tg-sheet { height: auto; min-height: 0; padding: 0; } table.tg-t thead.tg-head { display: table-row-group; } }
/* date picker (1.2.137) */
.dp-pop { position: fixed; z-index: 10000; width: 244px; background: #fff; color: #1b2a3a; border: 1px solid #c9ced6; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.25); padding: 8px; font: 14px/1.2 "IBM Plex Sans", "Segoe UI", Arial, sans-serif; }
.dp-pop button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 6px; }
.dp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .dp-h button { width: 30px; height: 28px; font-size: 18px; } .dp-h button:hover { background: #eef1f5; }
.dp-w, .dp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; } .dp-w span { font-size: 11px; color: #6b7685; padding: 2px 0; }
.dp-g button { height: 30px; } .dp-g button:hover { background: #eef1f5; } .dp-g button.today { outline: 1px solid #b8551c; } .dp-g button.sel { background: #b8551c; color: #fff; }
.dp-f { display: flex; justify-content: space-between; margin-top: 6px; } .dp-f button { padding: 4px 10px; color: #b8551c; font-weight: 600; } .dp-f button:hover { background: #fbefe8; }
input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
/* Executive Summary guide (1.2.139) */
.exs-guide { border: 1px solid #c9a227; background: #fffbea; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; color: #1b2a3a; }
.exs-guide-head { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; } .exs-guide-head .row { margin-left: auto; gap: 6px; }
.exs-guide-t { flex: 1 1 320px; } .exs-guide .hint { color: #4a5563; }
.exs-pin { background: #c9a227; color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 999px; margin-top: 2px; }
.exs-guide-body summary { cursor: pointer; margin-top: 8px; font-weight: 600; color: #8a6d00; }
.exs-guide-doc { margin-top: 8px; padding: 12px 16px; background: #fff; border: 1px solid #e6dcb0; border-radius: 8px; max-height: 520px; overflow: auto; font-size: .92rem; line-height: 1.45; }
.exs-guide-doc h1 { font-size: 1.2rem; margin: 0 0 8px; } .exs-guide-doc h2 { font-size: 1rem; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .03em; color: #2f5597; } .exs-guide-doc p { margin: 0 0 8px; }
textarea.exs-guide-ta { width: 100%; min-height: 460px; margin-top: 8px; font: 13px/1.45 "IBM Plex Mono", Consolas, monospace; }
/* Executive Summary › Additional Inputs (1.2.140) */
table.exsa-table td { vertical-align: top; } table.exsa-table select { width: 100%; } textarea.exsa-note { width: 100%; min-height: 44px; resize: vertical; }
/* Exec. Summary questions per Section (1.2.141) */
.exs-qhint { margin: -2px 0 6px; font-size: .86rem; color: #5b6573; line-height: 1.4; } .exs-req { color: #c0392b; font-weight: 700; }
.exq-units { flex-wrap: wrap; gap: 4px 14px; align-items: center; } .exq-ul { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #6b7685); }
/* Security (1.2.142) */
.sec-h { margin: 16px 0 6px; font-size: .95rem; }
.sec-qr { display: flex; justify-content: center; margin: 8px 0; } .sec-qr svg { width: 180px; height: 180px; background: #fff; padding: 6px; border-radius: 8px; }
.sec-key { letter-spacing: .06em; user-select: all; } .sec-steps { margin: 6px 0 6px 18px; padding: 0; line-height: 1.45; }
.sec-rec { margin: 8px 0 12px; } .sec-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; padding: 12px 14px; margin: 8px 0; background: var(--panel-2, #f4f2ee); border-radius: 8px; font-size: 1.02rem; letter-spacing: .05em; }
.sec-sess > div { padding: 4px 0; border-bottom: 1px solid var(--line, #e3e1dc); } .sec-sess > div:last-child { border-bottom: 0; }
.sec-banner { white-space: pre-wrap; font-size: .86rem; line-height: 1.45; padding: 10px 12px; border: 1px solid #c9a227; background: #fffbea; color: #3d3410; border-radius: 8px; max-height: 220px; overflow: auto; }
.sec-agree { gap: 8px; font-size: .9rem; align-items: center; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; margin-bottom: 10px; }
.audit-f { flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-bottom: 10px; } .audit-f .field { margin: 0; } .audit-f input, .audit-f select { min-width: 150px; }
table.audit-t td { vertical-align: top; } table.audit-t tr.audit-warn td { background: #fff4f2; }
/* Transfer of Command Agenda (1.2.143) */
.ta-logos { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 12px; } .ta-lg { display: grid; gap: 6px; justify-items: start; padding: 10px; border: 1px solid var(--line, #dfe1e6); border-radius: 8px; min-width: 220px; }
.ta-lg img { max-width: 200px; max-height: 110px; object-fit: contain; } .ta-lgl { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #6b7685); }
.ta-ins { display: grid; place-items: center; width: 160px; height: 90px; border: 2px dashed #b9bec7; border-radius: 6px; color: #8a919c; font-size: .85rem; text-align: center; padding: 4px; }
.ta-h3 { margin: 14px 0 6px; font-size: 1rem; } .ta-ed-sec { border: 1px solid var(--line, #dfe1e6); border-radius: 8px; padding: 10px; margin: 0 0 10px; }
.ta-ed-sh { align-items: flex-end; gap: 8px; } .ta-ed-sh .field { margin: 0; } table.ta-ed input, table.ta-ed textarea { width: 100%; } table.ta-ed td { vertical-align: top; } .ta-ed-note { margin-top: 4px; } .ta-ed-note input { font-size: .85rem; }
.sheet.ta-sheet { height: auto; min-height: 11in; padding: .3in .45in; display: block; }
.ta-in { --k: 1; color: #000; font: 400 calc(14pt * var(--k)) Calibri, Carlito, "Segoe UI", Arial, sans-serif; }
table.ta-head, table.ta-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ta-head td { vertical-align: middle; } .ta-logo { text-align: center; height: calc(1.35in * var(--k)); } .ta-logo img { max-width: 100%; max-height: calc(1.3in * var(--k)); object-fit: contain; }
.ta-logo .ta-ins { margin: 0 auto; width: 90%; height: calc(1.1in * var(--k)); }
.ta-mid { text-align: center; font: 700 calc(15pt * var(--k)) Arial, Helvetica, sans-serif; line-height: 1.6; }
table.ta-t { border-left: 1.5px solid #000; border-right: 1.5px solid #000; margin-top: 4px; }
table.ta-t td { padding: calc(1.5px * var(--k)) 6px; height: calc(.27in * var(--k)); vertical-align: middle; }
.ta-t tr:not(.ta-row):not(.ta-sec) td { text-align: center; } .ta-title td { font-size: 1.07em; } .ta-plat td { font-weight: 700; color: #242424; }
.ta-join a, .ta-bc a { color: #0563c1; text-decoration: underline; word-break: break-all; } .ta-bc td { font-size: .92em; }
.ta-sec td { background: #a5c9eb; font-weight: 700; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ta-row td.ta-who { border-left: 0; } .ta-note { padding-left: 2.2em; font-size: .95em; } .ta-cwho { color: #333; }
.ta-gap td { height: calc(.2in * var(--k)) !important; }
@media print { .sheet.portrait.ta-sheet { height: auto; min-height: 0; padding: 0; } .ta-ins { display: none !important; } }
.ta-sheet table.ta-head td, .ta-sheet table.ta-t td { border: 0 !important; }
.ta-sheet table.ta-t { border: 0; border-left: 1.5px solid #000 !important; border-right: 1.5px solid #000 !important; border-bottom: 1.5px solid #000 !important; }
.ta-sheet table.ta-t { border-top: 1.5px solid #000 !important; } /* 1.2.144 */
/* 1.2.146 */
.ta-vrow { align-items: flex-end; gap: 12px 18px; flex-wrap: nowrap; } .ta-vrow .field { margin: 0; } .ta-vgrid { flex: 1; }
.ta-show { gap: 8px; white-space: nowrap; font-size: .9rem; font-weight: 600; padding-bottom: 10px; align-items: center; }
@media (max-width: 800px) { .ta-vrow { flex-wrap: wrap; } }
/* Recission of Delegation of Authority (1.2.148) */
.rd-item { align-items: flex-start; gap: 8px; margin-bottom: 6px; flex-wrap: nowrap; } .rd-item textarea { flex: 1; width: 100%; } table.rd-ags input { width: 100%; }
.sheet.rd-sheet { height: auto; min-height: 11in; padding: .4in .55in; display: block; }
table.rd-t { width: 100%; border-collapse: collapse; color: #000; font: 400 11pt Arial, Helvetica, sans-serif; line-height: 1.3; } table.rd-t > * > tr > td { border: 0 !important; padding: 0; vertical-align: top; }
.rd-head td { border: 0 !important; vertical-align: middle; } .rd-mid { text-align: center; } .rd-team { font: 700 13pt Arial, Helvetica, sans-serif; margin: 2px 0; } .rd-inc { font: 700 18pt Arial, Helvetica, sans-serif; margin-top: 4px; } .rd-title { font: 700 15pt Arial, Helvetica, sans-serif; margin: 2px 0 10px; }
.rd-sheet .ta-logo { height: 1.25in; } .rd-sheet .ta-logo img { max-height: 1.2in; }
.rd-p { margin: 0 0 10px; } .rd-sec h3 { font: 700 13pt Arial, Helvetica, sans-serif; text-align: center; margin: 6px 0 6px; break-after: avoid; }
.rd-b { display: flex; gap: 10px; margin: 0 0 8px; padding-left: 16px; break-inside: avoid; } .rd-b > span { width: 14px; flex: none; text-align: center; }
.rd-end { margin-top: 14px; } .rd-sigs { margin-top: 28px; } .rd-sigrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; margin-bottom: 26px; break-inside: avoid; padding: 0 .3in; }
.rd-sig { min-height: .6in; } .rd-line { border-top: 1px solid #000; margin-top: .45in; margin-bottom: 3px; width: 85%; }
@media print { .sheet.portrait.rd-sheet { height: auto; min-height: 0; padding: 0; } }
.rd-202 { margin: 0 0 8px 18px; padding: 0; line-height: 1.45; } /* 1.2.149 */
/* several upper-left logos (1.2.150) */
.lg-grid { display: grid; gap: 4px; align-items: center; justify-items: center; height: 100%; }
.lg-grid img { max-width: 100%; max-height: calc((1.25in * var(--k, 1) - 4px * (var(--lgr) - 1)) / var(--lgr)) !important; object-fit: contain; }
.rd-sheet .lg-grid img { max-height: calc((1.2in - 4px * (var(--lgr) - 1)) / var(--lgr)) !important; }
.ta-lgs { flex: 1 1 380px; } .lg-list { display: flex; flex-wrap: wrap; gap: 10px; } .lg-it { display: grid; gap: 4px; justify-items: center; padding: 6px; border: 1px solid var(--line, #dfe1e6); border-radius: 6px; }
.lg-it img { max-width: 120px; max-height: 80px; object-fit: contain; }
/* 1.2.152: logos wrap in rows of 2 (or 3); a short last row is centred */
.lg-grid { display: flex !important; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; }
.lg-grid img { width: calc((100% - 4px * (var(--lgc) - 1)) / var(--lgc)); }
/* 1.2.158 Leader's Intent Poster */
.sheet.lip-sheet { height: auto; min-height: 11in; padding: .4in .45in; display: block; }
.lip-in { --k: 1; font-family: 'Times New Roman', Times, serif; font-weight: 700; color: #000; text-align: center; }
table.lip-head { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: calc(10px * var(--k)); }
.lip-head td { border: 0 !important; vertical-align: middle; padding: 0; }
.lip-logo { height: calc(1.45in * var(--k)); } .lip-logo img { max-width: 100%; max-height: calc(1.4in * var(--k)); object-fit: contain; display: block; margin: 0 auto; }
.lip-team, .lip-inc { font-size: calc(30px * var(--k)); line-height: 1.15; } .lip-ic { font-size: calc(21px * var(--k)); line-height: 1.3; margin: calc(4px * var(--k)) 0; }
.lip-sec { margin-top: calc(16px * var(--k)); }
.lip-sec h2 { font: 700 calc(22px * var(--k)) / 1.2 'Times New Roman', Times, serif; margin: 0 0 calc(8px * var(--k)); color: #000; }
.lip-sec p, .lip-b { font-size: calc(17px * var(--k)); line-height: 1.25; margin: 0 0 calc(12px * var(--k)); }
.lip-b { display: grid; grid-template-columns: 1.4em 1fr; text-align: center; padding-right: 1.4em; } .lip-b span { text-align: right; padding-right: .3em; font-size: 1.2em; line-height: 1.05; }
@media print { .sheet.portrait.lip-sheet { height: auto; min-height: 0; padding: 0; } }
.lip-rule { border-top: calc(3px * var(--k)) solid #000; margin: 0 0 calc(4px * var(--k)); } /* 1.2.159: black separator under the heading */
/* 1.2.160 additional QR links */
.qr-links { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line, #dfe1e6); border-radius: 8px; }
.qp-xlink .qp-t b { display: block; } .qp-xlink .qp-url { display: block; color: #1a5fb4; text-decoration: underline; word-break: break-all; font-size: .92em; margin-top: 2px; }
/* 1.2.161: Daily Meeting Schedule header like the team's letterhead: faded logo on the left, team name and "Name, IC" right-aligned in grey */
tr.dms-hd td { padding-bottom: 6px; height: 1.1in; } /* fixed, so the fit does not wait for the logo to load */ .dms-sheet .dms-logo { text-align: left; } .dms-sheet .dms-logo img { max-height: 1.05in; max-width: 100%; opacity: .55; display: block; }
.dms-hr { text-align: right; vertical-align: middle; padding-right: 2px; }
.dms-sheet .dms-team, .dms-sheet .dms-ic { font: 700 16pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #7f7f7f; text-align: right; height: auto; line-height: 1.3; }
/* 1.2.162: Transition Glidepath header like the Daily Meeting Schedule: faded logo on the left, team name and "Name, IC" right-aligned in grey */
tr.tg-hd td { height: 1.1in; padding-bottom: 6px; } .tg-sheet .tg-logo { text-align: left; } .tg-sheet .tg-logo img { max-height: 1.05in; max-width: 100%; opacity: .55; display: block; }
table.tg-t td.tg-hr { text-align: right; white-space: normal; padding-right: 2px; }
.tg-sheet .tg-team, .tg-sheet .tg-ic { font: 700 16pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #7f7f7f; text-align: right; height: auto; line-height: 1.3; white-space: normal; }
/* 1.2.163 Transfer of Command › Additional Inputs in the print */
.toc-add .toc-fig { margin: 8px 0 14px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.toc-add .toc-fig img { max-width: 100%; max-height: 6.5in; object-fit: contain; }
.toc-add figcaption { font-size: 10.5pt; margin-top: 4px; color: #222; }
.toc-add .toc-files { margin: 6px 0 0 18px; } .toc-add .toc-files li { margin: 3px 0; }
.toc-units { max-width: 360px; } /* 1.2.165 AAR section drop-down */
/* 1.2.166 Check-in Questionnaire */
.ci-topwrap { padding: 12px 20px 0; } .ci-topwrap .pc-top { margin: 0; }
table.ciq-t td { vertical-align: top; } table.ciq-t input[data-b] { width: 100%; } table.ciq-t .ciq-ch { width: 100%; margin-top: 6px; font-size: .85rem; }
table.ciq-t td.c, table.ciq-t th.c { text-align: center; } table.ciq-t td.ciq-n { color: var(--muted, #6b7280); font-variant-numeric: tabular-nums; padding-top: 12px; }
table.ciq-t tr.ciq-sec td { background: var(--panel-2, #f1f2f4); font-weight: 700; font-size: .78rem; letter-spacing: .06em; }
table.ciq-t tr.ciq-off td:not(:nth-last-child(2)):not(:last-child) { opacity: .45; } table.ciq-t tr.ciq-off input[data-b] { text-decoration: line-through; }
.ci-card .ciform-q { display: grid; gap: 4px; margin: 0 0 12px; } .ci-card .ciform-q input, .ci-card .ciform-q select { width: 100%; max-width: 520px; }
.ci-card .ci-sec { margin-top: 22px; letter-spacing: .04em; } .ci-req { color: #b42318; }
.ci-in-wrap { max-height: 70vh; overflow: auto; } table.ci-in th, table.ci-in td { white-space: nowrap; } table.ci-in th { position: sticky; top: 0; z-index: 1; }
.ci-lwd { font-size: .9rem; color: var(--ink-2, #444); margin-top: 4px; } /* 1.2.170 */
/* 1.2.172 From the Check-in page */
.ci-main > .ci-mid { justify-self: center; width: min(380px, 100%); display: grid; gap: 16px; } .ci-mid > .ci-wait { width: 100%; }
.ci-inrow { display: flex; align-items: center; gap: 6px; } .ci-inrow .ci-pick { margin-left: auto; display: flex; } .ci-inrow .ci-pick input { width: 18px; height: 18px; }
.ci-inrow small { margin-left: auto; } .ci-inrow.on { outline: 2px solid #2f6f4f; }
.ci-qr { display: flex; gap: 14px; align-items: center; margin: 10px 0 0; } .ci-qr-code svg { width: 170px; height: 170px; display: block; } .ci-qr .hint { margin: 0; } /* 1.2.174 */
/* 1.2.175 Demob Resources + ICS 221 */
.dm-units { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #dfe1e6); border-radius: 8px; margin: 4px 0 14px; }
.dm-ul { flex-basis: 100%; font-weight: 600; font-size: .9rem; } .dm-sec { display: grid; gap: 4px; } .dm-sec > b { font-size: .75rem; letter-spacing: .05em; color: var(--muted, #555); } .dm-u { gap: 6px; }
table.dm-t td.c, table.dm-t th.c { text-align: center; } table.dm-t tr.dm-on td { background: #fff4e5; } .dm-today { background: #b42318; color: #fff; border-radius: 8px; padding: 0 6px; font-size: .75rem; font-family: inherit; }
.sheet.i221 { font-family: Arial, Helvetica, sans-serif; color: #000; font-size: 9.5pt; break-after: page; page-break-after: always; }
.sheet.i221:last-child { break-after: auto; page-break-after: auto; }
.i221-title { text-align: center; font-weight: 700; font-size: 14pt; margin: 0 0 6px; }
table.i221-t { width: 100%; border-collapse: collapse; table-layout: fixed; } table.i221-t > tbody > tr > td { border: 1.4px solid #000; padding: 3px 5px; vertical-align: top; }
.i221-v { font-family: Arial, Helvetica, sans-serif; color: #0b3d91; font-weight: 600; margin-left: 4px; } .i221-dt { margin-top: 3px; }
.i221-p { margin: 2px 0 4px 14px; font-size: 9pt; } .i221-sh { font-weight: 700; margin: 6px 0 0 6px; }
table.i221-st { width: 100%; border-collapse: collapse; table-layout: fixed; } table.i221-st td { border-bottom: 1px solid #000; height: .2in; padding: 0 4px; font-size: 9pt; }
table.i221-st td:nth-child(n+2) { border-left: 1px solid #000; } table.i221-st tr.i221-sth td { border: 0; font-weight: 700; height: auto; }
.i221-box { display: inline-block; width: 11px; height: 11px; border: 1.2px solid #000; text-align: center; line-height: 10px; font-size: 10px; font-weight: 700; vertical-align: -1px; }
.i221-rm { height: .75in; } .i221-g { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; } .i221-g u, .i221-pb u, .i221-t u { display: inline-block; min-width: 1.4in; border-bottom: 1px solid #000; text-decoration: none; color: #0b3d91; font-weight: 600; }
.i221-note { font-size: 9pt; color: #555; }
@media print { .sheet.portrait.i221 { padding: 0; } }
.dm-u .dm-name { width: 180px; padding: 3px 6px; font-size: .88rem; } /* 1.2.176 */
.dm-days { margin-left: auto; padding-left: 14px; border-left: 1px solid var(--line, #dfe1e6); white-space: nowrap; } .dm-units { column-gap: 22px; } /* 1.2.178 */
.dm-dem { background: #6b4fbb; color: #fff; border-radius: 8px; padding: 0 6px; font-size: .75rem; font-family: inherit; } /* 1.2.179 */
.dm-days .dm-q { width: 220px; padding: 4px 8px; } .dm-days small { white-space: normal; max-width: 220px; } .dm-fnd { background: #1a5fb4; color: #fff; border-radius: 8px; padding: 0 6px; font-size: .75rem; font-family: inherit; } .dm-pr { background: #e6e6e6; color: #333; border-radius: 8px; padding: 0 6px; font-size: .72rem; font-family: inherit; } /* 1.2.180 */

/* 1.2.181–182: the Anchor Point RIMS logo (round seal; never recoloured) */
.gs-logo { display: block; height: auto; flex: none; border-radius: 50%; }
.gs-top { height: 50px; width: 50px; }
.brand-name { font: 700 1.05rem var(--f-cond, inherit); letter-spacing: .03em; white-space: nowrap; }
.gs-auth { width: 190px; max-width: 100%; margin: 0 auto 14px; }
.gs-hd { height: 60px; width: 60px; }
.exs-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* 1.2.183: Values at Risk */
.var-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .var-grid { grid-template-columns: 1fr; } }
.var-t td.num { width: 2.5em; text-align: center; color: var(--ink-2); } .var-t td.acts { white-space: nowrap; width: 1%; }
.var-t input, .var-t select { width: 100%; }
.var-grp { margin-top: calc(18px * var(--k)); }
.var-grp h2 { font: 700 calc(22px * var(--k)) / 1.2 'Times New Roman', Times, serif; margin: 0 0 calc(6px * var(--k)); color: #000; }
.var-b { font-weight: 400; margin-bottom: calc(6px * var(--k)); } .var-b span { font-weight: 700; }
.var-t td.var-on { width: 1%; text-align: center; } .var-t tr.var-off td:not(.var-on):not(.acts) { opacity: .5; } /* 1.2.184 */
.sec-fixed { display: flex; align-items: center; gap: 8px; min-height: 36px; flex-wrap: wrap; } /* 1.2.185 */
.org-code { font-weight: 700; letter-spacing: .08em; font-size: 1.02em; } /* 1.2.187 */
.exs-guide-doc table.md-t { border-collapse: collapse; width: 100%; margin: 6px 0 10px; font-size: .92em; } .exs-guide-doc table.md-t th, .exs-guide-doc table.md-t td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; } .exs-guide-doc table.md-t th { background: var(--panel-2); } /* 1.2.189 */
.pw-wrap { position: relative; display: block; } .pw-wrap > input { width: 100%; padding-right: 40px; } /* 1.2.191: show-password eye */
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: var(--ink-2); cursor: pointer; line-height: 0; border-radius: 6px; }
.pw-eye:hover { color: var(--ink); background: var(--panel-2); } .pw-eye.on { color: var(--accent); }
.row > .pw-wrap { display: inline-block; flex: 0 1 auto; } .row > .pw-wrap > input { max-width: 180px; }
.adm-req { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #ffd6d2; border-color: #e0786e; color: #8a1f14; animation: pendFlash 10s infinite; } /* 1.2.192: the same flashing red as the resource notice */
.adm-req strong { color: inherit; } .adm-req .btn.primary { background: #c9372c; border-color: #c9372c; color: #fff; }
@media (prefers-reduced-motion: reduce) { .adm-req { animation: none; } } .adm-flash { box-shadow: 0 0 0 3px var(--warn); transition: box-shadow .3s; }
.acc-alert { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 75; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 10px; border: 1px solid #e0786e; background: #ffd6d2; color: #8a1f14; font-weight: 700; box-shadow: var(--shadow); animation: pendFlash 10s infinite; max-width: calc(100% - 140px); } /* 1.2.193 */
.acc-alert .btn { background: #c9372c; border-color: #c9372c; color: #fff; } .acc-alert .btn:hover { background: #a92c23; }
@media (prefers-reduced-motion: reduce) { .acc-alert { animation: none; } }
@media print { .acc-alert { display: none !important; } }
.save-alert { position: fixed; left: 50%; transform: translateX(-50%); top: 10px; z-index: 80; max-width: min(720px, calc(100% - 32px)); padding: 10px 16px; border-radius: 10px; background: #c9372c; color: #fff; box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; } /* 1.2.195 */
@media print { .save-alert { display: none !important; } }
.qr-lvwhy { margin-top: 4px; font-size: 13px; color: #8a1f14; background: #fde8e6; border-radius: 6px; padding: 4px 8px; } .qr-lvwhy.warn { color: #7a4b00; background: #fff3d6; } /* 1.2.196 */
.qp-top .qp-logo { width: auto; max-width: 160px; height: 60px; object-fit: contain; border-radius: 0; } /* 1.2.197: the IAP cover logo */
.gs-videos { margin: 8px 0 14px; padding: 10px 14px; border: 1px solid #b9d3c2; border-left: 4px solid #2f6b47; border-radius: 8px; background: #eef6f0; } /* 1.2.199 */
.gs-videos ul { margin: 6px 0 0; padding-left: 18px; } .gs-videos li { margin: 3px 0; } .gs-vid { font-weight: 600; color: #1f5f99; } .gs-vid-t { color: #5c6660; font-size: .9em; }
@media print { .gs-videos { break-inside: avoid; } }

/* 1.2.202: search boxes on the Organizations and accounts tables */
.adm-search { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.adm-search input { flex: 0 1 420px; min-width: 0; height: 34px; min-height: 0; padding: 4px 10px; }
@media print { .adm-search { display: none; } }

/* 1.2.203: Request notifications in Security settings */
.ntf-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line, #ddd); }
.ntf-box h3 { margin: 0 0 4px; font-size: 1rem; }
.ntf-grid { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: center; margin-top: 8px; }
.ntf-opt { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ntf-res { margin-top: 6px; }
@media (max-width: 640px) { .ntf-grid { grid-template-columns: 1fr; } }
.ntf-alert { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: .75rem; color: var(--ink-2); margin-top: 4px; white-space: nowrap; }
.ntf-consent { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: .85rem; line-height: 1.45; margin: 8px 0; }
.ntf-agree { display: flex !important; flex-wrap: nowrap; gap: 10px; align-items: flex-start; font-weight: 500; }
.ntf-agree input { width: auto !important; min-height: 0; flex: 0 0 auto; margin-top: 4px; }
.auth-legal { text-align: center; margin-top: 14px; }
