/* V10: reliable flyouts, explicit header controls and final legacy light surfaces. */
.employee-action-portal{position:fixed!important;z-index:5000!important;inset:auto!important;display:grid!important;min-width:176px!important;max-width:calc(100vw - 20px)!important;max-height:min(320px,calc(100vh - 20px))!important;overflow:auto!important;padding:7px!important;border:1px solid var(--pw-line,#315879)!important;border-radius:12px!important;background:var(--pw-panel,#09233b)!important;color:var(--pw-text,#eef8ff)!important;box-shadow:0 20px 55px rgba(0,0,0,.35)!important}
html[data-theme=light] .employee-action-portal{background:#fff!important;color:#102747!important;border-color:#c4d3e3!important;box-shadow:0 18px 45px rgba(16,39,71,.2)!important}
.employee-action-portal :is(a,button){box-sizing:border-box;display:flex!important;width:100%!important;align-items:center!important;gap:9px!important;padding:10px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:inherit!important;font:inherit!important;text-align:start!important;text-decoration:none!important;white-space:nowrap!important;cursor:pointer!important}
.employee-action-portal :is(a,button):hover{background:var(--pw-soft,#123954)!important}
html[data-theme=light] .employee-action-portal :is(a,button):hover{background:#edf4fd!important}
.employee-action-portal .hr-delete{color:#ff829d!important}.employee-action-portal form{margin:0!important}
html[data-theme=light] .employee-action-portal .hr-delete{color:#b4233f!important}

/* Header controls remain understandable even when the icon library is delayed. */
.company-shell .workspace-utility{gap:9px!important}
.company-shell .workspace-notifications>summary{display:flex!important;width:auto!important;min-width:104px!important;height:42px!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:0 13px!important;border-radius:23px!important}
.workspace-notification-label{display:inline!important;font-size:12px!important;font-weight:800!important;line-height:1!important}
.company-shell .workspace-utility .site-theme-toggle{min-width:112px!important;color:var(--pw-text,#eef8ff)!important}
.company-shell .workspace-utility :is(.workspace-notifications>summary,.site-theme-toggle) svg{display:block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;stroke:currentColor!important;color:currentColor!important;opacity:1!important;visibility:visible!important}

/* Recruitment request history: no dark islands in light mode. */
html[data-theme=light] .module-recruitment .request-history,html[data-theme=light] .module-recruitment .request-history ol,html[data-theme=light] .module-recruitment .request-history li{background:#fff!important;background-image:none!important;color:#102747!important;border-color:#d8e3ee!important}
html[data-theme=light] .module-recruitment .request-history li{box-shadow:0 4px 12px rgba(31,74,125,.045)!important}
html[data-theme=light] .module-recruitment .request-history :is(strong,b){color:#102747!important}
html[data-theme=light] .module-recruitment .request-history :is(small,p,time){color:#61748c!important}
html[data-theme=light] .module-recruitment .request-status.open{background:#e7f6f1!important;color:#117a65!important;border-color:#9ed4c6!important}
html[data-theme=light] .module-recruitment .requisition-list>article>footer{background:#f8fafc!important;border-color:#d8e3ee!important}
html[data-theme=light] .module-recruitment .requisition-list>article>footer button:not(.approve){background:#fff!important;color:#205bac!important;border:1px solid #a9bfd9!important}

/* Contract builder: independent light workspace instead of a navy split pane. */
html[data-theme=light] .module-contracts :is(.contract-documents,.document-layout,.document-picker,.document-main,.template-editor){background:#fff!important;background-image:none!important;color:#102747!important;border-color:#d8e3ee!important}
html[data-theme=light] .module-contracts .document-picker{background:#f6f8fc!important}
html[data-theme=light] .module-contracts .document-picker article{background:#fff!important;color:#102747!important;border-color:#d8e3ee!important;box-shadow:0 5px 14px rgba(31,74,125,.05)!important}
html[data-theme=light] .module-contracts .document-picker article:is(:hover,.active){background:#eaf2fd!important;border-color:#8eb2e3!important}
html[data-theme=light] .module-contracts .document-picker :is(label,.select-all,b){color:#304b6d!important}
html[data-theme=light] .module-contracts .document-picker :is(small,em){color:#61748c!important}
html[data-theme=light] .module-contracts .template-toolbar{background:#f8fafc!important;color:#102747!important}
html[data-theme=light] .module-contracts .template-toolbar button{background:#fff!important;color:#205bac!important;border-color:#a9bfd9!important}

/* Performance search, table head, progress cells and action buttons. */
html[data-theme=light] .module-performance :is(.perf-local-search,.perf-local-table,.perf-results-table,.perf-local-table-head,.perf-result-row,.perf-goal-children,.perf-kr-row){background:#fff!important;background-image:none!important;color:#102747!important;border-color:#d8e3ee!important}
html[data-theme=light] .module-performance .perf-local-search{background:#f8fafc!important}
html[data-theme=light] .module-performance .perf-local-search label{background:#fff!important;color:#304b6d!important;border-color:#b9cadb!important}
html[data-theme=light] .module-performance .perf-local-table-head{background:#edf3fa!important;color:#304b6d!important}
html[data-theme=light] .module-performance .perf-progress-value{background:#eaf2fd!important;color:#205bac!important;border-color:#b9cdeb!important}
html[data-theme=light] .module-performance .perf-progress-value b{color:#205bac!important}
html[data-theme=light] .module-performance .perf-progress-value.is-manager{background:#fff5d8!important;border-color:#ebcf7f!important}.module-performance .perf-progress-value.is-manager b{color:#946200!important}
html[data-theme=light] .module-performance .perf-progress-value.is-official{background:#e7f6f1!important;border-color:#9ed4c6!important}.module-performance .perf-progress-value.is-official b{color:#117a65!important}
html[data-theme=light] .module-performance :is(.perf-weekly-link,.perf-action-details>summary,.perf-edit-btn){background:#fff!important;color:#205bac!important;border-color:#a9bfd9!important}
html[data-theme=light] .module-performance :is(.weekly-report-block,.weekly-team-table,.pg-weekly-review,.weekly-goal-table,.weekly-log,.weekly-objective-list>details){background:#fff!important;background-image:none!important;color:#102747!important;border-color:#d8e3ee!important}
html[data-theme=light] .module-performance :is(.weekly-team-head,.weekly-goal-table-head,.weekly-log>header,.weekly-objective-list>details>summary){background:#edf3fa!important;background-image:none!important;color:#304b6d!important;border-color:#d8e3ee!important}
html[data-theme=light] .module-performance :is(.weekly-team-table article,.weekly-goal-record,.weekly-log-row){background:#fff!important;background-image:none!important;color:#102747!important;border-color:#d8e3ee!important}
html[data-theme=light] .module-performance :is(.weekly-team-table article,.weekly-goal-record,.weekly-log-row) :is(b,strong){color:#102747!important}
html[data-theme=light] .module-performance :is(.weekly-team-table article,.weekly-goal-record,.weekly-log-row) :is(small,em){color:#61748c!important}

/* The dotted organization canvas covers the complete scrollable hierarchy. */
html[data-theme=light] .module-organization .ot-viewport{background-color:#f4f8f6!important;background-image:radial-gradient(#b8cec6 1px,transparent 1px)!important;background-size:22px 22px!important}
html[data-theme=light] .module-organization :is(.ot-unit-panel,.ot-scaled,.ot-content){background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important}

@media(max-width:900px){
 .company-shell .workspace-notifications>summary{min-width:42px!important;width:42px!important;padding:0!important}
 .workspace-notification-label{display:none!important}
 .company-shell .workspace-utility .site-theme-toggle{min-width:42px!important;width:42px!important;padding:0!important}
 .company-shell .workspace-utility .site-theme-toggle [data-theme-label]{display:none!important}
}
