/* The portal's own additions to the design kit (ui/dpr-ui.css, loaded first). Only what the kit does not have.
   One section per group of screens. No colours of its own: the kit's tokens only. */

/* ============ frame and shared pieces ============ */
.gov-mark .icon { width: 22px; height: 22px; }
.topbar-brand .gov-mark .icon { width: 18px; height: 18px; }
.topbar-filters { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.topbar-filters .select { width: auto; max-width: 16rem; }
.filters-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.filters-row .select { flex: 1 1 9rem; min-width: 0; width: auto; }
.side-top { display: flex; align-items: center; }
.side-top .brand { flex: 1; min-width: 0; }
.side-close { display: none; margin-right: var(--s2); }
@media (max-width: 900px) { .side-close { display: inline-grid; } }
.who { color: inherit; text-decoration: none; border-radius: var(--r-md); padding: 4px; margin: -4px; }
.who:hover { background: var(--n50); color: inherit; }
.hello { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--s2); }
.foot-note { margin-top: var(--s8); color: var(--muted); font-size: var(--fs-xs); }
.pop { position: relative; display: inline-flex; }
.pop > .menu { top: calc(100% + 4px); right: 0; }
.pop-up > .menu { top: auto; bottom: calc(100% + 4px); }
.pop-start > .menu { right: auto; left: 0; }
.menu[hidden] { display: none; }
button.list-item { cursor: pointer; font: inherit; }
button.list-item:hover { background: var(--n25); }
button.list-item .grow, button.list-item .list-title, button.list-item .list-meta { display: block; }
/* on phones a text button keeps its look but answers to a 44 px tall touch */
@media (max-width: 900px) { .link-btn { position: relative; }  .link-btn::after { content: ""; position: absolute; inset: -11px -4px; } }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.tags .tag { white-space: normal; max-width: 100%; height: auto; }
.pre { white-space: pre-line; }
.range { min-width: 0; max-width: 100%; }
.seg-scroll { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-scroll > * { flex: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.range-date .input { width: auto; }
.part-title { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-lg); }
.dept-box { max-height: 16rem; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--s3); background: var(--surface); }
.check.is-off { opacity: .45; }
.fame-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.embed iframe { display: block; width: 100%; border: 0; border-radius: var(--r-md); background: var(--n50); }
.asset-acts { gap: var(--s3); margin-top: 4px; }
.pw-card { max-width: 30rem; }

/* the page the PDF service opens: the morning report alone, in the font the PDF uses */
@font-face { font-family: "Hind"; font-weight: 400; src: url("/vendor/Hind-Regular.ttf"); }
@font-face { font-family: "Hind"; font-weight: 600; src: url("/vendor/Hind-SemiBold.ttf"); }
body.report-page { background: #fff; font-family: "Hind", sans-serif; }
.report-gone { padding: 24px; }

/* ============ the employee's day (js/day.js) ============ */
.day-hello { margin: 0 0 2px; color: var(--muted); font-size: var(--fs-sm); }
.day-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.hero .stat-sub b { color: #fff; font-weight: 600; }
.hero .link-btn, .hero .link-btn:hover { color: #fff; }
.pick > .hint { margin: 0; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { align-items: flex-start; }
.entry > .pf, .entry > .file-thumb { margin-top: 2px; }
.entry .list-title { overflow-wrap: anywhere; }
.entry-meta { gap: 2px var(--s3); margin-top: 4px; align-items: center; }
.entry-url { display: block; max-width: 100%; margin-top: 2px; color: var(--muted); }
.entry-reach { gap: var(--s2); margin-top: var(--s2); align-items: center; }
.reach-in { width: 7.5rem; }
.entry-del, .entry-del:hover { color: var(--muted); }
.gfx-thumb { width: 44px; height: 44px; }
.ratenote .status { margin-inline-start: 4px; vertical-align: middle; }
.add-for { margin: 0; color: var(--muted); }
.add-for b { color: var(--ink); }
.add-row + .add-row { padding-top: var(--s5); border-top: 1px solid var(--line-soft); }
.add-found { margin-top: var(--s2); }
.add-found.is-bad { border-color: var(--r100); background: var(--r50); }
.own-hint.good { color: var(--g700); }
.own-hint.bad { color: var(--r700); font-weight: 600; }
.field > .pf-hint, .field > #add-msg { margin-top: var(--s2); }
.add-saved { padding-block: 10px; }
.gfx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: end; }
.gfx-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: end; }
.upload { cursor: pointer; }
.upload:focus-within { outline: 2px solid var(--b600); outline-offset: 2px; }
.upload-slim { flex-direction: row; justify-content: center; padding: var(--s4); }
.upload-slim .icon { color: var(--b600); }
.up-item .bar { margin: 6px 0 2px; }
#gf-prev { margin-top: var(--s2); }
/* (rules of this group go above this line) */


/* ============ review (js/review.js) ============ */
/* the rating queue: people on the left, one person on the right, the rating bar always in view */
.q-tabs { margin-bottom: var(--s5); }
.q-ld .ld-list { padding: 0; }
.q-top { padding: var(--s4) var(--s5) var(--s3); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 2; background: var(--surface); }
.q-prog { height: 4px; margin-top: 6px; }
.q-top .seg { display: flex; }
.q-top .seg button { flex: 1 1 0; white-space: nowrap; }
.q-row { width: 100%; text-align: start; cursor: pointer; font: inherit; }
.q-row[hidden] { display: none; }
.q-row .list-title, .q-row .list-meta { display: block; }
.q-none { padding: var(--s5); }
.q-given { gap: var(--s2) var(--s4); margin-top: 6px; }
.q-back { display: none; }
.q-split { color: var(--n700); font-size: var(--fs-sm); }
.q-split b { color: var(--ink); }
.q-ent { border-bottom: 1px solid var(--line-soft); }
.q-ent:last-child { border-bottom: 0; }
.q-ent > .list-item { border-bottom: 0; align-items: flex-start; }
.q-ent-meta { gap: 2px var(--s3); }
.q-ent .entry-url { display: block; max-width: 100%; }
.q-embed { padding: 0 var(--s5) var(--s4); }
.q-raw-h { margin-bottom: var(--s2); }
.q-files { display: flex; gap: var(--s3); overflow-x: auto; padding-bottom: var(--s2); }
.q-files > .file { flex: 0 0 280px; min-width: 0; }
.q-bar { position: sticky; bottom: 0; z-index: 14; margin-top: var(--s5); padding: var(--s3) var(--s5) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -6px 18px rgb(22 27 36 / .08); }
.q-bar-top { margin-bottom: var(--s2); gap: var(--s2); }
.q-bar .rate label { min-height: 52px; padding: 6px 4px; text-align: center; line-height: 1.25; }
.q-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); }
.q-fields .label { font-size: var(--fs-sm); margin-bottom: 2px; }
.q-bar-acts { flex-wrap: nowrap; }
.q-bar-acts .hint { margin: 0; min-width: 0; }
.q-extra { margin-top: var(--s6); }
@media (max-width: 1100px) {
  .q-back { display: inline-flex; }
  .q-open .q-head, .q-open .q-extra { display: none; }
  .q-keys { display: none; }
  .q-top { position: static; }
}
@media (hover: none) { .q-keys { display: none; } }
.q-kpis .stat-value { font-size: var(--fs-xl); }
.flag { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line-soft); }
.flag:last-child { border-bottom: 0; }
.flag-top { gap: var(--s2); }
.flag-ev { margin: 0; padding-inline-start: var(--s5); color: var(--n700); }
.q-done > summary { cursor: pointer; padding: var(--s2) 0; color: var(--n700); font-weight: 500; }
.q-ftools { gap: var(--s3); }
.q-ftools .search { max-width: 360px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
.asset-grid > [hidden] { display: none; }
.q-rank-end { gap: var(--s4); color: inherit; }
.q-rank-end .stat { align-items: flex-end; }
@media (max-width: 720px) { .q-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }  .q-two { grid-template-columns: minmax(0, 1fr); }  .q-rank { flex-wrap: wrap; }  .q-rank-end { margin-left: 40px; flex: 1 1 100%; max-width: calc(100% - 40px); justify-content: space-between; }  .q-rank-end .stat { align-items: flex-start; } }
@media (max-width: 720px) {
  .q-bar { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px)); border-inline: 0; border-radius: 0; }
  .q-bar-acts .hint { display: none; }
  .q-bar-acts .btn-primary { flex: 1 1 auto; min-height: 48px; }
  .q-bar-acts { justify-content: space-between; }
  .q-fields { grid-template-columns: 1fr 1fr; }
  .q-fields .field:nth-child(3) { grid-column: 1 / -1; }
  .q-bar .rate label b { font-size: var(--fs-md, 1rem); }
}
/* (rules of this group go above this line) */


/* ============ dashboard (js/dashboard.js) ============ */
.dash-say { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink); max-width: 62ch; }
.dash-tools { gap: var(--s3); }
.dash-days { margin: 0; width: min(420px, 38vw); }
.dash-days .days { height: 96px; }
.hero .days i { background: rgb(255 255 255 / .38); }
.hero .days i.is-now { background: #fff; }
.dash-days figcaption { margin-top: 6px; color: rgb(255 255 255 / .78); gap: var(--s2); }
.hero .delta { background: rgb(255 255 255 / .16); color: #fff; }
.dash-kpis > a.stat:hover .stat-label { text-decoration: underline; }
.dash-grid { align-items: start; gap: var(--s5); }
.dash-panel { min-width: 0; }
.share > i.s-x { background: #111; }  .share > i.s-fb { background: #1463cc; }  .share > i.s-ig { background: #b8317f; }  .share > i.s-yt { background: #d92315; }  .share > i.s-ot { background: var(--n500); }
.dash-pf { grid-template-columns: minmax(0, 1fr) max-content max-content; }
.dash-pf .row { gap: var(--s2); }
.dash-bars { grid-template-columns: minmax(0, 1.1fr) minmax(60px, 1fr) max-content; }
.dash-under { display: block; font-weight: 400; }
.dash-scroll { max-height: 372px; overflow: auto; }
.dash-scroll > .list-item { flex: none; }
.dash-missing .list-title { display: inline-block; }
.dash-missing { scroll-margin-top: calc(var(--topbar-h) + var(--s4)); }
.dash-missing .remind { white-space: nowrap; }
.dash-tot { display: inline-flex; align-items: center; gap: var(--s2); justify-content: flex-end; }
.dash-tot .bar { width: 72px; }
.dash-depts tr.is-zero td { color: var(--muted); }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-hero .hero-split { grid-template-columns: minmax(0, 1fr); }
  .dash-days { width: 100%; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-say { font-size: var(--fs-md, 1rem); }
  .dash-missing .list-item { flex-wrap: wrap; }
  .dash-missing .list-end { margin-left: 40px; flex: 1 1 100%; }
  .dash-missing .remind { margin-left: -10px; }
  .dash-scroll { max-height: 420px; }
  .dash-tot .bar { display: none; }
}
/* (rules of this group go above this line) */


/* ============ team, one person's page, my team, agency team, approvals, my record, profile, account (js/person.js, js/team.js) ============ */
/* team.js: class names start with tm- */
.tm-open { color: inherit; text-decoration: none; }
.tm-open:hover, .tm-open:focus-visible { color: var(--b700); text-decoration: underline; }
.table .cell-main .tm-open, .table .cell-main > div > span { white-space: nowrap; }
.table td.tm-posc { min-width: 11rem; }
.table .tm-line .tag, .table .tm-leadc .tag { white-space: normal; }
.tm-tag { margin-inline-start: 6px; font-weight: 500; vertical-align: middle; }
.tm-sub { display: block; color: var(--muted); font-size: var(--fs-xs); }
.tm-pos { width: auto; max-width: 100%; }
.tm-area { width: 10.5rem; max-width: 100%; min-height: 36px; padding-block: 4px; }
.tm-rate > span { margin-inline-end: 6px; }
.table td.tm-rate { white-space: nowrap; }
.tm-step { margin: 0; }
.tm-example { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--n50); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.tm-file { cursor: pointer; }
.tm-file:focus-within { outline: 2px solid var(--b600); outline-offset: 2px; }
.tm-note { min-height: 72px; }
.tm-ask-top { gap: var(--s3); align-items: flex-start; }
.tm-none { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
#tm-msg { overflow-wrap: anywhere; }
/* between a phone and a full desk the widest column steps aside; it is on the person's page */
@media (min-width: 721px) and (max-width: 1180px) { .table .tm-mid { display: none; } .table td.tm-posc { min-width: 9rem; } }
@media (max-width: 720px) {
  .table-cards .tm-sub { display: inline; font-size: inherit; }
  .table-cards .tm-sub::before { content: " · "; }
  .table-cards .tm-tag { margin-inline-start: 4px; }
  .table .cell-main .tm-open, .table .cell-main > div > span { white-space: normal; }
  .table-cards td.tm-posc { min-width: 0; }
  .table-cards td.tm-rate { flex-basis: 100%; margin-left: 44px; white-space: normal; }
  .table-cards td.tm-rate::before { content: none !important; }
  .table-cards td.tm-line { flex-basis: 100%; margin-left: 44px; }
  .table-cards td.tm-line + td:not(.cell-end), .table-cards td.cell-hide + td:not(.cell-end) { margin-left: 44px; }
  .table-cards td.tm-line::before, .table-cards td.tm-line + td::before, .table-cards td.cell-hide + td::before { content: none !important; }
  .table-cards .tm-line .tags, .table-cards .tm-line .tag { display: inline; }
  .table-cards .tm-line .tag + .tag::before { content: " · "; }
  .tm-idle { flex-wrap: wrap; }
  .tm-idle .list-end { margin-left: 44px; flex: 1 1 100%; max-width: calc(100% - 44px); min-width: 0; }
  .tm-idle .remind { white-space: normal; }
  .tm-decide .btn { flex: 1 1 100%; }
  .tm-decide .ml-auto { margin-left: 0; }
}
/* one person's page, my record, profile, account (js/person.js): names start with pn- */
.pn-back { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin-bottom: var(--s2); color: var(--n700); font-weight: 600; text-decoration: none; }
.pn-back:hover { color: var(--b700); }
.pn-head { align-items: center; }
.pn-head .idbar { flex: 1 1 18rem; }
.pn-head .idbar p { margin-top: 0; }
.pn-chips { gap: var(--s2) var(--s3); align-items: center; }
.pn-kv .tags, .pn-chips .tags { min-width: 0; }
.pn-kv .tag, .pn-chips .tag { white-space: normal; }
.pn-menu { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
.pn-menu button { text-align: start; white-space: normal; }
.pn-nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) var(--s8); align-items: start; }
@media (max-width: 720px) { .pn-nums { grid-template-columns: minmax(0, 1fr); } }
.pn-big { font-size: var(--fs-3xl); }
.pn-chart { margin-top: var(--s4); max-width: 28rem; }
.pn-chart .days { height: 56px; }
.pn-bars-h { margin-bottom: var(--s3); }
.pn-strip { display: flex; gap: 3px; padding: var(--s4) var(--s5) var(--s3); }
.pn-strip i { flex: 1; max-width: 28px; height: 8px; border-radius: 2px; background: var(--n100); }
.pn-strip .pn-s-ok { background: var(--g600); }
.pn-strip .pn-s-new { background: var(--b400); }
.pn-strip .pn-s-wait { background: var(--y600); }
.pn-strip .pn-s-bad { background: var(--r600); }
.pn-zero td { color: var(--muted); }
.card > .pn-tw:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (max-width: 720px) {
  .pn-t tr { column-gap: var(--s3); }
  .pn-t td.pn-0 { display: none; }
  .pn-t td.cell-first ~ td:not(.cell-end):not(.cell-hide) ~ td:not(.cell-end):not(.cell-hide)::before { content: none; }
}
.pn-none { padding: var(--s4) var(--s5); }
.pn-post { align-items: flex-start; }
.pn-post > .pf { margin-top: 2px; }
.pn-post .list-title { overflow-wrap: anywhere; }
.pn-post .list-end { color: var(--b700); gap: 4px; }
.pn-url { overflow-wrap: anywhere; }
.pn-doc-sec { margin-top: var(--s4); }
.pn-doc-sec .pn-none { padding: var(--s2) 0; }
.photo-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s5); }
.photo-row .field { flex: 1 1 14rem; }
.pn-pick { cursor: pointer; }
.pn-pick:focus-within { box-shadow: var(--focus); }
/* (rules of this group go above this line) */


/* ============ reports, print, morning report (js/reports.js, js/morning.js) ============ */
/* -- reports: one table per view; a row is a card on a phone -- */
.print-only { display: none; }
.rep-top { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; margin-bottom: var(--s4); }
.rep-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.rep-tools .select { flex: 0 1 15rem; width: auto; min-width: 0; }
.rep-tools .hint { margin: 0; }
.rep-links { margin-left: auto; align-items: center; font-size: var(--fs-sm); }
.rep-all-m { flex-basis: 100%; }
.rep-gap { margin-top: var(--s4); }
.rep-table th { white-space: normal; vertical-align: bottom; }
.rep-table .rep-chk { width: 44px; padding-right: 0; }
.rep-tick { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px 0; cursor: pointer; }
.rep-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--b600); }
.rep-table td.is-nil, .rep-table td.is-nil b { color: var(--muted); font-weight: 400; }
.rep-table .cell-end b { color: var(--ink); font-weight: 700; }
.rep-table .cell-main a { color: inherit; text-decoration-color: var(--n300); }
.rep-table .cell-main a:hover { color: var(--b700); }
.rep-sub { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; line-height: 1.4; font-variant-numeric: tabular-nums; }
.rep-table td.cell-first > b { color: var(--ink); font-weight: 600; }
.rep-table tr.rep-more { display: none; }
.rep-open { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.rep-open b { color: var(--ink); font-weight: 600; }
.rep-open .rep-sub { display: inline; }
.rep-table tr.rep-dist td { background: var(--n25); }
.rep-accts { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rep-accts .pf { width: 20px; height: 20px; vertical-align: middle; }
.rep-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.rep-two > * { padding: var(--s5); }
.rep-two > * + * { border-inline-start: 1px solid var(--line-soft); }
.rep-out { font-weight: 400; opacity: .85; }
@media (min-width: 721px) {
  .rep-table th, .rep-table td { padding-inline: 10px; }
  .rep-table th:first-child, .rep-table td:first-child { padding-inline-start: var(--s4); }
  .rep-table th:last-child, .rep-table td:last-child { padding-inline-end: var(--s4); }
  .rep-table tr.rep-dist td.cell-first { padding-inline-start: var(--s10); }
  .rep-table td.cell-first { min-width: 9rem; }
}
@media screen and (max-width: 720px) {
  .rep-tools { gap: var(--s2) var(--s3); padding: var(--s3) var(--s4); }
  .rep-tools .select { flex: 1 1 9rem; }
  .rep-links { margin-left: 0; flex-basis: 100%; }
  .rep-two { grid-template-columns: minmax(0, 1fr); }
  .rep-two > * + * { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
  .rep-table td.rep-chk { order: 0; flex: none; width: auto; }
  .rep-tick { width: 40px; height: 40px; margin: -8px 0 -8px -8px; }
  .rep-table .rep-rate .status { min-height: 0; padding: 0; background: none; font-size: inherit; }
  .rep-table .rep-rate .rep-sub { display: inline; font-size: inherit; }
  .rep-table td.rep-line { flex-basis: 100%; }
  .rep-table td.rep-line::before { content: none !important; }
  .rep-table tr.rep-dist { padding-inline-start: var(--s8); background: var(--n25); }
  .rep-table tfoot tr { border-top: 1px solid var(--line); background: var(--n25); }
  .rep-table tfoot td { border-top: 0; }
  .rep-table tfoot td:not(.cell-first):not(.cell-end) { font-weight: 400; }
}

/* -- the document made for printing (#print): a sheet of paper on the screen, A4 pages on paper -- */
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); max-width: 880px; margin: 0 auto var(--s4); }
.doc-bar-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-left: auto; }
.doc { max-width: 880px; margin: 0 auto; padding: var(--s10); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); color: var(--n800); font-size: var(--fs-sm); line-height: 1.5; }
.doc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s4); padding-bottom: var(--s3); border-bottom: 2px solid var(--b700); }
.doc h1 { font-size: var(--fs-xl); }
.doc h2 { font-size: var(--fs-lg); }
.doc-sub, .doc-who p { margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); }
.doc-meta { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; text-align: end; }
.doc-sec { margin-top: var(--s6); }
.doc-sec > h2 { margin-bottom: var(--s2); }
.doc .person { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); }
.doc-who { margin-bottom: var(--s4); }
/* what js/person.js puts inside: its plain tables and number boxes of today, and the kit's own table, both read as a document */
.doc .sec { margin-top: var(--s5); }
.doc .sec > h2, .doc .sec-head h2, .doc .person h3 { margin-bottom: var(--s2); font-size: var(--fs-md); }
.doc .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.doc .stats { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s8); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); }
.doc .stat-n { color: var(--ink); font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.doc .stat.main .stat-n { color: var(--b700); }
.doc .stat-l { color: var(--muted); font-size: var(--fs-xs); }
.doc .scroll { overflow-x: auto; }
.doc table:not(.table) { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.45; }
.doc table:not(.table) th { padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--n25); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-align: start; vertical-align: bottom; }
.doc table:not(.table) td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc table:not(.table) :is(th, td):is(.n, .num) { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc table:not(.table) tr.total td { border-top: 1px solid var(--line); border-bottom: 0; background: var(--n25); color: var(--ink); font-weight: 700; }
.doc table:not(.table) tr.zero td { color: var(--muted); }
.doc table:not(.table) td.empty { display: table-cell; padding: var(--s4); color: var(--muted); text-align: center; }
.doc table:not(.table) .lbl, .doc i.dot { display: none; }
.doc td.url { min-width: 12rem; font-size: var(--fs-xs); overflow-wrap: anywhere; }
@media (min-width: 721px) { .doc .table th, .doc .table td { padding: 6px 8px; } }
@media screen and (max-width: 720px) {
  .doc { padding: var(--s4); border-radius: var(--r-md); }
  .doc-bar-end { margin-left: 0; }
  .doc-bar-end .btn { flex: 1 1 auto; }
  .doc-meta { margin-left: 0; text-align: start; }
  .doc .scroll > table { min-width: 32rem; }
  .doc .scroll > table:has(td.url) { min-width: 46rem; }
}

/* -- the morning report screen: what can be done with the report (its PDF, WhatsApp), then the report itself -- */
.mr-screen { max-width: 880px; margin-inline: auto; }
.mr-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: var(--s5); }
.mr-part { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s5); }
.mr-part + .mr-part { border-inline-start: 1px solid var(--line-soft); }
.mr-part-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); }
.mr-part-head, .mr-part > .card-title { min-height: 26px; }
.mr-part > .card-title { display: flex; align-items: center; }
.mr-part .hint, .mr-part .notice { margin: 0; }
.mr-part > .btn-row:last-child { margin-top: auto; }
.mr-kv { grid-template-columns: minmax(110px, 44%) minmax(0, 1fr); gap: var(--s2) var(--s4); }
.mr-kv dd { margin: 0; }
.mr-sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; line-height: 1.45; }
.mr-sub .mr-sub { margin-top: 0; }
.mr-set { display: flex; flex-direction: column; gap: var(--s4); }
/* -- the report itself: one document, the same on the screen (a preview), alone on the page the PDF service prints, and on paper -- */
.mr { padding: var(--s10); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); color: var(--n800); font-size: var(--fs-sm); line-height: 1.5; }
.mr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s4); padding-bottom: var(--s3); border-bottom: 2px solid var(--b700); }
.mr-head h2 { font-size: var(--fs-xl); }
.mr-day { margin-top: 2px; color: var(--muted); }
.mr-meta { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; text-align: end; }
.mr-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); margin-top: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); }
.mr-kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: var(--s4); }
.mr-kpi + .mr-kpi { border-inline-start: 1px solid var(--line); }
.mr-label { color: var(--n600); font-size: var(--fs-xs); font-weight: 600; }
.mr-hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.mr-hero b { color: var(--b700); font-size: 2.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mr-hero > span { flex: 1 1 8rem; color: var(--muted); font-size: var(--fs-xs); }
.mr-big { color: var(--ink); font-size: var(--fs-2xl); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mr-big small { color: var(--muted); font-size: .5em; font-weight: 600; }
.mr-cap, .mr-hint, .mr-foot { color: var(--muted); font-size: var(--fs-xs); }
.mr-kpi svg { display: block; width: 100%; height: 46px; margin-top: var(--s1); }
.mr-bar { fill: var(--b200); }
.mr-bar-on { fill: var(--b700); }
.mr-sec { min-width: 0; margin-top: var(--s6); }
.mr-sec h3 { margin-bottom: var(--s2); font-size: var(--fs-md); }
.mr-count { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.mr-t { overflow-x: auto; }
.mr-t table { width: 100%; border-collapse: collapse; line-height: 1.45; }
.mr-t th { padding: 6px 8px; background: var(--n50); color: var(--n600); font-size: var(--fs-xs); font-weight: 600; text-align: start; vertical-align: bottom; }
.mr-t td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.mr-t :is(th, td).n { text-align: end; font-variant-numeric: tabular-nums; }
.mr-t td.n { white-space: nowrap; }
.mr-t tr.mr-total td { border-top: 1px solid var(--line); border-bottom: 0; background: var(--n25); color: var(--ink); font-weight: 700; }
.mr-list { columns: 2; column-gap: var(--s8); margin: 0; padding: 0; list-style: none; }
.mr-list li { padding: 4px 0; border-bottom: 1px solid var(--line-soft); break-inside: avoid; }
.mr-list b { color: var(--ink); font-weight: 600; }
.mr-list span { color: var(--muted); }
.mr-hint { margin-top: var(--s2); }
.mr-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 var(--s6); align-items: start; }
.mr-cols > :only-child { grid-column: 1 / -1; }
.mr-note { margin-top: var(--s2); color: var(--n700); }
.mr-note b { color: var(--ink); font-weight: 600; }
.mr-foot { margin-top: var(--s6); }
.mr-print { max-width: 880px; margin: 0 auto; padding: var(--s6); }
.mr-print .mr { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
/* on a desk and on paper the number columns are only as wide as their numbers, so a row reads as one line */
@media print, (min-width: 721px) {
  .mr-t :is(th, td).n { width: 1%; padding-inline-start: var(--s5); white-space: nowrap; }
  .mr-t th.n.w { min-width: 5.5rem; white-space: normal; }
}
@media screen and (max-width: 720px) {
  .mr-panel { grid-template-columns: minmax(0, 1fr); }
  .mr-part { padding: var(--s4); }
  .mr-part + .mr-part { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
  .mr-part .btn-row .btn { flex: 1 1 auto; }
  .mr-part .btn-row .btn-primary { flex-basis: 100%; }
  .mr { padding: var(--s4); }
  .mr-meta { margin-left: 0; text-align: start; }
  .mr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mr-kpi:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .mr-kpi:nth-child(2) { border-inline-start: 0; }
  .mr-list { columns: 1; }
  .mr-cols { grid-template-columns: minmax(0, 1fr); }
  .mr-t table { font-size: var(--fs-xs); }
  .mr-t th, .mr-t td { padding: 6px 5px; }
  .mr-pin :is(th, td):first-child { position: sticky; left: 0; min-width: 6.5rem; max-width: 46vw; background: var(--surface); box-shadow: 1px 0 0 var(--line-soft); }
  .mr-pin th:first-child { background: var(--n50); }
  .mr-pin tr.mr-total td:first-child { background: var(--n25); }
  .mr-print { padding: var(--s4); }
}

/* -- on paper: A4, no frame, tables stay tables (the sheet is narrower than the kit's phone break) -- */
@page { size: A4; margin: 14mm; }
@media print {
  .print-only { display: block; }
  .hello, .flash, .filters-row, .issued { display: none !important; }
  .rep .page-head { margin-bottom: var(--s2); }
  .rep .page-head p { display: none; }
  .rep-said { margin: 0 0 var(--s3); color: var(--n700); font-size: 12px; }
  .rep-two + .rep-said { margin-top: var(--s3); }
  .rep-card, .rep-two { border: 0; border-radius: 0; break-inside: auto; }
  .rep-table .rep-chk { display: none !important; }
  .rep-table tr.rep-more { display: table-row; }
  .rep .table-wrap, .doc .table-wrap, .doc .scroll { overflow: visible; }
  :is(.rep-table, .doc .table-cards) { display: table; width: 100%; font-size: 11px; }
  :is(.rep-table, .doc .table-cards) thead { display: table-header-group; }
  :is(.rep-table, .doc .table-cards) :is(tbody, tfoot) { display: table-row-group; }
  :is(.rep-table, .doc .table-cards) tr { display: table-row; padding: 0; break-inside: avoid; }
  :is(.rep-table, .doc .table-cards) tr::before { content: none; display: none; }
  :is(.rep-table, .doc .table-cards) :is(th, td) { padding: 5px 6px; }
  :is(.rep-table, .doc .table-cards) td { display: table-cell; border-bottom: 1px solid var(--line-soft); color: var(--n800); font-size: inherit; }
  :is(.rep-table, .doc .table-cards) td.cell-hide { display: table-cell; }
  :is(.rep-table, .doc .table-cards) td.cell-first { min-width: 9rem; }
  :is(.rep-table, .doc .table-cards) td.num { text-align: end !important; }
  :is(.rep-table, .doc .table-cards) td.cell-end { margin: 0; }
  :is(.rep-table, .doc .table-cards) td::before { content: none !important; }
  :is(.rep-table, .doc .table-cards) td > .lbl { display: none !important; }
  :is(.rep-table, .doc .table-cards) tfoot td { border-top: 1px solid var(--line); border-bottom: 0; background: var(--n25) !important; }
  .doc { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 12px; }
  .doc .person { break-before: page; margin-top: 0; padding-top: 0; border-top: 0; }
  .doc-sec + .person:last-child { break-before: auto; margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }   /* one person only: no page with the summary alone */
  .doc table { font-size: 11px; }
  .doc tr { break-inside: avoid; }
  .doc thead { display: table-header-group; }
  .doc, .rep-table, .mr { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mr-screen > .page-head, .mr-panel { display: none !important; }
  .mr-screen, .mr-print { max-width: none; margin: 0; padding: 0; }
  .mr { padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 12px; }
  .mr-t { overflow: visible; }
  .mr-t table { font-size: 11px; }
  .mr-t th, .mr-t td { padding-block: 4px; }
  .mr-t th { font-size: 10px; }
  .mr-list li { padding-block: 3px; }
  .mr-sec { margin-top: var(--s5); }
  .mr-t tr, .mr-top, .mr-note { break-inside: avoid; }
  .mr-t thead { display: table-header-group; }
  .mr-sec h3 { break-after: avoid; }
}
/* (rules of this group go above this line) */


/* ============ master lists, readiness, campaigns (js/masters.js, js/campaigns.js) ============ */
.m-sub { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.m-del, .m-del:hover { color: var(--muted); }
.m-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px var(--s4); }
.m-n { color: var(--muted); font-size: var(--fs-sm); }
.eg { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.toolbar > .search { flex: 1 1 14rem; }
.acc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.acc-bar { margin-top: var(--s2); max-width: 22rem; }
.acc-pf { gap: var(--s2); }
.acc-h { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2); margin-inline-end: var(--s2); overflow-wrap: anywhere; }
.ready .task-name { color: var(--ink); }
.ready .task > .btn { flex: none; }
.camp { display: flex; flex-direction: column; gap: var(--s3); color: inherit; text-decoration: none; }
.camp:hover { border-color: var(--n300); color: inherit; }
.camp .card-title { overflow-wrap: anywhere; }
.camp-line { display: flex; flex-direction: column; gap: 6px; }
.camp-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.camp-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); margin-bottom: var(--s2); }
.camp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: end; }
.camp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.camp-bar { margin-top: var(--s2); }
.camp-cols { align-items: start; }
.camp-post { align-items: flex-start; }
.camp-post .list-title { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .acc-top { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .toolbar > .btn { width: 100%; }
  .camp-top { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .camp-pick { grid-template-columns: minmax(0, 1fr); }
  .ready .task { flex-wrap: wrap; row-gap: var(--s2); }
  .ready .task-name { flex: 1 1 100%; }
}
/* (rules of this group go above this line) */

/* Older days on their way (the page opens on 7 days and fetches earlier ones when a screen needs them) */
.older-page { max-width: 640px; margin: var(--s6, 24px) auto; }
.older-wait, .older-err { align-items: center; }
.older-wait .spinner { flex: none; }
.dash-days .notice { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .3); color: #fff; }
.dash-days .older-wait .spinner { border-color: rgb(255 255 255 / .35); border-top-color: #fff; }
