/* SkillsHR Unified Recruitment — v1.3.1
 * Restores the visual hierarchy and unread/status cues of the original ATS while
 * retaining the unified SkillsHR administration shell.
 */

.recruitment-page-head{margin-bottom:22px}
.recruitment-page-head>div:first-child{max-width:900px}
.recruitment-page-head .button-link{white-space:nowrap}

/* Dashboard cards — deliberately closer to the legacy ATS status cards. */
.recruitment-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
.recruitment-stat-card{position:relative;display:grid;min-height:176px;padding:22px 22px 18px;border-radius:12px;color:#fff;text-decoration:none;overflow:hidden;box-shadow:0 8px 24px rgba(9,42,69,.08);transition:transform .16s ease,box-shadow .16s ease}
.recruitment-stat-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(9,42,69,.14)}
.recruitment-stat-card strong{font-size:36px;line-height:1;color:#fff!important;margin-top:12px}
.recruitment-stat-card>span:not(.recruitment-stat-icon){font-size:15px;font-weight:800;margin-top:7px}
.recruitment-stat-card small{align-self:end;margin-top:18px;padding-top:11px;border-top:1px solid rgba(255,255,255,.28);color:#fff;font-weight:700;opacity:.96}
.recruitment-stat-icon{position:absolute;right:18px;top:15px;font-size:36px;font-weight:900;opacity:.23}
.recruitment-stat-card.stat-total{background:linear-gradient(135deg,#01518c,#0b6ba8)}
.recruitment-stat-card.stat-unread{background:linear-gradient(135deg,#0d75aa,#2698c7)}
.recruitment-stat-card.stat-jobs{background:linear-gradient(135deg,#24855b,#36a66f)}
.recruitment-stat-card.stat-interviews{background:linear-gradient(135deg,#b8871f,#d9a62e)}

.recruitment-table-card{padding:0;overflow:hidden;margin-top:20px}
.recruitment-latest-card{margin-top:0}
.recruitment-card-header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 22px;background:#fff;border-bottom:1px solid #dfe8ee}
.recruitment-card-header h2{padding:0!important;margin:0!important;font-size:20px;color:#0b2038}
.recruitment-card-header p{margin:5px 0 0;color:#6a7a88;font-size:13px}
.recruitment-text-link{color:#01518c;font-weight:800;text-decoration:none;white-space:nowrap}
.recruitment-text-link:hover{text-decoration:underline}
.recruitment-count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:25px;padding:0 9px;margin-left:6px;border-radius:999px;background:#e8f4fa;color:#01518c;font-size:13px;vertical-align:2px}
.recruitment-table-loading{padding:28px;color:#6a7a88}

/* Search/filter box styled like the original ATS filter card. */
.recruitment-filter-card{background:#fff;border:1px solid #dfe8ee;border-radius:11px;box-shadow:0 8px 24px rgba(9,42,69,.05);margin-bottom:20px;overflow:hidden}
.recruitment-filter-card>header{padding:16px 20px;background:#f7fafc;border-bottom:1px solid #e3e9ee}
.recruitment-filter-card>header>div{display:grid;gap:3px}
.recruitment-filter-card>header strong{font-size:16px;color:#0b2038}
.recruitment-filter-card>header span{font-size:13px;color:#6c7d8b}
.recruitment-filter-grid{display:grid;grid-template-columns:minmax(280px,2fr) minmax(200px,1fr) auto;gap:14px;align-items:end;padding:18px 20px}
.recruitment-filter-grid button{height:43px}

/* Recruitment tables */
.recruitment-data-table{width:100%;border-collapse:collapse}
.recruitment-data-table thead th{background:#f5f8fa;color:#465d70;font-size:12px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;padding:13px 15px;border-bottom:2px solid #dfe8ee;white-space:nowrap}
.recruitment-data-table tbody td{padding:13px 15px;border-bottom:1px solid #e6edf2;color:#243745;vertical-align:middle}
.recruitment-data-table tbody tr{transition:background-color .16s ease}
.recruitment-data-table tbody tr:hover{background:#f4f8fb}
.recruitment-data-table tbody tr.recruitment-row-unread{background:#e0f2ff;font-weight:650}
.recruitment-data-table tbody tr.recruitment-row-unread:hover{background:#cce9fb}
.recruitment-candidate{display:grid;gap:2px;min-width:215px}
.recruitment-candidate-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.recruitment-candidate strong,.recruitment-candidate a{color:#0b2038;font-weight:800;text-decoration:none}
.recruitment-candidate a:hover{color:#01518c;text-decoration:underline}
.recruitment-candidate small{color:#697d8d;font-weight:400}
.recruitment-new-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#01518c;color:#fff;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.recruitment-department-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf2f6;color:#486173;font-size:11px;font-weight:800;white-space:nowrap}
.recruitment-empty{padding:34px!important;text-align:center;color:#6e7f8d}

/* Status badges preserve the ATS semantic colors. */
.recruitment-status-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap;text-transform:none}
.recruitment-status-new{background:#dceeff;color:#075aa0}
.recruitment-status-under-review{background:#e7ebef;color:#4d5e6b}
.recruitment-status-interview{background:#fff0bf;color:#805d00}
.recruitment-status-rejected{background:#fde1e4;color:#a52836}
.recruitment-status-hired{background:#dcf3e5;color:#187244}
.recruitment-status-active{background:#dcf3e5;color:#187244}
.recruitment-status-inactive,.recruitment-status-draft{background:#eceff2;color:#596875}

.recruitment-open-button{padding:8px 15px;min-width:72px;border-radius:6px}
.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-top:1px solid #e4e8ef;background:#fafcfd}
.table-pagination button{padding:8px 14px}
.table-pagination button:disabled{opacity:.45;cursor:not-allowed}
.table-pagination span{font-size:13px;color:#637585;font-weight:650}

/* Detail dialog */
.recruitment-dialog{width:min(1000px,96vw);max-height:92vh;padding:0;overflow:auto}
.recruitment-dialog>.dialog-close{position:sticky;float:right;top:9px;right:10px;z-index:5;margin:8px 10px 0 0;background:#eef3f6;color:#385269;border-radius:999px;width:38px;height:38px;padding:0}
.recruitment-dialog dl{display:grid;grid-template-columns:minmax(180px,32%) 1fr;gap:8px 16px}
.recruitment-dialog dt{font-weight:800;color:#31485a}
.recruitment-dialog dd{margin:0}
.recruitment-detail-shell{padding:28px 32px 34px}
.recruitment-detail-head{margin-bottom:18px;padding-bottom:17px;border-bottom:1px solid #e2e9ee}
.recruitment-detail-head h2{margin:0 0 7px;font-size:28px;color:#0b2038}
.recruitment-detail-head p{margin:0;color:#657888}
.recruitment-detail-status-row{display:flex;align-items:end;gap:12px;margin-top:16px}
.recruitment-detail-status-row label{min-width:240px}
.recruitment-detail-section{margin-top:18px;border:1px solid #e0e7ec;border-radius:10px;overflow:hidden;background:#fff}
.recruitment-detail-section>h3{margin:0;padding:13px 16px;background:#f5f8fa;border-bottom:1px solid #e0e7ec;font-size:16px;color:#0b2038}
.recruitment-detail-section>.recruitment-section-body{padding:16px}
.recruitment-detail-section ul{margin:0;padding-left:20px}
.recruitment-detail-section details{border:1px solid #e3e9ee;border-radius:7px;padding:10px;margin:8px 0}
.recruitment-detail-section summary{cursor:pointer;font-weight:750}
.slot-choice{display:inline-flex;align-items:center;gap:8px;margin:6px 8px 6px 0;padding:9px 12px;border:1px solid #d9dee7;border-radius:8px;background:#fff}
.message-history-body{white-space:pre-wrap;word-break:break-word;max-height:280px;overflow:auto;background:#f7f9fc;padding:10px;border-radius:8px}
.meeting-details-editor{margin:12px 0 16px;border:1px solid var(--border,#dfe3ea);border-radius:10px;padding:10px 12px}
.meeting-details-editor>summary{cursor:pointer;font-weight:650}
.meeting-details-editor[open]>summary{margin-bottom:12px}

/* Other integrated Recruitment pages receive the same card/table language. */
.split-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}
.split-grid>.panel,.master-calendar-panel,.recruitment-page-panel{background:#fff;border:1px solid #dfe8ee;border-radius:11px;box-shadow:0 8px 24px rgba(9,42,69,.05);padding:22px}
.builder-list{display:grid;gap:12px;margin-top:18px}
.builder-item{border:1px solid #dce5eb;border-left:4px solid #01518c;border-radius:8px;background:#f9fbfc;padding:14px}
.module-card-grid .module-card strong{font-size:2rem;display:block;margin-bottom:8px}
.master-calendar-panel{overflow:hidden}
.fc .fc-toolbar-title{font-size:1.25rem}
.calendar-event-recruitment_interview{border-left:4px solid currentColor}
.calendar-event-recruitment_proposal{opacity:.78;border-style:dashed}
.calendar-status-confirmed{font-weight:700}

@media(max-width:1100px){.recruitment-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recruitment-filter-grid{grid-template-columns:1fr 1fr}.recruitment-filter-grid button{grid-column:1/-1;justify-self:start}.recruitment-data-table{min-width:900px}.recruitment-table-card>div{overflow-x:auto}}
@media(max-width:900px){.split-grid{grid-template-columns:1fr}.recruitment-page-head{align-items:flex-start}.recruitment-dialog dl{grid-template-columns:1fr}.recruitment-detail-status-row{align-items:stretch;flex-direction:column}}
@media(max-width:650px){.recruitment-stat-grid{grid-template-columns:1fr}.recruitment-filter-grid{grid-template-columns:1fr}.recruitment-card-header{align-items:flex-start;flex-direction:column}.recruitment-detail-shell{padding:22px 18px 28px}}

/* v1.3.2 — interview time entry and optional availability suggestions */
.recruitment-interview-schedule-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.recruitment-field-help{margin:10px 0 4px;color:#627586;font-size:13px;line-height:1.45}
.recruitment-slot-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 6px}
.recruitment-slot-note{font-size:12px;color:#657988;font-weight:650}
.recruitment-slot-list{margin:4px 0 12px}
.recruitment-slot-empty{margin:8px 0;padding:11px 13px;border:1px solid #dce6ed;border-radius:8px;background:#f7fafc;color:#51697a;font-size:13px;line-height:1.45}
.recruitment-slot-loading{display:inline-block;padding:8px 0;color:#657988;font-size:13px}
@media(max-width:1100px){.recruitment-interview-schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.recruitment-interview-schedule-grid{grid-template-columns:1fr}}

/* v1.3.3 — legacy Careers email UX + collision-free interview form */
.message-history-preview{margin-top:10px;border:1px solid #e1e8ed;border-radius:9px;overflow:hidden;background:#f3f4f6}
.message-history-frame{display:block;width:100%;height:320px;border:0;background:#fff}
.recruitment-quick-templates{display:grid;gap:10px;margin:0 0 16px;padding:13px 14px;border:1px solid #dce6ed;border-radius:9px;background:#f7fafc}
.recruitment-quick-templates>div:first-child{display:grid;gap:3px}
.recruitment-quick-templates strong{color:#0b2038;font-size:14px}
.recruitment-quick-templates span{color:#657988;font-size:12px;line-height:1.45}
.recruitment-template-buttons{display:flex;flex-wrap:wrap;gap:8px}
.recruitment-template-button{padding:8px 11px;font-size:13px}
.recruitment-message-editor{min-height:220px;margin-top:6px;padding:12px 13px;border:1px solid var(--border,#cfd9e1);border-radius:7px;background:#fff;color:#1d2f3d;line-height:1.6;overflow:auto;outline:none}
.recruitment-message-editor:focus{border-color:#5b93ba;box-shadow:0 0 0 3px rgba(1,81,140,.09)}
.recruitment-message-editor:empty:before{content:attr(data-placeholder);color:#8a9aa7;pointer-events:none}
.recruitment-message-editor p:first-child{margin-top:0}
.recruitment-message-actions{display:flex;justify-content:flex-end;margin-top:12px}

/* Do not place five controls in one row inside the application dialog. The
 * interviewer spans the dialog, followed by two balanced rows. */
.recruitment-interview-schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px;align-items:end}
.recruitment-interview-schedule-grid label{display:grid;gap:6px;min-width:0;margin:0}
.recruitment-interview-schedule-grid select,
.recruitment-interview-schedule-grid input{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.recruitment-interview-field-wide{grid-column:1/-1}
.recruitment-interview-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 6px}
.recruitment-interview-actions button{margin:0;white-space:nowrap}
.recruitment-interview-actions .recruitment-slot-note{flex:1 1 260px}
.meeting-details-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.meeting-details-editor .form-grid label{min-width:0}
.meeting-details-editor input,.meeting-details-editor textarea{width:100%;max-width:100%;box-sizing:border-box}

@media(max-width:700px){
  .recruitment-interview-schedule-grid,.meeting-details-editor .form-grid{grid-template-columns:1fr}
  .recruitment-interview-field-wide{grid-column:auto}
  .recruitment-interview-actions{align-items:stretch}
  .recruitment-interview-actions button{flex:1 1 100%;width:100%}
  .message-history-frame{height:360px}
}

/* v1.4.9 — safe application deletion with recoverable Trash. */
.recruitment-application-tabs{display:flex;align-items:center;gap:8px;margin:0 0 18px;padding:5px;border:1px solid #dfe8ee;border-radius:11px;background:#fff;box-shadow:0 8px 24px rgba(9,42,69,.04);width:max-content;max-width:100%}
.recruitment-application-tabs button{background:transparent;color:#526a7b;border:0;border-radius:8px;padding:10px 16px;font-weight:800;box-shadow:none}
.recruitment-application-tabs button:hover{background:#f2f7fa;color:#01518c}
.recruitment-application-tabs button.active{background:#01518c;color:#fff}
.recruitment-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.recruitment-row-delete{padding:7px 9px;white-space:nowrap}
.recruitment-restore-button{padding:8px 13px;white-space:nowrap}
.recruitment-delete-application{margin-left:auto;white-space:nowrap}
@media(max-width:900px){.recruitment-detail-status-row .recruitment-delete-application{margin-left:0;width:100%}.recruitment-application-tabs{width:100%}.recruitment-application-tabs button{flex:1}}

/* v1.4.10 — safe multi-select application actions */
.recruitment-bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 16px;border-top:1px solid #e2e9ee;background:#f8fbfd;color:#4e6474;font-size:13px}
.recruitment-bulk-actions[hidden]{display:none!important}
.recruitment-bulk-actions strong{color:#0b2038;font-size:14px}
.recruitment-bulk-actions button{min-height:38px}
.recruitment-select-cell,.recruitment-select-all-wrap{width:38px;text-align:center}
.recruitment-select-cell input,.recruitment-select-all-wrap input{width:18px;height:18px;accent-color:#01518c;cursor:pointer;vertical-align:middle}
.recruitment-data-table th:first-child .recruitment-select-all-wrap{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:700px){.recruitment-bulk-actions{align-items:stretch;flex-direction:column}.recruitment-bulk-actions button{width:100%}}

/* v1.4.12 — visible, copyable public application links for each job. */
.recruitment-job-link{display:grid;grid-template-columns:minmax(210px,1fr) auto;gap:8px;align-items:center;min-width:360px}
.recruitment-job-link input,.recruitment-job-public-link-control input{width:100%;min-width:0;box-sizing:border-box;background:#f8fafc;color:#2a4050;font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.recruitment-job-link-actions,.recruitment-job-public-link-control{display:flex;align-items:center;gap:7px}
.recruitment-job-link-actions button,.recruitment-job-public-link-control button{margin:0;white-space:nowrap;padding:8px 11px}
.recruitment-job-link-pending{display:inline-block;color:#6d7f8d;font-size:12px;line-height:1.4}
.recruitment-job-public-link{display:grid;gap:10px;margin:4px 0 20px;padding:14px 15px;border:1px solid #d8e6ef;border-radius:9px;background:#f7fbfd}
.recruitment-job-public-link>div:first-child{display:grid;gap:3px}
.recruitment-job-public-link strong{color:#0b2038}
.recruitment-job-public-link small{display:block;color:#667b8b;line-height:1.45}
.recruitment-job-public-link-control input{flex:1 1 420px}
.recruitment-job-public-link-pending{border-style:dashed;background:#fbfcfd}
@media(max-width:1100px){.recruitment-job-link{min-width:320px}}
@media(max-width:700px){.recruitment-job-link{grid-template-columns:1fr;min-width:250px}.recruitment-job-link-actions,.recruitment-job-public-link-control{align-items:stretch;flex-direction:column}.recruitment-job-public-link-control input{flex-basis:auto}.recruitment-job-link-actions button,.recruitment-job-public-link-control button{width:100%}}



/* v1.4.13 — first-class Departments manager and reliable Add department feedback. */
.recruitment-jobs-page-head{margin-bottom:20px}
.recruitment-jobs-management-grid{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(320px,.9fr);gap:20px;align-items:start}
.recruitment-jobs-card,.recruitment-departments-card{min-width:0}
.recruitment-departments-card{padding:0!important;overflow:hidden;position:sticky;top:92px}
.recruitment-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #e2e9ee}
.recruitment-section-heading h2{margin:0 0 4px;color:#0b2038}
.recruitment-section-heading p{margin:0;color:#6a7c89;font-size:13px;line-height:1.45}
.recruitment-section-count{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 9px;border-radius:999px;background:#edf5fa;color:#01518c;font-size:12px;font-weight:850}
.recruitment-department-create{padding:18px 22px;border-bottom:1px solid #e2e9ee;background:#f8fbfd}
.recruitment-department-create>label{display:block;margin:0 0 7px;color:#243a49;font-size:13px;font-weight:800}
.recruitment-department-create-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.recruitment-department-create-row input{width:100%;min-width:0;box-sizing:border-box;margin:0}
.recruitment-department-create-row button{margin:0;white-space:nowrap}
.recruitment-department-feedback{min-height:18px;margin-top:8px;font-size:12px;font-weight:700;line-height:1.45;color:#677c8b}
.recruitment-department-feedback.is-success{color:#18734d}
.recruitment-department-feedback.is-error{color:#a42e2e}
.recruitment-departments-list{display:grid;max-height:520px;overflow:auto;background:#fff}
.recruitment-department-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;border-bottom:1px solid #edf1f4}
.recruitment-department-row:last-child{border-bottom:0}
.recruitment-department-row:hover{background:#fbfdfe}
.recruitment-department-main{display:grid;gap:5px;min-width:0}
.recruitment-department-main>strong{overflow:hidden;color:#122d40;text-overflow:ellipsis;white-space:nowrap}
.recruitment-department-meta{display:flex;gap:8px;flex-wrap:wrap;color:#748693;font-size:11px;font-weight:700}
.recruitment-department-meta span+span:before{content:'·';margin-right:8px;color:#a2afb8}
.recruitment-department-sync{flex:0 0 auto;display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap}
.recruitment-department-sync.is-synced{background:#eaf7f0;color:#19724d}
.recruitment-department-sync.is-pending{background:#fff6e5;color:#8a6417}
.recruitment-departments-empty{display:grid;gap:5px;padding:24px 22px;color:#6a7c89;font-size:13px;line-height:1.45}
.recruitment-departments-empty strong{color:#263e4e}
@media(max-width:1100px){.recruitment-jobs-management-grid{grid-template-columns:1fr}.recruitment-departments-card{position:static}.recruitment-departments-list{max-height:none}}
@media(max-width:600px){.recruitment-section-heading,.recruitment-department-create,.recruitment-department-row{padding-left:16px;padding-right:16px}.recruitment-department-create-row{grid-template-columns:1fr}.recruitment-department-create-row button{width:100%}.recruitment-department-row{align-items:flex-start;flex-direction:column}.recruitment-department-sync{align-self:flex-start}}

/* v1.4.14 — full-width Departments manager + safe delete */
.recruitment-jobs-management-stack{display:grid;gap:20px;min-width:0}
.recruitment-jobs-management-stack>.recruitment-jobs-card,
.recruitment-jobs-management-stack>.recruitment-departments-card{width:100%;min-width:0;box-sizing:border-box}
.recruitment-departments-card{position:static!important;top:auto!important;padding:0!important;overflow:hidden;border:1px solid #dfe8ee;background:#fff}
.recruitment-departments-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.9fr);gap:28px;align-items:center;padding:24px 26px;border-bottom:1px solid #e3eaef;background:linear-gradient(180deg,#fff 0%,#fbfdfe 100%)}
.recruitment-section-heading.recruitment-section-heading-plain{padding:0;border:0;background:transparent}
.recruitment-section-heading.recruitment-section-heading-plain h2{margin:0 0 5px}
.recruitment-section-heading.recruitment-section-heading-plain p{max-width:620px}
.recruitment-department-create{padding:0;border:0;background:transparent}
.recruitment-department-create>label{display:block;margin:0 0 7px;color:#243a49;font-size:13px;font-weight:800}
.recruitment-department-create-row{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:stretch}
.recruitment-department-create-row input{width:100%;min-width:0;box-sizing:border-box;margin:0;min-height:42px}
.recruitment-department-create-row button{margin:0;min-height:42px;white-space:nowrap}
.recruitment-department-feedback{min-height:18px;margin-top:7px;font-size:12px;font-weight:700;line-height:1.4;color:#677c8b}
.recruitment-departments-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-height:none!important;overflow:visible!important;padding:20px 26px 26px;background:#fff}
.recruitment-department-card{display:grid;grid-template-rows:auto 1fr;min-width:0;border:1px solid #dfe8ee;border-radius:12px;background:#fff;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.recruitment-department-card:hover{border-color:#c9d9e4;box-shadow:0 8px 22px rgba(16,49,70,.07);transform:translateY(-1px)}
.recruitment-department-card-top{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:start;padding:17px 17px 14px}
.recruitment-department-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e9f4fb;color:#0b659d;font-size:15px;font-weight:900}
.recruitment-department-main{display:grid;gap:6px;min-width:0;padding-top:1px}
.recruitment-department-main>strong{overflow:hidden;color:#102f44;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.recruitment-department-meta{display:flex;gap:8px;flex-wrap:wrap;color:#6d8190;font-size:11px;font-weight:750}
.recruitment-department-meta span+span:before{content:'·';margin-right:8px;color:#a2afb8}
.recruitment-department-sync{align-self:start;display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap}
.recruitment-department-sync.is-synced{background:#eaf7f0;color:#19724d}
.recruitment-department-sync.is-pending{background:#fff6e5;color:#8a6417}
.recruitment-department-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding:12px 17px;border-top:1px solid #edf1f4;background:#fbfcfd}
.recruitment-department-delete-note{min-width:0;color:#788a96;font-size:11px;line-height:1.4}
.recruitment-department-delete{flex:0 0 auto;margin:0!important;padding:7px 11px!important;border-color:#e3b9b9!important;color:#a52f2f!important;background:#fff!important;white-space:nowrap}
.recruitment-department-delete:hover:not(:disabled){border-color:#cf8f8f!important;background:#fff5f5!important;color:#8e2020!important}
.recruitment-department-delete:disabled{opacity:.55;cursor:not-allowed;background:#f8f9fa!important;color:#8b989f!important;border-color:#dce3e7!important}
.recruitment-departments-empty{grid-column:1/-1;display:grid;gap:5px;padding:30px 22px;border:1px dashed #cfdae2;border-radius:12px;background:#fafcfd;color:#6a7c89;font-size:13px;line-height:1.45;text-align:center}
.recruitment-departments-empty strong{color:#263e4e}
@media(max-width:1250px){.recruitment-departments-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.recruitment-departments-head{grid-template-columns:1fr;gap:18px}.recruitment-departments-list{grid-template-columns:1fr}}
@media(max-width:600px){.recruitment-departments-head,.recruitment-departments-list{padding-left:16px;padding-right:16px}.recruitment-department-create-row{grid-template-columns:1fr}.recruitment-department-create-row button{width:100%}.recruitment-department-card-top{grid-template-columns:38px minmax(0,1fr)}.recruitment-department-sync{grid-column:2;justify-self:start}.recruitment-department-card-bottom{align-items:flex-start;flex-direction:column}.recruitment-department-delete{width:100%}}

/* v1.4.15 — reliable job question builder aligned with the public Careers form. */
#recruitment-job-dialog{width:min(1080px,96vw)}
.recruitment-job-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 18px;padding-right:46px}
.recruitment-job-editor-head h2{margin:2px 0 5px;color:#0b2038;font-size:27px}
.recruitment-job-editor-head p{margin:0;color:#697d8c;font-size:13px;line-height:1.5}
.recruitment-editor-eyebrow{display:block;color:#01518c;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.recruitment-job-feedback{display:none;margin:0 0 16px;padding:11px 13px;border-radius:8px;font-size:13px;font-weight:700;line-height:1.45}
.recruitment-job-feedback.is-error{display:block;border:1px solid #efc5c5;background:#fff5f5;color:#9c2b2b}
.recruitment-job-feedback.is-success{display:block;border:1px solid #bfe3cf;background:#f1fbf5;color:#176b46}
.recruitment-job-core{display:grid;gap:15px}
.recruitment-job-description{display:grid}
.recruitment-job-switches{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:4px 0 2px}
.recruitment-job-switches label{display:inline-flex;align-items:center;gap:8px;margin:0;color:#2c4352;font-weight:700}
.recruitment-job-switches input{margin:0}
.recruitment-question-builder{margin:24px 0 0;border:1px solid #dce6ec;border-radius:12px;background:#f9fbfc;overflow:hidden}
.recruitment-question-builder-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;border-bottom:1px solid #e0e8ed;background:#fff}
.recruitment-question-builder-head h3{margin:0 0 4px;color:#0b2038;font-size:18px}
.recruitment-question-builder-head p{margin:0;color:#6a7d8b;font-size:12px;line-height:1.45}
.recruitment-question-builder-head button{margin:0;white-space:nowrap}
.recruitment-question-list{display:grid;gap:12px;padding:14px}
.recruitment-question-empty{padding:25px 18px;border:1px dashed #ccd9e2;border-radius:9px;background:#fff;color:#71828e;text-align:center;font-size:13px}
.recruitment-question-card.builder-item{display:grid;gap:13px;margin:0;padding:15px 16px;border:1px solid #d9e4eb;border-left:4px solid #6da4c7;border-radius:10px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.recruitment-question-card.builder-item.has-error{border-color:#df9c9c;border-left-color:#b83f3f;box-shadow:0 0 0 2px rgba(184,63,63,.07)}
.recruitment-question-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.recruitment-question-card-heading{display:flex!important;align-items:flex-start;gap:10px;min-width:0}
.recruitment-question-card-heading>div{display:grid;gap:3px;min-width:0}
.recruitment-question-drag{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;min-width:30px!important;margin:0!important;padding:0!important;border:1px solid #cddce6!important;border-radius:7px!important;background:#f7fafc!important;color:#607d90!important;font-size:18px!important;font-weight:900!important;line-height:1!important;letter-spacing:-4px!important;cursor:grab!important;touch-action:none;user-select:none;-webkit-user-select:none}
.recruitment-question-drag:hover,.recruitment-question-drag:focus-visible{border-color:#78a8c5!important;background:#edf6fb!important;color:#0a5b8b!important;outline:none!important;box-shadow:0 0 0 2px rgba(10,91,139,.12)!important}
.recruitment-question-list.is-reordering{user-select:none;-webkit-user-select:none}
.recruitment-question-list.is-reordering .recruitment-question-drag{cursor:grabbing!important}
.recruitment-question-card.builder-item.is-dragging{position:relative;z-index:2;border-color:#5e9fc7;border-left-color:#0b6fa8;box-shadow:0 8px 22px rgba(11,63,96,.16);opacity:.92}
.recruitment-question-number{color:#0a4f7c;font-size:12px;font-weight:900;letter-spacing:.03em;text-transform:uppercase}
.recruitment-question-card-head small{color:#758692;font-size:11px;line-height:1.4}
.recruitment-question-remove{flex:0 0 auto;margin:0!important;padding:5px 8px!important;border:0!important;background:transparent!important;color:#a63131!important;font-size:12px!important;font-weight:800!important}
.recruitment-question-remove:hover{background:#fff1f1!important;color:#841f1f!important}
.recruitment-question-fields{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.8fr);gap:12px;align-items:end}
.recruitment-question-fields label,.q-options-wrap label{display:grid;gap:6px;margin:0;color:#2b4252;font-size:12px;font-weight:800}
.recruitment-question-fields input,.recruitment-question-fields select,.q-options-wrap textarea{width:100%;min-width:0;box-sizing:border-box;margin:0}
.recruitment-question-required{display:inline-flex!important;align-items:center;gap:8px;width:max-content;margin:0!important;color:#324b5d;font-size:12px;font-weight:750}
.recruitment-question-required input{margin:0}
.q-options-wrap{display:block;padding:12px 13px;border:1px solid #dce8ef;border-radius:8px;background:#f6fafc}
.q-options-wrap.hidden{display:none}
.q-options-wrap label>small{color:#748793;font-weight:500}
.q-screening-wrap{display:grid;gap:12px;padding:14px;border:1px solid #dce8ef;border-radius:9px;background:#f6fafc}
.q-screening-wrap.hidden{display:none}
.recruitment-screening-head>div{display:grid;gap:3px}
.recruitment-screening-head strong{color:#0b2038;font-size:13px}
.recruitment-screening-head small,.recruitment-screening-note{color:#748793;font-size:11px;line-height:1.45}
.recruitment-screening-grid{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:12px;align-items:end}
.recruitment-screening-grid>label,.recruitment-screening-message{display:grid;gap:6px;margin:0;color:#2b4252;font-size:12px;font-weight:800}
.recruitment-screening-grid select,.recruitment-screening-message textarea{width:100%;min-width:0;box-sizing:border-box;margin:0}
.recruitment-screening-toggle{display:flex!important;align-items:center;gap:8px;min-height:42px;padding:0 2px;font-weight:750!important}
.recruitment-screening-toggle input{margin:0}
.q-error{display:none;color:#a52c2c;font-size:12px;font-weight:750;line-height:1.4}
.recruitment-question-card.has-error .q-error{display:block}
.recruitment-job-editor-actions{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #e1e8ed}
.recruitment-job-editor-actions button{margin:0}
@media(max-width:760px){
  .recruitment-question-builder-head{align-items:stretch;flex-direction:column}
  .recruitment-question-builder-head button{width:100%}
  .recruitment-question-fields{grid-template-columns:1fr}
  .recruitment-screening-grid{grid-template-columns:1fr}
  .recruitment-question-card-head{align-items:flex-start}
  .recruitment-job-switches{align-items:flex-start;flex-direction:column;gap:10px}
  .recruitment-job-editor-actions{align-items:stretch;flex-direction:column}
  .recruitment-job-editor-actions button{width:100%}
}

/* v1.4.16 — explicit Careers job mirror state and retry action. */
.recruitment-job-sync-pending{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.recruitment-job-sync-pending .recruitment-job-link-pending{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#fff6e5;color:#8a6417;font-size:11px;font-weight:850;white-space:nowrap}
.recruitment-job-sync-pending button{margin:0!important;padding:7px 10px!important;white-space:nowrap}
.recruitment-job-public-link-pending{align-items:center;justify-content:space-between;gap:14px}
.recruitment-job-public-link-pending>div{display:grid;gap:3px;min-width:0}
.recruitment-job-public-link-pending>button{flex:0 0 auto;margin:0!important;white-space:nowrap}
@media(max-width:700px){.recruitment-job-public-link-pending{align-items:stretch;flex-direction:column}.recruitment-job-public-link-pending>button{width:100%}}


/* v1.4.19 — active department delete with safe job reassignment. */
.recruitment-department-delete{opacity:1!important;cursor:pointer!important}
.recruitment-department-delete-dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;padding:0;border:0;border-radius:14px;overflow:auto;box-shadow:0 28px 80px rgba(5,35,56,.28)}
.recruitment-department-delete-dialog::backdrop{background:rgba(3,24,40,.58);backdrop-filter:blur(2px)}
.recruitment-department-delete-dialog>.dialog-close{position:sticky;float:right;top:10px;right:10px;z-index:3;margin:10px 10px 0 0;width:38px;height:38px;padding:0;border-radius:999px;background:#eef3f6;color:#385269}
.recruitment-department-delete-dialog-body{display:grid;gap:16px;padding:28px 30px 30px}
.recruitment-department-delete-dialog-body h2{margin:0;color:#0b2038;font-size:27px}
.recruitment-department-delete-dialog-body>p{margin:0;color:#617586;line-height:1.5}
.recruitment-department-delete-warning{display:grid;gap:5px;padding:14px 15px;border:1px solid #efd7ad;border-radius:10px;background:#fffaf0;color:#725018}
.recruitment-department-delete-warning strong{color:#63420f}
.recruitment-department-delete-warning span{font-size:12px;line-height:1.5}
.recruitment-department-delete-dialog-body label{display:grid;gap:7px;margin:0;color:#2a4151;font-size:13px;font-weight:800}
.recruitment-department-delete-dialog-body select{width:100%;margin:0}
.recruitment-department-delete-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
.recruitment-department-delete-actions button{margin:0}
@media(max-width:600px){.recruitment-department-delete-dialog-body{padding:22px 18px 20px}.recruitment-department-delete-actions{align-items:stretch;flex-direction:column-reverse}.recruitment-department-delete-actions button{width:100%}}

/* v1.5.0 — Careers-style native Recruitment interview scheduler.
 * Recruitment interviews remain a separate workflow from Free Consultation.
 */
.recruitment-dialog{width:min(1320px,97vw)}
.recruitment-native-scheduler{display:grid;gap:14px}
.recruitment-scheduler-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #d9e5ed;border-radius:9px;background:#f7fbfd}
.recruitment-scheduler-intro>div{display:grid;gap:3px}
.recruitment-scheduler-intro strong{color:#0b2038;font-size:14px}
.recruitment-scheduler-intro span{color:#617788;font-size:12px;line-height:1.5}
.recruitment-scheduler-layout{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(300px,.82fr);gap:16px;align-items:start;margin-top:2px}
.recruitment-scheduler-calendar-card{min-width:0;border:1px solid #dde6ec;border-radius:10px;background:#fff;padding:14px}
.recruitment-scheduler-legend{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.recruitment-scheduler-legend span{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}
.recruitment-scheduler-legend .confirmed{background:#dff4e7;color:#1b7348}
.recruitment-scheduler-legend .proposed{background:#fff0bf;color:#805d00}
.recruitment-scheduler-legend .selected{background:#dceeff;color:#075aa0}
.recruitment-interview-calendar{min-height:520px}
.recruitment-interview-calendar .fc{font-size:13px}
.recruitment-interview-calendar .fc .fc-toolbar{gap:10px;flex-wrap:wrap}
.recruitment-interview-calendar .fc .fc-toolbar-title{font-size:1.05rem;color:#0b2038}
.recruitment-interview-calendar .fc .fc-button{background:#0b5f98;border-color:#0b5f98;box-shadow:none;text-transform:capitalize}
.recruitment-interview-calendar .fc .fc-button:hover{background:#084f80;border-color:#084f80}
.recruitment-interview-calendar .fc .fc-button-primary:not(:disabled).fc-button-active{background:#073f67;border-color:#073f67}
.recruitment-interview-calendar .fc-timegrid-slot{height:2.35em}
.recruitment-interview-calendar .fc-event{overflow:hidden;border-radius:5px;padding:1px 3px;font-weight:700}
.recruitment-interview-calendar .recruitment-calendar-confirmed{background:#2d9365!important;border-color:#257b55!important;color:#fff!important}
.recruitment-interview-calendar .recruitment-calendar-proposed{background:#e9b52d!important;border-color:#c89510!important;color:#25313a!important}
.recruitment-interview-calendar .recruitment-calendar-selected{background:#2c7fc0!important;border-color:#1e6ba8!important;color:#fff!important;border-style:dashed!important}
.recruitment-proposal-panel{position:sticky;top:8px;display:grid;gap:12px;padding:16px;border:1px solid #dce6ed;border-radius:10px;background:#f8fbfd}
.recruitment-proposal-panel h4{margin:0 0 4px;color:#0b2038;font-size:16px}
.recruitment-proposal-panel p{margin:0;color:#647989;font-size:12px;line-height:1.5}
.recruitment-proposed-ranges{display:grid!important;gap:8px!important;padding:0!important;list-style:none!important}
.recruitment-proposed-ranges:empty{display:none!important}
.recruitment-proposed-ranges li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 10px 10px 12px;border:1px solid #d8e3ea;border-radius:8px;background:#fff}
.recruitment-proposed-ranges li>div{display:grid;gap:2px;min-width:0}
.recruitment-proposed-ranges strong{color:#213a4d;font-size:12px;line-height:1.4}
.recruitment-proposed-ranges span{color:#718492;font-size:11px}
.recruitment-proposed-ranges button{flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;border-radius:999px;font-size:18px;line-height:1}
.recruitment-proposal-summary{display:flex;align-items:baseline;gap:6px;padding-top:4px;color:#657988;font-size:12px}
.recruitment-proposal-summary strong{font-size:22px;color:#0b2038}
.recruitment-proposal-panel>#ra-propose{width:100%;margin:0}
.recruitment-proposal-panel>#ra-propose:disabled{opacity:.5;cursor:not-allowed}
.recruitment-proposal-panel .recruitment-slot-note{display:block;min-height:18px;line-height:1.45}

@media(max-width:1050px){
  .recruitment-scheduler-layout{grid-template-columns:1fr}
  .recruitment-proposal-panel{position:static}
}
@media(max-width:700px){
  .recruitment-interview-calendar{min-height:460px;overflow-x:auto}
  .recruitment-interview-calendar .fc{min-width:680px}
  .recruitment-scheduler-calendar-card{overflow:hidden}
}

.recruitment-existing-interview-state{display:grid!important;gap:4px!important;margin:0 0 12px!important;padding:11px 13px!important;border:1px solid #f0d58a!important;border-radius:9px!important;background:#fff9e8!important;color:#5b4a16!important}
.recruitment-existing-interview-state strong{font-size:12px!important;line-height:1.35!important;color:#4b3c0e!important}
.recruitment-existing-interview-state span{font-size:11px!important;line-height:1.45!important;color:#756324!important}
.recruitment-existing-interview-state strong:not(:first-child){margin-top:5px!important}
