/* Trainees: isolated final layer; shared LSC surfaces and theme remain authoritative. */
#view-trainees{color:var(--ui-text,#323232)}
#view-trainees .section-head{gap:18px;flex-wrap:wrap}
#view-trainees .trainees-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 26px}
#view-trainees .trainees-summary article{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid var(--ui-border,#ded8d8);border-top:3px solid #410101;border-radius:12px;background:var(--ui-surface,#fff)}
#view-trainees .trainees-summary span{font-size:.83rem;color:var(--ui-muted,#646464)}
#view-trainees .trainees-summary strong{font-size:1.6rem;line-height:1.2;font-variant-numeric:tabular-nums}
#view-trainees .trainees-section{margin-top:24px;padding:20px;background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#ded8d8);border-radius:14px;min-width:0}
#view-trainees .trainees-section h2{margin:0}
#view-trainees .trainees-search{min-width:240px;max-width:100%}
#view-trainees .section-head>label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:var(--ui-muted,#666)}
#view-trainees .section-head>label input,#view-trainees .section-head>label select{width:100%;min-height:36px}
#view-trainees table{width:100%;table-layout:fixed}
#view-trainees th,#view-trainees td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle;padding:12px 10px}
#view-trainees .trainees-table th:first-child{width:36%}
#view-trainees .trainees-table th:last-child{width:12%}
#view-trainees td small,#view-trainees td>strong,#view-trainees td>span{display:block}
#view-trainees td small{margin-top:4px;font-size:.75rem;color:var(--ui-muted,#666);line-height:1.4}
#view-trainees .trainee-number{font-size:1.12rem;font-weight:650;font-variant-numeric:tabular-nums}
#view-trainees .trainee-role{display:inline-block!important;margin:5px 0;padding:2px 7px;border:1px solid var(--ui-border,#d8cdcd);border-radius:5px;font-size:.7rem;font-weight:650;color:var(--ui-accent,#410101)}
#view-trainees .trainee-drafts-table th:nth-child(1){width:19%}
#view-trainees .trainee-drafts-table th:nth-child(2){width:17%}
#view-trainees .trainee-drafts-table th:nth-child(3){width:20%}
#view-trainees .trainee-drafts-table th:nth-child(4){width:18%}
#view-trainees .trainee-drafts-table th:nth-child(5){width:15%}
#view-trainees .trainee-drafts-table th:nth-child(6){width:11%}
#view-trainees .trainee-unaccompanied{color:#925b09;font-weight:650}
#view-trainees .trainees-pager{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 0;font-size:.83rem}
#view-trainees .trainees-pager>span{margin-right:auto}
#view-trainees .trainees-pager label{display:flex;align-items:center;gap:8px;margin:0}
#view-trainees .trainees-pager select{width:78px;margin:0}
#view-trainees .trainee-add,#traineeNotesDialog .trainee-add{background:#e4f5e9!important;color:#176436!important;border-color:#9bc9aa!important}
#traineeNotesDialog{width:min(760px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;padding:24px;color:var(--ui-text,#323232);background:var(--ui-surface,#fff)}
#traineeNotesDialog .trainee-notes-list{display:grid;gap:12px;margin:18px 0}
#traineeNotesDialog .trainee-note{padding:14px;border:1px solid var(--ui-border,#ded8d8);border-radius:10px;background:var(--ui-surface-raised,var(--ui-surface,#fff))}
#traineeNotesDialog .trainee-note-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#traineeNotesDialog .trainee-note-head small{margin-left:auto;color:var(--ui-muted,#666)}
#traineeNotesDialog .trainee-note p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:10px 0 0}
#traineeNotesDialog form{margin-top:20px;border-top:1px solid var(--ui-border,#ded8d8);padding-top:18px}
#traineeNotesDialog textarea{resize:vertical;min-height:110px;max-height:30vh}
:root[data-theme="DARK"] #view-trainees .trainees-summary article{border-top-color:#bb7777}
:root[data-theme="DARK"] #view-trainees .trainee-role{color:#f0b4b4}
:root[data-theme="DARK"] #view-trainees .trainee-unaccompanied{color:#f4c579}
:root[data-theme="DARK"] #view-trainees .trainee-add,:root[data-theme="DARK"] #traineeNotesDialog .trainee-add{background:#163d26!important;color:#a6e4bd!important;border-color:#346e48!important}
@media(max-width:1100px){#view-trainees .trainees-section{padding:14px}#view-trainees th,#view-trainees td{padding:10px 7px;font-size:.8rem}#view-trainees .row-actions{gap:3px;flex-wrap:wrap}}
@media(max-width:800px){#view-trainees .trainees-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#view-trainees .table-wrap{overflow-x:auto}#view-trainees table{min-width:690px}#view-trainees .section-head>label{width:100%}#view-trainees .trainees-pager>span{width:100%}#traineeNotesDialog .trainee-note-head small{margin-left:0}}
