/* WS-08C.7C — Recruitment styles scoped to Management module. */
#myc2RecruitmentRoot {background:#f2f6f7;color:#17354a;font:15px Arial,sans-serif;min-width:0;border-radius:14px;}
#myc2RecruitmentRoot main {padding:22px;max-width:none;min-width:0;margin:0;}
#myc2RecruitmentRoot .overlay {z-index:1100;}
#myc2RecruitmentRoot .top {background:transparent;color:inherit;padding:0;}
#myc2RecruitmentRoot .panel {max-width:100%;}
#myc2RecruitmentRoot *{box-sizing:border-box}
#myc2RecruitmentRoot{margin:0;background:#f2f6f7;color:#17354a;font:15px Arial,sans-serif}
#myc2RecruitmentRoot button, #myc2RecruitmentRoot input, #myc2RecruitmentRoot select, #myc2RecruitmentRoot textarea{font:inherit}
#myc2RecruitmentRoot button{cursor:pointer}
#myc2RecruitmentRoot .layout{display:grid;grid-template-columns:235px 1fr;min-height:100vh}
#myc2RecruitmentRoot aside{background:#102d46;color:white;padding:25px 14px}
#myc2RecruitmentRoot aside h1{padding:0 12px;font-size:28px}
#myc2RecruitmentRoot aside small{display:block;font-size:11px;letter-spacing:2px;color:#9bc9ba}
#myc2RecruitmentRoot aside button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:10px;padding:15px;color:#d1dce5;margin:3px 0}
#myc2RecruitmentRoot aside button.on{background:#29516b;color:white}
#myc2RecruitmentRoot aside p{color:#a9bac8;font-size:12px;line-height:1.6;margin-top:40px}
#myc2RecruitmentRoot main{padding:30px;min-width:0;max-width:1500px;width:100%;margin:auto}
#myc2RecruitmentRoot h2{font-size:32px;margin:5px 0}
#myc2RecruitmentRoot h3{margin-top:0}
#myc2RecruitmentRoot .muted{color:#708697}
#myc2RecruitmentRoot .pill{background:#fff0d4;color:#91651c;padding:9px 13px;border-radius:20px;font-size:12px;font-weight:bold}
#myc2RecruitmentRoot .top{display:flex;justify-content:space-between;align-items:center;gap:15px}
#myc2RecruitmentRoot .cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:24px 0}
#myc2RecruitmentRoot .card, #myc2RecruitmentRoot .panel{background:white;border:1px solid #e0e8ed;border-radius:17px;padding:21px;box-shadow:0 5px 20px #12345609}
#myc2RecruitmentRoot .card strong{display:block;font-size:32px;margin-top:10px}
#myc2RecruitmentRoot .card span{color:#6b8393;font-size:13px}
#myc2RecruitmentRoot .panel{margin:16px 0}
#myc2RecruitmentRoot .filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:8px;margin:18px 0}
#myc2RecruitmentRoot .filters input, #myc2RecruitmentRoot .filters select, #myc2RecruitmentRoot textarea{width:100%;min-width:0;border:1px solid #d2dfe7;border-radius:9px;padding:11px;background:white}
#myc2RecruitmentRoot table{width:100%;border-collapse:collapse;text-align:left}
#myc2RecruitmentRoot th{font-size:11px;text-transform:uppercase;color:#7990a0;letter-spacing:1px}
#myc2RecruitmentRoot td, #myc2RecruitmentRoot th{padding:13px 8px;border-bottom:1px solid #edf1f4}
#myc2RecruitmentRoot td{font-size:13px}
#myc2RecruitmentRoot .table{overflow:auto}
#myc2RecruitmentRoot .tag{border-radius:7px;background:#e7f3ee;color:#23735d;padding:6px 8px;font-size:12px;font-weight:bold}
#myc2RecruitmentRoot .btn{border:1px solid #cddde4;background:white;border-radius:9px;padding:9px 12px;color:#245a70;font-weight:bold}
#myc2RecruitmentRoot .primary{background:#177b68;color:white;border-color:#177b68}
#myc2RecruitmentRoot .hide{display:none}
#myc2RecruitmentRoot .overlay{position:fixed;inset:0;background:#0b2037a8;display:none;align-items:center;justify-content:center;padding:15px}
#myc2RecruitmentRoot .overlay.show{display:flex}
#myc2RecruitmentRoot .modal{background:white;padding:25px;border-radius:20px;width:min(680px,100%);max-height:90vh;overflow:auto}
#myc2RecruitmentRoot .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#myc2RecruitmentRoot label{display:block;font-weight:bold;font-size:12px;margin:15px 0 6px}
#myc2RecruitmentRoot .row select{width:100%;padding:12px;border:1px solid #d2dfe7;border-radius:9px}
#myc2RecruitmentRoot .buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
@media (max-width:950px){#myc2RecruitmentRoot .cards{grid-template-columns:repeat(2,1fr)}
#myc2RecruitmentRoot .filters{grid-template-columns:repeat(2,1fr)}}
@media (max-width:650px){#myc2RecruitmentRoot .layout{display:block}
#myc2RecruitmentRoot aside{padding:12px}
#myc2RecruitmentRoot aside h1{margin:4px}
#myc2RecruitmentRoot aside button{display:inline-block;width:auto;padding:10px}
#myc2RecruitmentRoot aside p{display:none}
#myc2RecruitmentRoot main{padding:16px}
#myc2RecruitmentRoot .row{grid-template-columns:1fr}
#myc2RecruitmentRoot .cards{grid-template-columns:1fr 1fr}}
#myc2RecruitmentRoot .status{display:inline-block;border-radius:12px;padding:9px 14px;background:#fff3d5;color:#795819;font-weight:bold;font-size:12px}
#myc2RecruitmentRoot .error{background:#ffe9e9;color:#912626;padding:12px;border-radius:8px;margin:10px 0}
#myc2RecruitmentRoot .notice{background:#edf6fa;border-radius:9px;padding:12px;margin:12px 0}
#myc2RecruitmentRoot .toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#myc2RecruitmentRoot .filtergrid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin:15px 0}
#myc2RecruitmentRoot .filtergrid input, #myc2RecruitmentRoot .filtergrid select{width:100%;padding:10px;border:1px solid #cbd9e1;border-radius:9px}
#myc2RecruitmentRoot .small{font-size:12px;color:#647987}
#myc2RecruitmentRoot .note{white-space:pre-wrap;padding:12px;border-bottom:1px solid #eee}
#myc2RecruitmentRoot .modal textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px}
@media (max-width:700px){#myc2RecruitmentRoot .filtergrid{grid-template-columns:repeat(2,1fr)}}
#myc2RecruitmentRoot .profile-section{margin:22px 0;padding:18px;border:1px solid #dce8ee;border-radius:12px;background:#f9fbfc}
#myc2RecruitmentRoot .answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#myc2RecruitmentRoot .answer{border-bottom:1px solid #e1e9ed;padding:8px 0;overflow-wrap:anywhere}
#myc2RecruitmentRoot .answer strong{text-transform:capitalize;color:#234f65}
#myc2RecruitmentRoot .answer p{margin:6px 0;white-space:pre-wrap}
#myc2RecruitmentRoot .danger{border-color:#b34a4a;color:#9d2525}
#myc2RecruitmentRoot .management{border-top:1px solid #ddd;padding-top:16px}
#myc2RecruitmentRoot .archive-toggle{font-size:13px;margin:10px 0}
#myc2RecruitmentRoot .archive-toggle input{vertical-align:middle}
#myc2RecruitmentRoot .modal{width:min(900px,100%)}
@media (max-width:650px){#myc2RecruitmentRoot .answers{grid-template-columns:1fr}}
#myc2RecruitmentRoot .correspondence{border-color:#c5ded6;background:#f7fbfa}
#myc2RecruitmentRoot .correspondence h4{margin:24px 0 4px}
#myc2RecruitmentRoot .mail-grid{display:grid;grid-template-columns:1fr 2fr;gap:12px}
#myc2RecruitmentRoot .mail-grid input, #myc2RecruitmentRoot .mail-grid select{width:100%;padding:10px;border:1px solid #cbd9e1;border-radius:9px}
#myc2RecruitmentRoot .mail-history-item{padding:12px 0;border-bottom:1px solid #dce8e4;display:flex;flex-direction:column;gap:4px}
#myc2RecruitmentRoot .mail-history-item span{font-size:12px;color:#617887}
#myc2RecruitmentRoot .mail-actions{flex-wrap:wrap;justify-content:flex-start}
@media (max-width:700px){#myc2RecruitmentRoot .mail-grid{grid-template-columns:1fr}}
#myc2RecruitmentRoot .header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#myc2RecruitmentRoot .vacancy-menu{position:relative}
#myc2RecruitmentRoot .vacancy-trigger{display:flex;align-items:center;gap:14px;white-space:nowrap;border-color:#bed5dd;background:#fff;color:#17354a;box-shadow:0 3px 12px #1234560a}
#myc2RecruitmentRoot .vacancy-trigger:hover, #myc2RecruitmentRoot .vacancy-trigger:focus-visible{border-color:#59998e;background:#f4faf8}
#myc2RecruitmentRoot .vacancy-popover{position:absolute;z-index:15;right:0;top:calc(100% + 10px);width:min(370px,calc(100vw - 32px));padding:19px;border:1px solid #d9e6ea;border-radius:14px;background:white;box-shadow:0 14px 40px #0b253b25}
#myc2RecruitmentRoot .vacancy-popover[hidden]{display:none}
#myc2RecruitmentRoot .vacancy-popover-title{font-weight:700;font-size:15px;margin-bottom:12px}
#myc2RecruitmentRoot .vacancy-items{max-height:240px;overflow:auto}
#myc2RecruitmentRoot .vacancy-items p{padding:10px 0;border-bottom:1px solid #edf1f4;margin:0}
#myc2RecruitmentRoot .vacancy-disclaimer{line-height:1.5}
#myc2RecruitmentRoot .vacancy-create{margin-top:10px;width:100%;text-align:center}
#myc2RecruitmentRoot .vacancy-create:disabled{opacity:.55;cursor:not-allowed}
@media (max-width:650px){#myc2RecruitmentRoot .top{align-items:flex-start}
#myc2RecruitmentRoot .header-actions{justify-content:flex-end}
#myc2RecruitmentRoot .vacancy-popover{right:0}}
/* Compact Recruitment metrics: aligned values at every panel width. */
#myc2RecruitmentRoot .cards{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:20px 0}
#myc2RecruitmentRoot .cards .card{display:flex;flex-direction:column;min-width:0;padding:16px 18px;border-radius:14px;box-shadow:none}
#myc2RecruitmentRoot .cards .card span{display:block;min-height:36px;line-height:18px;font-size:12px;font-weight:500}
#myc2RecruitmentRoot .cards .card strong{margin:8px 0 0;font-size:28px;line-height:32px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.02em}

/* V664: Recruitment context navigation stays beside the main workspace. */
@media(min-width:751px){
 body[data-workspace="management"] .myc2-unified-layout.has-module:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])){grid-template-columns:195px 195px minmax(0,1fr);align-items:start}
 body[data-workspace="management"] .myc2-unified-layout.has-module:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-context-sidebar{grid-column:2;grid-row:1;width:100%;box-sizing:border-box;min-width:0}
 body[data-workspace="management"] .myc2-unified-layout.has-module:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-main-panel{grid-column:3;grid-row:1;min-width:0}
}
@media(min-width:751px) and (max-width:1100px){
 body[data-workspace="management"] .myc2-unified-layout.has-module:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])){grid-template-columns:180px 180px minmax(0,1fr);gap:14px}
}
@media(max-width:750px){
 body[data-workspace="management"] .myc2-unified-layout.has-module:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-context-sidebar{position:static;grid-column:1;width:100%;box-sizing:border-box}
 body[data-workspace="management"] .myc2-unified-layout.has-module:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-context-sidebar nav{display:flex;flex-wrap:wrap}
}

/* Match the navy management navigation's measured type and spacing. */
body[data-workspace="management"] .myc2-unified-layout:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-context-sidebar{padding:14px}
body[data-workspace="management"] .myc2-unified-layout:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-context-sidebar button,
body[data-workspace="management"] .myc2-unified-layout:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-context-sidebar button.is-active{font-family:inherit;font-size:14px;font-weight:400;line-height:normal;padding:12px;border-radius:10px}
body[data-workspace="management"] .myc2-unified-layout:has(.myc2-module-container[data-module-key="recruitment"]:not([hidden])) .myc2-context-sidebar h3{font-size:14px;font-weight:600;line-height:1.4;margin:0 0 14px;padding:12px 12px 0}

/* Simple team review states: colour supports the explicit text labels. */
#myc2RecruitmentRoot tr[data-review-state="unseen"]{background:#fff8f8}
#myc2RecruitmentRoot tr[data-review-state="seen"]{background:#fffcf4}
#myc2RecruitmentRoot tr[data-review-state="categorised"]{background:#f7fbf8}
#myc2RecruitmentRoot .candidate-review-badge{display:inline-block;border-radius:7px;padding:5px 8px;font-size:12px;line-height:1.35;font-weight:600;white-space:normal}
#myc2RecruitmentRoot .candidate-review-badge.is-unseen{background:#f9e7e8;color:#963a43}
#myc2RecruitmentRoot .candidate-review-badge.is-seen{background:#fff0cc;color:#805b17}
#myc2RecruitmentRoot .candidate-review-badge.is-categorised{background:#e5f2e9;color:#306944}
#myc2RecruitmentRoot .candidate-contacted{display:block;font-size:11px;font-weight:500;color:#64748b;margin-top:4px}
.candidate-cv-dialog{width:min(1100px,calc(100vw - 32px));max-width:none;height:90vh;max-height:94vh;border:1px solid #d4dfe9;border-radius:14px;padding:18px;background:#fff;color:#17354a}
.candidate-cv-dialog::backdrop{background:#10243bb3}
.candidate-cv-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px}
.candidate-cv-dialog p{font-size:13px;color:#52677b}
.candidate-cv-dialog iframe{width:100%;height:calc(100% - 90px);border:1px solid #e1e7ee;border-radius:8px}

#myc2RecruitmentRoot .candidate-review-badge{display:table;margin-top:6px}
.candidate-cv-dialog{display:none;flex-direction:column}
.candidate-cv-dialog[open]{display:flex}
.candidate-cv-toolbar button,.candidate-cv-controls button{font:inherit;font-size:13px;padding:9px 12px;border:1px solid #cfdae5;border-radius:8px;background:#f8fafc;color:#23465d;cursor:pointer}
.candidate-cv-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:13px}
.candidate-cv-controls button:disabled{opacity:.45;cursor:default}
.candidate-cv-pages{flex:1;min-height:0;overflow:auto;background:#edf1f5;border:1px solid #dce4ec;border-radius:8px;padding:16px}
.candidate-cv-pages canvas{display:block;background:#fff;box-shadow:0 2px 9px #10243b1a;margin:0 auto}

/* Saved draft state and non-blocking action review, scoped to Recruitment. */
#correspondence .mail-composer-state{flex-basis:100%;margin:8px 0 0;font-size:13px;font-weight:600;color:#1c5260}
#correspondence .mail-send-help{flex-basis:100%;margin:4px 0 0;font-size:13px;line-height:1.5;color:#526a7b}
.mail-review-dialog{width:min(600px,calc(100vw - 40px));max-height:85vh;overflow:auto;border:1px solid #cddde3;border-radius:18px;padding:28px;color:#18384b;background:#fff;box-shadow:0 20px 70px #10263833}
.mail-review-dialog::backdrop{background:#10263880}.mail-review-dialog h3{margin:0 0 14px;font-size:20px}.mail-review-dialog p{white-space:pre-wrap;line-height:1.6}
.mail-review-body{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.6;max-height:35vh;overflow:auto;background:#f5f8fa;border-radius:10px;padding:16px}
.mail-review-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.mail-review-actions .btn{border:1px solid #c7d9e1;border-radius:9px;background:white;color:#214e60;padding:10px 18px;font:inherit;font-weight:600;cursor:pointer}.mail-review-actions .primary{background:#087966;border-color:#087966;color:white}.mail-review-actions .btn:focus-visible{outline:3px solid #88b9dc;outline-offset:3px}
#correspondence .buttons{flex-wrap:wrap;justify-content:flex-start}
#correspondence .buttons>.btn{white-space:nowrap}
#correspondence .mail-composer-state,#correspondence .mail-send-help{order:2}

#correspondence .btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;filter:saturate(.25)}

#correspondence .mail-reply-preview{flex-basis:100%;width:100%;order:3;box-sizing:border-box;background:#f5f8fa;border:1px solid #d5e2e8;border-radius:12px;padding:16px;margin-top:10px}
#correspondence .mail-reply-preview h4{margin:0 0 10px}#correspondence .mail-reply-preview p{font-size:14px;line-height:1.6}
