/* SELACV GRH V9.7.0 — Recrutement : pastilles des candidats (V9.7.2 : 4 par ligne, 3 sous 1 500 px) */
html:not(#_r1):not(#_r2) #recruitmentView .recruitment-list.rc-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:stretch}
@media(max-width:1500px){html:not(#_r1):not(#_r2) #recruitmentView .recruitment-list.rc-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card{--rc:#4f6fd8;--rc-soft:#eef2ff;position:relative;display:flex!important;flex-direction:column;gap:0!important;padding:0!important;overflow:hidden;border:1px solid #dfe5f2!important;border-top:5px solid var(--rc)!important;border-left:1px solid #dfe5f2!important;border-radius:18px!important;background:#fff!important;box-shadow:0 6px 18px rgba(34,53,111,.06)!important;transition:box-shadow .15s,transform .15s}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card:hover{box-shadow:0 14px 30px rgba(34,53,111,.13)!important;transform:translateY(-2px)}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card.main-list{--rc:#2f9e5b;--rc-soft:#e5f6ec}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card.complementary-list{--rc:#d99a1e;--rc-soft:#fff3d9}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card.rejected{--rc:#c75b5b;--rc-soft:#fbecec;opacity:.82}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card.hired{--rc:#0f9f8a;--rc-soft:#ddf6f1}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card.hired::after{content:"🎉 En poste";position:absolute;top:12px;right:12px;padding:3px 10px;border-radius:99px;background:#0f9f8a;color:#fff;font-size:11px;font-weight:900}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card>div:first-child{display:flex;flex-direction:column;gap:10px;flex:1;padding:18px 18px 14px}
/* En-tête : avatar + nom + pastilles */
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-title{display:grid!important;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
html:not(#_r1):not(#_r2) #recruitmentView .rc-avatar{position:relative;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:linear-gradient(140deg,var(--rc),color-mix(in srgb,var(--rc) 55%,#1b2a55));color:#fff;font-size:19px;font-weight:900;letter-spacing:.02em;box-shadow:0 0 0 4px var(--rc-soft)}
html:not(#_r1):not(#_r2) #recruitmentView .rc-avatar[data-medal]:not([data-medal=""])::after{content:attr(data-medal);position:absolute;right:-6px;bottom:-6px;font-size:22px;line-height:1}
html:not(#_r1):not(#_r2) #recruitmentView .rc-who{display:grid;gap:6px;min-width:0}
html:not(#_r1):not(#_r2) #recruitmentView .rc-who h3{margin:0!important;overflow:hidden;color:#16244d!important;font-size:17px!important;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
html:not(#_r1):not(#_r2) #recruitmentView .rc-badges{display:flex;flex-wrap:wrap;gap:5px}
html:not(#_r1):not(#_r2) #recruitmentView .rc-badges .recruitment-badge,html:not(#_r1):not(#_r2) #recruitmentView .rc-badges .recruitment-list-badge{margin:0!important;padding:3px 9px!important;border-radius:99px!important;font-size:11px!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-badges .recruitment-badge:first-child{background:var(--rc-soft)!important;color:color-mix(in srgb,var(--rc) 70%,#000)!important}
/* Coordonnées */
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-meta{display:grid!important;gap:5px!important;margin:0!important;color:#4a5878!important;font-size:12.5px!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-meta span{display:flex;gap:7px;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-meta span[data-rc-ico]:not([data-rc-ico=""])::before{content:attr(data-rc-ico);flex:none;width:18px;text-align:center}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-meta.rc-opinion{padding:9px 11px;border-radius:10px;background:#f6f8fd;color:#34405f!important;font-style:italic}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-meta.rc-opinion span{white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
/* Note */
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-global-score{display:flex!important;align-items:center;gap:8px;width:max-content;max-width:100%;margin:0!important;padding:7px 12px!important;border-radius:12px!important;background:#fff8e6!important;color:#7a5500!important;font-size:12.5px!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-global-score.empty{background:#f1f3f8!important;color:#6b7590!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-stars{position:relative;display:inline-block;color:#e5d3a3;font-size:16px;letter-spacing:1px;line-height:1}
html:not(#_r1):not(#_r2) #recruitmentView .rc-stars::before{content:"★★★★★";position:absolute;inset:0;width:var(--p);overflow:hidden;color:#f0a500;white-space:nowrap}
html:not(#_r1):not(#_r2) #recruitmentView .rc-score b{color:#5c3f00;font-size:15px}
html:not(#_r1):not(#_r2) #recruitmentView .rc-score small{color:#8a6a1f;font-weight:700}
/* Pièces jointes */
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-files{display:flex!important;flex-wrap:wrap;gap:6px!important;margin:0!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-files .btn{min-height:32px;padding:5px 11px!important;border-radius:99px!important;font-size:12px!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-files .recruitment-badge{padding:5px 10px!important;border-radius:99px!important;background:#f1f3f8!important;color:#8a93a8!important;font-size:11px!important;text-decoration:line-through}
/* Pied : classement + actions */
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-card-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;min-width:0!important;margin-top:auto;padding:12px 18px 16px;border-top:1px solid #eef1f8;background:#fafbfe}
html:not(#_r1):not(#_r2) #recruitmentView .rc-class{grid-column:1/-1;display:grid;gap:4px;margin:0}
html:not(#_r1):not(#_r2) #recruitmentView .rc-class>span{color:#6b7590;font-size:11px;font-weight:800}
html:not(#_r1):not(#_r2) #recruitmentView .rc-class select{width:100%;height:38px;border-radius:10px}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-card-actions .btn{width:100%;min-height:38px;justify-content:center;border-radius:10px!important;font-weight:800}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-card-actions .evaluate-btn{background:#fff6dc!important;border-color:#f0cf7c!important;color:#6d4d00!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-card-actions .btn:only-of-type{grid-column:1/-1}
@media(max-width:1180px){html:not(#_r1):not(#_r2) #recruitmentView .recruitment-list.rc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){html:not(#_r1):not(#_r2) #recruitmentView .recruitment-list.rc-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card{transition:none}html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card:hover{transform:none}}
/* Thème sombre */
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card{border-color:rgba(143,181,240,.24)!important;border-top:5px solid var(--rc)!important;background:linear-gradient(160deg,#12305f,#0b2350)!important;box-shadow:none!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card.rejected{background:linear-gradient(160deg,#3d1f33,#2a1730)!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card.hired{background:linear-gradient(160deg,#11483f,#0a2c41)!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-who h3{color:#eef4ff!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-meta{color:#bccbe4!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-meta.rc-opinion{background:rgba(255,255,255,.06);color:#d7e2f5!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-avatar{box-shadow:0 0 0 4px rgba(255,255,255,.08)}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-card-actions{border-top-color:rgba(143,181,240,.18);background:rgba(0,0,0,.14)}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-class>span{color:#9fb3d6}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-score b{color:#ffe08a}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-score small{color:#e9c86c}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-stars{color:rgba(255,224,138,.25)}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-files .recruitment-badge{background:rgba(255,255,255,.06)!important;color:#8fa0bf!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-global-score{border:1px solid rgba(242,195,87,.3)!important;background:rgba(188,132,28,.22)!important;color:#ffdc7d!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-global-score.empty{border-color:rgba(143,181,240,.22)!important;background:rgba(81,112,160,.2)!important;color:#c4d2e8!important}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-grid .recruitment-card-actions .evaluate-btn{border-color:rgba(242,195,87,.4)!important;background:rgba(188,132,28,.25)!important;color:#ffe08a!important}
/* V9.7.1 — motif du rejet, « Ma note », rappel de confidentialité */
html:not(#_r1):not(#_r2) #recruitmentView .recruitment-reject-reason{display:grid;gap:3px;padding:10px 12px;border:1px solid #f1c4c4;border-left:4px solid #c75b5b;border-radius:10px;background:#fdf1f1;color:#7a2626;font-size:12.5px}
html:not(#_r1):not(#_r2) #recruitmentView .recruitment-reject-reason b{font-size:11px;letter-spacing:.04em;text-transform:uppercase}
html:not(#_r1):not(#_r2) #recruitmentView .recruitment-reject-reason.missing span{font-style:italic;opacity:.75}
html:not(#_r1):not(#_r2) #recruitmentView .rc-score em{padding:2px 8px;border-radius:99px;background:#fff;color:#7a5500;font-size:11px;font-style:normal;font-weight:900}
html:not(#_r1):not(#_r2) #recruitmentView .rc-privacy{margin:0 0 12px;padding:10px 14px;border:1px solid #d7e0f5;border-radius:12px;background:#f3f6ff;color:#2c3c6b;font-size:13px}
.reject-reason-dialog{width:min(560px,94vw);border:0;border-radius:16px;padding:0;box-shadow:0 24px 60px rgba(20,30,60,.3)}
.reject-reason-dialog .modal-head{padding:16px 20px;border-bottom:1px solid #eef1f8}.reject-reason-dialog .modal-head h2{margin:0;color:#fff}
.reject-reason-dialog .modal-body{display:grid;gap:12px;padding:16px 20px}.reject-reason-dialog .modal-body p{margin:0;font-weight:800;color:#16244d}
.reject-reason-chips{display:flex;flex-wrap:wrap;gap:6px}.reject-reason-chips .btn{padding:6px 11px;border-radius:99px;font-size:12px}
.reject-reason-dialog textarea{width:100%;box-sizing:border-box}
.reject-reason-error{color:#b42318!important;font-weight:700}
.reject-reason-dialog .actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px 18px}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .recruitment-reject-reason{border-color:rgba(255,128,128,.35);background:rgba(199,55,55,.16);color:#ffc9c9}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-privacy{border-color:rgba(143,181,240,.25);background:rgba(68,115,190,.16);color:#d6e3fa}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-score em{background:rgba(0,0,0,.25);color:#ffe08a}
html[data-theme="dark"] .reject-reason-dialog{background:#0e2c60;color:#e8f1ff}
html[data-theme="dark"] .reject-reason-dialog .modal-body p{color:#e8f1ff}
/* V9.7.5 — respecter le masquage des filtres (attribut hidden posé par recruitment-openings.js) */
html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>.recruitment-card[hidden],html:not(#_r1):not(#_r2) #recruitmentView .rc-grid>[hidden]{display:none!important}

/* V9.16.0 : filtre « mon évaluation » en pastilles */
/* V9.16.1 : alignement — recherche, catégorie et pastilles sur une seule ligne, pastilles centrées verticalement et sans retour à la ligne */
html:not(#_r1):not(#_r2) #recruitmentView .recruitment-toolbar:has(#recruitmentEvalPills){display:grid!important;grid-template-columns:minmax(220px,1.3fr) minmax(180px,1fr) auto!important;align-items:center!important;gap:12px!important}
html:not(#_r1):not(#_r2) #recruitmentView #recruitmentMyEvaluationFilter[hidden]{display:none!important}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pills{display:flex;flex-wrap:nowrap;gap:8px;align-items:center;justify-self:end}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill{white-space:nowrap}
@media(max-width:1250px){html:not(#_r1):not(#_r2) #recruitmentView .recruitment-toolbar:has(#recruitmentEvalPills){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pills{grid-column:1/-1;justify-self:start;flex-wrap:wrap}}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:6px 12px;border:1px solid #c9d5ee;border-radius:999px;background:#fff;color:#28406d;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill b{min-width:22px;padding:1px 7px;border-radius:999px;background:#eef2ff;color:#2f4fb3;font-size:12px;text-align:center}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill:hover{border-color:#4f6fd8;background:#f5f7ff}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill:focus-visible{outline:3px solid #4f6fd8;outline-offset:2px}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill.is-on{border-color:#2f4fb3;background:#2f4fb3;color:#fff}
html:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill.is-on b{background:rgba(255,255,255,.22);color:#fff}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill{border-color:rgba(143,181,240,.3);background:#0f2a55;color:#dbe6fb}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill b{background:rgba(143,181,240,.18);color:#cfe0ff}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill:hover{border-color:#8fb5f0;background:#143466}
html[data-theme="dark"]:not(#_r1):not(#_r2) #recruitmentView .rc-eval-pill.is-on{border-color:#8fb5f0;background:#3f66c9;color:#fff}
