/* This app's own styles (simmons-estate#122). The house look is css/style.css, copied from Shop Performance. */

.week-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; margin-bottom: 14px; }
.week-field { margin-bottom: 0; }
.week-picker { display: flex; align-items: center; gap: 6px; }
.week-picker input { width: 180px; }
.week-picker .btn { min-width: 40px; font-size: 18px; }
.week-controls .check { margin-bottom: 8px; }

.week-table td.num, .week-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.week-table th.num .day-date { display: block; font-size: 11px; letter-spacing: 0; text-transform: none; }
.week-table td.has { font-weight: 600; color: var(--red); }
.week-table td.total, .week-table th.total { border-left: 1px solid var(--border); }
.week-table tr.shop-row td { background: var(--cream); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; border-top: 1px solid var(--border); }
.week-table tr.shop-row td.num { color: var(--dark); }
.week-table tbody tr.shop-row:hover td { background: var(--cream); }
.week-table tr.grand-row td { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; border-top: 2px solid var(--dark); }
/* The small grey second line in a cell - payroll number, "Still off", who checked it. On every table (Rupert, 9 Oct
   2026: it ran straight on after the bold text on SSP Notice Checks, where it was not switched on). */
.who-sub { display: block; font-size: 12px; font-weight: 400; color: var(--grey-text); margin-top: 3px; line-height: 1.35; }

.emp-table tr.shop-row td { background: var(--cream); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.emp-table tbody tr.shop-row:hover td { background: var(--cream); }

.week-table td.has-ok { font-weight: 600; color: var(--ok); }
/* How a sick day was paid (holiday-sickness#6). */
.pay-tag { display: block; width: max-content; margin: 3px 0 0 auto; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; border: 1px solid; white-space: nowrap; }
.pay-unpaid { background: var(--cream); color: var(--grey-text); border-color: var(--border); }
.pay-csp { background: var(--ok-bg); color: var(--ok); border-color: #A5D6A7; }
.pay-ssp { background: var(--warn-bg); color: var(--warn); border-color: #FFE08A; }
.pay-both { background: #E3F2FD; color: #1565C0; border-color: #90CAF9; }
.pay-other { background: #FFEBEE; color: #B71C1C; border-color: #FFCDD2; }
.legend .pay-tag { display: inline-block; margin: 0; }
/* Names that open a record, and the SSP notice log (holiday-sickness#8). */
a.emp-link, .ssp-table a, .data-table td a { color: var(--dark); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
a.emp-link:hover, .ssp-table a:hover, .data-table td a:hover { color: var(--red); text-decoration-color: var(--red); }
.ssp-note { flex: 1; min-width: 140px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); font-size: 13px; }
.ssp-table tr.ssp-done td { background: var(--cream); }
/* Compact rows (holiday-sickness#98): the sub-lines sit beside their value, the note and buttons on one line. */
.ssp-table td { padding: 5px 10px; font-size: 14px; vertical-align: middle; }
.ssp-table .who-sub { display: inline; margin: 0 0 0 6px; }
.ssp-act { display: flex; gap: 6px; align-items: center; }
.ssp-act .btn-sm { padding-top: 4px; padding-bottom: 4px; white-space: nowrap; }
.ssp-table .note-del { margin-left: 8px; padding: 0; display: inline; }
@media (max-width: 640px) { .ssp-act { flex-wrap: wrap; } }
.clickable-row { cursor: pointer; }
.emp-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; flex: 1; }
.emp-filter { margin-bottom: 0; min-width: 240px; }
.emp-filters .check { margin-bottom: 8px; }
/* Every control in a filter row sits on the same line (Rupert, 13 Oct 2026: the Return to Work dates sat higher than
   Show and the search, carrying .field's bottom margin). */
.emp-filters .field { margin-bottom: 0; }
.emp-filters .field select, .emp-filters .field input, .emp-filters .search { height: 40px; }
.emp-filter-date { width: 170px; }
.rq-choices.rq-choices-sites { grid-template-columns: repeat(3, 1fr); }
.rq-choices-sites .rq-choice { padding: 20px 8px; font-size: 20px; }
.inst-many { color: #B71C1C; font-weight: 700; }
.contract-grid { display: grid; grid-template-columns: repeat(8, minmax(52px, 1fr)); gap: 6px; max-width: 640px; }
.contract-grid div { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 6px 8px; text-align: center; }
.contract-grid span { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); }
.contract-grid strong { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; }
.contract-grid .off strong { color: var(--grey-text); font-weight: 600; }
.note { border-top: 1px solid var(--cream); padding: 10px 0; }
.note:first-child { border-top: none; }
.note-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--grey-text); margin-bottom: 4px; }
.note-text { white-space: pre-wrap; line-height: 1.45; }
.note-del { margin-left: auto; background: none; border: none; color: var(--red); cursor: pointer; font-size: 13px; }
.login-box { max-width: 420px; margin: 60px auto; padding: 0 16px; }
.nav-signout { color: rgba(255,255,255,0.6); }
.sick-list td { vertical-align: middle; }
.freq-wrap { max-height: 420px; }

/* The holiday request form (holiday-sickness#2): one question per card, as a Jotform does. */
.rq-wrap { max-width: 620px; margin: 0 auto; padding: 56px 16px 60px; } /* clear of the dark-mode button */
.rq-progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rq-progress-bar { height: 100%; width: 0; background: var(--red); transition: width 0.3s ease; }
.rq-step-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-text); margin: 10px 0 14px; min-height: 16px; }
.rq-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: 8px; padding: 30px 28px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); animation: rq-in 0.25s ease; }
@keyframes rq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rq-q { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 0.02em; line-height: 1.15; margin-bottom: 6px; }
.rq-help { color: var(--grey-text); font-size: 16px; line-height: 1.45; margin-bottom: 18px; }
.rq-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rq-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; border: 2px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; transition: border-color 0.12s, background 0.12s; }
.rq-choice:hover, .rq-choice:focus-visible { border-color: var(--red); background: var(--hover); outline: none; }
.rq-choice-icon { font-size: 40px; line-height: 1; }
.rq-input { width: 100%; font-family: 'Barlow Condensed', sans-serif; font-size: 34px; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 14px; border: 2px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--dark); }
.rq-input:focus { outline: none; border-color: var(--red); }
.rq-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.rq-nav-centre { justify-content: center; }
.rq-person { background: var(--cream); border-radius: 6px; padding: 18px 20px; margin: 8px 0 4px; }
.rq-person-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; }
.rq-person-where { color: var(--grey-text); font-size: 16px; margin-top: 2px; }
.rq-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rq-summary { margin: 4px 0 8px; font-size: 16px; }
.rq-days { max-height: 260px; }
.rq-days td { padding: 7px 12px; }
.rq-done { text-align: center; }
.rq-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.req-days { font-size: 12px; color: var(--grey-text); white-space: normal; }
.req-days b { color: var(--dark); font-weight: 600; }
.badge-pending { background: #E3F2FD; color: #1565C0; border-color: #90CAF9; }

/* The Return to Work form (holiday-sickness#15), on top of the request form's cards. */
.rq-yesno .rq-choice { padding: 18px 12px; }
.rq-choice.rq-picked { border-color: var(--red); background: var(--hover); }
.rq-details { margin-top: 18px; }
.rq-wrap textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--dark); font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; }
.rq-wrap textarea:focus { outline: none; border-color: var(--red); }
.rq-add-file { display: inline-block; margin-top: 12px; margin-right: 8px; cursor: pointer; }
.rq-files { margin-top: 10px; }
.rq-file { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--cream); font-size: 15px; word-break: break-all; }
.rq-file:first-child { border-top: none; }
/* Signatures are drawn dark on white in either theme, as they will be read. */
.sig-pad { display: block; width: 100%; height: auto; aspect-ratio: 600 / 180; background: #fff; border: 2px solid var(--border); border-radius: 6px; touch-action: none; cursor: crosshair; }
.sig-clear { margin: 4px 0 0; padding: 0; }
/* The Return to Work log and one form. */
.rtw-answers { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 0; }
.rtw-answers > div { padding: 10px 12px; border-top: 1px solid var(--cream); }
.rtw-answers > .rtw-q { color: var(--grey-text); font-size: 14px; }
.rtw-answers > .rtw-a { white-space: pre-wrap; line-height: 1.45; }
.rtw-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rtw-sigs img { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.rtw-files a { display: inline-block; margin: 0 12px 6px 0; }
.rtw-thumbs img { max-width: 220px; max-height: 220px; border: 1px solid var(--border); border-radius: 4px; margin: 0 10px 10px 0; background: #fff; }
.from-eliza { font-size: 11px; color: var(--grey-text); margin-left: 6px; }

/* "All apps", back to the Simmons Apps landing page (holiday-sickness#21), beside the menu button. */
.topbar-left { display: flex; align-items: center; gap: 14px; }
.apps-link { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); text-decoration: none; white-space: nowrap; }
.apps-link:hover { color: var(--red); }
.apps-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.apps-link[hidden] { display: none; }
@media (max-width: 640px) {
  .rtw-answers { grid-template-columns: 1fr; }
  .rtw-answers > .rtw-a { border-top: none; padding-top: 0; }
  .rtw-sigs { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .rq-card { padding: 22px 18px; }
  .rq-q { font-size: 25px; }
  .rq-dates { grid-template-columns: 1fr; }
  .rq-choices.rq-choices-sites { grid-template-columns: 1fr 1fr; }
  .contract-grid { grid-template-columns: repeat(4, 1fr); }
  .week-picker input { width: auto; flex: 1; }
  .week-field { width: 100%; }
}

/* A filter under every column heading (public/js/colfilter.js, holiday-sickness#23). */
.data-table .cf-row th { position: static; padding: 4px 6px 8px; text-transform: none; letter-spacing: 0; }
.cf-ctl { width: 100%; min-width: 72px; height: 30px; padding: 2px 6px; font-family: inherit; font-size: 13px; color: var(--dark); background: var(--surface); border: 1px solid var(--border); border-radius: 3px; }
.cf-ctl.cf-on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cf-bar { display: flex; gap: 14px; align-items: center; margin: 0 0 8px; font-size: 14px; color: var(--grey-text); }
.cf-bar[hidden] { display: none; }
.cf-bar button { padding: 0; font: inherit; color: var(--red); text-decoration: underline; background: none; border: none; cursor: pointer; }
.data-table tr.cf-hidden { display: none !important; }
/* Click a heading to sort (holiday-sickness#54): an arrow shows the column and the way. */
.data-table th.cf-sort { cursor: pointer; user-select: none; }
.data-table th.cf-sort:hover, .data-table th.cf-sort:focus-visible { color: var(--dark); }
.data-table th.cf-sort::after { content: "\2195"; display: inline-block; margin-left: 4px; opacity: 0.35; }
.data-table th.cf-sort[aria-sort="ascending"]::after { content: "\25B2"; opacity: 1; color: var(--red); }
.data-table th.cf-sort[aria-sort="descending"]::after { content: "\25BC"; opacity: 1; color: var(--red); }
@media (max-width: 640px) {
  /* A stacked table hides its headings; its filters become one panel above the rows. */
  .data-table.stack thead { display: block; }
  .data-table.stack thead tr:not(.cf-row) { display: none; }
  .data-table.stack thead tr.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .data-table.stack .cf-row th { display: block; padding: 0; border: none; background: none; }
  .data-table.stack .cf-row th:empty { display: none; }
  .data-table.stack .cf-row th::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); }
  .cf-ctl { height: 40px; font-size: 15px; }
}

/* The HR forms (public/form.html, public/forms.html; holiday-sickness#28): sized for a tablet held upright. */
.rq-wrap.rq-tablet { max-width: 780px; }
.rq-tablet .rq-q { font-size: 34px; }
.rq-tablet .rq-help { font-size: 18px; }
.fm-q { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.fm-single .fm-q { font-size: 32px; }
.fm-fields > * + * { margin-top: 22px; }
.rq-tablet .field label { font-size: 16px; }
.rq-tablet .field input, .rq-tablet .field textarea { min-height: 58px; padding: 14px; font-size: 20px; border: 2px solid var(--border); border-radius: 6px; }
.rq-tablet .field input:focus, .rq-tablet .field textarea:focus { outline: none; border-color: var(--red); }
.rq-tablet .btn { min-height: 58px; padding: 0 30px; font-size: 18px; }
.rq-tablet .rq-choice { min-height: 80px; justify-content: center; font-size: 22px; }
.fm-options { grid-template-columns: 1fr 1fr; }
.rq-tablet .fm-multi, .rq-tablet .fm-agree { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 18px 20px; text-align: left; font-size: 20px; }
.fm-agree { width: 100%; }
.fm-tick { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--border); border-radius: 6px; font-size: 22px; color: var(--red); }
.rq-picked .fm-tick { border-color: var(--red); }
/* Tick-list items are sentences: normal case and the body font, easier to read than condensed capitals
   (holiday-sickness#200). A ticked item turns green. */
.rq-tablet .fm-multi, .rq-tablet .fm-agree { font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 18px; letter-spacing: 0; text-transform: none; line-height: 1.35; }
.rq-picked .fm-tick { background: var(--red); color: #fff; }
.fm-step-icon { font-size: 56px; line-height: 1; text-align: center; margin-bottom: 6px; }
.fm-tally { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.fm-count { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.03em; color: var(--grey-text); }
.fm-complete .fm-count { color: var(--ok); }
.fm-checklist { transition: background 0.2s; border-radius: 10px; }
.fm-complete .fm-q::after { content: " ✓"; color: var(--ok); }
.fm-derived { padding: 12px 14px; border: 2px dashed var(--border); border-radius: 6px; font-size: 18px; font-weight: 600; }
.fm-derived.muted { font-weight: 400; }
.rq-input-name { text-transform: none; letter-spacing: 0.02em; font-size: 28px; }
.fm-summary { margin-bottom: 24px; }
.fm-summary-head { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; }
.fm-summary-big { font-size: 34px; color: var(--red); }
.fm-summary-bar { height: 10px; border-radius: 5px; background: var(--border); overflow: hidden; margin: 8px 0 12px; }
.fm-summary-bar div { height: 100%; background: var(--ok); }
.fm-summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fm-summary-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--dark); font: 500 17px 'Barlow', sans-serif; text-align: left; cursor: pointer; }
.fm-summary-list button:hover { border-color: var(--red); }
.fm-summary-icon { font-size: 22px; width: 28px; text-align: center; }
.fm-summary-state { margin-left: auto; color: var(--grey-text); font-size: 15px; white-space: nowrap; }
.fm-summary-list .fm-ok .fm-summary-state { color: var(--ok); font-size: 20px; font-weight: 700; }
.fm-info { font-size: 19px; line-height: 1.5; }
.fm-info p + p { margin-top: 12px; }
.fm-warn { margin-bottom: 16px; padding: 14px 16px; font-size: 17px; color: var(--warn); background: var(--warn-bg); border: 1px solid #FFE08A; border-radius: 6px; }
.rq-tablet .sig-pad { aspect-ratio: 900 / 260; }
.fm-index-title { margin-bottom: 18px; }
.fm-index { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* The Forms page's tiles, as the Simmons Apps landing page's: light, left aligned, the icon in a small square, an
   arrow at the foot (Rupert, 19 Oct 2026, holiday-sickness#69). */
.fm-index { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.fm-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 160px; padding: 22px 22px 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 5px; color: var(--dark); text-decoration: none;
  transition: border-color .12s, box-shadow .12s, transform .12s; }
.fm-tile:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(184,39,44,0.1); transform: translateY(-1px); }
.fm-tile:active { transform: scale(0.98); }
.fm-tile:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.fm-tile-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 2px;
  border-radius: 10px; background: var(--hover); font-size: 24px; line-height: 1; }
.fm-tile-name { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.03em;
  text-transform: uppercase; line-height: 1.2; }
.fm-tile-desc { font-size: 14px; line-height: 1.4; color: var(--grey-text); padding-right: 20px; }
.fm-tile-arrow { position: absolute; right: 16px; bottom: 14px; color: var(--red); font-size: 22px; font-weight: 700; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .fm-tile { transition: none; } .fm-tile:hover, .fm-tile:active { transform: none; } }
/* The HR list (holiday-sickness#204): Employees, Managers and New joiners as headings on one page, each tile a short row
   at every width, icon left - as Retail's HR forms (retail#167, its retail.css .rt-section-title and hr-forms.html). */
.hf-group + .hf-group { margin-top: 26px; }
.hf-group-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--grey-text); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border);
  scroll-margin-top: 16px; }
.hf-group .fm-index { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hf-group .fm-tile { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; align-items: center;
  min-height: 0; padding: 10px 38px 10px 12px; }
.hf-group .fm-tile-icon { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
.hf-group .fm-tile-name { font-size: 18px; }
.hf-group .fm-tile-desc { font-size: 13px; padding-right: 0; }
.hf-group .fm-tile-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
@media (max-width: 640px) { .hf-group .fm-index { grid-template-columns: 1fr; } }
.fm-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 28px; font-size: 17px; }
.fm-links a { color: var(--dark); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.fm-links a:hover { color: var(--red); text-decoration-color: var(--red); }
.fm-links[hidden] { display: none; }
@media (max-width: 640px) {
  .fm-options, .fm-index { grid-template-columns: 1fr; }
  .rq-tablet .rq-q { font-size: 27px; }
}
.hr-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }

.fm-hours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.fm-hours .field { margin: 0; }
.fm-hours .field label { text-align: center; }
.rq-tablet .fm-hours input { padding: 10px 4px; text-align: center; }
.fm-hours-total { margin-top: 8px; font-size: 17px; color: var(--grey-text); }
/* The earlier flexible working request, shown before "Is this the same request?" (holiday-sickness#74). */
.fm-previous { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--cream); font-size: 17px; }
.fm-previous-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.fm-previous dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.fm-previous dt { color: var(--grey-text); }
.fm-previous dd { margin: 0; }
/* A repeat: one box per entry, with Add another (holiday-sickness#71). */
.fm-repeat-item { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.fm-repeat-item + .fm-repeat-item { margin-top: 12px; }
.fm-repeat-item .field + .field { margin-top: 12px; }
.fm-repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; }
.fm-repeat-add { margin-top: 12px; }
@media (max-width: 640px) { .fm-hours { grid-template-columns: repeat(4, 1fr); } }

.rq-tablet .field select { min-height: 58px; padding: 12px; font-size: 20px; border: 2px solid var(--border); border-radius: 6px; }
.fm-back, a.back-row { text-decoration: none; }
.fm-back[hidden] { display: none; }

/* Admin > Staff email (holiday-sickness#36). */
.badge-sent { background: var(--ok-bg); color: var(--ok); border-color: #A5D6A7; }
.badge-failed { background: #FFEBEE; color: #B71C1C; border-color: #FFCDD2; }
.badge-notsent { background: var(--warn-bg); color: var(--warn); border-color: #FFE08A; }
.se-choice { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; font-size: 16px; }
.se-choice label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.se-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.se-group-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 6px; }
.se-checks { display: flex; flex-direction: column; gap: 2px; }
.se-scroll { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 3px; padding: 6px 8px; background: var(--surface); }
.se-check { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; cursor: pointer; font-size: 15px; }
.se-check[hidden] { display: none; }
.se-check .muted { font-size: 13px; }
.se-filter { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 3px; margin-bottom: 6px; font-size: 15px; background: var(--surface); color: var(--dark); }
.se-count { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 16px; }
.se-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--border); border-bottom: none; border-radius: 3px 3px 0 0; background: var(--cream); }
.se-toolbar button { min-height: 34px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--dark); font-size: 14px; cursor: pointer; }
.se-toolbar button:hover { border-color: var(--red); color: var(--red); }
.se-editor { min-height: 260px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 0 0 3px 3px; background: var(--surface); color: var(--dark); font-size: 16px; line-height: 1.55; outline: none; overflow-wrap: anywhere; }
.se-editor:focus { border-color: var(--red); }
.se-editor h2 { font-size: 20px; margin: 14px 0 6px; }
.se-editor h3 { font-size: 17px; margin: 12px 0 6px; }
.se-editor ul, .se-editor ol { padding-left: 24px; margin: 0 0 10px; }
.se-editor a { color: var(--red); }
.se-file { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 15px; }
.se-send-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.se-preview { width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 3px; background: #F2EFE9; }
.se-progress { height: 10px; background: var(--cream); border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
.se-progress div { height: 100%; background: var(--ok); }
.se-confirmed { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.se-scroll-tall { max-height: 420px; }
@media (max-width: 640px) { .se-groups { grid-template-columns: 1fr; } .se-preview { height: 420px; } }
/* Admin > New joiners (holiday-sickness#104) */
.nj-add { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.panel-subtitle { font-weight: 700; margin-bottom: 8px; }
.nj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.nj-retired td { color: var(--grey-text); }
.nj-history { margin-top: 6px; font-size: 13px; }
.nj-history ul { margin: 6px 0 0 18px; padding: 0; }
#page-newjoiners .data-table input[type="text"], #page-newjoiners .data-table select { width: 100%; min-width: 140px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--dark); }
#page-newjoiners textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--dark); font-size: 15px; }
/* New Joiners (holiday-sickness#105) */
.jr-actions { display: flex; align-items: center; gap: 8px; }
.jr-actions select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--dark); }
.jr-grid { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 8px 16px; margin-bottom: 10px; }
/* Status and approval, and the approval form (holiday-sickness#126, public/js/approvalform.js) */
.jr-approval { border-left: 4px solid var(--red); }
.jr-approval select, .ap select, .ap input:not([type="radio"]) { display: block; width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--dark); font: inherit; }
.ap-acts { margin: 6px 0 4px; }
.ap-change { margin-top: 8px; }
.ap-hours { border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px 12px; margin: 4px 0 12px; }
.ap-inline { margin-right: 14px; }
.ap-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.ap-days label { font-size: 13px; color: var(--grey-text); }
@media (max-width: 600px) { .ap-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jr-q { color: var(--grey-text); font-size: 14px; }
.jr-a { font-size: 15px; }
.jr-sub { font-weight: 700; margin: 14px 0 8px; }
.jr-photos { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.jr-photo { display: flex; flex-direction: column; gap: 4px; width: 160px; font-size: 13px; color: var(--dark); text-decoration: none; }
.jr-photo img { width: 160px; height: 120px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; }
.jr-file { display: flex; align-items: center; justify-content: center; height: 120px; border: 1px solid var(--border); border-radius: 4px; padding: 8px; text-align: center; }
.jr-sig { max-width: 320px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.jr-comment { padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 8px; background: var(--surface); }
#page-joiner textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--dark); }
tr.clickable { cursor: pointer; }
@media (max-width: 640px) { .jr-grid { grid-template-columns: 1fr; } }
/* Admin > Courses (holiday-sickness#106) */
.cr-up, .cr-opts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 10px 0; }
.cr-up label, .cr-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cr-opts label { flex-direction: row; align-items: center; }
.cr-draft { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cr-q { padding: 10px 0; border-bottom: 1px solid var(--border); }
.cr-qhead { font-size: 13px; color: var(--grey-text); }
.cr-qtext { font-weight: 600; margin: 4px 0 6px; }
.cr-opt { display: block; margin: 4px 0; font-size: 14px; }
.cr-cert { margin-top: 10px; }
.cr-certbox { position: relative; display: inline-block; border: 1px solid var(--border); }
.cr-certbox canvas { display: block; cursor: crosshair; }
.cr-pin { position: absolute; transform: translate(-50%, -50%); padding: 0 6px; background: rgba(184, 39, 44, 0.85); color: #fff; font-weight: 700; border-radius: 3px; pointer-events: none; white-space: nowrap; }
.nj-courses { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.nj-pay { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.cr-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
/* Each part of a course folds from its heading (holiday-sickness#136). */
.cr-sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.cr-sec > summary::-webkit-details-marker { display: none; }
.cr-sec > summary::before { content: "▸"; color: var(--red); font-size: 14px; transition: transform 0.15s; }
.cr-sec[open] > summary::before { transform: rotate(90deg); }
.cr-sec[open] > summary { margin-bottom: 8px; }
.cr-sec > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cr-needs { color: var(--red); }
.cr-warn { margin: 6px 0 10px; padding: 10px 12px; border-left: 4px solid var(--red); background: var(--cream); font-size: 14px; line-height: 1.45; }
.cr-guide { margin-bottom: 14px; }
.cr-guide ol, .cr-guide ul { margin: 6px 0 10px 20px; padding: 0; }
.cr-guide li { margin: 4px 0; line-height: 1.45; }
.cr-guide h4 { margin: 12px 0 4px; font-size: 15px; }
.cr-guide code { font-family: inherit; font-weight: 700; }
.cr-cert summary { cursor: pointer; font-weight: 600; color: var(--red); margin: 8px 0; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

/* New Joiners: a row opened in the table, with the whole record and its controls (Rupert, 5 Nov 2026). */
.data-table tr.jn-on td { background: var(--surface-2, rgba(184,39,44,0.06)); }
.jn-caret { color: var(--red); display: inline-block; width: 12px; }
.data-table tr.jn-detail > td { padding: 14px 16px 18px; background: var(--bg); border-bottom: 2px solid var(--red); white-space: normal; }
.data-table tr.jn-detail > td::before { display: none; }
.jn-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.jn-detail-name { font-size: 20px; font-weight: 700; }
.jn-detail .panel { margin-top: 12px; }
@media (min-width: 1100px) { .jn-detail #jrBody { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; } }
/* Admin > Courses: a course's sends to existing staff (holiday-sickness#110). */
.cr-sends { margin-top: 10px; display: grid; gap: 4px; font-size: 14px; }
.cr-send a { color: var(--red); }

/* Reports (holiday-sickness#164): the app's own panels and tables; printed on A4 with only the report and its heading. */
.rpt-group-field { min-width: 220px; }
.rpt-print-head { display: none; }
.rpt-pay { font-weight: 600; }
/* The day and total columns centred - heading, sort arrow, hours and pay tags - so each figure sits under its day. */
.rpt-week th.num, .rpt-week td.num { text-align: center; }
.rpt-week th.num .day-date { display: block; }
.rpt-week th.num.cf-sort::after { display: block; margin: 2px auto 0; }
.rpt-week td.num .pay-tag { margin: 3px auto 0; }
.rpt-week td:nth-child(2), .rpt-week th:nth-child(2) { white-space: nowrap; }

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .topbar, .nav-overlay, #themeToggleBtn, .no-print, .rpt-body .cf-row, .rpt-body .cf-bar { display: none !important; }
  .rpt-print-head { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase; margin-bottom: 10px; }
  .rpt-body .data-table-wrap { overflow: visible; }
  .rpt-panel + .rpt-panel { break-before: page; }
  .rpt-body tr { break-inside: avoid; }
}

/* Admin > How new joiners work (holiday-sickness#130): the two routes as boxes and arrows, from the theme's own colours
   so it reads in light and dark. One start, two columns, then one line again from approval on. */
.wf { max-width: 980px; }
.wf-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 6px; padding: 12px 16px; }
.wf-wide { max-width: 640px; margin: 0 auto; }
.wf-who { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); }
.wf-title { font-weight: 700; font-size: 17px; margin: 2px 0 4px; color: var(--dark); }
.wf-text { font-size: 14px; line-height: 1.5; color: var(--dark); }
.wf-side { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 5px; font-size: 13px; line-height: 1.45; color: var(--dark); }
.wf-stop { border-color: var(--red); }
.wf-status { display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 999px; background: var(--cream); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--dark); }
.wf-side .wf-status { margin: 4px 0 0; }
/* What a step sends (holiday-sickness#238): each email or text, when it goes and to whom, so HR can rely on the page.
   A setting named on it is a link that opens that setting; nobody set is shown in red. */
.wf-sends { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.wf-sends-head { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.wf-send { padding: 6px 0; font-size: 13px; line-height: 1.5; color: var(--dark); }
.wf-send + .wf-send { border-top: 1px dashed var(--border); }
.wf-send-what { font-weight: 700; }
.wf-send dl { display: grid; grid-template-columns: 52px 1fr; gap: 2px 8px; margin: 2px 0 0; }
.wf-send dt { color: var(--grey-text); font-weight: 600; }
.wf-send dd { margin: 0; }
.wf-none { color: var(--red); font-weight: 700; }
.wf a, .wf-link { color: var(--red); font-weight: 600; }
.wf-nothing { margin-top: 8px; font-size: 13px; color: var(--grey-text); }
.wf-arrow { position: relative; width: 2px; height: 26px; margin: 0 auto; background: var(--grey-text); }
.wf-arrow::after { content: ""; position: absolute; left: -5px; bottom: -1px; border: 6px solid transparent; border-top-color: var(--grey-text); border-bottom: 0; }
.wf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.wf-col-head { margin: 0 0 10px; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red); }
.wf-col-imm .wf-step { border-left-color: var(--dark); }
.wf-col-imm .wf-col-head { color: var(--dark); }
.wf-skip { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 6px; font-size: 13px; line-height: 1.5; color: var(--grey-text); }
.wf-skip-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
/* The fork under the start and the join above approval: a bar across, and a line down each column's middle. */
.wf-fork, .wf-join { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; height: 28px; position: relative; }
.wf-fork span, .wf-join span { position: relative; }
.wf-fork span::before, .wf-join span::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--grey-text); }
.wf-fork span::after { content: ""; position: absolute; left: calc(50% - 5px); bottom: -1px; border: 6px solid transparent; border-top-color: var(--grey-text); border-bottom: 0; }
.wf-fork::before, .wf-join::after { content: ""; position: absolute; left: calc(25% - 6px); right: calc(25% - 6px); height: 2px; background: var(--grey-text); }
.wf-fork::before { top: 0; }
.wf-join::after { bottom: 0; }
.wf-merge-head { margin: 10px 0; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey-text); }
@media (max-width: 760px) {
  .wf-split { grid-template-columns: 1fr; gap: 28px; }
  .wf-fork, .wf-join { grid-template-columns: 1fr; }
  .wf-fork span + span, .wf-join span + span, .wf-fork::before, .wf-join::after { display: none; }
}

/* Charged Out Hours (holiday-sickness#187): base shops open to their people; the shop columns stay narrow. */
.co-table tr.co-shop { cursor: pointer; }
.co-table tr.co-shop .co-caret { display: inline-block; width: 1.1em; color: var(--red); }
.co-table tr.co-emp td:first-child { padding-left: 2em; }
.co-table td:first-child { white-space: nowrap; }
.co-table th.num { white-space: normal; min-width: 70px; text-align: right; }
.co-table th:first-child, .co-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.co-table tr.shop-row td:first-child { background: var(--cream); }
@media print { .co-table { font-size: 11px; } }

/* Calling in sick's Admin settings (holiday-sickness#173, #195): the two position numbers side by side, short boxes. */
.sf-positions { display: flex; flex-wrap: wrap; gap: 0 20px; }
.sf-positions .field { flex: 0 0 auto; }
.sf-positions .field input { width: 6em; }
/* On duty and extra people: each "add" row's boxes sit on one line, their own widths, wrapping on a phone. */
#page-sickduty .field input, #page-sickduty .field select { width: auto; display: inline-block; margin: 0 6px 6px 0; vertical-align: middle; }
#page-sickduty .field input[type="date"] { min-width: 11em; }
#page-sickduty .field select { min-width: 14em; }
/* Its two switches: the box beside its words, outside .field (whose label style would put the box above). */
.sf-check { margin: 0 0 14px 0; }
.sf-check .check { font-weight: 600; margin: 0 0 2px 0; }
.sf-check .hint { margin: 0 0 0 26px; }
/* The calendar's drop-downs: wide enough for a name, even when empty. */
#sdDays select { min-width: 11em; }
/* The burger menu's folding headings (Rupert, 23 Nov 2026): a heading is a button; its links open beneath it. */
/* No colour of its own: it keeps the menu's heading colour (the drawer is dark in both themes); hover brightens it. */
.nav-fold { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; text-align: left; font-size: 12px; font-weight: 700; padding: 12px 20px; }
.nav-fold:hover, .nav-fold:focus-visible { filter: brightness(2.2); outline: none; }
.nav-fold-mark { font-size: 16px; transition: transform 0.15s; }
.nav-fold[aria-expanded="true"] .nav-fold-mark { transform: rotate(90deg); }
/* Admin > Form builder (holiday-sickness#203, spike). */
.fb-forms { display: grid; gap: 8px; }
.fb-form { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.fb-form:hover { border-color: var(--red); }
.fb-form-icon { font-size: 24px; }
.fb-form-title { font-weight: 600; font-size: 17px; }
.fb-form-state { margin-left: auto; color: var(--grey-text); font-size: 14px; }
.fb-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; position: sticky; top: 0; z-index: 2; background: var(--cream); padding: 8px 0; }
.fb-step-head { display: flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.fb-step-n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: var(--surface); font-size: 14px; }
.fb-step-icon { font-size: 22px; }
.fb-info { opacity: 0.7; }
.fb-q { border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; }
.fb-q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fb-q-tools { margin-left: auto; display: flex; gap: 6px; }
.fb-lock { font-size: 13px; color: var(--grey-text); }
.fb-hidden { opacity: 0.5; }
.fb-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; font: 15px 'Barlow', sans-serif; background: var(--surface); color: var(--dark); }
.fb-step-title { max-width: 420px; font-weight: 700; }
.fb-flags { display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 0; }
.fb-check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.fb-opts { margin-top: 8px; }
.fb-opts > label { display: block; font-weight: 600; margin-bottom: 4px; }
.fb-opt { display: flex; gap: 6px; margin-bottom: 6px; }
.fb-add, .fb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.fb-row .fb-input { flex: 1 1 260px; width: auto; }
.fb-row .fb-icon-in { flex: 0 0 64px; }
.fb-newstep { border-style: dashed; }
.fm-preview { margin: 8px 0; }

/* Emails on How new joiners work (holiday-sickness#233): each one a box of its own, an envelope and who it goes to,
   so they stand out from the steps; a key at the top and every email in one table at the foot. Theme colours only. */
.wf-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 auto 18px; max-width: 640px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 13px; color: var(--dark); }
.wf-key-item { display: inline-flex; align-items: center; gap: 6px; }
.wf-key-step { display: inline-block; width: 18px; height: 14px; border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 3px; background: var(--surface); }
.wf-key-stop { display: inline-block; width: 18px; height: 14px; border: 1px dashed var(--red); border-radius: 3px; }
.wf-mail { margin-top: 8px; padding: 7px 10px; border-radius: 5px; background: var(--cream); border: 1px solid var(--border); font-size: 13px; line-height: 1.45; color: var(--dark); }
.wf-mail-icon { display: inline-block; margin-right: 6px; color: var(--red); font-weight: 700; }
.wf-every { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--red); color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.wf-side .wf-mail { margin: 0 0 6px; }
.wf-along { border-left-color: var(--grey-text); }
.wf-mails-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; }
.wf-mails { width: 100%; border-collapse: collapse; font-size: 13px; }
.wf-mails th, .wf-mails td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid var(--border); color: var(--dark); }
.wf-mails th { font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-text); }

/* Admin > New joiners: each section folds from its heading, closed to start (holiday-sickness#245). */
.nj-sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.nj-sec > summary::-webkit-details-marker { display: none; }
.nj-sec > summary::before { content: "▸"; color: var(--red); font-size: 16px; transition: transform 0.15s; }
.nj-sec[open] > summary::before { transform: rotate(90deg); }
.nj-sec[open] > summary { margin-bottom: 12px; }
.nj-sec > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
