.agency-candidates{display:grid;gap:7px}.agency-candidates-head,.agency-candidates-tools,.agency-candidate-title,.agency-candidate-contact,.agency-candidate-actions,.agency-candidates-pages{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.agency-candidates-head{justify-content:space-between}.agency-candidates-head h3,.agency-candidate-dialog h3{margin:0;font-size:15px}.agency-candidates-head p,.agency-candidates p{margin:2px 0;font-size:11px;line-height:1.3}.agency-candidate-sources{font-size:11px;border:1px solid var(--line,#ded4ca);border-radius:7px;padding:5px 7px}.agency-candidate-sources summary{cursor:pointer}.agency-candidate-sources>div{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(210px,1.2fr);gap:3px 10px;padding:5px 0;border-top:1px solid var(--line,#ded4ca)}.agency-candidate-sources small,.agency-candidate-sources strong{grid-column:1/-1}.agency-candidate-sources strong,.agency-candidates-error{color:#a33a26}.agency-candidates-tools label{display:grid;gap:2px;font-size:10px}.agency-candidates-tools select,.agency-candidates-tools input,.agency-candidate-dialog input:not([type=checkbox]),.agency-candidate-dialog select,.agency-candidate-dialog textarea{box-sizing:border-box;min-height:30px;border:1px solid var(--line,#d8cec4);border-radius:6px;background:var(--card,#fff);color:inherit;padding:5px 7px;font:inherit}.agency-candidates-search{flex:1 1 260px}.agency-candidates-search input{width:100%}.agency-candidates-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.agency-candidate-card{min-width:0;border:1px solid var(--line,#ded4ca);border-radius:7px;padding:7px;overflow-wrap:anywhere}.agency-candidate-title{justify-content:space-between}.agency-candidate-title>span{font-size:9px;padding:2px 5px;border-radius:10px;background:#f2e8de}.agency-candidate-title .is-accepted{background:#dff4e9;color:#17663f}.agency-candidate-title .is-rejected{background:#f7e2df;color:#983c2e}.agency-candidate-title .is-postponed{background:#f4edd6;color:#755a12}.agency-candidate-contact{font-size:10px;margin:3px 0}.agency-candidate-card details{font-size:10px}.agency-candidate-card summary{cursor:pointer}.agency-candidate-card details p{font-size:10px}.agency-candidate-actions{margin-top:6px}.agency-candidate-actions button,.agency-candidate-actions a{min-height:27px;padding:4px 7px;font-size:10px}.agency-candidate-actions small,.agency-candidate-note{font-size:10px}.agency-candidates-pages{justify-content:flex-end;font-size:10px}.agency-candidates-empty{grid-column:1/-1}.agency-candidate-dialog{box-sizing:border-box;width:min(500px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;border:1px solid #cdbba8;border-radius:9px;padding:10px;color:#2b241e;background:#fff}.agency-candidate-dialog::backdrop{background:#0007}.agency-candidate-dialog form{display:grid;gap:7px}.agency-candidate-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}.agency-candidate-dialog header button{min-width:30px;min-height:30px}.agency-candidate-dialog label{display:grid;gap:3px;font-size:11px}.agency-candidate-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px}.agency-candidate-confirm{display:flex!important;align-items:flex-start;gap:6px}.agency-candidate-confirm input{width:16px;height:16px;margin:0}.agency-candidate-hint{color:#756457}.agency-candidate-dialog [hidden]{display:none!important}
@media(max-width:760px){.agency-candidates-list{grid-template-columns:1fr}.agency-candidate-fields{grid-template-columns:1fr}.agency-candidate-sources>div{grid-template-columns:1fr}.agency-candidates-head h3,.agency-candidate-dialog h3{font-size:14px}.agency-candidates-tools input:focus,.agency-candidate-dialog input:focus,.agency-candidate-dialog textarea:focus{font-size:16px}.agency-candidate-dialog{padding:8px}}
html[data-theme=dark] .agency-candidate-dialog{background:#29231f;color:#f4ece5;border-color:#5f4e40}html[data-theme=dark] .agency-candidate-dialog input,html[data-theme=dark] .agency-candidate-dialog select,html[data-theme=dark] .agency-candidate-dialog textarea{background:#211b17;color:#f4ece5;border-color:#665242}html[data-theme=dark] .agency-candidate-title>span{background:#5a4130;color:#f4ece5}

.ac-metrics{display:flex;flex-wrap:wrap;gap:3px 12px;grid-column:1;margin:2px 0}.ac-metrics>span{display:flex;gap:4px;align-items:baseline;font-size:10px;line-height:1.25}.ac-metrics small{font-size:9px;color:var(--muted,#756f69)}.ac-metrics b{font-weight:600}.ac-observations{min-width:0}.ac-observation{border-top:1px solid var(--line,#ded4ca);padding:4px 0}.ac-observation header{display:flex;gap:5px;align-items:baseline;font-size:10px}.ac-observation dl{margin:3px 0}.ac-observation dl>div{display:flex;gap:6px;font-size:10px}.ac-observation dt{min-width:100px}.ac-observation dd{margin:0;overflow-wrap:anywhere}.agency-candidate-card>.agency-candidate-actions{grid-row:1/5}.agency-candidate-card>.ac-observations{grid-column:1/-1}.agency-candidate-card>.ac-observations .ac-metrics{margin:3px 0}
/* Compact source columns and collapsible decision queues. */
.agency-candidates{gap:5px;font-size:10px}.agency-candidates-head h3{font-size:13px}.agency-candidates-head p{font-size:9px;margin:1px 0}.agency-candidates-head>button{min-height:24px;padding:3px 7px;font-size:9px}
.agency-candidate-sources{padding:3px 6px;font-size:9px}.agency-candidate-sources>div{padding:3px 0;gap:2px 8px}
.agency-candidates-tools{gap:5px}.agency-candidates-tools>span{font-size:9px;color:var(--muted,#756f69)}.agency-candidates-search{flex:1 1 320px}.agency-candidates-tools input{min-height:26px;height:26px;padding:3px 6px;font-size:10px}
.agency-candidates-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:start}
.agency-candidate-column{min-width:0;border:1px solid var(--line,#ded4ca);border-radius:7px;padding:5px;background:var(--card,#fff)}
.agency-candidate-column>header{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:1px 2px 5px}.agency-candidate-column>header div{display:flex;align-items:baseline;gap:6px}.agency-candidate-column>header h4{margin:0;font-size:12px}.agency-candidate-column>header span,.agency-candidate-column>header>b{font-size:8px;color:var(--muted,#756f69);font-weight:500}
.agency-candidate-group{margin-top:4px;border:1px solid var(--line,#ded4ca);border-radius:6px;overflow:hidden}.agency-candidate-group>summary{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:24px;padding:3px 6px;cursor:pointer;background:#f7f3ef;font-size:10px;font-weight:600}.agency-candidate-group>summary b{min-width:18px;padding:1px 4px;border-radius:9px;text-align:center;background:#eee2d7;font-size:8px}.agency-candidate-group.is-pending>summary{background:#fff3ea;color:#a74723}.agency-candidate-group.is-accepted>summary{background:#edf8f2;color:#17663f}.agency-candidate-group-list{display:grid;gap:3px;padding:3px}
.agency-candidate-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:1px 7px;padding:4px 5px;border-radius:5px}.agency-candidate-title{grid-column:1;gap:4px;justify-content:flex-start}.agency-candidate-title>b{font-size:11px;line-height:1.15}.agency-candidate-title>span{font-size:7px;padding:1px 4px}.agency-candidate-contact{grid-column:1;margin:1px 0;gap:4px;font-size:8px;line-height:1.15}.agency-candidate-card>details{grid-column:1;font-size:8px;line-height:1.2}.agency-candidate-card>details p{font-size:8px;line-height:1.2}.agency-candidate-actions{grid-column:2;grid-row:1/4;align-self:center;justify-content:flex-end;margin:0;gap:3px;max-width:220px}.agency-candidate-actions button,.agency-candidate-actions a{min-height:22px;padding:2px 5px;font-size:8px;border-radius:5px}.agency-candidate-actions small{font-size:8px;line-height:1.15}.agency-candidate-note{grid-column:1/-1;margin:2px 0 0!important;font-size:8px!important}.agency-candidates-empty{margin:2px!important;padding:4px;font-size:9px!important;color:var(--muted,#756f69)}
html[data-theme=dark] .agency-candidate-column{background:#29231f}html[data-theme=dark] .agency-candidate-group>summary{background:#352b25;color:#f4ece5}html[data-theme=dark] .agency-candidate-group.is-pending>summary{background:#402c21;color:#ffbc94}html[data-theme=dark] .agency-candidate-group.is-accepted>summary{background:#20382d;color:#a9e4c4}
@media(max-width:900px){.agency-candidates-columns{grid-template-columns:1fr}.agency-candidate-card{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:600px){.agency-candidates-columns{grid-template-columns:1fr}.agency-candidate-card{display:block;padding:6px}.agency-candidate-actions{margin-top:5px;max-width:none;justify-content:flex-start}.agency-candidate-actions button,.agency-candidate-actions a{min-height:36px;padding:6px 8px;font-size:10px}.agency-candidate-title>b{font-size:12px}.agency-candidate-contact,.agency-candidate-card>details,.agency-candidate-card>details p{font-size:10px}.agency-candidate-group>summary{min-height:36px;font-size:11px}.agency-candidates-tools input{min-height:38px;height:38px;font-size:16px}}

/* All source fields stay visible inside the candidate's single disclosure. */
.agency-candidate-card>.ac-observations{grid-column:1/-1}
.ac-observations>.ac-source-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;min-width:0;margin-top:4px;align-items:start}
.ac-observations>.ac-source-columns.is-single{grid-template-columns:minmax(0,1fr)}
.ac-source-column{min-width:0;padding:4px 5px;border:1px solid var(--line,#ded4ca);border-radius:5px}
.ac-source-column>h5{margin:0 0 3px;font-size:10px;line-height:1.2;font-weight:650}
.ac-source-column>.ac-observation{min-width:0;padding:4px 0}
.ac-source-column>.ac-observation header{flex-wrap:wrap;gap:2px 5px;line-height:1.2}
.ac-source-column>.ac-observation header :is(a,.ac-source-title){min-width:0;overflow-wrap:anywhere}
.ac-source-column>.ac-observation header small{flex-shrink:0;font-size:9px;color:var(--muted,#756f69)}
.ac-source-column>.ac-observation dl{margin:3px 0 0}
.ac-source-column>.ac-observation dl>div{display:grid;grid-template-columns:minmax(65px,.8fr) minmax(0,1.2fr);gap:2px 6px;margin:2px 0;font-size:10px;line-height:1.25}
.ac-source-column>.ac-observation dt{min-width:0;overflow-wrap:anywhere;color:var(--muted,#756f69)}
.ac-source-column>.ac-observation dd{min-width:0;margin:0;overflow-wrap:anywhere}
.ac-source-empty{margin:2px 0;font-size:10px;color:var(--muted,#756f69)}
@media(max-width:600px){.ac-observations>.ac-source-columns{grid-template-columns:minmax(0,1fr)}.ac-source-column{padding:4px}.ac-source-column>h5{font-size:11px}}

[data-view="admin-leads"] [data-agency-candidates-count][hidden]{display:none!important}
