.employee-file{display:flex;flex-direction:column;overflow:hidden}dialog.employee-file:not([open]){display:none}.employee-file__body{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.employee-file>.dialog__heading,.employee-file>.dialog__actions{flex:none}
.employee-file__toolbar{display:flex;align-items:flex-start;flex-wrap:wrap;gap:18px;margin-bottom:22px}.employee-file__toolbar>.employee-file__tabs{flex:1;min-width:0;margin:0;align-self:center;scrollbar-width:thin}.employee-file__tabs a{display:flex;align-items:center;gap:6px}.employee-file__tab-count{font-size:11px;font-weight:600;color:var(--muted);background:var(--surface-soft);padding:1px 5px;border-radius:4px}.employee-file__filters{display:flex;justify-content:flex-end;margin:0 0 20px}
.employee-file__timeline{margin:0;padding-left:6px}.employee-file__timeline>li{padding-bottom:22px}.employee-file__timeline>li:last-child{padding-bottom:0}.employee-file__item,.employee-file__version{padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);min-width:0}.employee-file__item--withdrawn{background:var(--surface)}.employee-file__version-list{margin:20px 0 0;padding-left:6px}
.employee-file__row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.employee-file__badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.employee-file__text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:14px;margin:12px 0}.employee-file__text p+p{margin-top:7px}.employee-file__meta{display:flex;gap:5px 12px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.employee-file__entry-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:12px}.employee-file__event-title{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.5}.employee-file__event-title>.icon{width:16px;height:16px;color:var(--muted);flex:none}.employee-file__confirmation{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}.employee-file__versions{min-width:0}.employee-file__versions h3{font-size:18px}.employee-file__withdrawn-text,.employee-file__event-details{margin:12px 0;font-size:13px}.employee-file__withdrawn-text>summary,.employee-file__event-details>summary{display:flex;align-items:center;gap:8px;width:fit-content;cursor:pointer;color:var(--muted);list-style:none}.employee-file__withdrawn-text>summary::-webkit-details-marker,.employee-file__event-details>summary::-webkit-details-marker{display:none}.employee-file__withdrawn-text>summary>.icon,.employee-file__event-details>summary>.icon{width:14px;height:14px;transition:transform .15s}.employee-file__withdrawn-text[open]>summary>.icon,.employee-file__event-details[open]>summary>.icon{transform:rotate(180deg)}.employee-file__body>.table-footer,.employee-file__versions>.table-footer{padding:20px 0 0}.profile-familiarizations>.badge-row{margin-bottom:0}.profile-familiarizations>.muted{margin-top:14px;font-size:14px}
.employee-familiarizations{display:flex;flex-direction:column;overflow:hidden}.employee-familiarizations:not([open]){display:none}.employee-familiarizations>.dialog__body{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.employee-familiarizations>.dialog__heading,.employee-familiarizations>.dialog__actions{flex:none}.familiarizations-all{margin:0}.familiarizations-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.familiarizations-group legend{font-size:16px;font-weight:700;padding:0 0 10px}.familiarizations-group .check-choice{align-items:center;font-size:14px}.familiarizations-group .check-choice input{margin:0}.familiarizations-group .muted{font-size:13px}
.familiarization-badges .badge{max-width:100%;white-space:normal}.familiarization-badges .badge>span:not(.sr-only){min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.familiarizations-groups{grid-template-columns:1fr;gap:20px}}
@media(max-width:600px){.employee-file__toolbar>.employee-file__tabs{flex-basis:100%;gap:14px}.employee-file__tabs a{font-size:12px}.employee-file__tab-count{display:none}.employee-file__filters{justify-content:flex-start}}
@media(max-width:520px){.employee-file__item,.employee-file__version{padding:14px}.employee-file__text{font-size:13px}.employee-file__row{gap:10px}.employee-file__meta{flex-direction:column}.employee-file__tabs{font-size:12px}.employee-file__entry-footer>.row-actions{margin-left:auto}}

.employee-file-entry .segmented-control{display:flex}.employee-file-entry .segmented-control>label{flex:1;padding-inline:10px}

/* The note and its previous versions share the classification's subtle tint. */
.employee-file__item--success,.employee-file__version-list>li[data-tone="success"]>.employee-file__version{background:color-mix(in srgb,var(--success-soft) 70%,var(--surface));border-color:color-mix(in srgb,var(--success) 30%,var(--line))}
.employee-file__item--info,.employee-file__version-list>li[data-tone="info"]>.employee-file__version,.employee-file__item--automatic.employee-file__item--neutral{background:color-mix(in srgb,var(--info-soft) 70%,var(--surface));border-color:color-mix(in srgb,var(--action) 30%,var(--line))}
.employee-file__item--danger,.employee-file__version-list>li[data-tone="danger"]>.employee-file__version{background:color-mix(in srgb,var(--danger-soft) 70%,var(--surface));border-color:color-mix(in srgb,var(--danger) 30%,var(--line))}
.employee-file__item--warning{background:color-mix(in srgb,var(--warning-soft) 70%,var(--surface));border-color:color-mix(in srgb,var(--warning) 30%,var(--line))}

/* Important history keeps a softer yellow; regular changes share neutral notes. */
.employee-file{--history-yellow-background:#fff9e8;--history-yellow-border:#ddcf9f;--history-yellow-accent:#a88c35}
:root[data-theme="dark"] .employee-file{--history-yellow-background:#383522;--history-yellow-border:#746b3e;--history-yellow-accent:#cdb45d}
.employee-file__item--automatic.employee-file__item--warning{background:var(--history-yellow-background);border-color:var(--history-yellow-border)}
.employee-file__item--automatic.employee-file__item--warning .employee-file__event-title>.icon{color:var(--history-yellow-accent)}
.employee-file__timeline>li[data-source="audit"][data-tone="warning"]::before{background:var(--history-yellow-accent)}
