/* THRS V14.24 — Recruitment Premium Open Dropdown Menus
   17 select definitions across applicant filters, candidate drawer, job form and pagination.
   JS enhancements affect no other THRS routes. */
html[data-theme="light"] :is(.thrs-page-recruitment,.thrs-recruitment-select-popup) {
 --rec24-bg:#ffffff;--rec24-raised:#f6f9fd;--rec24-hover:#edf4fa;
 --rec24-ink:#15324e;--rec24-muted:#536a82;--rec24-border:#cfdde9;
 --rec24-gold:#a77431;--rec24-strong:#b9863c;
 --rec24-shadow:0 23px 53px rgba(9,34,61,.18),0 4px 10px rgba(9,34,61,.05);
 --rec24-ring:0 0 0 3px rgba(184,134,65,.20);
 color-scheme:light;
}
html[data-theme="dark"] :is(.thrs-page-recruitment,.thrs-recruitment-select-popup) {
 --rec24-bg:#142f49;--rec24-raised:#1b3b58;--rec24-hover:#244b69;
 --rec24-ink:#f0f7ff;--rec24-muted:#c3d4e4;--rec24-border:#54748e;
 --rec24-gold:#f0cd91;--rec24-strong:#efc781;
 --rec24-shadow:0 23px 54px rgba(0,6,19,.59),inset 0 1px 0 rgba(255,255,255,.07);
 --rec24-ring:0 0 0 3px rgba(233,190,124,.24);
 color-scheme:dark;
}
/* Keep React select as the source of truth, visually concealed only after
   the new, functional button has been added. Do not display:none the native
   required employee select: it must remain validatable by the browser. */
html[data-theme] .thrs-page-recruitment select.thrs-recruitment-select-native,
html[data-theme] body:has(.thrs-page-recruitment) .thrs-modal-card select.thrs-recruitment-select-native {
 position:absolute !important;
 width:1px !important;min-width:1px !important;max-width:1px !important;
 height:1px !important;min-height:1px !important;
 padding:0 !important;margin:0 !important;
 opacity:0 !important;clip-path:inset(50%) !important;
 pointer-events:none !important;
 overflow:hidden !important;
 border:0 !important;box-shadow:none !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger,
html[data-theme] body:has(.thrs-page-recruitment) .thrs-modal-card .thrs-recruitment-select-trigger {
 display:flex !important;
 align-items:center !important;
 justify-content:space-between !important;
 width:100% !important;min-width:0 !important;
 min-height:44px !important;
 padding:7px 10px 7px 13px !important;
 gap:11px !important;
 background:linear-gradient(130deg,var(--rec24-bg),var(--rec24-raised)) !important;
 color:var(--rec24-ink) !important;
 border:1px solid var(--rec24-border) !important;
 border-radius:11px !important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 2px 8px rgba(8,36,63,.04) !important;
 font:inherit !important;font-size:12px !important;font-weight:780 !important;
 text-align:start !important;line-height:1.4 !important;cursor:pointer !important;
 transition:box-shadow .18s,border-color .18s,background .18s !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger:hover,
html[data-theme] body:has(.thrs-page-recruitment) .thrs-modal-card .thrs-recruitment-select-trigger:hover {
 border-color:var(--rec24-gold) !important;
 background:var(--rec24-raised) !important;
 box-shadow:0 4px 13px rgba(11,42,68,.09) !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger[aria-expanded="true"],
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger:focus-visible,
html[data-theme] body:has(.thrs-page-recruitment) .thrs-modal-card .thrs-recruitment-select-trigger[aria-expanded="true"],
html[data-theme] body:has(.thrs-page-recruitment) .thrs-modal-card .thrs-recruitment-select-trigger:focus-visible {
 border-color:var(--rec24-gold) !important;
 outline:none !important;box-shadow:var(--rec24-ring) !important;
}
html[data-theme] .thrs-recruitment-select-trigger .thrs-premium-select-trigger__value {
 color:var(--rec24-ink) !important;
 min-width:0 !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 font-size:12px !important;font-weight:760 !important;
}
html[data-theme] .thrs-recruitment-select-trigger[data-empty="true"] .thrs-premium-select-trigger__value {
 color:var(--rec24-muted) !important;
}
html[data-theme] .thrs-recruitment-select-trigger .thrs-premium-select-trigger__chevron {
 flex:0 0 26px !important;
 width:26px !important;height:26px !important;
 border-radius:8px !important;
 background:color-mix(in srgb,var(--rec24-gold) 11%,var(--rec24-raised)) !important;
 border:1px solid color-mix(in srgb,var(--rec24-gold) 32%,var(--rec24-border)) !important;
 color:var(--rec24-gold) !important;
}
html[data-theme] body:has(.thrs-page-recruitment) .thrs-modal-card .thrs-recruitment-select-trigger {
 min-height:43px !important;
}
/* Portal listbox renders outside cards and dialogs to avoid clipping. */
html[data-theme] .thrs-recruitment-select-popup {
 position:fixed !important;z-index:6810 !important;
 background:linear-gradient(158deg,var(--rec24-bg),var(--rec24-raised)) !important;
 color:var(--rec24-ink) !important;
 border:1px solid color-mix(in srgb,var(--rec24-gold) 40%,var(--rec24-border)) !important;
 border-radius:16px !important;
 box-shadow:var(--rec24-shadow) !important;
 overflow:hidden !important;

}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-popup__head{
 border-bottom:1px solid var(--rec24-border) !important;
 background:color-mix(in srgb,var(--rec24-gold) 4%,var(--rec24-bg)) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-popup__head strong {
 font-size:12px !important;font-weight:880 !important;
 color:var(--rec24-ink) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-popup__head span {
 background:color-mix(in srgb,var(--rec24-gold) 12%,var(--rec24-bg)) !important;
 color:var(--rec24-gold) !important;
 border-color:color-mix(in srgb,var(--rec24-gold) 37%,var(--rec24-border)) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-search {
 background:var(--rec24-bg) !important;color:var(--rec24-ink) !important;
 -webkit-text-fill-color:var(--rec24-ink) !important;
 border:1px solid var(--rec24-border) !important;
 border-radius:10px !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-search::placeholder {
 color:var(--rec24-muted) !important;
 -webkit-text-fill-color:var(--rec24-muted) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-search:focus {
 border-color:var(--rec24-gold) !important;
 box-shadow:var(--rec24-ring) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-popup__list {
 scrollbar-color:var(--rec24-gold) transparent;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option {
 color:var(--rec24-ink) !important;
 background:transparent !important;
 border-radius:10px !important;
 border:1px solid transparent !important;
 font-size:12px !important;font-weight:700 !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option:is(:hover,.is-highlighted,:focus-visible){
 background:var(--rec24-hover) !important;
 border-color:var(--rec24-border) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option[aria-selected="true"]{
 background:color-mix(in srgb,var(--rec24-gold) 14%,var(--rec24-raised)) !important;
 border:1px solid color-mix(in srgb,var(--rec24-gold) 53%,var(--rec24-border)) !important;
 font-weight:900 !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option[aria-selected="true"]::after{
 color:#122c45 !important;
 background:linear-gradient(130deg,#f9dfad,#d5a65c) !important;
 box-shadow:0 2px 7px rgba(128,83,30,.12) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-no-results {
 color:var(--rec24-muted) !important;
}


/* All custom menus use the original React select options. These route
   wrappers exist in the Recruitment component and are not shared globally. */
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger {
  display:flex !important;
  width:100% !important;
  min-width:0 !important;
  min-height:44px !important;
  padding:9px 11px 9px 14px !important;
  border-radius:12px !important;
  line-height:1.4 !important;
  font-family:inherit !important;
  position:relative !important;
  flex:1 1 auto !important;
}
html[data-theme] .thrs-page-recruitment .thrs-rec-v6-filter-field,
html[data-theme] .thrs-page-recruitment .thrs-rec-addjob-field {
  min-width:0 !important;
}
html[data-theme] .thrs-page-recruitment .thrs-rec-v6-filter-field > .thrs-recruitment-select-trigger {
  min-height:47px !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-status-editor > .thrs-recruitment-select-trigger {
  min-width:165px !important;
  max-width:100% !important;
  min-height:42px !important;
}
html[data-theme] .thrs-page-recruitment .thrs-rec-addjob-field > .thrs-recruitment-select-trigger {
  min-height:48px !important;
}
html[data-theme] .thrs-page-recruitment .thrs-rec-v8-page-size > .thrs-recruitment-select-trigger {
  width:86px !important;
  min-width:70px !important;
  flex:0 0 auto !important;
  min-height:39px !important;
  padding:5px 8px !important;
}
html[data-theme] .thrs-page-recruitment .thrs-rec-v8-page-size .thrs-recruitment-select-trigger .thrs-premium-select-trigger__value {
  text-align:center !important;
  font-variant-numeric:tabular-nums !important;
}
html[data-theme] .thrs-page-recruitment .thrs-rec-v8-drawer-overlay .thrs-recruitment-select-trigger {
  min-height:43px !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger:disabled{
  opacity:.5 !important;cursor:not-allowed !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger .thrs-premium-select-trigger__value{
  flex:1 1 auto !important;
  text-align:start !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger .thrs-premium-select-trigger__chevron {
  display:grid !important;place-items:center !important;
  font-size:0 !important;line-height:0 !important;
}
html[data-theme] .thrs-recruitment-select-popup{
  z-index:6810 !important;
  direction:unset !important;
}
html[data-theme] .thrs-recruitment-select-popup[dir="rtl"]{direction:rtl !important}
html[data-theme] .thrs-recruitment-select-popup[dir="ltr"]{direction:ltr !important}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option{
  min-height:43px !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option[aria-selected="true"]{
  background:color-mix(in srgb,var(--rec24-gold) 14%,var(--rec24-raised)) !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option[aria-selected="true"]::after {
  content:"✓";
  font-size:13px !important;font-weight:900 !important;
  color:#142c42 !important;
}
html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-popup__head {
  margin-bottom:4px !important;
}
html[data-theme] .thrs-recruitment-select-overlay{
  position:fixed !important;inset:0 !important;
  z-index:6800 !important;
  background:rgba(2,15,30,.60) !important;
  -webkit-backdrop-filter:blur(3px) !important;
  backdrop-filter:blur(3px) !important;
}
html[data-theme] .thrs-page-recruitment .thrs-recruitment-select-trigger:focus-visible,
html[data-theme] .thrs-recruitment-select-popup button:focus-visible {
  outline:2px solid var(--rec24-gold) !important;
  outline-offset:2px !important;
}
@media(max-width:600px){
  html[data-theme] .thrs-recruitment-select-popup {
    position:fixed !important;
    left:12px !important;right:12px !important;
    width:calc(100vw - 24px) !important;
    bottom:max(12px,env(safe-area-inset-bottom)) !important;
    top:auto !important;
    max-height:min(68dvh,480px) !important;
    border-radius:20px !important;
  }
  html[data-theme] .thrs-recruitment-select-popup .thrs-premium-select-option{
    min-height:47px !important;
  }
  html[data-theme] .thrs-page-recruitment .thrs-recruitment-status-editor > .thrs-recruitment-select-trigger{
    min-width:min(165px,100%) !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme] :is(.thrs-recruitment-select-popup,.thrs-recruitment-select-trigger){
    animation:none !important;transition:none !important;
  }
}
