/* Recruitment components. Product tokens are supplied by istiqdam-identity.css. */
:root {
  --bs-primary: #1855a4;
  --bs-primary-rgb: 24, 85, 164;
  --bs-link-color: #1855a4;
  --bs-link-color-rgb: 24, 85, 164;
  --ui-brand: #1855a4;
  --ui-brand-deep: #123c70;
  --ui-brand-bright: #3578c8;
  --ui-card-accent: #1855a4;
  --ui-sidebar-bg: #14283d;
  --ui-sidebar-panel: #102235;
  --ui-sidebar-hover: #203d5d;
  --ui-sidebar-active: #1855a4;
  --ui-primary-soft: #edf3fc;
  --ui-canvas: #f5f7fb;
  --ui-heading: #17385f;
  --ui-border: #dce5f0;
  --ui-border-strong: #bdcfe5;
  --ui-table-head-start: #1855a4;
  --ui-table-head-end: #1855a4;
  --ui-focus-ring: 0 0 0 .2rem rgba(24, 85, 164, .18);
}
.dark-style {
  --bs-primary: #8abaff;
  --bs-primary-rgb: 138, 186, 255;
  --bs-link-color: #8abaff;
  --bs-link-color-rgb: 138, 186, 255;
  --ui-brand: #8abaff;
  --ui-brand-deep: #c8defb;
  --ui-brand-bright: #a6cbff;
  --ui-card-accent: #8abaff;
  --ui-primary-soft: #1c3553;
  --ui-canvas: #0d1928;
  --ui-heading: #e0edff;
  --ui-border: #31465f;
  --ui-border-strong: #466481;
  --ui-table-head-start: #193d69;
  --ui-table-head-end: #193d69;
  --ui-focus-ring: 0 0 0 .2rem rgba(138, 186, 255, .22);
}
body .content-wrapper { background-image: none !important; background-color: var(--ui-canvas); }
body .btn-primary { border-color: var(--ui-brand) !important; background: var(--ui-brand) !important; color: #fff !important; }
body .btn-primary:hover, body .btn-primary:focus-visible { border-color: var(--ui-brand-hover) !important; background: var(--ui-brand-hover) !important; color: #fff !important; }
body .btn-outline-primary { color: var(--ui-brand) !important; border-color: var(--ui-brand) !important; background: transparent !important; }
body .btn-outline-primary:hover { color: #fff !important; background: var(--ui-brand) !important; border-color: var(--ui-brand) !important; }
body .btn-outline-secondary { color: var(--ui-table-text) !important; border-color: var(--ui-border-strong) !important; background: var(--ui-surface) !important; box-shadow: none !important; }
body .btn-outline-secondary:hover { color: var(--ui-brand) !important; border-color: var(--ui-brand) !important; background: var(--ui-primary-soft) !important; }
body :is(.btn, .nav-link, summary):focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 3px; }
/* Existing success, warning and danger controls retain their semantic colors. */
#layout-menu .menu-item.active > .menu-link { border-color: #4e8fdc !important; background: var(--ui-brand) !important; color: #fff !important; }
#layout-menu .menu-item.active > .menu-link > div, #layout-menu .menu-item.active > .menu-link .menu-icon { color: #fff !important; }
#layout-menu .app-brand { gap: 8px; }
#layout-menu .hcm-brand-link { min-width: 0; flex: 1; }
#layout-menu .hcm-sidebar-identity { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 200px; min-height: 48px; padding: 10px; border-radius: 11px; background: #fff; }
.hcm-sidebar-wordmark { display: block; width: 100%; }
.hcm-sidebar-wordmark img { display: block; width: 100%; height: auto; }
.hcm-sidebar-symbol {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px; }
.hcm-sidebar-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain; }
.layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-expanded) #layout-menu .hcm-sidebar-wordmark { display: none; }
.layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-expanded) #layout-menu .hcm-sidebar-symbol { display: block; }
.layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-expanded) #layout-menu .hcm-sidebar-identity { padding: 6px; min-width: 56px; }
.layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-expanded) #layout-menu .app-brand { padding-inline: 10px; }
#layout-navbar { border-top: 3px solid var(--ui-brand); }
#layout-navbar .hcm-navbar-identity { display: flex; flex-direction: row; align-items: center; gap: 18px; min-width: 0; }
.hcm-navbar-logo { display: inline-flex; flex: 0 0 auto; padding: 6px 9px; border-radius: 9px; background: #fff; }
.hcm-navbar-logo img { display: block; width: 235px; max-width: 30vw; height: auto; }
/* Original full search grid; only visual styling is applied. */
.employment-applicants-filters .hcm-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; text-align: start; justify-content: flex-end; }
.employment-applicants-filters .hcm-filter-actions .btn { min-width: 100px; }
/* A quiet secondary toolbar leaves only the first existing workflow action primary. */
body #employee-workspace { --workspace-ink: #17385f; --workspace-muted: #62768b; --workspace-line: #dce5f0; --workspace-surface: #fff; --workspace-soft: #f4f7fc; }
.dark-style body #employee-workspace { --workspace-ink: #e0edff; --workspace-muted: #acbfd7; --workspace-line: #31465f; --workspace-surface: #142438; --workspace-soft: #1a304a; }
body #employee-workspace .user-profile-header { background: linear-gradient(115deg, var(--ui-brand-deep), var(--ui-brand)) !important; }
body #employee-workspace .user-profile-header .btn-dark { border-color: #ffffff60 !important; background: #ffffff12 !important; color: #fff !important; }
body #employee-workspace .user-profile-header .btn-dark:hover { background: #ffffff26 !important; }
body #employee-workspace .employee-workspace-actions { gap: 8px; padding: 12px; }
body #employee-workspace .employee-workspace-actions .nav-link,
body #employee-workspace .employee-workspace-actions .nav-link.active { border-color: var(--workspace-line) !important; color: var(--workspace-ink) !important; background: var(--workspace-surface) !important; box-shadow: none !important; }
body #employee-workspace .employee-workspace-actions > .nav-item:first-of-type > .nav-link.active { border-color: var(--ui-brand) !important; color: #fff !important; background: var(--ui-brand) !important; }
body #employee-workspace .employee-workspace-actions .nav-link:hover { border-color: var(--ui-brand) !important; color: var(--ui-brand) !important; background: var(--ui-primary-soft) !important; }
body #employee-workspace .workspace-note-actions > .btn-outline-secondary { color: var(--workspace-ink) !important; border-color: var(--workspace-line) !important; background: var(--workspace-surface) !important; }
.admin-dashboard-page .dashboard-section-icon { background: var(--ui-brand) !important; color: #fff !important; }
@media (max-width: 1100px) { .hcm-navbar-logo img { width: 205px; } }
@media (max-width: 767px) {
  #layout-navbar .navbar-nav-right { flex-wrap: wrap; row-gap: 8px; }
  #layout-navbar .hcm-navbar-identity { flex: 1 1 100%; justify-content: center; }
  .hcm-navbar-logo img { width: 220px; max-width: 60vw; }
  #layout-navbar .navbar-nav.flex-row { margin-inline: auto !important; }
  .employment-applicants-filters .hcm-filter-actions .btn { flex: 1; }
}
/* Slimmer scrollbars; retain the sidebar's draggable track and hover affordance. */
html { scrollbar-width: thin; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 8px; height: 8px; }
#layout-menu .menu-inner::-webkit-scrollbar { width: 6px; }
#layout-menu .ps__thumb-y { width: 5px !important; border-radius: 999px; }
#layout-menu .ps__rail-y:hover > .ps__thumb-y,
#layout-menu .ps__rail-y:focus > .ps__thumb-y,
#layout-menu .ps__rail-y.ps--clicking > .ps__thumb-y { width: 7px !important; }

/* Quiet surfaces, alternating data rows, and a gradient confined to card headers. */
:root {
  --ui-table-row: #fff;
  --ui-table-row-alt: #f0f5fc;
  --ui-table-row-hover: #e5eefa;
  --ui-table-label-bg: #eaf1fb;
  --ui-table-border: #e2e9f2;
  --ui-card-head-start: #fff;
  --ui-card-head-end: #f0f5fd;
}
.dark-style {
  --ui-table-row: #142438;
  --ui-table-row-alt: #192e46;
  --ui-table-row-hover: #223e5e;
  --ui-table-label-bg: #1c3553;
  --ui-table-border: #31465f;
  --ui-card-head-start: #142438;
  --ui-card-head-end: #1c304a;
}
body :is(.content-wrapper, .modal, .offcanvas) .card:where(:not([class*="bg-"])) > .card-header {
  background: linear-gradient(110deg, var(--ui-card-head-start), var(--ui-card-head-end)) !important;
  border-bottom: 1px solid var(--ui-border) !important;
  color: var(--ui-heading);
}
body .table {
  --bs-table-striped-bg: var(--ui-table-row-alt);
  --bs-table-hover-bg: var(--ui-table-row-hover);
}
body .table > tbody > tr:where(:not([class*="table-"]):not([class*="bg-"])) > :where(td, th):where(:not([class*="bg-"]):not([class*="table-"])) {
  background-color: var(--ui-table-row);
}
body .table > tbody > tr:nth-child(even):where(:not([class*="table-"]):not([class*="bg-"])) > :where(td, th):where(:not([class*="bg-"]):not([class*="table-"])) {
  background-color: var(--ui-table-row-alt);
}
body .table > tbody > tr:hover:where(:not([class*="table-"]):not([class*="bg-"])) > :where(td, th):where(:not([class*="bg-"]):not([class*="table-"])) {
  background-color: var(--ui-table-row-hover);
}
body .table > thead > tr > th:where(:not([class*="bg-"]):not([class*="table-"])) {
  color: var(--ui-heading) !important;
  background-color: var(--ui-table-label-bg) !important;
  background-image: none !important;
}
/* Each applicant keeps a single coherent card instead of nested framed panels. */
body .employment-applicants-page .hcm-applicant-card {
  margin-bottom: 16px;
  border: 1px solid var(--ui-border) !important;
  background: var(--ui-surface) !important;
  box-shadow: 0 3px 14px rgba(24, 85, 164, .045) !important;
}
body .employment-applicants-page .hcm-applicant-card .table-responsive {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body .employment-applicants-page .hcm-applicant-layout > tbody > tr > td {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body .employment-applicants-page .hcm-applicant-layout > tbody > tr > td.hcm-applicant-summary {
  border-inline-end: 1px solid var(--ui-border) !important;
  background: var(--ui-primary-soft) !important;
}
body .employment-applicants-page .hcm-applicant-data-table > thead > tr > th {
  color: var(--ui-heading) !important;
  background-color: var(--ui-table-label-bg) !important;
  border-inline-end: 0 !important;
  border-bottom: 1px solid var(--ui-table-border) !important;
  font-weight: 600;
  box-shadow: none !important;
}
body .employment-applicants-page .hcm-applicant-data-table > tbody > tr > td {
  color: var(--ui-table-text) !important;
  border-inline-end: 0 !important;
  border-bottom: 1px solid var(--ui-table-border) !important;
  background-color: var(--ui-table-row) !important;
  box-shadow: none !important;
}
body .employment-applicants-page .hcm-applicant-data-table > tbody:nth-of-type(even) > tr > td {
  background-color: var(--ui-table-row-alt) !important;
}
body .employment-applicants-page .hcm-applicant-data-table > tbody > tr:hover > td {
  background-color: var(--ui-table-row-hover) !important;
}

/* Keep missing profile photos from changing the recent-applicant row layout. */
body .admin-dashboard-page .dashboard-recent-table img.hcm-applicant-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
  object-fit: cover;
  vertical-align: middle;
  background: #edf3fc;
}

/* Separate the two analysis panels without letting Bootstrap columns consume the gap. */
body .admin-dashboard-page .dashboard-demographics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
body .admin-dashboard-page .dashboard-demographics > [id] {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: var(--ui-surface, #fff);
}
body .admin-dashboard-page .dashboard-overview-card > .dashboard-section-header {
  min-height: 0;
  padding: 12px 18px;
  gap: 12px;
}
body .admin-dashboard-page .dashboard-overview-card > .dashboard-section-header .dashboard-section-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
body .admin-dashboard-page .dashboard-recent-heading > span {
  background: var(--ui-primary-soft);
  color: var(--ui-brand);
}
@media (max-width: 767.98px) {
  body .admin-dashboard-page .dashboard-demographics {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Applicant search and records share the product identity. */
body .employment-applicants-filters {
  padding: 20px 24px !important;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-surface, #fff) !important;
  box-shadow: 0 3px 16px rgba(24, 85, 164, .04);
}
body .employment-applicants-filters .hcm-applicants-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px !important;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-heading);
}
.hcm-applicants-count {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ui-brand);
  background: var(--ui-primary-soft);
  font-size: .85rem;
  font-weight: 600;
  vertical-align: middle;
}
body .employment-applicants-filters form > .row {
  width: auto !important;
  --bs-gutter-x: 24px;
}
body .employment-applicants-filters label {
  display: block;
  margin-bottom: 8px;
  color: var(--ui-heading);
  font-weight: 600;
}
body .employment-applicants-filters :is(.form-select, .form-control),
body .employment-applicants-filters .select2-container .select2-selection {
  min-height: 46px;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 10px !important;
  background-color: var(--ui-surface, #fff) !important;
  box-shadow: none;
}
body .employment-applicants-filters :is(.form-select, .form-control):focus,
body .employment-applicants-filters .select2-container--focus .select2-selection,
body .employment-applicants-filters .select2-container--open .select2-selection {
  border-color: var(--ui-brand) !important;
  box-shadow: var(--ui-focus-ring) !important;
}
body .employment-applicants-filters .hcm-filter-actions {
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--ui-border);
}
body .employment-applicants-filters .hcm-filter-actions .btn {
  min-height: 42px;
  border-radius: 10px;
  padding-inline: 22px;
}
body .employment-applicants-page { margin-top: 20px; }
body .employment-applicants-page .hcm-applicant-card > .card-body { padding: 14px; }
body .employment-applicants-page .hcm-applicant-card > .card-body > .table-responsive { padding: 0; }
body .employment-applicants-page .hcm-applicant-layout { min-width: 960px; }
body .employment-applicants-page .hcm-applicant-layout > tbody > tr > td.hcm-applicant-summary {
  padding: 16px 12px;
  text-align: center;
  border-radius: 12px;
}
body .employment-applicants-page .hcm-applicant-summary img.rounded-circle {
  display: inline-block;
  width: 76px;
  height: 76px;
  margin: 0 !important;
  background: var(--ui-primary-soft);
  box-shadow: 0 2px 8px rgba(24, 85, 164, .1);
}
.hcm-applicant-experience { margin-top: 10px; line-height: 1.6; font-size: .9rem; }
body .employment-applicants-page .hcm-applicant-data-table > thead > tr > th {
  padding: 10px 14px !important;
  border-radius: 0 !important;
  border-bottom-width: 1px !important;
  font-size: .95rem;
  line-height: 1.5;
}
body .employment-applicants-page .hcm-applicant-data-table > tbody > tr > td {
  padding: 12px 14px;
  border-bottom-width: 1px !important;
  line-height: 1.6;
  vertical-align: middle;
}
body .employment-applicants-page .btn-screening.btn-info {
  border-color: var(--ui-brand);
  background: var(--ui-brand);
  color: #fff !important;
  box-shadow: none;
}
body .employment-applicants-page .btn-screening { border-radius: 9px; }
@media (max-width: 767.98px) {
  body .employment-applicants-filters { padding: 16px !important; }
  body .employment-applicants-page .hcm-applicant-card > .card-body { padding: 8px; }
}

/* The outer layout row must not inherit data-row hover painting. */
body .employment-applicants-page table.hcm-applicant-layout > tbody > tr:hover > td {
  --bs-table-accent-bg: transparent;
  background: transparent !important;
  box-shadow: none !important;
}
body .employment-applicants-page table.hcm-applicant-layout > tbody > tr:hover > td.hcm-applicant-summary {
  background: var(--ui-primary-soft) !important;
}
body .employment-applicants-page table.hcm-applicant-data-table > thead > tr > th {
  background: var(--ui-primary-soft) !important;
  border-bottom: 1px solid var(--ui-border) !important;
}
body .employment-applicants-page table.hcm-applicant-data-table > tbody > tr:hover > td {
  --bs-table-accent-bg: transparent;
  background: var(--ui-table-row-hover) !important;
  color: var(--ui-table-text) !important;
}
body .employment-applicants-page .hcm-applicant-data-table {
  border-collapse: separate;
  border-spacing: 0;
}
body .employment-applicants-page .hcm-applicant-data-table > tbody > tr > td {
  border-bottom-color: var(--ui-border) !important;
}

/* Applicant labels and values are distinguished by tone and spacing, not rules. */
body .employment-applicants-page table.hcm-applicant-data-table > :is(thead, tbody) > tr > :is(th, td) {
  border: 0 !important;
  box-shadow: none !important;
}
body .employment-applicants-page table.hcm-applicant-data-table > thead > tr > th {
  padding: 9px 14px !important;
  background: var(--ui-primary-soft) !important;
  color: var(--ui-heading) !important;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
}
body .employment-applicants-page table.hcm-applicant-data-table > thead > tr > th:first-child {
  border-start-start-radius: 8px !important;
  border-end-start-radius: 8px !important;
}
body .employment-applicants-page table.hcm-applicant-data-table > thead > tr > th:last-child {
  border-start-end-radius: 8px !important;
  border-end-end-radius: 8px !important;
}
body .employment-applicants-page table.hcm-applicant-data-table > tbody:nth-of-type(n) > tr > td {
  padding: 15px 14px 22px;
  background: var(--ui-surface, #fff) !important;
  color: var(--ui-table-text) !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}
body .employment-applicants-page table.hcm-applicant-data-table > tbody > tr:hover > td {
  background: var(--ui-surface, #fff) !important;
}
body .employment-applicants-page table.hcm-applicant-data-table > tbody:last-child > tr > td {
  padding-bottom: 12px;
}
body .employment-applicants-page table.hcm-applicant-layout > tbody > tr > td.hcm-applicant-summary {
  border: 0 !important;
}

/* Screening is an action until completed, then a quiet status badge. */
body .employment-applicants-page .hcm-applicant-summary .btn-screening {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  width: 100%;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: none;
}
body .employment-applicants-page .hcm-applicant-summary .btn-screening.hcm-screened:disabled {
  color: #23714c !important;
  background: #e9f6ef !important;
  border: 1px solid #cce8d8 !important;
  opacity: 1;
}
.dark-style body .employment-applicants-page .hcm-applicant-summary .btn-screening.hcm-screened:disabled {
  color: #a0dfb9 !important;
  background: #173b30 !important;
  border-color: #2c614c !important;
}
.hcm-applicant-portrait { margin-top: 18px; }
body .employment-applicants-page .hcm-applicant-experience { margin-top: 12px; }
body .employment-applicants-page table.hcm-applicant-data-table td.hcm-applicant-name {
  font-weight: 600;
  color: var(--ui-heading) !important;
}
body .employment-applicants-page .hcm-document-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 8px;
  color: var(--ui-brand) !important;
  background: var(--ui-surface, #fff);
  text-decoration: none;
}
body .employment-applicants-page .hcm-document-link:hover {
  background: var(--ui-primary-soft);
  border-color: var(--ui-brand);
}

/* Screening work queue: calm surfaces, clear ownership and compact controls. */
.hcm-screening-workspace { padding: 8px; color: var(--ui-table-text); }
.hcm-screening-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; }
.hcm-screening-heading h3 { color:var(--ui-heading); font-weight:700; margin:0 0 8px; }
.hcm-screening-heading p { color:var(--ui-muted); margin:0; }
.hcm-screening-heading-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:var(--ui-primary-soft); color:var(--ui-brand); font-size:26px; }
.hcm-screening-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.hcm-screening-metric { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px; border:1px solid var(--ui-border); border-radius:14px; background:var(--ui-surface); color:var(--ui-heading); text-align:start; }
.hcm-screening-metric strong { font-size:1.65rem; color:var(--ui-brand); }
.hcm-screening-workspace .is-active { border-color:var(--ui-brand); background:var(--ui-primary-soft); }
.hcm-screening-workspace .card { margin-bottom:20px; }
.hcm-screening-filters .card-body { padding:20px; }
.hcm-screening-filters h5 { color:var(--ui-heading); margin-bottom:18px; font-weight:600; }
.hcm-screening-workspace label { display:block; color:var(--ui-heading); margin-bottom:7px; font-weight:600; }
.hcm-screening-workspace :is(.form-control,.form-select) { min-height:42px; border-radius:9px; color:var(--ui-table-text); background-color:var(--ui-surface); border-color:var(--ui-border-strong); }
.hcm-screening-workspace :is(.form-control,.form-select):focus { border-color:var(--ui-brand); box-shadow:var(--ui-focus-ring); }
.hcm-screening-filter-actions { display:flex; align-items:end; flex-wrap:wrap; gap:8px; }
.hcm-recruiter-summary summary { padding:16px 20px; color:var(--ui-heading); font-weight:600; cursor:pointer; }
.hcm-recruiter-summary summary span { margin-inline-start:8px; color:var(--ui-brand); }
.hcm-recruiter-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; padding:0 20px 20px; }
.hcm-recruiter-tile { display:flex; flex-wrap:wrap; gap:8px 14px; padding:16px; background:var(--ui-surface); color:var(--ui-table-text); border:1px solid var(--ui-border); border-radius:12px; text-align:start; }
.hcm-recruiter-tile strong { flex-basis:100%; color:var(--ui-heading); }
.hcm-recruiter-tile span { font-size:.85rem; }
.hcm-screening-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:18px 20px 8px; }
.hcm-screening-tabs button { border:1px solid transparent; border-radius:9px; background:transparent; color:var(--ui-heading); padding:9px 12px; font-weight:600; }
.hcm-screening-tabs button span { display:inline-block; padding:2px 7px; margin-inline-start:4px; border-radius:6px; background:var(--ui-primary-soft); color:var(--ui-brand); font-size:.8rem; }
.hcm-queue-help { margin:4px 20px 16px; color:var(--ui-muted); font-size:.83rem; line-height:1.8; }
.hcm-screening-list-tools { display:flex; align-items:center; flex-wrap:wrap; gap:16px; padding:12px 20px; border-block:1px solid var(--ui-border); }
.hcm-screening-list-tools > span { margin-inline-end:auto; }
.hcm-screening-list-tools > div { display:flex; align-items:center; gap:8px; }
.hcm-screening-list-tools label { margin:0; white-space:nowrap; font-size:.85rem; }
.hcm-screening-list-tools select { width:auto; }
.hcm-screening-bulk { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:14px 20px; background:var(--ui-primary-soft); }
.hcm-screening-bulk .form-select { width:auto; max-width:240px; }
.hcm-screening-bulk small { flex-basis:100%; color:var(--ui-muted); }
.hcm-screening-results > .table-responsive { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
body .hcm-screening-table { margin:0; min-width:950px; }
body .hcm-screening-table > :is(thead,tbody) > tr > :is(th,td) { padding:14px 16px; border:0!important; box-shadow:none!important; }
body .hcm-screening-table > thead > tr > th { border-radius:0!important; font-weight:600; }
body .hcm-screening-table > tbody > tr:nth-child(odd) > td { background:var(--ui-table-row)!important; }
body .hcm-screening-table > tbody > tr:nth-child(even) > td { background:var(--ui-table-row-alt)!important; }
body .hcm-screening-table > tbody > tr:hover > td { background:var(--ui-table-row-hover)!important; }
.hcm-screening-name { font-weight:600; color:var(--ui-brand); }
.hcm-screening-table td small { display:block; margin-top:5px; color:var(--ui-muted); font-size:.78rem; }
.hcm-screening-status { display:inline-block; border-radius:7px; padding:5px 9px; font-size:.82rem; line-height:1.6; }
.hcm-screening-status.is-progress { color:var(--ui-heading); background:var(--ui-primary-soft); }
.hcm-screening-status.is-complete { color:#23714c; background:#e9f6ef; }
.hcm-screening-status.is-archived { color:var(--ui-muted); background:var(--ui-surface-muted); }
.dark-style .hcm-screening-status.is-complete { color:#a0dfb9; background:#173b30; }
.hcm-waiting-long { color:#a76513; font-weight:600; }
.dark-style .hcm-waiting-long { color:#e9b257; }
.hcm-screening-row-actions { display:flex; align-items:center; gap:7px; }
.hcm-screening-row-actions .dropdown-menu { z-index:1090; background:var(--ui-surface); }
.hcm-screening-pagination { padding:18px 20px; }
.hcm-screening-empty { text-align:center; padding:40px!important; }
.hcm-screening-empty > i { color:var(--ui-brand); font-size:32px; }
.hcm-screening-loading { padding:8px 20px; color:var(--ui-brand); }
@media (max-width:767.98px) {
  .hcm-screening-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .hcm-screening-metric { padding:14px; flex-wrap:wrap; }
  .hcm-screening-workspace { padding:0; }
  .hcm-screening-filter-actions .btn { flex:1; }
  .hcm-screening-bulk .form-select { max-width:100%; width:100%; }
}

body .hcm-screening-workspace table.hcm-screening-table > tbody > tr:hover > td {
  --bs-table-accent-bg: transparent;
  color: var(--ui-table-text) !important;
  background: var(--ui-table-row-hover) !important;
}
body .hcm-screening-workspace table.hcm-screening-table > :is(thead,tbody) {
  border: 0 !important;
}
.hcm-screening-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.hcm-page-buttons { display:flex; flex-wrap:wrap; gap:6px; }
.hcm-screening-workspace :is(button,a,input,select,summary):focus-visible { outline:2px solid var(--ui-brand); outline-offset:3px; }

/* Searchable queue menus use Livewire's live state, including the transfer recipient. */
.hcm-screening-workspace [x-cloak] { display:none!important; }
.hcm-screening-workspace :is(.hcm-screening-filters,.hcm-screening-results) { overflow:visible; }
.hcm-screening-workspace :is(.hcm-screening-filters,.hcm-screening-results):has(.hcm-search-select.is-open) { position:relative; z-index:1050; }
.hcm-search-select { position:relative; min-width:0; }
.hcm-search-select.is-open { z-index:20; }
.hcm-screening-workspace .hcm-select-trigger {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; padding:9px 12px; text-align:start; background-image:none!important;
  font-weight:400; cursor:pointer;
}
.hcm-select-trigger span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hcm-select-trigger i { flex-shrink:0; }
.hcm-select-panel {
  position:absolute; inset-inline:0; top:calc(100% + 6px); min-width:100%;
  padding:10px; border:1px solid var(--ui-border-strong); border-radius:12px;
  background:var(--ui-surface,#fff); box-shadow:0 10px 30px rgba(18,60,112,.15);
  z-index:30;
}
.hcm-select-options { max-height:240px; overflow-y:auto; margin-top:8px; overscroll-behavior:contain; }
.hcm-select-options > button {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  width:100%; padding:10px; border:0; border-radius:7px; background:transparent;
  color:var(--ui-table-text); text-align:start; font:inherit; cursor:pointer;
}
.hcm-select-options > button:is(.is-highlighted,[aria-selected="true"]) { background:var(--ui-primary-soft); color:var(--ui-brand); }
.hcm-select-empty { color:var(--ui-muted); padding:12px 6px; margin:0; }
.hcm-screening-bulk > .hcm-search-select { width:380px; max-width:100%; flex-shrink:0; }
.hcm-screening-list-tools .hcm-search-select { min-width:85px; }
.hcm-screening-list-tools .hcm-search-select:has(#screening-sort) { min-width:180px; }
.hcm-confirm-backdrop {
  position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(10,27,49,.45); overflow-y:auto;
}
.hcm-confirm-dialog {
  width:100%; max-width:480px; max-height:calc(100dvh - 40px); overflow:auto;
  padding:28px; border:1px solid var(--ui-border); border-radius:20px;
  background:var(--ui-surface,#fff); color:var(--ui-table-text); text-align:center;
  box-shadow:0 20px 70px rgba(10,27,49,.22);
}
.hcm-confirm-dialog h4 { color:var(--ui-heading); font-weight:700; margin:16px 0 12px; }
.hcm-confirm-dialog p { line-height:1.8; }
.hcm-confirm-icon { display:grid; place-items:center; width:56px; height:56px; margin:auto; border-radius:16px; font-size:28px; color:var(--ui-brand); background:var(--ui-primary-soft); }
.hcm-confirm-employee { display:block; padding:12px; border-radius:10px; background:var(--ui-primary-soft); color:var(--ui-heading); }
.hcm-confirm-count { margin-top:12px; color:var(--ui-muted); }
.hcm-confirm-actions { display:flex; gap:10px; justify-content:center; margin:20px 0 10px; }
.hcm-confirm-actions .btn { flex:1; min-height:42px; }
@media(max-width:767.98px) {
  .hcm-screening-bulk > .hcm-search-select { width:100%; }
  .hcm-confirm-dialog { padding:22px; }
}

.hcm-screening-bulk #screening-recipient > span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.6;
}

/* The recipient trigger fills its widened wrapper instead of the old select limit. */
.hcm-screening-bulk #screening-recipient {
  width: 100%;
  max-width: none;
}

/* Archive identity: compact metrics, neutral closure states and one clear search panel. */
.hcm-archive-page { padding:12px!important; color:var(--ui-table-text); }
.hcm-archive-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.hcm-archive-heading h3 { margin:0 0 8px; color:var(--ui-heading); font-weight:700; }
.hcm-archive-heading h3 span { display:inline-block; padding:4px 10px; margin-inline-start:8px; color:var(--ui-brand); background:var(--ui-primary-soft); border-radius:9px; font-size:.95rem; vertical-align:middle; }
.hcm-archive-heading p { color:var(--ui-muted); margin:0; }
.hcm-archive-heading > i { display:grid; place-items:center; flex:0 0 48px; height:48px; border-radius:14px; color:var(--ui-brand); background:var(--ui-primary-soft); font-size:26px; }
.hcm-archive-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.hcm-archive-metric { display:flex; flex-direction:column; justify-content:space-between; gap:14px; padding:16px; border:1px solid var(--ui-border); border-radius:14px; color:var(--ui-heading); background:var(--ui-surface); text-decoration:none; min-height:112px; }
.hcm-archive-metric strong { color:var(--ui-brand); font-size:1.65rem; line-height:1.2; }
.hcm-archive-metric-label { display:flex; align-items:start; gap:8px; font-size:.88rem; line-height:1.6; font-weight:600; }
.hcm-archive-metric-label i { color:var(--ui-brand); background:var(--ui-primary-soft); border-radius:7px; padding:6px; }
.hcm-archive-metric:is(.is-active,:hover) { border-color:var(--ui-brand); background:var(--ui-primary-soft); color:var(--ui-heading); }
.hcm-archive-page .card { margin-bottom:20px; }
.hcm-archive-filters .card-body { padding:20px; }
.hcm-archive-filters h5,.hcm-archive-results h5 { color:var(--ui-heading); font-weight:600; }
.hcm-archive-filters label { display:block; color:var(--ui-heading); margin-bottom:8px; font-weight:600; }
.hcm-archive-filters :is(.form-control,.form-select) { min-height:44px; border-radius:10px; border-color:var(--ui-border-strong); color:var(--ui-table-text); background-color:var(--ui-surface); }
.hcm-archive-filters .select2-container .select2-selection { min-height:44px; border-radius:10px!important; border-color:var(--ui-border-strong)!important; background:var(--ui-surface)!important; display:flex; align-items:center; }
.hcm-archive-filters .select2-selection__rendered { color:var(--ui-table-text)!important; padding-inline:12px 32px!important; }
.hcm-archive-filters .select2-selection__arrow { top:50%!important; transform:translateY(-50%); }
.hcm-archive-filters .select2-container--focus .select2-selection,.hcm-archive-filters .form-control:focus { border-color:var(--ui-brand)!important; box-shadow:var(--ui-focus-ring); }
.hcm-archive-filter-actions { display:flex; gap:8px; justify-content:flex-end; padding-top:16px; margin-top:16px; border-top:1px solid var(--ui-border); }
.hcm-archive-results-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:16px 20px; }
.hcm-archive-results-heading h5 { margin:0; }
.hcm-archive-results-heading > span { color:var(--ui-muted); font-size:.88rem; }
.hcm-archive-results > .table-responsive { border:0!important; box-shadow:none!important; border-radius:0!important; }
body .hcm-archive-table { margin:0; min-width:700px; }
body .hcm-archive-table > :is(thead,tbody),body .hcm-archive-table > :is(thead,tbody) > tr > :is(td,th) { border:0!important; box-shadow:none!important; }
body .hcm-archive-table > :is(thead,tbody) > tr > :is(td,th) { padding:14px 18px; }
body .hcm-archive-page table.hcm-archive-table > tbody > tr:hover > td { background:var(--ui-table-row-hover)!important; color:var(--ui-table-text)!important; --bs-table-accent-bg:transparent; }
.hcm-archive-name { color:var(--ui-brand); font-weight:600; }
.hcm-archive-table td small { display:block; color:var(--ui-muted); font-size:.78rem; margin-top:4px; }
.hcm-archive-status { display:inline-block; border-radius:8px; padding:5px 10px; font-size:.85rem; line-height:1.6; }
.hcm-archive-status.is-neutral { background:var(--ui-primary-soft); color:var(--ui-heading); }
.hcm-archive-status.is-closed { background:#f7eeee; color:#925959; }
.dark-style .hcm-archive-status.is-closed { background:#3b2932; color:#e5b3bb; }
.hcm-archive-pagination { padding:16px 20px; }
.hcm-archive-empty { text-align:center; padding:40px!important; }
.hcm-archive-empty > i { color:var(--ui-brand); font-size:30px; }
.hcm-archive-page :is(a,button,input,select):focus-visible { outline:2px solid var(--ui-brand); outline-offset:3px; }
@media(max-width:1199.98px) { .hcm-archive-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:767.98px) { .hcm-archive-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .hcm-archive-page { padding:4px!important; } .hcm-archive-filter-actions .btn { flex:1; } }

/* Completion and HR transfer are separate states, rather than colors on View buttons. */
.hcm-completed-status,.hcm-hr-status,.hcm-staff-id { display:inline-block; padding:5px 10px; border-radius:8px; font-size:.85rem; line-height:1.6; }
.hcm-completed-status,.hcm-hr-status.is-sent { color:#23714c; background:#e9f6ef; }
.hcm-hr-status.is-manual { color:#8b651f; background:#fbf3df; }
.hcm-hr-status.is-pending { color:var(--ui-muted); background:var(--ui-surface-muted); }
.hcm-staff-id { color:var(--ui-brand); background:var(--ui-primary-soft); font-weight:600; white-space:nowrap; }
.dark-style .hcm-completed-status,.dark-style .hcm-hr-status.is-sent { color:#a0dfb9; background:#173b30; }
.dark-style .hcm-hr-status.is-manual { color:#edcc87; background:#40351f; }

/* Keep searchable filter menus above the following results card. */
body .hcm-archive-page .hcm-archive-filters {
  position: relative;
  z-index: 2;
  overflow: visible !important;
}
body .hcm-archive-page .hcm-archive-filters .card-body {
  overflow: visible !important;
}
body .hcm-archive-page .hcm-archive-filters .select2-container--open {
  z-index: 1060;
}
body .hcm-archive-page .hcm-archive-results {
  position: relative;
  z-index: 1;
}

.hcm-completed-transfer-stat { display:flex; align-items:flex-start; gap:16px; padding:20px; margin-bottom:20px; border:1px solid var(--ui-border); border-radius:14px; background:var(--ui-surface); max-width:540px; }
.hcm-completed-transfer-stat > i { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border-radius:12px; font-size:24px; color:var(--ui-brand); background:var(--ui-primary-soft); }
.hcm-completed-transfer-stat span { color:var(--ui-heading); font-weight:600; }
.hcm-completed-transfer-stat strong { display:block; color:var(--ui-brand); font-size:1.9rem; margin:8px 0; }
.hcm-completed-transfer-stat small { display:block; color:var(--ui-muted); line-height:1.7; }

/* Compact hospital navigation with consistent rows and restrained current-page color. */
body #layout-menu .app-brand { min-height:80px; padding:12px 14px; gap:10px; }
body #layout-menu .hcm-sidebar-identity { max-width:180px; min-height:42px; padding:9px 12px; border-radius:10px; }
body #layout-menu .hcm-sidebar-toggle {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 30px;
  width:30px; height:30px; min-height:30px; padding:0; margin:0!important;
  border:1px solid rgba(200,218,239,.22)!important; border-radius:8px;
  background:rgba(255,255,255,.04)!important; color:#d9e6f5!important; box-shadow:none!important;
}
body #layout-menu .hcm-sidebar-toggle::before,body #layout-menu .hcm-sidebar-toggle::after { content:none!important; }
body #layout-menu .hcm-sidebar-collapse-icon { font-size:20px; }
[dir="ltr"] body #layout-menu .hcm-sidebar-collapse-icon { transform:rotate(180deg); }
.layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-expanded) #layout-menu .hcm-sidebar-collapse-icon { transform:rotate(180deg); }
body #layout-menu .menu-inner { padding:8px 0 18px!important; scrollbar-width:thin; scrollbar-color:#526b83 transparent; }
body #layout-menu .menu-inner > .menu-item { margin:2px 0; }
body #layout-menu .menu-inner > .menu-item > .menu-link {
  display:flex; align-items:center; gap:10px; min-height:48px;
  width:calc(100% - 20px); margin:0 10px; padding:10px 13px;
  border:0!important; border-radius:10px; box-shadow:none!important;
}
body #layout-menu .menu-link .menu-icon {
  width:22px; flex:0 0 22px; margin:0!important; font-size:22px; line-height:1;
}
body #layout-menu .menu-inner > .menu-item > .menu-link > div,
body #layout-menu .menu-sub > .menu-item > .menu-link > div {
  min-width:0; font-size:.95rem!important; font-weight:500!important; line-height:1.6!important;
  white-space:normal; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
}
body #layout-menu .menu-inner > .menu-item > .menu-toggle { padding-inline-end:32px; }
body #layout-menu .menu-toggle::after { inset-inline-end:13px; width:7px; height:7px; }
body #layout-menu .menu-item.open > .menu-link {
  border:0!important; background:rgba(255,255,255,.055)!important; box-shadow:none!important;
}
body #layout-menu .menu-link:hover { background:#203d5d!important; box-shadow:none!important; }
body #layout-menu .menu-item.active > .menu-link,
body #layout-menu .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle) {
  background:var(--ui-brand)!important; border:0!important; color:#fff!important; box-shadow:none!important;
}
body #layout-menu .menu-item.active > .menu-link > div { font-weight:600!important; color:#fff!important; }
body #layout-menu .menu-sub { padding-block:4px 7px; }
body #layout-menu .menu-sub > .menu-item > .menu-link { margin-block:2px; padding-block:8px; min-height:38px; border:0!important; box-shadow:none!important; border-radius:8px; }
body #layout-menu .hcm-menu-group { display:block; min-height:0; margin:17px 20px 7px; padding:0; color:#a9bdd3!important; opacity:1; font-size:.73rem; font-weight:600; line-height:1.5; letter-spacing:0; }
body #layout-menu .hcm-menu-group::before { content:none!important; }
.layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-expanded) #layout-menu .hcm-menu-group { display:none; }
body #layout-menu .ps__rail-y { width:8px!important; background:transparent!important; opacity:.3!important; }
body #layout-menu:hover .ps__rail-y { opacity:.7!important; }
body #layout-menu .ps__thumb-y { width:4px!important; border-radius:10px; background:#657d94!important; }
body #layout-menu .ps__rail-y:is(:hover,:focus,.ps--clicking) > .ps__thumb-y { width:6px!important; }
body #layout-menu a:focus-visible { outline:2px solid #9dc5ff; outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { body #layout-menu .menu-item,body #layout-menu .menu-link { transition:none!important; } }

/* Expanded rows fill the sidebar instead of retaining the theme's fixed item width. */
html:is(:not(.layout-menu-collapsed), .layout-menu-hover, .layout-menu-expanded) body #layout-menu .menu-inner > .menu-item {
  width: 100% !important;
  padding-inline: 0 !important;
  margin-inline: 0 !important;
}
html:is(:not(.layout-menu-collapsed), .layout-menu-hover, .layout-menu-expanded) body #layout-menu .menu-inner > .menu-item > .menu-link {
  width: calc(100% - 20px) !important;
  margin-inline: 10px !important;
}
html:is(:not(.layout-menu-collapsed), .layout-menu-hover, .layout-menu-expanded) body #layout-menu .menu-sub {
  margin-inline: 10px;
  padding-inline: 0;
}
html:is(:not(.layout-menu-collapsed), .layout-menu-hover, .layout-menu-expanded) body #layout-menu .menu-sub > .menu-item {
  width: 100%;
  padding-inline: 0;
}
html:is(:not(.layout-menu-collapsed), .layout-menu-hover, .layout-menu-expanded) body #layout-menu .menu-sub > .menu-item > .menu-link {
  width: 100%;
  margin-inline: 0;
  padding-inline: 16px;
}
body #layout-menu .menu-link > div { flex: 1 1 auto; }

/* Override the older typography sheet's forced 12px menu scrollbar. */
html:root body #layout-menu .ps--active-y > .ps__rail-y {
  width: 8px !important;
  opacity: .55 !important;
  background: transparent !important;
}
html:root body #layout-menu .ps--active-y > .ps__rail-y > .ps__thumb-y {
  width: 3px !important;
  right: 2px !important;
  background-color: rgba(173, 194, 214, .32) !important;
  border-radius: 999px;
}
html:root body #layout-menu .ps--active-y > .ps__rail-y:is(:hover, :focus, .ps--clicking) > .ps__thumb-y {
  width: 4px !important;
  background-color: rgba(173, 194, 214, .55) !important;
}
html:root body #layout-menu .menu-inner {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(173, 194, 214, .32) transparent !important;
}
html:root body #layout-menu .menu-inner::-webkit-scrollbar {
  width: 5px !important;
}
html:root body #layout-menu .menu-inner::-webkit-scrollbar-track { background: transparent !important; }
html:root body #layout-menu .menu-inner::-webkit-scrollbar-thumb {
  background-color: rgba(173, 194, 214, .32) !important;
  border: 1px solid transparent;
}

/* Active tabs require explicit contrast against the transferred brand background. */
body .content-wrapper :is(.nav-pills, .nav-tabs) .nav-link.active,
body .content-wrapper :is(.nav-pills, .nav-tabs) .nav-link.active:is(:hover, :focus-visible) {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: var(--ui-brand) !important;
  border-color: var(--ui-brand) !important;
}
body .content-wrapper :is(.nav-pills, .nav-tabs) .nav-link.active :is(span, strong) { color: inherit !important; }
