/* The programme screens: process fixes, audit preparation, tasks, evidence, change history. */
.page-hero {
  background: var(--hero); color: var(--hero-text); border-radius: var(--radius-hero);
  padding: 22px 26px; display: flex; flex-direction: column; gap: 18px;
}
.page-hero :focus-visible { outline-color: var(--highlight); }
.page-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.page-hero-text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 460px; min-width: 0; }
.page-hero h1 { font-size: 26px; color: #FFFFFF; }
.page-hero p { color: var(--hero-soft); max-width: 64ch; }
.page-hero-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.page-hero-facts > div { display: flex; flex-direction: column; gap: 2px; }
.page-hero-facts dt { font-size: 12px; color: var(--hero-muted); }
.page-hero-facts dd { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #FFFFFF; }
.page-hero-facts dd.tone-bad { color: #FCA5A5; }
.page-hero-facts dd.tone-good { color: #6EE7B7; }

.block { display: block; }

/* Process fixes */
.fixes-table { min-width: 760px; }
.stage { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.stage-bars { display: flex; gap: 3px; }
.stage-bar { width: 18px; height: 5px; border-radius: 3px; background: var(--border); }
.stage-bar.is-done { background: #1F9D62; }
.stage-bar.is-now { background: var(--navy); }
.table tbody tr.is-selected { background: #F3F7FF; box-shadow: inset 3px 0 0 var(--navy); }
.card-head h2 .term-label { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.fixes-table { table-layout: fixed; }
.fixes-table th:nth-child(1) { width: 80px; }
.fixes-table th:nth-child(3) { width: 130px; }
.fixes-table th:nth-child(4) { width: 200px; }
.fixes-table th:nth-child(5) { width: 80px; }
.fixes-table th:nth-child(6) { width: 140px; }

/* Audit preparation */
.action-row {
  width: 100%; display: grid; grid-template-columns: 30px minmax(0, 2fr) 170px minmax(0, 1.2fr) 130px; gap: 14px; align-items: center; text-align: left;
  padding: 13px 20px; border: 0; border-top: 1px solid var(--border-soft); background: var(--surface); color: var(--text);
}
.action-row:hover { background: var(--surface-head); }
.action-row.is-open { background: #F3F7FF; }
.action-no { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--navy); }
.action-next { color: #475467; }
.action-findings { padding: 4px 20px 14px 64px; display: flex; flex-direction: column; background: var(--surface-head); }
.action-finding {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #EEF1F5; color: var(--text); text-decoration: none;
}
.action-finding:hover span:nth-child(2) { text-decoration: underline; }

/* Tasks */
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.week-day { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; }
.week-day.is-today { background: rgba(245, 196, 81, 0.12); border-color: rgba(245, 196, 81, 0.5); }
.week-name { font-size: 12px; color: var(--hero-muted); }
.week-count { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: #FFFFFF; }
.week-due { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--hero-muted); }
.week-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.week-fill { display: block; height: 100%; background: #6EE7B7; }
.tasks-table { min-width: 760px; }
.tasks-table .muted, .muted { color: var(--text-muted); }
.card-head h2.is-late { color: var(--late-fg); }

/* Evidence register */
.reg-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; padding: 4px 20px 14px; align-items: flex-end; }
.reg-filters .field { gap: 4px; }
.reg-filters .field:first-child { flex: 1 1 240px; }
.reg-table { min-width: 760px; }
.reg-root { display: flex; flex-direction: column; gap: 24px; }
.hist-table { min-width: 760px; }
.hist-filters .field:first-child { flex: none; }
