/* ETVEL employee directory: scoped to this dialog only. */
html body #dialog:has(.employee-directory){--people-bg:#1c1e22;--people-field:#272a30;--people-text:#f4f4f5;--people-muted:#9da2ac;--people-line:#ffffff12;width:min(700px,calc(100vw - 24px));max-height:90dvh;padding:24px!important;background:var(--people-bg)!important;color:var(--people-text)!important;border:1px solid #ffffff15;border-radius:22px;box-shadow:0 24px 80px #0006}
html body #dialog:has(.employee-directory)::backdrop{background:#090b1099;backdrop-filter:blur(5px)}
html body #dialog:has(.employee-directory) .dialog-header{margin-bottom:20px}
html body #dialog:has(.employee-directory) #dialog-title{color:var(--people-text)!important;font-size:26px;letter-spacing:-.6px;margin:0;font-weight:700}
html body #dialog:has(.employee-directory) .eyebrow{color:#ffb438;font-size:10px;letter-spacing:3px}
html body #dialog:has(.employee-directory) #close-dialog{background:var(--people-field)!important;color:var(--people-muted)!important;border:0;box-shadow:none;width:36px;height:36px;border-radius:50%}
html body #dialog .employee-directory .dialog-search{box-sizing:border-box;width:100%;height:44px;min-height:44px;padding:0 15px;border:1px solid var(--people-line);border-radius:12px;background:var(--people-field)!important;color:var(--people-text)!important;font-size:16px;box-shadow:none}
html body #dialog .employee-directory .dialog-search::placeholder{color:var(--people-muted)}
html body #dialog .employee-directory :is(input,button):focus-visible{outline:2px solid #ffb438;outline-offset:3px}
html body #dialog .employee-directory .people-filters{display:flex;gap:7px;overflow:auto;padding:12px 2px 8px;scrollbar-width:thin}
html body #dialog .employee-directory .people-filter{flex:0 0 auto;white-space:nowrap;min-height:36px;padding:8px 12px;border:1px solid var(--people-line)!important;border-radius:9px;background:transparent!important;color:var(--people-muted)!important;font-size:12px;font-weight:550;box-shadow:none}
html body #dialog .employee-directory .people-filter[aria-pressed=true]{background:#ffb438!important;color:#191a1d!important;border-color:#ffb438!important}
html body #dialog .employee-directory .people-count{font-size:12px;color:var(--people-muted);margin:10px 0 8px}
html body #dialog .employee-directory .dialog-list{display:flex;flex-direction:column;gap:0;margin:0}
html body #dialog .employee-directory .person-row{display:flex;align-items:center;width:100%;gap:12px;min-height:76px;padding:12px 8px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--people-line)!important;border-radius:0;box-shadow:none;text-align:left;transition:background .18s}
html body #dialog .employee-directory .person-row:hover{background:var(--people-field)!important;filter:none}
html body #dialog .employee-directory .avatar{width:42px;height:42px;min-width:42px;border-radius:50%;background:#ffb43818;color:#ffb438;font-size:14px;overflow:hidden}
html body #dialog .employee-directory .avatar img{width:100%;height:100%;object-fit:cover}
html body #dialog .employee-directory .person-detail{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
html body #dialog .employee-directory .person-detail strong{font-size:14px;line-height:1.35;color:var(--people-text)!important;font-weight:600}
html body #dialog .employee-directory .person-detail small{font-size:11px;line-height:1.4;margin:0;color:var(--people-muted)!important;overflow-wrap:anywhere}
html body #dialog .employee-directory .profile-presence{display:inline-flex;align-items:center;gap:5px;font-size:10px;margin:0;color:var(--people-muted)!important}
html body #dialog .employee-directory .profile-presence::before{content:'';width:5px;height:5px;border-radius:50%;background:#777e89!important}
html body #dialog .employee-directory .profile-presence.is-online{color:#3dcc88!important}
html body #dialog .employee-directory .profile-presence.is-online::before{background:#3dcc88!important}
html body #dialog .employee-directory .person-arrow{font-size:24px;color:var(--people-muted)}
html body #dialog .employee-directory .people-add{margin-top:16px;min-height:42px;background:var(--people-field)!important;color:var(--people-text)!important;border:1px solid var(--people-line);border-radius:10px;font-size:13px}
html body #dialog .employee-directory .people-empty{text-align:center;padding:30px 10px;color:var(--people-muted);font-size:13px}
html body #dialog .employee-directory .people-reset{background:transparent!important;color:#ffb438!important;border:0;font-size:13px;min-height:40px}
html[data-theme=light] body #dialog:has(.employee-directory){--people-bg:#fff;--people-field:#f2f3f5;--people-text:#25272b;--people-muted:#717782;--people-line:#17191e12}
@media(max-width:600px){html body #dialog:has(.employee-directory){padding:18px 14px!important;width:calc(100vw - 20px)}html body #dialog:has(.employee-directory) #dialog-title{font-size:23px}}
@media(prefers-reduced-motion:reduce){html body #dialog .employee-directory .person-row{transition:none}}

/* Keep directory accents independent of the global red UI focus palette. */
html body #dialog:has(.employee-directory){--ui-focus:#e9a12b}
html body #dialog:has(.employee-directory) .employee-directory .dialog-search{border:1px solid var(--people-line)!important;border-radius:12px!important;box-shadow:none!important;outline:none!important;transition:border-color .18s,box-shadow .18s}
html body #dialog:has(.employee-directory) .employee-directory .dialog-search:focus{border-color:#e9a12b!important;box-shadow:0 0 0 3px #ffb43818!important;outline:none!important}
html body #dialog:has(.employee-directory) .employee-directory .person-row{border:0!important;border-bottom:1px solid var(--people-line)!important;border-radius:10px!important;box-shadow:none!important;outline:none!important;background:transparent!important}
html body #dialog:has(.employee-directory) .employee-directory .person-row:is(:hover,:focus-visible){background:linear-gradient(100deg,#ffb43814,#ff850009)!important;border-color:transparent!important;box-shadow:inset 3px 0 #efa62d,inset 0 0 0 1px #efa62d40!important}
html body #dialog:has(.employee-directory) .employee-directory .person-row:focus-visible{outline:2px solid #e9a12b!important;outline-offset:-2px!important}
html body #dialog:has(.employee-directory) .employee-directory :is(button,a):focus-visible{outline-color:#e9a12b!important}
@media(prefers-reduced-motion:reduce){html body #dialog:has(.employee-directory) .employee-directory .dialog-search{transition:none}}
