/* Candidate ATS workspace — compact five-stage board with a dedicated action drawer. */
.module-recruitment [data-tab-panel="ats"]{background:#06182d;color:#eef7ff}
.module-recruitment .ats-commandbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:20px 22px 16px;border:0;background:#06182d}
.module-recruitment .ats-commandbar>div:first-child{display:block}
.module-recruitment .ats-commandbar small{display:block;margin-bottom:5px;color:#28dbc6;font-size:.68rem;font-weight:900;letter-spacing:.14em}
.module-recruitment .ats-commandbar h2{margin:0;color:#f4f8ff;font-size:1.45rem}
.module-recruitment .ats-commandbar p{margin:5px 0 0;color:#9bb1c7;font-size:.8rem}
.module-recruitment .ats-view-switch{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.module-recruitment .ats-view-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid #2a4d6a;border-radius:9px;background:#0a223b;color:#cbd9e7;font-size:.76rem;font-weight:750}
.module-recruitment .ats-view-switch button svg{width:16px;height:16px}
.module-recruitment .ats-view-switch button.is-active{border-color:#34d7dc;background:#124f70;color:#fff;box-shadow:0 0 0 2px rgba(52,215,220,.12)}
.module-recruitment .ats-filter-panel{display:grid;grid-template-columns:minmax(230px,1fr) minmax(190px,.45fr);gap:12px;margin:0 22px 4px;padding:13px;border:1px solid #24445f;border-radius:12px;background:#092139}
.module-recruitment .ats-filter-panel[hidden]{display:none!important}
.module-recruitment .ats-filter-panel label{display:grid;gap:6px;color:#9fb3c7;font-size:.72rem;font-weight:750}
.module-recruitment .ats-filter-panel :is(input,select){box-sizing:border-box;width:100%;height:40px;padding:8px 11px;border:1px solid #315674;border-radius:8px;background:#06172a;color:#eef7ff;font:inherit}

.module-recruitment .ats-pipeline-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;padding:0 12px 18px}
.module-recruitment .ats-pipeline-layout[hidden]{display:none!important}
.module-recruitment .ats-pipeline-layout.has-candidate-drawer{grid-template-columns:minmax(0,1fr) minmax(300px,330px)}
.module-recruitment .ats-board{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr));gap:9px;width:100%;min-width:0;max-width:none;padding:8px 0 4px;overflow-x:auto;overscroll-behavior-x:contain}
.module-recruitment .ats-column{display:flex;min-width:0;min-height:510px;border:1px solid #214660;border-radius:13px;background:#071d33}
.module-recruitment .ats-column>header{padding:12px 11px;border-bottom:1px solid #214660;background:#0a233c;border-radius:13px 13px 0 0}
.module-recruitment .ats-column>header span{gap:8px;color:#edf6ff;font-size:.76rem;line-height:1.2;text-transform:none}
.module-recruitment .ats-column>header span b{min-width:22px;height:22px;border-radius:7px;background:#123e5d;color:#ffd056;font-size:.68rem}
.module-recruitment .ats-column>div{display:grid;align-content:start;gap:9px;min-height:390px;padding:9px}
.module-recruitment .ats-card{position:relative;display:block;min-width:0;padding:11px;border:1px solid #27516c;border-radius:11px;background:#0b2a42;box-shadow:none;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.module-recruitment .ats-card:hover,.module-recruitment .ats-card:focus-visible{border-color:#41cfe0;outline:0;transform:translateY(-1px)}
.module-recruitment .ats-card.is-selected{border-color:#37ead6;box-shadow:0 0 0 2px rgba(55,234,214,.2),0 12px 28px rgba(0,0,0,.25)}
.module-recruitment .ats-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.module-recruitment .ats-card-top>span{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#4a86c8;color:#fff;font-size:.7rem;font-weight:900}
.module-recruitment .ats-card-top>small{display:grid;width:24px;height:24px;place-items:center;margin:0;color:#9cb5ca}
.module-recruitment .ats-card-top svg{width:16px;height:16px}
.module-recruitment .ats-card h3{margin:0;color:#fff;font-size:.78rem;line-height:1.25}
.module-recruitment .ats-card>p{min-height:30px;margin:4px 0 9px;color:#9fb4c8;font-size:.67rem;line-height:1.35}
.module-recruitment .ats-card-status{display:inline-flex;padding:4px 8px;border:1px solid #278354;border-radius:999px;background:#125d3c;color:#8af0b5;font-size:.61rem;font-weight:800}
.module-recruitment .ats-applied-ledger{cursor:default}
.module-recruitment .ats-applied-ledger>b{display:inline-flex;margin-top:6px;padding:4px 7px;border-radius:999px;background:#154f38;color:#83e7ad;font-size:.62rem}
.module-recruitment .ats-card-details[hidden]{display:none!important}
.module-recruitment .ats-column-empty{display:grid!important;min-height:270px!important;place-content:center;justify-items:center;gap:7px;padding:18px!important;color:#89a2b8;text-align:center}
.module-recruitment .ats-column-empty svg{width:34px;height:34px;color:#6b879e}
.module-recruitment .ats-column-empty b{color:#dce8f2;font-size:.76rem}
.module-recruitment .ats-column-empty small{max-width:145px;font-size:.64rem;line-height:1.45}
.module-recruitment .ats-drop,.module-recruitment .ats-add-candidate{box-sizing:border-box;display:flex;width:calc(100% - 18px);min-height:35px;align-items:center;justify-content:center;gap:6px;margin:auto 9px 9px;padding:7px;border:1px solid #315873;border-radius:8px;background:#09223a;color:#a9bdce;font:inherit;font-size:.68rem}
.module-recruitment .ats-add-candidate{cursor:pointer}.module-recruitment .ats-add-candidate svg{width:15px;height:15px}

.module-recruitment .ats-candidate-drawer{position:sticky;top:12px;display:block;max-height:calc(100vh - 145px);overflow:auto;border:1px solid #2b526e;border-radius:15px;background:#08223a;box-shadow:0 18px 45px rgba(0,0,0,.28)}
.module-recruitment .ats-candidate-drawer[hidden]{display:none!important}
.module-recruitment .ats-candidate-drawer>header{display:grid;grid-template-columns:42px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:15px;border-bottom:1px solid #294a64}
.module-recruitment .ats-drawer-avatar{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#357bc0;color:#fff;font-size:.8rem;font-weight:900}
.module-recruitment .ats-candidate-drawer h3{margin:0;color:#fff;font-size:.95rem}.module-recruitment .ats-candidate-drawer header p{margin:3px 0;color:#9fb4c7;font-size:.7rem}
.module-recruitment .ats-candidate-drawer header b{display:inline-flex;width:max-content;padding:3px 7px;border-radius:999px;background:#185b40;color:#8ce9b4;font-size:.58rem}
.module-recruitment .ats-candidate-drawer header>button{display:grid;width:32px;height:32px;place-items:center;padding:0;border:1px solid #31546e;border-radius:8px;background:#0a2944;color:#d5e4ef;cursor:pointer}.module-recruitment .ats-candidate-drawer header>button svg{width:17px;height:17px}
.module-recruitment .ats-candidate-drawer>nav{display:flex;gap:4px;padding:0 11px;border-bottom:1px solid #294a64;overflow-x:auto}
.module-recruitment .ats-candidate-drawer>nav :is(button,span){display:block;padding:11px 8px;border:0;border-bottom:2px solid transparent;background:transparent;color:#9fb1c2;font:inherit;font-size:.65rem;white-space:nowrap}
.module-recruitment .ats-candidate-drawer>nav button.is-active{border-bottom-color:#33d7d4;color:#fff}
.module-recruitment .ats-candidate-drawer>section{padding:13px}
.module-recruitment .ats-candidate-drawer>footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;padding:10px 13px;border-top:1px solid #294a64;background:#08223a}
.module-recruitment .ats-candidate-drawer>footer button{min-height:36px;padding:7px 13px;border:1px solid #315873;border-radius:8px;background:#0a2944;color:#dce8f2}
.module-recruitment .ats-candidate-drawer .ats-card-details{display:grid;gap:12px}
.module-recruitment .ats-drawer-contact{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #284c67;border-radius:9px;background:#071b30;color:#c8d8e5;font-size:.72rem;overflow-wrap:anywhere}.module-recruitment .ats-drawer-contact svg{width:17px;height:17px;color:#43cddd}
.module-recruitment .ats-candidate-drawer :is(.ats-resume,.ats-stage-form,.specialist-review,.resume-intake-edit){margin:0;padding:11px;border:1px solid #294e69;border-radius:10px;background:#0a2943}
.module-recruitment .ats-candidate-drawer .ats-resume{display:grid;gap:8px}.module-recruitment .ats-candidate-drawer .ats-resume :is(a,span,label){color:#bfe7f4;font-size:.68rem;overflow-wrap:anywhere}
.module-recruitment .ats-candidate-drawer .ats-stage-form label{display:grid;gap:6px;color:#9eb3c6;font-size:.68rem}
.module-recruitment .ats-candidate-drawer .ats-stage-form select{box-sizing:border-box;width:100%;height:40px;margin:0;border:1px solid #39708d;border-radius:8px;background:#06182d;color:#eef7ff}
.module-recruitment .ats-candidate-drawer .specialist-review{display:grid;gap:8px}.module-recruitment .ats-candidate-drawer .specialist-review :is(button,a){box-sizing:border-box;width:100%;min-height:38px;padding:8px 10px;border:1px solid #2f718a;border-radius:8px;background:#10435d;color:#dff8ff;text-align:center}
.module-recruitment .ats-candidate-drawer .resume-intake-delete{margin:0;padding-top:12px;border-top:1px solid #294e69}

/* All ATS forms open in the top layer, centered and independently scrollable. */
.module-recruitment dialog.recruitment-dialog{position:fixed!important;inset:50% auto auto 50%!important;z-index:500!important;box-sizing:border-box;width:min(760px,calc(100vw - 32px))!important;max-width:760px!important;max-height:min(88vh,820px)!important;margin:0!important;padding:0!important;overflow:auto!important;transform:translate(-50%,-50%)!important;border:1px solid #355d79!important;border-radius:16px!important;background:#071a30!important;color:#eef7ff!important;box-shadow:0 28px 90px rgba(0,0,0,.62)!important}
.module-recruitment dialog.recruitment-dialog::backdrop{background:rgba(1,7,19,.78)!important;backdrop-filter:blur(4px)}
.module-recruitment dialog.recruitment-dialog>form{display:block;min-height:0}
.module-recruitment dialog.recruitment-dialog>form>header,.module-recruitment dialog.recruitment-dialog>header{position:sticky;top:0;z-index:2;margin:0!important;padding:17px 19px!important;border-bottom:1px solid #294a64!important;background:#0a233d!important}
.module-recruitment dialog.recruitment-dialog>form>:not(header):not(footer){margin-inline:18px}
.module-recruitment dialog.recruitment-dialog>form>footer,.module-recruitment dialog.recruitment-dialog>footer{position:sticky;bottom:0;z-index:2;margin:0!important;padding:13px 18px!important;border-top:1px solid #294a64!important;background:#0a233d!important}
.module-recruitment dialog.recruitment-dialog :is(input,select,textarea){box-sizing:border-box;min-height:42px;padding:9px 11px;border:1px solid #345c78;border-radius:8px;background:#06172a;color:#eef7ff}
.module-recruitment dialog.recruitment-dialog textarea{min-height:105px;resize:vertical}

html[data-theme=light] .module-recruitment [data-tab-panel="ats"]{background:#f6f8fc;color:#102747}
html[data-theme=light] .module-recruitment .ats-commandbar{background:#f6f8fc}html[data-theme=light] .module-recruitment .ats-commandbar h2{color:#102747}html[data-theme=light] .module-recruitment .ats-commandbar p{color:#64748b}
html[data-theme=light] .module-recruitment .ats-view-switch button,html[data-theme=light] .module-recruitment .ats-filter-panel{background:#fff;color:#31526f;border-color:#d6e1ec}
html[data-theme=light] .module-recruitment .ats-view-switch button.is-active{background:#eaf3fd;color:#1f63b5;border-color:#2f79ca}
html[data-theme=light] .module-recruitment .ats-filter-panel :is(input,select){background:#fff;color:#102747;border-color:#cbd9e6}
html[data-theme=light] .module-recruitment .ats-column{background:#fff;border-color:#dbe5ef}html[data-theme=light] .module-recruitment .ats-column>header{background:#f3f7fb;border-color:#dbe5ef}html[data-theme=light] .module-recruitment .ats-column>header span{color:#183553}
html[data-theme=light] .module-recruitment .ats-card{background:#f8fbfe;color:#102747;border-color:#cbdbe8}html[data-theme=light] .module-recruitment .ats-card h3{color:#102747}html[data-theme=light] .module-recruitment .ats-card>p{color:#64748b}
html[data-theme=light] .module-recruitment .ats-column-empty b{color:#29445e}html[data-theme=light] .module-recruitment .ats-drop,html[data-theme=light] .module-recruitment .ats-add-candidate{background:#fff;color:#31526f;border-color:#cad9e6}
html[data-theme=light] .module-recruitment .ats-candidate-drawer{background:#fff;color:#102747;border-color:#c9d9e7;box-shadow:0 18px 45px rgba(16,39,71,.16)}html[data-theme=light] .module-recruitment .ats-candidate-drawer h3{color:#102747}html[data-theme=light] .module-recruitment .ats-candidate-drawer>footer,html[data-theme=light] .module-recruitment .ats-candidate-drawer>header{background:#f8fbfe;border-color:#d8e3ed}html[data-theme=light] .module-recruitment .ats-candidate-drawer :is(.ats-resume,.ats-stage-form,.specialist-review,.resume-intake-edit),html[data-theme=light] .module-recruitment .ats-drawer-contact{background:#f7fafc;color:#29445e;border-color:#d7e2ec}
html[data-theme=light] .module-recruitment dialog.recruitment-dialog{background:#fff!important;color:#102747!important;border-color:#c9d7e5!important;box-shadow:0 28px 90px rgba(16,39,71,.3)!important}html[data-theme=light] .module-recruitment dialog.recruitment-dialog>form>header,html[data-theme=light] .module-recruitment dialog.recruitment-dialog>form>footer,html[data-theme=light] .module-recruitment dialog.recruitment-dialog>header,html[data-theme=light] .module-recruitment dialog.recruitment-dialog>footer{background:#f7fafe!important;border-color:#d7e2ec!important}html[data-theme=light] .module-recruitment dialog.recruitment-dialog :is(input,select,textarea){background:#fff!important;color:#102747!important;border-color:#cbd9e6!important}

@media(max-width:1280px){.module-recruitment .ats-pipeline-layout.has-candidate-drawer{grid-template-columns:minmax(0,1fr)}.module-recruitment .ats-candidate-drawer{position:fixed;z-index:280;top:82px;right:18px;bottom:18px;width:min(360px,calc(100vw - 36px));max-height:none}.module-recruitment .ats-board{grid-template-columns:repeat(5,190px)}}
@media(max-width:760px){.module-recruitment .ats-commandbar{align-items:stretch;flex-direction:column;padding:16px}.module-recruitment .ats-view-switch{justify-content:flex-start}.module-recruitment .ats-criteria-button{display:none!important}.module-recruitment .ats-filter-panel{grid-template-columns:1fr;margin-inline:16px}.module-recruitment .ats-pipeline-layout{padding-inline:8px}.module-recruitment .ats-board{grid-template-columns:repeat(5,82vw)}.module-recruitment .ats-candidate-drawer{top:70px;right:10px;bottom:10px;width:calc(100vw - 20px)}.module-recruitment dialog.recruitment-dialog{width:calc(100vw - 20px)!important;max-height:92vh!important}}
