:root { color-scheme: light; font-family: system-ui, sans-serif; color: #172c3d; background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
header { background: #12344b; color: white; padding: 1rem max(1rem, calc((100vw - 1100px)/2)); display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; align-items: center; }
header a { color: white; }
.brand { font-size: 1.6rem; text-decoration: none; font-weight: 700; }
.brand small { display: block; font-size: .85rem; font-weight: 400; }
nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; min-height: 65vh; }
a { color: #064f85; text-underline-offset: .2em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.3; }
h2 { font-size: 1.25rem; }
.card { background: white; border: 1px solid #cbd5e1; border-radius: .6rem; padding: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.notice { border-left: 5px solid #916100; background: #fff6dc; padding: 1rem 1.5rem; margin: 1.5rem 0; }
.notice h2 { margin-top: 0; }
.certificate-document { display: block; width: 100%; height: clamp(25rem, 70vh, 48rem); border: 1px solid #ccd5df; border-radius: 4px; }
.certificate-edit { display:grid; gap:1rem; max-width:56rem; }
.certificate-field-label { margin:0 0 .25rem; font-weight:650; }
.certificate-code { margin:.25rem 0 0; overflow-wrap:anywhere; }
.certificate-edit .certificate-picker-panel { position:static; width:100%; margin-top:.4rem; }
.certificate-picker button { min-height:44px; max-width:100%; overflow-wrap:anywhere; }
.certificate-picker-panel input { width:100%; }
.certificate-picker-panel .board-course-results button { display:block; width:100%; text-align:start; color:#203047; background:#fff; }
.certificate-picker-panel .board-course-results button:hover { background:#e8f0f7; }
.certificate-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; }
.certificate-edit input[type=date] { width:min(100%, 14rem); }
.certificate-edit .button-secondary,#certificate-confirm .button-secondary { background:#e8f0f7; color:#203047; }
.certificate-edit button:disabled { background:#e3ebf3; color:#52647a; cursor:not-allowed; }
.team-row-actions { display:flex; align-items:center; gap:.125rem; width:max-content; }
.package-course-picker label {display:flex;align-items:center;gap:.6rem;min-height:44px;cursor:pointer}
.package-course-picker input[type=checkbox] {width:1rem;height:1rem;min-height:0;flex:none;margin:0}
.completed-courses-table thead a::after {content:none}
.completed-courses-table thead a {white-space:nowrap}
.help-center {max-width:900px}
.help-center > p {max-width:70ch}
.help-search {margin:1.5rem 0}
.help-search label {display:block;font-weight:700;margin-bottom:.4rem}
.help-search div {display:flex;gap:.5rem;max-width:620px}
.help-search input {flex:1;min-width:0}
.help-index {margin:2rem 0}
.help-index ul {list-style:none;padding:0;margin:0;border-top:1px solid #cbd5e1}
.help-index li {display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:.5rem 1rem;padding:.85rem 0;border-bottom:1px solid #dce3ed}
.help-index a {font-weight:700}
main nav.help-index a {display:inline;min-height:0;background:transparent;color:#075781;border:0;padding:0;text-decoration:underline}
.help-index span {color:#40536b}
.help-article {max-width:75ch;padding:1rem 0 1.5rem;border-top:1px solid #cbd5e1;scroll-margin-top:1rem}
.help-article li,.context-help-panel li {margin:.55rem 0}
.help-note {padding:.8rem 1rem;background:#edf3f8;border-radius:4px}
.context-help-trigger {display:inline-block;margin:.2rem 0 1rem}
.context-help-panel {position:fixed;inset:0 0 0 auto;z-index:20;box-sizing:border-box;width:440px;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:1.5rem;border:0;background:#fff;color:#172b45;overflow:auto;box-shadow:-4px 0 18px rgba(23,43,69,.18)}
@media(min-width:901px){body.context-help-open{margin-right:440px}}
@media(max-width:900px){body.context-help-open{padding-bottom:48vh}.context-help-panel{inset:auto 0 0;width:100%;height:45dvh;max-height:45dvh;border-radius:12px 12px 0 0;box-shadow:0 -4px 18px rgba(23,43,69,.18)}}
.context-help-head {display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;border-bottom:1px solid #dce3ed;padding-bottom:1rem}
.context-help-head p {margin:0;color:#52647a;font-weight:700}
.context-help-head h2 {margin:.2rem 0 0}
.context-help-head button {width:44px;padding:0;border:0;background:transparent;color:#172b45;font-size:1.7rem;cursor:pointer}
@media(max-width:600px){.help-index li{grid-template-columns:1fr;gap:.2rem}}
.course-row-actions { flex-wrap:wrap; max-width:100%; }
@media (min-width:701px) and (hover:hover) and (pointer:fine) {
 .person-cards .row-actions-heading, .course-catalog .row-actions-heading { display:none; }
 .person-cards tbody tr, .course-catalog tbody tr { position:relative; }
 .person-cards tbody tr > th, .person-cards tbody tr > td:not(.team-row-actions-cell),
 .course-catalog tbody tr > th, .course-catalog tbody tr > td:not(.team-row-actions-cell) { height:48px; box-sizing:border-box; }
 .person-cards .team-row-actions-cell, .course-catalog .team-row-actions-cell { position:absolute; right:0; top:50%; transform:translateY(-50%); width:max-content; padding:0; border:0; z-index:1; pointer-events:none; }
 .person-cards .team-row-actions, .course-catalog .team-row-actions { opacity:0; pointer-events:none; background:#f3f6f9; border-radius:4px; box-shadow:0 2px 6px rgba(25,45,65,.2); }
 .person-cards tr:hover .team-row-actions, .person-cards tr:focus-within .team-row-actions,
 .course-catalog tr:hover .team-row-actions, .course-catalog tr:focus-within .team-row-actions { opacity:1; pointer-events:auto; }
}
main table .team-row-actions a.team-row-action { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:.3rem; color:#334155; background:transparent; text-decoration:none; }
main table .team-row-actions button.team-row-action:not([hidden]) { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:.3rem; color:#334155; background:transparent; cursor:pointer; }
main table .team-row-actions a.team-row-action:hover { color:#075781; background:#e8f0f7; }
main table .team-row-actions button.team-row-action:hover { color:#075781; background:#e8f0f7; }
main table .team-row-actions a.team-row-action::after { content:none; }
.team-row-action svg { width:19px; height:19px; flex:none; }
.certificate-fields { table-layout:fixed; }
.certificate-fields .certificate-label-column { width:15rem; }
.certificate-fields th,.certificate-fields td { vertical-align:middle; padding:.6rem 1rem; overflow-wrap:anywhere; }
.certificate-fields th { background:#f3f6fa; color:#203047; font-weight:600; }
.certificate-fields td { background:#fff; }
.certificate-fields .certificate-row-label { display:flex; align-items:center; justify-content:space-between; gap:.4rem; }
.certificate-fields .certificate-row-label label { margin:0; }
.certificate-fields .certificate-picker > button { width:100%; text-align:start; }
.certificate-fields input[type=date] { width:100%; max-width:15rem; }
.certificate-fields input[name=hours] { width:100%; max-width:10rem; }
.certificate-fields .certificate-code { font-variant-numeric:tabular-nums; }
.certificate-fields tr[hidden],.certificate-tooltip[hidden] { display:none; }
.certificate-field-warning { display:block; width:fit-content; margin-top:.25rem; padding:.1rem .4rem; color:#713f12; background:#fef3c7; border-radius:.25rem; font-size:.85rem; }
.certificate-info { display:inline-flex; flex:none; }
.certificate-fields .certificate-info-trigger { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-height:44px; padding:0; border:0; background:transparent; color:#52647a; }
.certificate-fields .certificate-info-trigger:hover,.certificate-fields .certificate-info-trigger[aria-expanded=true] { color:#075781; background:#e8f0f7; }
.certificate-tooltip { position:fixed; z-index:40; width:min(22rem, calc(100vw - 2rem)); padding:.75rem 1rem; background:#172c3d; color:#fff; border-radius:.4rem; box-shadow:0 6px 18px #172b4633; font-size:.9rem; font-weight:400; line-height:1.5; text-align:start; }
@media(max-width:600px) {
  .certificate-fields .certificate-label-column { width:43%; }
  .certificate-fields th,.certificate-fields td { padding:.5rem; }
  .certificate-fields .certificate-row-label { flex-wrap:wrap; gap:0; }
  .certificate-fields .certificate-row-label > label,.certificate-fields .certificate-row-label > span:first-child:not(.certificate-info) { min-width:0; }
}
.login { max-width: 550px; margin: auto; }
label { display: block; font-weight: 600; }
.preview-checkbox { display: flex; align-items: center; gap: .5rem; width: fit-content; }
.preview-checkbox input[type="checkbox"] { width: 44px; height: 44px; padding: 0; margin: 0; flex: none; }
input { max-width: 100%; width: 100%; padding: .7rem; border: 1px solid #627487; border-radius: .25rem; font: inherit; }
button { background: #075781; color: white; border: 1px solid transparent; padding: .7rem 1.1rem; border-radius: .3rem; font: inherit; cursor: pointer; }
button:hover { background: #12344b; }
:focus-visible { outline: 3px solid #ca6700; outline-offset: 4px; }
.muted { color: #4b5865; font-size: .9rem; }
.errorlist { color: #a01016; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
caption { text-align: left; margin-bottom: .5rem; }
th, td { text-align: left; padding: .8rem; border-bottom: 1px solid #cbd5e1; }
th { background: #e3ebf3; }
footer { padding: 1.5rem; text-align: center; font-size: .9rem; color: #4b5865; }
.skip { position: absolute; top: -100px; padding: .5rem; background: white; z-index: 5; }
.skip:focus { top: 0; }

.action-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1rem; border: 2px solid #075781; border-radius: .3rem; background: white; color: #075781; font-weight: 600; text-align: center; text-decoration: none; }
.action-link:hover { background: #e3ebf3; color: #12344b; }
.action-link-primary { background: #075781; color: white; }
.action-link-primary:hover { background: #12344b; border-color: #12344b; color: white; }
.person-status { display: inline-block; padding: .15rem .5rem; border-radius: .3rem; font-weight: 600; }
.person-status-neutral { color: #303941; background: #e8ebed; }
.person-status-success { color: #14532d; background: #dcfce7; }
.person-status-warning { color: #713f12; background: #fef3c7; }
.person-status-danger { color: #7f1d1d; background: #fee2e2; }

/* Contact UI only: no changes to existing module styles. */
.contact-actions { flex-wrap: wrap; margin-bottom: 1rem; }
.contact-button { display: inline-block; background: #075781; color: white; border: 2px solid #075781; padding: .7rem 1.1rem; border-radius: .3rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.contact-button:hover { background: #12344b; border-color: #12344b; color: white; }
.contact-button-secondary { background: white; color: #075781; }
.contact-button-danger { background: #8b2025; border-color: #8b2025; }
.contact-button:focus-visible, .contact-panel a:focus-visible, .contact-panel input:focus-visible, .contact-panel textarea:focus-visible { outline: 3px solid #ca6700; outline-offset: 4px; }
.contact-form-panel { border-top: 1px solid #cbd5e1; margin-top: 1.5rem; padding-top: 1rem; }
.contact-field { margin-bottom: 1rem; }
.contact-panel textarea { width: 100%; max-width: 100%; padding: .7rem; border: 1px solid #627487; border-radius: .25rem; font: inherit; }
.contact-feedback { border-left: 5px solid #916100; background: #fff6dc; padding: 1rem; margin: 1rem 0; }

/* Navigational links keep link semantics while looking like controls. */
main a:not(table a):not(.contact-button):not(.action-link), header nav a, .search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; max-width: 100%; padding: .6rem 1rem;
  border: 2px solid #075781; border-radius: .3rem; background: white;
  color: #075781; font: inherit; font-weight: 600; text-align: center;
  text-decoration: none; overflow-wrap: anywhere; cursor: pointer;
}

/* Company navigation: a compact, keyboard-operable hierarchy. */
.company-navigation {background:#213b5c;color:#fff;position:relative;z-index:10}
.company-navigation-inner {max-width:1800px;margin:auto;padding:0 28px;display:flex;align-items:stretch;gap:24px}
.company-context {color:#fff;text-decoration:none;display:flex;flex-direction:column;justify-content:center;min-width:150px;max-width:260px;padding:10px 16px 10px 0;border-right:1px solid #7890aa;overflow-wrap:anywhere}
.company-context span {font-size:11px;color:#d2ddec}
.company-menu {display:flex;align-items:stretch;gap:2px}
.company-menu details {position:relative}
.company-menu summary {min-height:54px;display:flex;align-items:center;gap:10px;padding:0 14px;font-weight:650;cursor:pointer;list-style:none}
.company-menu summary::-webkit-details-marker {display:none}
.company-menu summary::after {content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-4px}
.company-menu details[open] summary,.company-menu summary:hover {background:#315176}
.company-menu-panel {position:absolute;top:100%;left:0;min-width:235px;background:#fff;color:#203047;border:1px solid #cbd5e1;border-radius:0 0 8px 8px;box-shadow:0 8px 20px #172b4633;padding:6px}
.company-menu-panel a {display:block;padding:11px 12px;border-radius:5px;color:#174c73;text-decoration:none;font-weight:600}
.company-menu-panel a:hover,.company-menu-panel a[aria-current=page] {background:#e8f0f7!important;color:#12344b!important}
.company-menu-panel p {margin:4px 12px 8px;color:#52647a;font-size:12px;max-width:28ch}
@media(max-width:760px){.company-navigation-inner{padding:0 14px;display:block}.company-context{max-width:none;border-right:0;border-bottom:1px solid #7890aa;padding:8px 0}.company-menu{display:grid;grid-template-columns:1fr 1fr;gap:0}.company-menu summary{padding:0 8px;min-height:48px}.company-menu-panel{min-width:0;width:max(100%, 220px);max-width:calc(100vw - 28px)}.company-menu details:nth-child(even) .company-menu-panel{left:auto;right:0}}
main a:not(table a):not(.contact-button):not(.action-link):hover, .search-toggle:hover { background: #e3ebf3; color: #12344b; }
header nav a { border-color: white; background: transparent; color: white; }
header nav a:hover { background: white; color: #12344b; }
header .brand { display: inline-block; padding: .45rem .75rem; border: 2px solid white; border-radius: .3rem; }
header .brand:hover { background: white; color: #12344b; }
.skip:focus { border: 2px solid #075781; border-radius: .3rem; text-decoration: none; }
.search-panel { margin: 1rem 0; }
.search-toggle { list-style: none; background: #075781; color: white; }
.search-toggle::-webkit-details-marker { display: none; }
.search-toggle:hover { background: #12344b; color: white; }
.search-panel[open] .search-toggle { margin-bottom: .75rem; }
/* Links in tables remain text links, including links with button classes. */
main table a, main table a.action-link, main table a.contact-button {
  display: inline; min-height: 0; max-width: none; padding: 0; border: 0;
  border-radius: 0; background: transparent; color: #064f85;
  font: inherit; text-align: inherit; text-decoration: underline;
  text-underline-offset: .2em; overflow-wrap: anywhere;
}
main table a::after { content: ' ↗'; }
main table a:hover, main table a.action-link:hover, main table a.contact-button:hover { background: transparent; color: #12344b; }
.table-export { margin: .4rem 0 .8rem; }

/* Desktop workspace */
body {font-size:14px;line-height:1.45;background:#f4f6fa;color:#203047}
header {padding:12px 28px;background:#172b46;box-shadow:0 2px 8px #172b4618}
.brand {font-size:22px}.brand small{font-size:11px}
main {max-width:1800px;margin:24px auto;padding:0 28px}
h1 {font-size:26px;margin:12px 0 18px}h2{font-size:18px}
button, .button, a.button, .btn, input[type=submit] {font-size:13px;padding:6px 12px;min-height:30px;border-radius:6px;line-height:1.3;width:auto}
input,select,textarea {font-size:14px;padding:7px 9px;border:1px solid #c6d0df;border-radius:6px}
.card {padding:18px;border-color:#dce3ed;border-radius:10px;box-shadow:0 2px 8px #152b4610}
th,td {padding:9px 12px;font-size:13px}th{background:#edf2f8;color:#3b4d64}
tbody tr:hover{background:#f6f9fe}nav{gap:8px}.notice{padding:10px 16px;margin:16px 0;font-size:12px}.notice h2{font-size:14px;margin-bottom:5px}.notice p{margin:4px 0}
.board-heading{display:flex;justify-content:space-between;align-items:center}.board-heading h1{margin-top:4px}
.board-wrap{max-height:65vh;border:1px solid #dce3ed;border-radius:8px}.training-board{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}
.training-board th,.training-board td{min-width:170px;border-right:1px solid #e1e7ef}
.training-board thead th{position:sticky;top:0;z-index:2;height:38px}.training-board thead tr:nth-child(2) th{top:38px}
.training-board tbody th,.training-board thead th[rowspan]{position:sticky;left:0;z-index:3;min-width:210px;background:#f1f5fa}.training-board thead th[rowspan]{z-index:4}
.training-board small{display:block;font-size:11px;margin-top:4px;color:#52667e}.training-board td a{font-weight:600}
.expired{background:#fff0f0;color:#9b2525}.soon{background:#fff7e6;color:#865b06}.valid{background:#edf8f2;color:#246348}.pending{background:#f3f5f9}.missing{color:#7d8b9c;text-align:center}
.board-legend{display:flex;gap:12px;font-size:12px}.board-legend span{padding:4px 9px;border-radius:5px}
@media(max-width:760px){main{padding:0 14px}header{padding:12px 14px}.board-heading{display:block}}

main a:not(table a):not(.contact-button):not(.action-link), header nav a, .search-toggle, .action-link, .contact-button {padding:6px 12px;font-size:13px;min-height:30px;line-height:1.3;border-radius:6px}

.board-cell{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}.board-cell input[type=date]{width:140px;padding:4px}.board-cell button{padding:4px 7px}.board-cell select{max-width:170px}

/* Readable training matrix and progressive assignment forms. */
.training-board td.board-expiry {vertical-align:middle;text-align:center;font-size:14px;font-variant-numeric:tabular-nums;font-weight:600}
.board-expiry time {white-space:nowrap}
.training-board td.board-expiry {position:relative}
.training-board tbody td.board-expiry {height:54px;box-sizing:border-box}
.training-board .board-cell-edit:not([hidden]) {position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:44px;padding:0;border:0;border-radius:4px;background:inherit;color:#243a54;cursor:pointer}
.board-cell-edit svg,.board-cell-form svg {width:18px;height:18px}
.training-board .board-cell-form:not([hidden]) {position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;width:260px;margin:0;padding:2px;background:#fff;border:1px solid #9babc0;border-radius:4px;box-shadow:0 2px 6px rgba(25,45,65,.2)}
.training-board .board-cell-form input[type=date] {flex:1;min-width:0;width:0;padding:4px;border:0}
.training-board .board-cell-form button {display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;padding:0;border:0;background:transparent;color:#243a54;cursor:pointer}
.training-board .board-cell-form button:hover,.training-board .board-cell-edit:hover {background:#dce9f4}
@media(max-width:700px) {
 .training-board .board-cell-form:not([hidden]) {width:min(210px,calc(100vw - 150px))}
}
@media (hover:hover) and (pointer:fine) {
 .training-board .board-cell-edit:not([hidden]) {opacity:0;pointer-events:none}
 .training-board td:hover .board-cell-edit:not([hidden]),.training-board td:focus-within .board-cell-edit:not([hidden]) {opacity:1;pointer-events:auto}
}
.training-board small {font-size:12px}
.training-board thead th {position:static;height:auto}
.training-board thead {position:sticky;top:0;z-index:4}
.training-board thead th[rowspan] {position:sticky;left:0}
.board-assignment summary {position:relative;cursor:pointer;min-height:44px;display:list-item;padding:10px 4px;color:#064f85;font-weight:600}
.board-cell {display:flex;flex-direction:column;align-items:stretch;margin-top:8px;gap:10px}
.board-cell input[type=date],.board-cell select {width:100%;max-width:100%;min-height:44px}
.board-cell button {min-height:44px}
.board-cell label {font-size:13px}
.training-board td a {display:inline-block;min-height:44px;padding:10px 0}
.board-legend {flex-wrap:wrap}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Shared workspace hierarchy and accessible controls. */
nav a[aria-current=page] {background:#075781!important;color:white!important;border-color:#075781!important}
.section-nav {padding:12px 0;border-bottom:1px solid #cbd5e1}
.operational-notice summary {cursor:pointer;font-weight:600;min-height:44px;padding:10px 0}
.operational-notice {padding:0 16px}
button,input[type=submit],.action-link,.contact-button,.search-toggle,header nav a {min-height:44px!important}
input,select {min-height:44px}
main a:not(table a):not(.contact-button):not(.action-link) {background:transparent;border-color:transparent;text-decoration:underline;justify-content:flex-start}
main nav.section-nav a {border:1px solid #cbd5e1!important;text-decoration:none!important;background:white!important}
main nav.section-nav a[aria-current=page] {background:#075781!important}
form .errorlist {font-weight:600}
form > div {margin-bottom:14px}
.card dl {display:grid;grid-template-columns:minmax(140px,1fr) 2fr;gap:8px 16px}
.card dt {font-weight:600}.card dd {margin:0}
@media(max-width:760px){.card dl{grid-template-columns:1fr;gap:4px}.card dd{margin-bottom:12px}.section-nav{display:grid;grid-template-columns:1fr 1fr}.section-nav a{width:100%}th,td{min-width:120px}}

.board-feedback {margin:12px 0;padding:10px 16px;border-left:4px solid #246348;background:#edf8f2}
.board-feedback p {margin:0;font-weight:600}

/* Mobile lists: preserve table semantics and export while reflowing each row. */
@media(max-width:700px){
 .mobile-cards{overflow:visible}
 .mobile-cards table,.mobile-cards tbody{display:block;width:100%}
 .mobile-cards caption{display:block;padding-bottom:.5rem}
 .mobile-cards thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .mobile-cards tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 .75rem;margin:0 0 .8rem;padding:.35rem .75rem;background:#fff;border:1px solid #dce3ed;border-radius:8px}
  .mobile-cards tbody th[scope=row]{grid-column:1/-1;min-width:0;padding:.65rem 0;background:transparent;border-bottom:1px solid #dce3ed;font-size:1rem;overflow-wrap:anywhere}
  .person-cards tbody th[scope=row]{grid-row:1}
 .mobile-cards tbody td{min-width:0;padding:.55rem 0;border-bottom:1px solid #edf0f4;overflow-wrap:anywhere}
 .mobile-cards tbody td:before{content:attr(data-label);display:block;margin-bottom:.15rem;color:#52647a;font-size:.7rem;font-weight:700}
 .mobile-cards tbody td:last-child{grid-column:1/-1}
 .mobile-cards tbody td a,.mobile-cards tbody td button{min-height:44px}
 .mobile-cards tbody td p{margin:.35rem 0}
 .mobile-cards tbody tr td[colspan]{grid-column:1/-1}.mobile-cards tbody tr td[colspan]:before{content:none}
}
@media(max-width:380px){.mobile-cards tbody tr{grid-template-columns:minmax(0,1fr)}}
.training-board th:target {outline:3px solid #075781;outline-offset:-3px}
.training-board th:focus {outline:3px solid #075781;outline-offset:-3px}
.board-filter-count {font-weight:600}
.board-legend .non_periodic,.training-board td.non_periodic {background:#e7f0fa;color:#264968}
.board-legend .indeterminate,.board-expiry.indeterminate {background:#f0eafa;color:#594277}
.board-legend .missing,.board-expiry.missing {background:#fff;color:#495869}
.board-expiry.board-outside-filter {color:#52647a}
.board-person-select {display:flex;align-items:center;gap:.5rem;margin:0;cursor:pointer}
.board-person-select input {flex:none;width:1rem;height:1rem;min-height:0;margin:0;padding:0}
@media(max-width:540px){.training-board tbody th,.training-board thead th[rowspan] {min-width:112px;max-width:34vw;overflow-wrap:anywhere}.board-heading h1 {font-size:1.5rem}}

/* Board toolbar and course picker share the workspace menu vocabulary. */
.board-toolbar {display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin:1rem 0 .35rem}
.board-search {display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .85rem;flex:1;min-width:0}
.board-search-field {position:relative;display:flex;gap:.4rem;margin:0;flex:1 1 17rem;max-width:30rem;min-width:0}
.board-search-field input {min-width:0;padding-inline-start:2.35rem}
.board-search-field button {flex:none;white-space:nowrap}
.board-search-field > svg {position:absolute;inset-inline-start:.7rem;top:50%;transform:translateY(-50%);color:#52647a;pointer-events:none}
.board-toolbar svg {flex:none;width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.board-search-mode {display:flex;align-items:center;gap:.45rem;min-height:44px;font-weight:500;cursor:pointer}
.board-search-mode input {width:1rem;height:1rem;min-height:0;margin:0;accent-color:#075781}
.board-search .board-search-reset {border:0;background:transparent;text-decoration:underline;padding-inline:.3rem}
.board-toolbar button,.board-actions .board-actions-trigger,.board-assign-dialog button {min-height:44px}
.board-actions {position:relative;flex:none;z-index:8}
.board-actions summary {list-style:none;cursor:pointer}
.board-actions summary::-webkit-details-marker {display:none}
.board-actions-trigger {gap:.3rem}
.board-actions[open] > summary {background:#e3ebf3}
.board-action-panel,.board-course-panel {padding:.35rem;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 20px #172b4633}
.board-action-panel {position:absolute;inset-inline-end:0;top:calc(100% + .3rem);width:min(18rem, calc(100vw - 28px));overflow-wrap:anywhere}
.board-actions .board-action-item {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:.5rem .65rem;border:0;border-radius:5px;background:transparent;color:#203047;font:inherit;text-align:start;text-decoration:none;cursor:pointer}
.board-actions .board-action-item:hover,.board-action-panel details[open] > summary {background:#e8f0f7;color:#12344b}
.board-action-secondary {border-top:1px solid #dce3ed;margin-top:.25rem;padding-top:.25rem}
.board-action-secondary:first-child {border-top:0;margin-top:0;padding-top:0}
main:not(:has(.board-person-select input[name="selected_people"]:checked)) .board-action-assignment {display:none}
.board-course-panel {position:absolute;top:0;inset-inline-end:calc(100% + .25rem);width:19rem;padding:.75rem}
.board-course-panel input {margin:.3rem 0 .5rem}
.board-course-results {max-height:min(18rem, 40vh);overflow:auto;overscroll-behavior:contain}
.board-course-results button:focus-visible {outline-offset:-3px}
.board-course-panel p {margin:.35rem 0}
.board-create-form,.board-actions .board-assign-form {display:grid;gap:.65rem;padding:.65rem;background:#f4f6fa;border-radius:5px}
.board-create-form p {margin:0}
.board-create-form button {justify-self:start}
.board-action-panel [hidden],.board-assign-dialog [hidden] {display:none}
.board-selection-count {margin:.35rem 0 .65rem}
.board-selection-count:empty {display:none}
.training-board tr:has(.board-person-select input:checked) > th {background:#dbeaf8}
.board-assign-dialog {width:min(28rem, calc(100% - 28px));max-height:calc(100dvh - 28px);padding:1.25rem;border:1px solid #cbd5e1;border-radius:10px;color:#203047;background:#fff;box-shadow:0 12px 36px #172b4640;overflow-wrap:anywhere}
.board-assign-dialog::backdrop {background:#172b4660}
.board-assign-form h2 {margin:0 0 .35rem}
.board-assigned-course {font-weight:650;margin:.35rem 0}
.board-assign-fields {display:grid;gap:.65rem}
.board-assign-fields input,.board-assign-fields select {display:block;width:100%;margin-top:.2rem}
.board-dialog-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.5rem;margin-bottom:0}
.board-assign-form button:disabled {background:#e3ebf3;color:#52647a;cursor:not-allowed}
.board-overwrite-form h2 {margin:0 0 .5rem}
.board-overwrite-form fieldset {max-width:32rem;margin:0 0 1rem;border:1px solid #cbd5e1;border-radius:6px}
.board-overwrite-choice {display:flex;align-items:center;gap:.5rem;min-height:44px;margin:.25rem 0;font-weight:500;cursor:pointer}
.board-overwrite-choice input {width:1rem;height:1rem;min-height:0;flex:none;accent-color:#075781}
.board-overwrite-form .board-dialog-actions {align-items:center}
.board-overwrite-form .board-dialog-actions a {min-height:44px}
@media(max-width:540px) {
  .board-overwrite-form .board-dialog-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .board-overwrite-form [data-overwrite-cancel],.board-overwrite-form [data-overwrite-submit] {grid-column:1/-1}
  .board-overwrite-form [data-overwrite-cancel] {justify-self:start}
}
.list-select-mobile {display:none}
[data-list-selection] tbody tr:has(input[data-select-row]:checked) > th {background:#dbeaf8}
[data-list-selection] tbody tr:has(input[data-select-row]:checked) > td {background:#f2f7fc}
.list-selection-archive-rows {padding-inline-start:1.3rem;max-height:8rem;overflow:auto;overscroll-behavior:contain}
[data-selection-dialog] textarea {width:100%;resize:vertical;margin-top:.25rem}
.list-selection-confirm {background:#8b2025}
.list-selection-confirm:hover {background:#6e171b}
@media(max-width:700px) {
  .board-course-panel {position:static;width:auto;box-shadow:none}
  .board-actions .board-submenu-arrow {transform:rotate(-90deg)}
  .list-select-mobile:not([hidden]) {display:flex;min-height:44px}
  [data-list-selection] thead input[data-select-all-rows] {display:none}
}

/* Keep wide training data inside its own keyboard- and touch-scrollable region. */
main {min-width:0}
.table-wrap {max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-color:#718096 #e3ebf3; scrollbar-width:thin}
.board-wrap {width:100%; min-width:0; -webkit-overflow-scrolling:touch}
.board-scroll-hint {margin:.35rem 0 .5rem; color:#3b4d64; font-size:.875rem}
.table-export {display:block; min-height:44px!important; margin:.5rem 0;}
@media(max-width:540px) {
  main {padding-inline:14px; overflow-wrap:anywhere}
  .board-wrap:focus-visible {outline-offset:2px}
  .training-board {width:max-content; min-width:0}
  .training-board th,.training-board td {min-width:150px; max-width:240px; padding:8px}
  .training-board tbody th,.training-board thead th[rowspan] {min-width:112px; max-width:34vw}
  .training-board td a {min-height:44px}
}

/* List actions: one primary task, with import and export beside it. */
.list-company {margin:-12px 0 18px;color:#52647a;font-size:14px}
.list-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:18px 0 8px}
main .list-toolbar a.list-action {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid #9aafc2;border-radius:6px;background:#fff;color:#174c73;text-decoration:none;font-size:14px;font-weight:650;line-height:1.3}
main .list-toolbar a.list-action:hover {background:#e8f0f7;border-color:#507693;color:#12344b}
main .list-toolbar a.list-action-primary {background:#075781;border-color:#075781;color:#fff}
main .list-toolbar a.list-action-primary:hover {background:#12344b;border-color:#12344b;color:#fff}
.list-action svg {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.list-export-note {margin:4px 0 12px;color:#52647a;font-size:12px}
@media(max-width:540px){.list-toolbar{align-items:stretch}.list-toolbar a.list-action{flex:1 1 auto}}
