/* OH&S: dark navy theme and shared components. */
form .btn.btn-search {
    --bs-btn-color: #fff;
    --bs-btn-bg: #023568;
    --bs-btn-border-color: #023568;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #02274d;
    --bs-btn-hover-border-color: #02274d;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #02274d;
    --bs-btn-active-border-color: #02274d;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #023568;
    --bs-btn-disabled-border-color: #023568;
    --bs-btn-focus-shadow-rgb: 2, 53, 104;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
.modal { --bs-modal-bg: #fff; }
.modal .modal-content,
.modal .modal-header,
.modal .modal-body,
.modal .modal-footer { background-color: #fff; }
.modal,
.modal * { scrollbar-width: thin; scrollbar-color: #9cb8d3 #f2f6fb; }
.modal .modal-body { overscroll-behavior: contain; scrollbar-gutter: stable; }
.modal::-webkit-scrollbar,
.modal *::-webkit-scrollbar { width: 8px; height: 8px; }
.modal::-webkit-scrollbar-track,
.modal *::-webkit-scrollbar-track { background: #f2f6fb; border-radius: 999px; }
.modal::-webkit-scrollbar-thumb,
.modal *::-webkit-scrollbar-thumb { background: #9cb8d3; border: 2px solid #f2f6fb; border-radius: 999px; min-height: 36px; }
.modal::-webkit-scrollbar-thumb:hover,
.modal *::-webkit-scrollbar-thumb:hover { background: #224b74; }
.modal::-webkit-scrollbar-thumb:active,
.modal *::-webkit-scrollbar-thumb:active { background: #143453; }
.modal::-webkit-scrollbar-corner,
.modal *::-webkit-scrollbar-corner { background: #f2f6fb; }
.modal::-webkit-scrollbar-button,
.modal *::-webkit-scrollbar-button { display: none; }
@supports selector(::-webkit-scrollbar) {
.modal,
    .modal * { scrollbar-width: auto; scrollbar-color: auto; }
}
@media (forced-colors: active) {
.modal,
    .modal * { scrollbar-color: auto; }
.modal::-webkit-scrollbar-thumb,
    .modal *::-webkit-scrollbar-thumb { background: ButtonText; border-color: Canvas; }
.modal::-webkit-scrollbar-track,
    .modal *::-webkit-scrollbar-track,
    .modal::-webkit-scrollbar-corner,
    .modal *::-webkit-scrollbar-corner { background: Canvas; }
}
.form-validation-error { display:block; width:100%; margin:6px 0 0; color:var(--bs-danger); font-size:.8rem; line-height:1.6; overflow-wrap:anywhere; }
.form-validation-error[hidden], .form-validation-error:empty { display:none !important; }
.form-control.is-invalid, .form-select.is-invalid { border-color:var(--bs-danger); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow:0 0 0 .2rem rgba(var(--bs-danger-rgb), .15); }
#session-details-table > thead > tr > th,
#session-details-table > tbody > tr > th { text-align: left !important; }
.harbour-alerts { position: fixed; top: 16px; right: 16px; z-index: 1090; width: min(390px, calc(100vw - 32px)); display: grid; gap: 10px; pointer-events: none; }
.harbour-alert { position: relative; padding: 14px 42px 14px 16px; margin: 0; border-radius: 12px; font-size: .85rem; line-height: 1.6; box-shadow: 0 5px 20px rgb(13 34 54 / 9%); pointer-events: auto; overflow-wrap: anywhere; transition: opacity .3s ease, transform .3s ease; }
.harbour-alert.alert-success { background: rgb(236 248 241 / 96%); color: #286447; border: 1px solid #d2e9dc; }
.harbour-alert.alert-danger { background: rgb(255 243 242 / 96%); color: #9b4545; border: 1px solid #f1d9d6; }
.harbour-alert .btn-close { position: absolute; top: 17px; right: 14px; width: .65rem; height: .65rem; opacity: .45; }
.harbour-alert .btn-close:hover { opacity: .8; }
.harbour-alert.is-leaving { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
.harbour-alert { transition: none; }
}
:root {
    --bs-body-font-family: 'IBM Plex Sans Thai', system-ui, sans-serif;
    --bs-body-bg: #f2f6fb;
    --bs-body-color: #1e3042;
    --bs-primary: #023568;
    --bs-primary-rgb: 2, 53, 104;
    --bs-link-color: #023568;
    --bs-link-color-rgb: 2, 53, 104;
    --bs-link-hover-color: #02274d;
    --bs-link-hover-color-rgb: 2, 39, 77;
    --bs-secondary-color: #495a6b;
    --bs-border-color: #d8e4f0;
    --brand: #023568;
    --harbour-navy: #0d2236;
    --harbour-sea: #224b74;
}
.account-bar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--bs-border-color); overflow-wrap: anywhere; }
.account-user-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-user-avatar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; color: var(--brand); background: #e8f2fb; }
.account-user-avatar svg { width: 24px; height: 24px; }
.account-user-identity { min-width: 0; }
.account-user-name { display: block; color: var(--harbour-navy); font-size: .9rem; line-height: 1.6; font-weight: 600; }
.account-user-code { display: block; color: var(--brand); font-size: .7rem; line-height: 1.7; margin-top: 2px; }
.account-user-logout { margin-left: auto; flex-shrink: 0; }
.account-logout-button { --bs-btn-color: var(--brand); --bs-btn-bg: #fff; --bs-btn-border-color: #c7daec; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); --bs-btn-focus-shadow-rgb: 2, 53, 104; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 9px; font-size: .8rem; }
.account-logout-button svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 767px) {
.account-bar { padding: 16px; gap: 14px; }
.account-user-header { flex: 1; }
}
.main-panel { min-width: 0; }
.btn-brand, .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #12365a;
    --bs-btn-hover-border-color: #12365a;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0e2b48;
    --bs-btn-active-border-color: #0e2b48;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: 2, 53, 104;
}
.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #12365a;
    --bs-btn-active-border-color: #12365a;
    --bs-btn-disabled-color: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: 2, 53, 104;
}
.pagination {
    --bs-pagination-color: var(--brand);
    --bs-pagination-hover-color: #12365a;
    --bs-pagination-focus-color: #12365a;
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgb(20 52 83 / 18%);
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
}
.card {
    --bs-card-bg: #fff;
    --bs-table-bg: #fff;
    background-color: #fff;
    --bs-card-border-color: #d8e4f0;
    --bs-card-cap-bg: #fff;
    box-shadow: 0 3px 12px rgb(13 34 54 / 4%);
}
.card > .card-header,
.card > .card-body,
.card > .card-footer { background-color: #fff; }
.card .table { --bs-table-bg: #fff; }
.progress { height: .5rem; background-color: #e0eaf3; }
.progress-bar { background: var(--harbour-sea); }
.table { --bs-table-color: var(--bs-body-color); --bs-table-border-color: #d8e4f0; }
.table-light { --bs-table-bg: #edf4fb; --bs-table-color: #1e3042; }
.table-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; }
.table-actions form { margin: 0; flex-shrink: 0; }
.table-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 12px; border-radius: 8px; font-size: .8rem; font-weight: 500; line-height: 1.4; white-space: nowrap; flex-shrink: 0; }
.table-actions .btn-outline-primary { --bs-btn-bg: #eef4fb; }
.table-actions .btn-outline-secondary { --bs-btn-bg: #f5f7f9; }
.table-actions .btn-outline-danger { --bs-btn-bg: #fff3f3; }
.form-control, .form-select {
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: #6da1d4;
    box-shadow: 0 0 0 .25rem rgb(20 52 83 / 18%);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid #6da1d4; outline-offset: 3px; }
.table {
    --bs-table-border-color: #e5ecf2;
    --bs-table-hover-bg: #f3f7fb;
    --bs-table-hover-color: var(--bs-body-color);
    font-size: .875rem;
    line-height: 1.65;
}
.table > thead > tr > th {
    text-align: center !important;
    padding: 14px 18px;
    background-color: #edf4fb;
    color: #2b3f52;
    font-size: .8rem;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    border-bottom: 1px solid #d8e4f0;
}
.table > tbody > tr > td {
    padding: 16px 18px;
    vertical-align: middle;
    overflow-wrap: break-word;
}
.table > tbody > tr:last-child > td { border-bottom-width: 0; }
.table > tbody > tr:hover > td { --bs-table-bg-state: var(--bs-table-hover-bg); }
.table > tbody > tr:focus-within > td { --bs-table-bg-state: #f3f7fb; }
.table td .small, .table td small { font-size: .77rem; line-height: 1.65; }
.table td .badge { padding: 6px 10px; border-radius: 999px; font-size: .73rem; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.table td .btn { min-height: 34px; border-radius: 8px; font-size: .8rem; line-height: 1.4; white-space: nowrap; }
.table td form { margin-bottom: 0; }
.table td .d-flex.gap-2 { flex-wrap: nowrap; align-items: center; }
.table td .d-flex.gap-2 > form, .table td .d-flex.gap-2 > .btn { flex-shrink: 0; }
.table td[colspan] { padding: 32px 18px; }
.table-responsive { overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b8c7d6 #f3f6fa; }
.table-responsive > .table { margin-bottom: 0; }
@media (max-width:767px) {
.table { font-size: .82rem; }
.table > thead > tr > th { padding: 12px 14px; }
.table > tbody > tr > td { padding: 14px; }
}

.training-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--bs-border-color); }
.training-pagination-summary { margin: 0; color: #526c83; font-size: .8rem; line-height: 1.8; }
.training-pagination-summary strong { color: var(--harbour-navy); font-weight: 600; }
.training-pagination-summary > span { display: block; color: #687e92; font-size: .72rem; }
.training-pagination nav { min-width: 0; max-width: 100%; }
.training-pagination-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.training-pagination-list a, .training-pagination-list li > span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--bs-border-color); border-radius: 10px; background: #fff; color: var(--harbour-sea); font-size: .82rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.training-pagination-list a:hover { background: #e8f2fb; border-color: #9cb8d3; color: var(--brand); }
.training-pagination-list a:focus-visible { outline: 3px solid #9cb8d3; outline-offset: 3px; }
.training-pagination-list .is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 3px 8px #0235681a; }
.training-pagination-list .is-disabled { background: #f2f6fb; color: #7c8c9b; }
.training-pagination-list .training-pagination-gap { min-width: 20px; padding: 0; border: 0; background: transparent; }
.training-pagination-direction { white-space: nowrap; }
.training-pagination-direction > span[aria-hidden] { font-size: 1.3rem; line-height: 1; }
@media (max-width: 767.98px) {
    .training-pagination { flex-direction: column; gap: 14px; padding: 18px 0; }
    .training-pagination-summary { text-align: center; }
    .training-pagination-list .training-pagination-direction { padding-inline: 10px; }
}
