/* Private employee files, using the shared EasyHR box and document palette. */
.ehr-file-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;color:var(--employee-text,#173b56)}
.ehr-file-library__group{min-width:0;overflow:hidden;border:1px solid var(--employee-border,#d4e5f0);border-radius:18px;background:var(--employee-surface,#fff)}
.ehr-file-library__summary{display:block;list-style:none;cursor:pointer}
.ehr-file-library__summary::-webkit-details-marker{display:none}
.ehr-file-library__summary:focus-visible{outline:3px solid #40a6df;outline-offset:-3px;border-radius:17px}
.ehr-file-library__summary>.ehr-box-heading{flex:0 0 auto;min-height:64px;padding:12px 16px;background:linear-gradient(110deg,var(--employee-raised,#edf6fc),var(--employee-surface,#fff))}
.ehr-file-library__group[open]>.ehr-file-library__summary{border-bottom:1px solid var(--employee-border,#d4e5f0)}
.ehr-file-library__chevron{width:16px;height:16px;flex-shrink:0;color:var(--employee-muted,#66829a);transition:transform .18s}
.ehr-file-library__group[open] .ehr-file-library__chevron{transform:rotate(180deg)}
.ehr-file-library__count{display:inline-flex;align-items:center;min-height:28px;white-space:nowrap;padding:3px 9px;border:1px solid var(--employee-border,#cce2ef);border-radius:9px;font-size:10px;font-weight:700;background:var(--employee-surface,#fff);color:var(--employee-muted,#66829a)}
.ehr-file-library__list{display:flex;flex-direction:column;gap:6px;padding:8px;list-style:none;margin:0}
.ehr-file-library__list li{min-width:0}
.ehr-file-library__file{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:64px;padding:8px;border:1px solid var(--employee-border,#d8e7f0);border-radius:12px;background:var(--employee-surface,#fff);color:inherit;text-decoration:none;transition:border-color .18s,background-color .18s,box-shadow .18s}
.ehr-file-library__file:hover{border-color:#8dbdd9;background:var(--employee-raised,#f4faff);box-shadow:0 4px 14px #0c5da30c}
.ehr-file-library__file:focus-visible,.ehr-file-view a:focus-visible{outline:3px solid #40a6df;outline-offset:2px}
.ehr-file-library__thumbnail{display:grid;place-items:center;height:46px;min-height:46px;overflow:hidden;border:1px solid var(--employee-border,#d8e7f0);border-radius:9px;background:var(--employee-raised,#f1f8fc)}
.ehr-file-library__thumbnail img{display:block;width:100%;height:46px;object-fit:contain;background:#fff}
.ehr-file-library__thumbnail.is-pdf{background:#fff4f5;border-color:#f1d1d5}
.ehr-file-library__thumbnail svg{width:32px;height:32px}
.ehr-file-library__thumbnail text{fill:#fff;font:800 6.5px Arial,sans-serif;letter-spacing:.04em}
.ehr-file-library__copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.ehr-file-library__copy strong{overflow-wrap:anywhere;font-size:12px;line-height:1.6;font-weight:700;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.ehr-file-library__copy small{font-size:10px;line-height:1.6;color:var(--employee-muted,#66829a)}
.ehr-file-library__copy small span{margin-inline:4px}
.ehr-file-library__open{display:flex;align-items:center;gap:7px;min-height:44px;white-space:nowrap;padding-inline:8px;font-size:11px;font-weight:700;color:#0c72af}
.ehr-file-library__open svg{width:16px;height:16px;flex-shrink:0}
.ehr-file-library__empty{display:flex;min-height:92px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:16px;text-align:center;color:var(--employee-muted,#66829a)}
.ehr-file-library__empty>svg{width:29px;height:29px;margin-bottom:4px;color:#6e9eba}
.ehr-file-library__empty strong{font-size:12px;font-weight:650}
.ehr-file-library__empty p{font-size:11px;line-height:1.7}
html.dark .ehr-file-library__thumbnail.is-pdf{background:#2b2435;border-color:#654150}
html.dark .ehr-file-library__open{color:#91c8e9}
.ehr-file-view{--employee-surface:#fff;--employee-raised:#f1f7fb;--employee-border:#d4e5f0;--employee-text:#173b56;--employee-muted:#66829a;min-height:100dvh;background:var(--employee-raised);color:var(--employee-text)}
html.dark .ehr-file-view{--employee-surface:#0f1d2f;--employee-raised:#081322;--employee-border:#2b435c;--employee-text:#e7eff7;--employee-muted:#a8bfd3}
.ehr-file-view__toolbar{display:flex;align-items:center;gap:14px;padding:16px clamp(16px,3vw,38px);border-bottom:1px solid var(--employee-border);background:var(--employee-surface)}
.ehr-file-view__icon{display:grid;flex:0 0 44px;height:44px;place-items:center;border-radius:12px;background:linear-gradient(145deg,#1078bc,#084e87);color:#fff;box-shadow:0 5px 14px #0c5da326}
.ehr-file-view__icon svg{width:22px;height:22px}
.ehr-file-view__title{min-width:0;flex:1}
.ehr-file-view__title small{font-size:9px;font-weight:750;letter-spacing:.12em;color:var(--employee-muted)}
.ehr-file-view__title h1{overflow-wrap:anywhere;font-size:15px;line-height:1.5;font-weight:750}
.ehr-file-view__title p{margin-top:3px;font-size:11px;line-height:1.7;color:var(--employee-muted);overflow-wrap:anywhere}
.ehr-file-view__actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.ehr-file-view__actions a{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border:1px solid var(--employee-border);border-radius:10px;background:var(--employee-surface);color:inherit;text-decoration:none;font-size:11px;font-weight:700}
.ehr-file-view__actions svg{width:16px;height:16px}
.ehr-file-view__actions .is-primary{border-color:#0c5da3;background:linear-gradient(135deg,#0c5da3,#0a76ba);color:#fff}
.ehr-file-view__content{display:grid;min-height:calc(100dvh - 115px);place-items:center;padding:24px}
.ehr-file-view__content>img{display:block;max-width:100%;max-height:calc(100dvh - 165px);object-fit:contain;background:#fff;box-shadow:0 10px 35px #1038551a}
.ehr-file-view__content>iframe{display:block;width:100%;height:max(360px,calc(100dvh - 165px));border:1px solid var(--employee-border);border-radius:12px;background:var(--employee-surface)}
@media(max-width:1023px){.ehr-file-library__open>span{display:none}.ehr-file-library__file{gap:10px}.ehr-file-view__toolbar{flex-wrap:wrap}.ehr-file-view__actions{margin-left:auto}}
@media(max-width:767px){.ehr-file-library{grid-template-columns:minmax(0,1fr)}.ehr-file-library__open>span{display:inline}}
@media(max-width:479px){.ehr-file-library__summary>.ehr-box-heading{padding:10px 12px}.ehr-file-library__file{grid-template-columns:42px minmax(0,1fr) 20px;gap:9px;padding:9px}.ehr-file-library__thumbnail{height:42px;min-height:42px}.ehr-file-library__thumbnail img{height:42px}.ehr-file-library__open{padding:0}.ehr-file-library__open>span{display:none}.ehr-file-view__toolbar{gap:10px;padding:14px}.ehr-file-view__actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto}.ehr-file-view__content{padding:12px}.ehr-file-view__content>img{max-height:calc(100dvh - 210px)}}
@media(prefers-reduced-motion:reduce){.ehr-file-library__file,.ehr-file-library__chevron{transition:none}}
