/* Loaded last: repair legacy module surfaces and keep controls readable in light mode. */
.company-shell .sidebar-identity{position:relative;flex:none;min-width:0}
.company-shell .sidebar-identity .company-brand{box-sizing:border-box;min-height:84px!important;margin:0 4px 8px!important;padding:9px 33px 15px 4px!important;gap:11px!important}
.company-shell .sidebar-identity-avatar{position:relative;display:block!important;flex:0 0 64px!important;width:64px!important;height:64px!important;background:transparent!important;box-shadow:none!important}
.company-shell .sidebar-identity-avatar .sidebar-user-photo,.company-shell .sidebar-identity-avatar .sidebar-user-initial{width:64px!important;height:64px!important;min-width:64px!important;border-radius:50%!important;object-fit:cover}
.company-shell .sidebar-identity .company-brand>div{min-width:0!important;overflow:hidden}
.company-shell .sidebar-identity .company-brand>div b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.79rem!important}
.company-shell .sidebar-identity .company-brand>div small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.62rem!important}
.company-shell .sidebar-identity .sidebar-profile-settings{position:absolute!important;top:auto!important;bottom:10px!important;inset-inline-start:45px!important;inset-inline-end:auto!important;z-index:65!important;width:29px!important;height:29px!important;border-radius:50%!important;border:2px solid #06182b!important;background:#168bff!important;color:#fff!important;box-shadow:0 3px 10px #00152f55!important}
.company-shell .sidebar-identity .sidebar-profile-settings:hover,.company-shell .sidebar-identity .sidebar-profile-settings:focus-visible{background:#2864bd!important;color:#fff!important;outline:2px solid #6dbcf8;outline-offset:2px}
html[data-theme=light] .company-shell .sidebar-identity .sidebar-profile-settings{background:#fff!important;color:#2864bd!important;border-color:#fff!important;box-shadow:0 2px 9px #10274733!important}
.company-shell.sidebar-collapsed .sidebar-identity .company-brand{min-height:83px!important;margin:0 0 8px!important;padding:8px 0 14px!important;justify-content:center!important}
.company-shell.sidebar-collapsed .sidebar-identity-avatar,.company-shell.sidebar-collapsed .sidebar-identity-avatar :is(.sidebar-user-photo,.sidebar-user-initial){width:48px!important;height:48px!important;min-width:48px!important;flex-basis:48px!important}
.company-shell.sidebar-collapsed .sidebar-identity .sidebar-profile-settings{display:grid!important;bottom:10px!important;inset-inline-start:calc(50% + 8px)!important;width:25px!important;height:25px!important}
@media(max-width:760px){.company-shell .sidebar-identity .company-brand{padding-inline-end:8px!important}.company-shell .sidebar-identity .sidebar-profile-settings{bottom:12px!important}}

.employee-row-menu{position:relative;display:inline-block}
.employee-row-menu>summary{display:flex;min-width:38px;height:38px;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid var(--pw-line);border-radius:10px;background:var(--pw-panel-2);color:var(--pw-text);cursor:pointer;list-style:none;font-size:.78rem;font-weight:800;white-space:nowrap}
.employee-row-menu>summary::-webkit-details-marker{display:none}.employee-row-menu>summary svg{display:block!important;width:18px;height:18px;stroke:currentColor!important;color:currentColor!important;opacity:1!important;visibility:visible!important}.employee-row-menu-label{display:inline!important;color:inherit!important}
.employee-row-menu>div{position:absolute;z-index:120;top:44px;inset-inline-end:0;display:grid;min-width:160px;padding:6px;border:1px solid var(--pw-line);border-radius:12px;background:var(--pw-panel);box-shadow:0 16px 42px #0005}
.employee-row-menu>div a,.employee-row-menu>div button{box-sizing:border-box;display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--pw-text);font:inherit;text-align:start;white-space:nowrap;cursor:pointer}
.employee-row-menu>div a:hover,.employee-row-menu>div button:hover{background:var(--pw-soft)}.employee-row-menu>div svg{width:16px;height:16px}
.employee-row-menu>div form{margin:0}.employee-row-menu>div .hr-delete{color:#ff6b86}
.module-employees .hr-status.status-inactive{background:#3c2634!important;color:#ff9bb0!important;border:1px solid #7c3f55!important}
html[data-theme=light] .employee-row-menu>summary,html[data-theme=light] .employee-row-menu>div{background:#fff!important;color:#102747!important;border-color:#dbe5f0!important}
html[data-theme=light] .employee-row-menu>div a,html[data-theme=light] .employee-row-menu>div button{color:#102747!important}
html[data-theme=light] .employee-row-menu>div .hr-delete{color:#b4233f!important}
html[data-theme=light] .module-employees .hr-status.status-inactive{background:#fff0f3!important;color:#a51f3c!important;border-color:#f3b8c5!important}

/* One orderly header control group: language, notifications, theme. */
.company-shell .workspace-utility{display:flex!important;align-items:center!important;gap:10px!important;top:18px!important;inset-inline-end:24px!important;max-width:calc(100% - 48px)}
.company-shell .workspace-utility .workspace-language{position:static!important;inset:auto!important;top:auto!important;margin:0!important}
.company-shell .workspace-utility .workspace-language .language{margin:0!important;box-sizing:border-box;height:42px!important}
.company-shell .workspace-utility .workspace-notifications,.company-shell .workspace-utility .site-theme-toggle{flex:0 0 auto}

/* The sidebar follows reading direction: left in English, right in Persian. */
@media(min-width:761px){
 html[dir=ltr] .company-shell.admin-shell{grid-template-columns:205px minmax(0,1fr)!important}
 html[dir=ltr] .company-shell>.admin-sidebar{grid-column:1!important;grid-row:1!important;border-inline-end:1px solid var(--pw-line)!important;border-inline-start:0!important}
 html[dir=ltr] .company-shell>.admin-main{grid-column:2!important;grid-row:1!important}
 html[dir=rtl] .company-shell.admin-shell{grid-template-columns:minmax(0,1fr) 205px!important}
 html[dir=rtl] .company-shell>.admin-sidebar{grid-column:2!important;grid-row:1!important;border-inline-start:1px solid var(--pw-line)!important;border-inline-end:0!important}
 html[dir=rtl] .company-shell>.admin-main{grid-column:1!important;grid-row:1!important}
 html[dir=ltr] .company-shell.sidebar-collapsed.admin-shell{grid-template-columns:72px minmax(0,1fr)!important}
 html[dir=rtl] .company-shell.sidebar-collapsed.admin-shell{grid-template-columns:minmax(0,1fr) 72px!important}
}

html[data-theme=light] .company-shell .admin-main{--module-surface:#fff;--module-soft:#f3f7fc;--module-ink:#102747;--module-muted:#526780;--module-line:#dbe5f0;color:var(--module-ink)!important}
html[data-theme=light] .company-shell .admin-main :is(.ats-column>header,.ats-toolbar,.ats-card,.ats-stage-form,.ats-summary,.ats-position-summary,.ats-summary-head,.ats-summary-row,.candidate-card,.recruitment-analysis,.recruitment-notices,.recruitment-notice-list,.interview-score-body,.interview-schedule-body,.approval-preview,.analysis-stage-grid,.analysis-kpis>article,.sv-executive-analysis,.sv-insights,.sv-ai-analysis,.sv-insight-grid>article,.sv-theme-narrative,.sv-q-result,.sv-detail,.sv-analysis-card,.voice-shell,.voice-metrics>article,.feedback-form,.feedback-trust,.anonymous-check,.voice-comments-toggle,.voice-analysis-summary>article,.voice-analysis-list>article,.voice-analysis-list>article>section>span,.voice-analysis-list>article>p,.voice-inbox>article,.my-feedback>article,.idea-card,.idea-comments,.off-insights,.off-status,.off-row-actions>a,.off-row-actions>details>summary){background:#fff!important;background-image:none!important;color:var(--module-ink)!important;border-color:var(--module-line)!important;box-shadow:none!important}
html[data-theme=light] .company-shell .admin-main :is(.ats-column>header,.ats-summary-head,.sv-insight-grid>article,.voice-analysis-list>article>section>span){background:var(--module-soft)!important}
html[data-theme=light] .company-shell .admin-main :is(.ats-column>header,.ats-column>header h3,.ats-column>header strong,.ats-column>header b,.ats-card h3,.ats-card b,.ats-card strong,.sv-executive-analysis h2,.sv-insights h2,.sv-insight-grid strong,.sv-ai-analysis h2,.voice-shell h2,.feedback-form h3,.anonymous-check b,.off-status,.off-row-actions svg){color:var(--module-ink)!important}
html[data-theme=light] .company-shell .admin-main :is(.ats-column small,.ats-card small,.ats-card time,.sv-executive-analysis p,.sv-ai-analysis p,.sv-insight-grid small,.feedback-form p,.feedback-form label,.anonymous-check small,.voice-analysis-list small,.off-insights p){color:var(--module-muted)!important}
html[data-theme=light] .company-shell .admin-main :is(.ats-card a,.candidate-card a,.sv-ai-analysis a,.voice-shell a){color:#205bb0!important}
html[data-theme=light] .company-shell .admin-main :is(.ats-card a:hover,.candidate-card a:hover,.sv-ai-analysis a:hover,.voice-shell a:hover){text-decoration:underline}
html[data-theme=light] .company-shell .admin-main :is(.ats-column>header,.ats-summary-head,.sv-insight-grid>article,.off-th){border-bottom:1px solid var(--module-line)!important}
html[data-theme=light] .company-shell .admin-main :is(.off-status.status-pending,.off-status.interview-sent,.off-status.interview-opened){background:#fff3ce!important;color:#704c00!important;border:1px solid #ecd37c!important}
html[data-theme=light] .company-shell .admin-main :is(.off-status.status-completed,.off-status.interview-submitted,.off-status.interview-completed){background:#ddf7ed!important;color:#0c654a!important;border:1px solid #a7dfc6!important}
html[data-theme=light] .company-shell .admin-main :is(.off-row-actions>a,.off-row-actions>details>summary){background:#eef4fd!important;color:#205bb0!important;border-color:#bfd0ea!important}
html[data-theme=light] .company-shell .admin-main :is(.anonymous-check,.voice-comments-toggle){display:flex!important;align-items:center!important;gap:10px!important;background:#f3f7fc!important;border:1px solid var(--module-line)!important}
html[data-theme=light] .company-shell .admin-main :is(.anonymous-check,.voice-comments-toggle) input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;accent-color:#2864bd}
html[data-theme=light] .company-shell .admin-main :is(.sv-orbit,.sv-orbit b,.sv-orbit strong){color:#fff!important}
html[data-theme=light] .company-shell .admin-main :is(.sv-orbit.gold,.sv-orbit.rose){color:#102747!important}
html[data-theme=light] .company-shell .admin-main :is(.sv-orbit.gold,.sv-orbit.rose) :is(b,strong){color:#102747!important}
html[data-theme=light] .company-shell .admin-main :is(.sv-ai-note,.sv-ai-report,.sv-analysis-card,.sv-theme-narrative){background:#f3f7fc!important;color:#102747!important;border-color:#dbe5f0!important}
html[data-theme=light] .company-shell .admin-main :is(.ats-card,.candidate-card,.sv-insight-grid>article,.feedback-form,.voice-inbox>article){box-shadow:0 7px 20px #1027470d!important}
html[data-theme=light] .company-shell .admin-main :is(.specialist-review,.sv-executive-analysis>article,.sv-ai-meta,.sv-ai-note,.sv-ai-report,.sv-insight-grid>article,.sv-theme-narrative,.feedback-form form,.feedback-form .anonymous-check){background:#f3f7fc!important;background-image:none!important;color:#102747!important;border-color:#dbe5f0!important}
html[data-theme=light] .company-shell .admin-main :is(.specialist-review b,.specialist-review strong,.sv-executive-analysis strong,.sv-ai-analysis strong,.sv-insight-grid strong,.feedback-form .anonymous-check b){color:#102747!important}
html[data-theme=light] .company-shell .admin-main :is(.specialist-review small,.sv-executive-analysis small,.sv-executive-analysis p,.sv-ai-analysis p,.feedback-form .anonymous-check small){color:#526780!important}
html[data-theme=light] .company-shell .admin-main .scorecard-open{background:#e8f1ff!important;color:#205bb0!important;border:1px solid #b6cdec!important}
