:root{--blue:#1976cf;--blue-dark:#0b4f89;--ink:#0d2b49;--muted:#60758b;--line:#dbe6ef;--surface:#fff;--page:#f3f7fb;--orange:#ff6b2c;--green:#31b878;--shadow:0 14px 40px rgba(28,63,92,.09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--page)}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--page)}a{color:inherit}button,input{font:inherit}.crm-header{position:sticky;z-index:50;top:0;min-height:64px;display:flex;align-items:center;gap:20px;padding:0 22px;background:var(--blue);color:#fff;box-shadow:0 4px 16px rgba(13,43,73,.16)}
.crm-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;white-space:nowrap}.crm-brand small{display:block;font-size:9px;opacity:.72}.crm-brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(145deg,#fff,#d9edff);color:var(--blue-dark);font-weight:900;letter-spacing:-1px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
.crm-nav{display:flex;align-self:stretch;align-items:stretch}.crm-nav a{display:flex;align-items:center;padding:0 14px;text-decoration:none;font-size:13px;font-weight:700;border-bottom:3px solid transparent}.crm-nav a:hover,.crm-nav a.is-active{background:rgba(255,255,255,.1);border-bottom-color:#fff}.crm-nav a[aria-disabled=true]{opacity:.7;cursor:default}.crm-header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.crm-user{font-size:13px;font-weight:700}.crm-link-button{border:1px solid rgba(255,255,255,.45);border-radius:8px;background:transparent;color:#fff;padding:7px 11px;cursor:pointer}
.crm-main{width:min(1480px,100%);margin:0 auto;padding:30px 24px 60px}.crm-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}.crm-page-head h1,.crm-panel h2{margin:4px 0 6px}.crm-page-head p{margin:0;color:var(--muted)}.crm-eyebrow{margin:0!important;font-size:10px!important;font-weight:900!important;letter-spacing:.17em;color:#0872b9!important}.crm-foundation-badge{padding:9px 12px;border-radius:999px;background:#e3f3ff;color:#08659e;font-weight:800;font-size:12px;white-space:nowrap}
.crm-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.crm-stat-grid article,.crm-panel{border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.crm-stat-grid article{padding:20px}.crm-stat-grid span{display:block;color:var(--muted);font-size:13px;font-weight:700}.crm-stat-grid strong{display:block;margin-top:8px;font-size:30px}.crm-panel{padding:22px;margin-top:18px}.crm-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}.crm-panel-head>span{font-size:12px;color:var(--muted)}.crm-pipeline{display:grid;grid-template-columns:repeat(9,minmax(115px,1fr));gap:10px;padding-top:16px;overflow-x:auto}.crm-pipeline article{min-width:115px;padding:14px;border-radius:10px;background:#f7fafc;border:1px solid #e4edf4}.crm-pipeline span{display:block;min-height:34px;color:var(--muted);font-size:12px;font-weight:700}.crm-pipeline strong{font-size:23px}.crm-next-steps p{margin-bottom:0;color:var(--muted)}
.crm-guest{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#dff5f7 0,transparent 35%),linear-gradient(150deg,#f7fbfe,#e8f2f9)}.crm-guest>main{width:100%;display:grid;place-items:center}.crm-login-card,.crm-error-card{width:min(440px,100%);padding:34px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(14,54,86,.14)}.crm-login-brand{margin-bottom:20px}.crm-login-card h1,.crm-error-card h1{margin:6px 0 8px}.crm-muted{margin:0 0 24px;color:var(--muted);line-height:1.55}.crm-form{display:grid;gap:16px}.crm-form label{display:grid;gap:7px;font-size:13px;font-weight:800}.crm-form input{width:100%;height:45px;border:1px solid #cbd9e5;border-radius:9px;padding:0 12px;outline:none}.crm-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(25,118,207,.12)}.crm-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:9px;border:0;text-decoration:none;font-weight:900;cursor:pointer}.crm-button-primary{background:var(--orange);color:#fff}.crm-alert{padding:12px 14px;margin:0 0 18px;border-radius:9px;font-size:13px}.crm-alert-error{background:#fff0ed;border:1px solid #ffc8bc;color:#a42c1b}.crm-error-card p{color:var(--muted);line-height:1.55}
@media(max-width:980px){.crm-header{align-items:flex-start;flex-wrap:wrap;padding:11px 14px 0;gap:8px}.crm-brand{height:40px}.crm-header-actions{height:40px}.crm-nav{order:3;width:100%;overflow-x:auto}.crm-nav a{min-height:43px;padding:0 12px}.crm-main{padding:22px 15px 50px}.crm-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-pipeline{grid-template-columns:repeat(9,130px)}}
@media(max-width:560px){.crm-brand>span:last-child{font-size:14px}.crm-user{display:none}.crm-page-head{display:block}.crm-foundation-badge{display:inline-flex;margin-top:14px}.crm-stat-grid{gap:10px}.crm-stat-grid article{padding:15px}.crm-stat-grid strong{font-size:24px}.crm-panel{padding:16px}.crm-panel-head{display:block}.crm-panel-head>span{display:block;margin-top:5px}.crm-login-card,.crm-error-card{padding:25px 20px}.crm-guest{padding:14px}}

/* Candidate workspace */
button,input,select,textarea{font:inherit}select,textarea{color:var(--ink)}.crm-header-search{margin-left:auto;display:flex;align-items:center;gap:7px;width:min(330px,24vw);height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.13)}.crm-header-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#fff}.crm-header-search input::placeholder{color:rgba(255,255,255,.75)}.crm-header-actions{margin-left:0}.crm-header-add{padding:8px 11px;border-radius:8px;background:#fff;color:var(--blue-dark);font-size:12px;font-weight:900;text-decoration:none;white-space:nowrap}.crm-page-head-actions{align-items:center}.crm-page-actions{display:flex;gap:10px;flex-wrap:wrap}.crm-button-blue{background:var(--blue);color:#fff}.crm-button-quiet{border:1px solid #c9d9e6;background:#fff;color:#16496f}.crm-alert-success{background:#ebf9f1;border:1px solid #bde9cf;color:#176b3a}.crm-ajax-alert{position:fixed;right:18px;bottom:18px;z-index:100;padding:12px 16px;border-radius:10px;background:#173d5d;color:#fff;box-shadow:0 12px 35px rgba(0,0,0,.18)}.crm-ajax-alert.is-error{background:#a42c1b}
.crm-filterbar{display:grid;grid-template-columns:minmax(260px,1.7fr) minmax(160px,.7fr) minmax(170px,.7fr) auto auto;gap:12px;align-items:end;margin-bottom:16px;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow)}.crm-filterbar label,.crm-candidate-form label,.crm-stack-form label,.crm-details-form label{display:grid;gap:6px;font-size:12px;font-weight:800}.crm-filterbar input,.crm-filterbar select,.crm-candidate-form input,.crm-candidate-form select,.crm-candidate-form textarea,.crm-stack-form select,.crm-details-form input,.crm-details-form textarea,.crm-note-form textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #cbd9e5;border-radius:8px;background:#fff;outline:none}.crm-filterbar input:focus,.crm-filterbar select:focus,.crm-candidate-form input:focus,.crm-candidate-form select:focus,.crm-candidate-form textarea:focus,.crm-stack-form select:focus,.crm-details-form input:focus,.crm-details-form textarea:focus,.crm-note-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(25,118,207,.11)}
.crm-table-panel{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.crm-table-wrap{overflow:auto}.crm-table{width:100%;border-collapse:collapse;min-width:980px}.crm-table th{position:sticky;top:64px;z-index:4;padding:12px 14px;background:#f0f6fa;color:#527087;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.07em}.crm-table td{padding:13px 14px;border-top:1px solid #e7eef3;vertical-align:middle;font-size:13px}.crm-table td small{display:block;margin-top:3px;color:var(--muted)}.crm-person{display:flex;align-items:center;gap:10px;text-decoration:none}.crm-avatar{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#e3f3ff;color:#0969a8;font-weight:900}.crm-row-link{color:#0872b9;font-weight:800;text-decoration:none;white-space:nowrap}.crm-status{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:#edf3f7;color:#415d73;font-size:11px;font-weight:900;white-space:nowrap}.crm-status-applied{background:#e5f3ff;color:#0969a8}.crm-status-contacted{background:#e9f6f3;color:#13745f}.crm-status-offer_sent{background:#fff3dc;color:#925d00}.crm-status-accepted{background:#e8f8ee;color:#16713d}.crm-status-working{background:#dff7ea;color:#096b38}.crm-status-declined,.crm-status-blacklisted{background:#ffe9e6;color:#a42c1b}.crm-status-on_hold,.crm-status-no_response{background:#f3edf9;color:#69438b}.crm-empty{display:grid;gap:5px;place-items:center;min-height:110px;padding:24px;color:var(--muted);text-align:center}.crm-empty strong{color:var(--ink)}.crm-pagination{display:flex;align-items:center;justify-content:center;gap:20px;padding:15px;border-top:1px solid var(--line);font-size:13px}.crm-pagination a{color:#0872b9;font-weight:800;text-decoration:none}
.crm-kanban{display:grid;grid-template-columns:repeat(10,minmax(200px,1fr));align-items:start;gap:12px;overflow-x:auto;padding:2px 2px 30px}.crm-kanban-column{min-height:210px;border:1px solid var(--line);border-radius:13px;background:#eaf1f6}.crm-kanban-column>header{position:sticky;top:64px;z-index:12;display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:11px 13px;border-bottom:1px solid #d1dee8;border-radius:12px 12px 0 0;background:#f7fafc;box-shadow:0 4px 10px rgba(20,61,91,.05);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.crm-kanban-column>header strong{display:grid;place-items:center;min-width:26px;height:26px;border-radius:8px;background:#dceaf4;color:#17547e}.crm-kanban-cards{display:grid;gap:9px;min-height:145px;padding:10px}.crm-kanban-cards.is-over{background:#dbeeff}.crm-candidate-card{padding:12px;border:1px solid #d6e2eb;border-radius:10px;background:#fff;box-shadow:0 5px 14px rgba(21,55,79,.07);cursor:grab}.crm-candidate-card.is-dragging{opacity:.45}.crm-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.crm-card-top a{text-decoration:none}.crm-card-top strong{font-size:13px}.crm-group-pill{padding:3px 6px;border-radius:999px;background:#eef0ff;color:#5058a8;font-size:9px;font-weight:900}.crm-card-job{min-height:32px;margin:8px 0;color:#36546b;font-size:12px;line-height:1.35}.crm-card-meta{display:flex;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid #edf1f4;color:#6a7f90;font-size:10px}.crm-followup-overdue{margin-top:8px;padding:6px 8px;border-radius:7px;background:#ffe7e4;color:#ae2414;font-size:10px;font-weight:900}.crm-mobile-status{display:none}.crm-kanban-empty{padding:22px 10px;color:#7890a2;text-align:center;font-size:11px}
.crm-profile-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 23px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow)}.crm-profile-identity{display:flex;align-items:center;gap:15px}.crm-profile-avatar{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:linear-gradient(145deg,#1976cf,#0b4f89);color:#fff;font-size:22px;font-weight:900}.crm-profile-identity h1{margin:3px 0 4px}.crm-profile-identity p:last-child{margin:0;color:var(--muted)}.crm-profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crm-profile-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.crm-profile-side{position:sticky;top:80px}.crm-profile-summary h2{margin-top:0}.crm-profile-summary dl{margin:0}.crm-profile-summary dl div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-top:1px solid #e8eef3}.crm-profile-summary dt{color:var(--muted);font-size:11px}.crm-profile-summary dd{margin:0;max-width:62%;text-align:right;font-size:12px;font-weight:800;overflow-wrap:anywhere}.crm-panel-head.compact{padding-bottom:10px}.crm-panel-head.compact h2{font-size:16px}.crm-stack-form{display:grid;gap:10px;padding-top:12px}.crm-related-list{display:grid;gap:8px}.crm-related-list a{display:grid;gap:3px;padding:10px;border:1px solid var(--line);border-radius:8px;text-decoration:none}.crm-related-list span{color:var(--muted);font-size:11px}.crm-match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:15px}.crm-match-grid article{padding:15px;border:1px solid #d8e5ed;border-radius:11px;background:linear-gradient(155deg,#fff,#f7fbfe)}.crm-match-grid article>div:first-child{display:flex;justify-content:space-between}.crm-match-rank{color:#0872b9;font-size:11px;font-weight:900}.crm-match-grid h3{margin:12px 0 4px;font-size:15px}.crm-match-grid p{margin:0 0 9px;color:var(--muted);font-size:12px}.crm-match-grid small{display:block;margin-top:11px;color:#60788d;line-height:1.45}.crm-match-salary{display:inline-flex;padding:5px 7px;border-radius:7px;background:#eaf5fb;color:#17547e;font-size:11px;font-weight:900}.crm-timeline,.crm-experience-list,.crm-notes-list{display:grid;gap:11px;padding-top:15px}.crm-timeline article{position:relative;display:flex;gap:11px;padding:0 0 15px 19px;border-left:2px solid #dce8f0}.crm-timeline-dot{position:absolute;left:-6px;top:3px;width:10px;height:10px;border-radius:50%;background:var(--blue)}.crm-timeline p,.crm-timeline small{margin:3px 0 0;color:var(--muted);font-size:12px}.crm-experience-list article{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;padding:14px;border:1px solid #e0e9ef;border-radius:10px}.crm-experience-period{display:flex;align-items:flex-start;gap:6px;color:#527087;font-size:11px}.crm-experience-list h3{margin:0 0 3px;font-size:15px}.crm-experience-list p{margin:0 0 3px;color:#36546b}.crm-experience-list small{color:var(--muted)}.crm-prose{margin-top:9px;color:#4f6678;font-size:12px;line-height:1.5}.crm-details-form{margin-top:15px;border-top:1px solid var(--line);padding-top:13px}.crm-details-form summary{cursor:pointer;color:#0872b9;font-weight:900}.crm-details-form form{display:grid;gap:14px;padding-top:15px}.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.crm-check{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important}.crm-check input{width:18px!important;min-height:18px!important}.crm-note-form{display:grid;grid-template-columns:1fr auto;gap:10px;padding-top:15px}.crm-note-form textarea{resize:vertical}.crm-notes-list article{padding:12px 14px;border:1px solid #e0e9ef;border-radius:10px;background:#fbfdfe}.crm-notes-list article>div{display:flex;justify-content:space-between;gap:10px}.crm-notes-list time{color:var(--muted);font-size:11px}.crm-notes-list p{margin:8px 0 0;color:#425e73;line-height:1.5}
.crm-candidate-form{display:grid;gap:0;padding:0;overflow:hidden}.crm-form-section{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;padding:23px;border-bottom:1px solid var(--line)}.crm-form-section h2{margin:4px 0}.crm-field-wide{grid-column:1/-1}.crm-candidate-form textarea{resize:vertical}.crm-form-actions{display:flex;justify-content:flex-end;padding:18px 23px;background:#f7fafc}
@media(max-width:1180px){.crm-header{gap:10px}.crm-nav a{padding:0 10px}.crm-header-search{display:none}.crm-profile-layout{grid-template-columns:260px minmax(0,1fr)}.crm-match-grid{grid-template-columns:1fr}}
@media(max-width:850px){.crm-filterbar{grid-template-columns:1fr 1fr}.crm-filter-search{grid-column:1/-1}.crm-profile-layout{grid-template-columns:1fr}.crm-profile-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.crm-profile-side .crm-panel{margin-top:0}.crm-form-section{grid-template-columns:1fr}.crm-mobile-status{display:grid;gap:4px;margin-top:9px;font-size:10px;color:var(--muted)}.crm-mobile-status select{width:100%;height:34px;border:1px solid #d1dee8;border-radius:7px;background:#fff}.crm-candidate-card{cursor:default}}
@media(max-width:620px){.crm-header-add{display:none}.crm-page-head-actions{display:grid;gap:13px}.crm-page-actions{width:100%}.crm-page-actions .crm-button{flex:1}.crm-filterbar{grid-template-columns:1fr}.crm-filter-search{grid-column:auto}.crm-filterbar .crm-button{width:100%}.crm-table{min-width:0}.crm-table thead{display:none}.crm-table tr{display:grid;padding:11px;border-top:1px solid #e7eef3}.crm-table td{display:grid;grid-template-columns:100px minmax(0,1fr);padding:7px;border:0}.crm-table td:before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.crm-table td:last-child{display:block;padding-left:107px}.crm-person{align-items:flex-start}.crm-profile-hero{align-items:flex-start;display:grid}.crm-profile-actions{width:100%}.crm-profile-actions .crm-button{flex:1}.crm-profile-side{grid-template-columns:1fr}.crm-form-grid{grid-template-columns:1fr}.crm-field-wide{grid-column:auto}.crm-experience-list article{grid-template-columns:1fr}.crm-note-form{grid-template-columns:1fr}.crm-form-section{padding:18px}.crm-form-actions{padding:15px 18px}.crm-kanban-column>header{top:107px}}

/* WordPress migration dry-run */
.crm-migration-intro{display:flex;align-items:center;justify-content:space-between;gap:24px}.crm-migration-intro h2,.crm-migration-details h2{margin:3px 0 7px}.crm-migration-intro p{max-width:720px}.crm-migration-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.crm-migration-summary article{padding:18px;border:1px solid #d5e3ed;border-radius:13px;background:#fff;box-shadow:0 8px 25px rgba(19,58,87,.05)}.crm-migration-summary span{display:block;color:#698094;font-size:12px;font-weight:750}.crm-migration-summary strong{display:block;margin-top:5px;font-size:24px}.crm-migration-summary .is-good{background:#edfaf2;border-color:#bfe7ce}.crm-migration-summary .is-warning{background:#fff8ea;border-color:#f0d393}.crm-migration-table td:first-child small{display:block;margin-top:3px;color:#7c8f9f;font-size:10px}.crm-state{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}.crm-state.is-ok{background:#e8f8ee;color:#14713a}.crm-state.is-missing{background:#fff0ed;color:#b53423}.crm-migration-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}.crm-migration-details .crm-panel{margin-top:0}.crm-chip-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.crm-chip-list span{padding:7px 10px;border:1px solid #d8e4ed;border-radius:999px;background:#f7fafc;color:#48657a}.crm-chip-list b{margin-left:5px;color:#102f4c}.crm-clean-list{list-style:none;margin:13px 0 0;padding:0}.crm-clean-list li{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #e6eef4}.crm-callout{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:15px 18px;border-radius:11px}.crm-callout.is-safe{background:#e9f8ef;color:#176b3a}.crm-callout.is-warning{background:#fff4e1;color:#8b5600}
@media(max-width:900px){.crm-migration-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-migration-details{grid-template-columns:1fr}.crm-migration-intro{align-items:flex-start;flex-direction:column}}
.crm-import-action{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:28px;align-items:center;margin-top:18px;border-color:#b9d8c5;background:linear-gradient(135deg,#fff 0%,#f1fbf5 100%)}.crm-import-action form{display:grid;gap:12px;padding:18px;border:1px solid #cfe2d6;border-radius:14px;background:#fff}.crm-import-action form small,.crm-muted{color:var(--muted)}.crm-import-confirm{display:flex;gap:9px;align-items:flex-start;font-weight:750;color:var(--ink)}.crm-import-confirm input{width:18px;height:18px;margin-top:1px;accent-color:#ff6b2c}.crm-import-success{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;border-color:#b7dec5;background:#f1fbf5;margin-bottom:18px}.crm-import-success-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#1e9b57;color:#fff;font-size:25px;font-weight:900}.crm-import-success h2{margin:2px 0 8px}.crm-import-success .crm-chip-list{margin:14px 0}.crm-import-warnings{margin-top:12px;padding:12px;border-radius:10px;background:#fff8e8;color:#775516}.crm-import-warnings summary{cursor:pointer;font-weight:850}.crm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
@media(max-width:800px){.crm-import-action{grid-template-columns:1fr}.crm-import-success{grid-template-columns:1fr}.crm-import-success-mark{width:42px;height:42px}}

/* Jobs, offers and communication workspaces */
.crm-filterbar-jobs{grid-template-columns:minmax(260px,1.5fr) minmax(190px,.8fr) minmax(150px,.55fr) auto auto}.crm-jobs-table{min-width:1120px}.crm-job-state{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:#edf3f7;color:#496377;font-size:11px;font-weight:900;white-space:nowrap}.crm-job-state-active{background:#e5f8ed;color:#14723d}.crm-job-state-inactive{background:#fff2df;color:#8a5800}.crm-job-state-draft{background:#e7f2ff;color:#1665a0}.crm-job-state-archived{background:#f1edf5;color:#68447f}
.crm-offers-workspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px;align-items:start}.crm-agency-browser,.crm-offers-content{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.crm-agency-browser{position:sticky;top:80px;overflow:hidden}.crm-agency-browser-head{padding:18px;border-bottom:1px solid var(--line)}.crm-agency-browser-head h2{margin:4px 0 0}.crm-agency-list{display:grid;gap:7px;max-height:calc(100vh - 210px);padding:10px;overflow:auto}.crm-agency-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid #dce7ef;border-radius:10px;text-decoration:none}.crm-agency-list a:hover,.crm-agency-list a.is-active{border-color:#75b9e9;background:#eaf6ff}.crm-agency-list span{min-width:0}.crm-agency-list strong,.crm-agency-list small{display:block}.crm-agency-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-agency-list small{margin-top:3px;color:var(--muted);font-size:10px}.crm-agency-list b{color:#0872b9}.crm-offers-content{min-height:420px;padding:19px}.crm-offers-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:17px;border-bottom:1px solid var(--line)}.crm-offers-head h2{margin:4px 0}.crm-offers-head p:last-child{margin:0;color:var(--muted);font-size:12px}.crm-offers-head form{display:flex;gap:8px}.crm-offers-head input{width:min(310px,28vw);min-height:42px;padding:8px 11px;border:1px solid #cbd9e5;border-radius:8px}.crm-offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding-top:16px}.crm-offer-card{padding:17px;border:1px solid #dce6ed;border-radius:12px;background:linear-gradient(155deg,#fff,#f8fbfd)}.crm-offer-card-top{display:flex;align-items:center;justify-content:space-between}.crm-offer-card-top small{color:var(--muted);text-transform:uppercase}.crm-offer-card h3{margin:13px 0 4px}.crm-offer-card>p{color:#486277;font-size:12px;line-height:1.55}.crm-offer-card .crm-offer-job{margin-top:0;color:#0d2b49;font-weight:800}.crm-offer-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.crm-offer-meta span{padding:5px 7px;border-radius:7px;background:#edf4f8;color:#526a7d;font-size:10px;font-weight:800}.crm-offer-card details{margin-top:13px;border-top:1px solid #e1e9ef;padding-top:11px}.crm-offer-card summary{cursor:pointer;color:#0872b9;font-size:12px;font-weight:850}.crm-offer-prose{max-height:280px;margin-top:10px;overflow:auto;color:#486277;font-size:12px;line-height:1.55}
.crm-message-workspace{display:grid;grid-template-columns:340px minmax(0,1fr);height:calc(100vh - 180px);min-height:520px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.crm-conversation-sidebar{display:grid;grid-template-rows:auto minmax(0,1fr);border-right:1px solid var(--line);min-width:0}.crm-message-filters{display:grid;gap:8px;padding:12px;border-bottom:1px solid var(--line)}.crm-message-filters>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.crm-message-filters input,.crm-message-filters select{width:100%;min-height:39px;padding:7px 9px;border:1px solid #cbd9e5;border-radius:8px;background:#fff}.crm-message-filters .crm-button{min-height:38px}.crm-conversation-list{overflow:auto}.crm-conversation-list>a{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;padding:13px;border-bottom:1px solid #e8eef3;text-decoration:none}.crm-conversation-list>a:hover,.crm-conversation-list>a.is-active{background:#eaf6ff}.crm-conversation-list>a>span:nth-child(2){min-width:0}.crm-conversation-list strong,.crm-conversation-list small,.crm-conversation-list em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-conversation-list small{margin:4px 0;color:#536d80;font-size:11px}.crm-conversation-list em{color:#8295a4;font-size:9px;font-style:normal;text-transform:uppercase}.crm-conversation-list>a>b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--orange);color:#fff;font-size:10px}.crm-chat-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;background:#f3f7fa}.crm-chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px solid var(--line);background:#fff}.crm-chat-head strong,.crm-chat-head small{display:block}.crm-chat-head small{margin-top:3px;color:var(--muted);font-size:10px}.crm-chat-head .crm-button{min-height:36px}.crm-chat-history{display:flex;flex-direction:column;gap:10px;padding:18px;overflow:auto}.crm-chat-bubble{align-self:flex-start;max-width:min(680px,78%);padding:11px 13px;border:1px solid #d8e5ee;border-radius:12px;background:#fff;box-shadow:0 4px 12px rgba(25,55,76,.04)}.crm-chat-bubble.is-outbound{align-self:flex-end;border-color:#bad9ed;background:#e8f5ff}.crm-chat-bubble>span{color:#527087;font-size:9px;font-weight:900;text-transform:uppercase}.crm-chat-bubble p{margin:6px 0;color:#24465f;font-size:13px;line-height:1.5}.crm-chat-bubble time{display:block;color:#8295a4;text-align:right;font-size:9px}.crm-chat-readonly{padding:11px 16px;border-top:1px solid var(--line);background:#fff;color:#6e8292;font-size:11px;text-align:center}
@media(max-width:1000px){.crm-offer-grid{grid-template-columns:1fr}.crm-message-workspace{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:760px){.crm-filterbar-jobs{grid-template-columns:1fr}.crm-offers-workspace{grid-template-columns:1fr}.crm-agency-browser{position:static}.crm-agency-list{display:flex;max-height:none;overflow-x:auto}.crm-agency-list a{flex:0 0 220px}.crm-offers-head{align-items:stretch;flex-direction:column}.crm-offers-head form,.crm-offers-head input{width:100%}.crm-message-workspace{display:block;height:auto;min-height:0}.crm-conversation-sidebar{border-right:0}.crm-conversation-list{max-height:300px}.crm-chat-panel{min-height:540px}.crm-chat-history{min-height:420px;max-height:65vh}.crm-chat-bubble{max-width:90%}}

/* Kanban multi-select + linked candidates */
.crm-candidate-card{position:relative}.crm-card-select{position:absolute;top:9px;right:9px;z-index:5;display:grid;place-items:center;width:22px;height:22px;margin:0;border-radius:6px;background:rgba(255,255,255,.92);cursor:pointer}.crm-card-cv-badge{position:absolute;top:8px;left:8px;z-index:5;display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:radial-gradient(circle at 30% 28%,#5b7ce8,#3156d3 65%,#23409e);color:#fff;font-size:6.5px;font-weight:800;letter-spacing:.02em;box-shadow:0 3px 7px rgba(31,63,158,.5),inset 0 1px 1px rgba(255,255,255,.4);border:1px solid rgba(255,255,255,.55)}.crm-card-select input{width:16px;height:16px;margin:0;cursor:pointer}.crm-card-top{padding-right:26px}.crm-candidate-card.is-selected{outline:2px solid #2d7ff0;outline-offset:-2px;background:#f2f7ff}.crm-candidate-card.is-selected .crm-card-select{background:#e7f0ff}.crm-workflow-linked{display:grid;gap:9px;padding:12px;border:1px solid #d9e4ec;border-radius:10px;background:#f7fafc}.crm-workflow-linked>div:first-child{display:grid;gap:2px}.crm-workflow-linked>div:first-child small{color:#6b8091;font-size:11px}.crm-workflow-linked-list{display:grid;gap:7px}.crm-workflow-linked-item{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #dce6ed;border-radius:8px;background:#fff;cursor:pointer}.crm-workflow-linked-item input{width:16px;height:16px;margin:0}.crm-workflow-linked-item span{display:grid;gap:1px}.crm-workflow-linked-item strong{font-size:12px}.crm-workflow-linked-item small{color:#6b8091;font-size:10px}
.crm-work-through-irimia td{background:#edf9f1!important;border-top-color:#c9e9d4!important}.crm-work-through-irimia td:first-child{box-shadow:inset 4px 0 #28a55f}.crm-work-through-irimia .crm-irimia-work-badge{display:block;width:max-content;margin-top:4px;padding:3px 7px;border-radius:999px;background:#d8f2e1;color:#157343;font-size:9px;font-weight:800}
/* Quick offer action on Offer Sent cards */
.crm-card-offer-action{width:100%;margin-top:7px;padding:5px 8px;border:1px solid #c8dced;border-radius:7px;background:#f3f8fc;color:#17649a;font:800 10px/1.2 inherit;cursor:pointer;text-align:center}.crm-card-offer-action:hover{background:#e8f3fb;border-color:#9ec5df}.crm-card-offer-action:focus{outline:2px solid #2d7ff0;outline-offset:2px}

/* Compact Kanban card content */
.crm-candidate-card{padding-top:9px!important;padding-bottom:9px!important}.crm-candidate-card .crm-card-job{min-height:0!important;margin:5px 0 4px!important;line-height:1.25!important}.crm-candidate-card>small{display:block;margin-top:2px!important;line-height:1.2}.crm-candidate-card>time{display:block;margin-top:2px!important;line-height:1.2}.crm-candidate-card .crm-card-followup-slot{margin-top:3px!important}.crm-candidate-card .crm-followup-overdue{margin-top:4px!important;padding:5px 7px!important}.crm-card-offer-action{margin-top:4px!important;padding:4px 7px!important}


/* === Kanban cards: compact recruiter view === */
.crm-kanban-cards{
    gap:7px!important;
    padding:8px!important;
}
.crm-candidate-card{
    padding:9px 10px 8px!important;
    border-radius:9px!important;
    box-shadow:0 3px 10px rgba(21,55,79,.06)!important;
}
.crm-candidate-card>a:first-of-type{
    display:block!important;
    padding-left:22px!important;
    text-decoration:none!important;
}
.crm-candidate-card .irimia-avatar{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    font-size:10px!important;
}
.crm-candidate-card .crm-card-top{
    min-width:0!important;
    padding-right:25px!important;
    line-height:1.15!important;
}
.crm-candidate-card .crm-card-top strong{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:800!important;
}
.crm-candidate-card .crm-card-job{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    min-height:0!important;
    margin:5px 0 4px 36px!important;
    color:#263d50!important;
    font-size:11px!important;
    line-height:1.28!important;
    font-weight:600!important;
}
.crm-card-meta-compact{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px!important;
    margin-left:36px!important;
    color:#6b8091!important;
    font-size:9.5px!important;
    line-height:1.15!important;
}
.crm-card-phone{
    display:inline-flex!important;
    align-items:center!important;
    min-width:0!important;
    gap:3px!important;
    overflow:hidden!important;
    color:#657b8e!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}
.crm-card-phone:hover{
    color:#0d6fb8!important;
    text-decoration:underline!important;
}
.crm-card-phone.is-empty{
    color:#95a5b1!important;
}
.crm-card-date{
    flex:0 0 auto!important;
    color:#7c8f9e!important;
    font-size:9px!important;
    white-space:nowrap!important;
}
.crm-candidate-card .crm-card-followup-slot{
    margin:4px 0 0 36px!important;
}
.crm-candidate-card .crm-followup-overdue{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    padding:4px 7px!important;
    border-radius:6px!important;
    font-size:9.5px!important;
    line-height:1.1!important;
}
.crm-candidate-card .crm-card-offer-action{
    display:block!important;
    width:calc(100% - 36px)!important;
    min-height:27px!important;
    margin:5px 0 0 36px!important;
    padding:4px 8px!important;
    border:1px solid #c9dced!important;
    border-radius:7px!important;
    background:#f7fbff!important;
    color:#176ba0!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1.15!important;
    cursor:pointer!important;
}
.crm-candidate-card .crm-card-offer-action:hover{
    border-color:#8ebde0!important;
    background:#edf7ff!important;
}
.crm-candidate-card .crm-card-select{
    top:7px!important;
    right:7px!important;
}
.crm-candidate-card.overdue{
    border-left-width:3px!important;
}
.crm-candidate-card.overdue .crm-card-job,
.crm-candidate-card.overdue .crm-card-meta-compact,
.crm-candidate-card.overdue .crm-card-followup-slot,
.crm-candidate-card.overdue .crm-card-offer-action{
    margin-left:34px!important;
}
.crm-candidate-card.overdue .crm-card-offer-action{
    width:calc(100% - 34px)!important;
}
@media(max-width:850px){
    .crm-candidate-card{
        padding:10px!important;
    }
    .crm-candidate-card .crm-card-job,
    .crm-card-meta-compact,
    .crm-candidate-card .crm-card-followup-slot,
    .crm-candidate-card .crm-card-offer-action{
        margin-left:36px!important;
    }
    .crm-candidate-card .crm-card-offer-action{
        width:calc(100% - 36px)!important;
    }
}


/* === Kanban cards v2: shorter cards + WhatsApp + inline actions === */
.crm-candidate-card{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    padding-bottom:7px!important;
}
.crm-candidate-card .crm-card-job{
    margin-top:4px!important;
    margin-bottom:3px!important;
}
.crm-card-meta-compact{
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    margin-top:0!important;
    font-size:9px!important;
}
.crm-card-phone{
    flex:1 1 auto!important;
    max-width:100%!important;
    font-size:9px!important;
    font-weight:700!important;
}
.crm-card-whatsapp-mark{
    display:inline-grid!important;
    place-items:center!important;
    flex:0 0 auto!important;
    min-width:17px!important;
    height:15px!important;
    padding:0 3px!important;
    border-radius:4px!important;
    background:#eef8f1!important;
    color:#137a3f!important;
    font-size:7px!important;
    font-weight:900!important;
}
.crm-card-date{
    margin-left:auto!important;
    font-size:8px!important;
}
.crm-card-actions{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    margin:4px 0 0 36px!important;
}
.crm-card-actions .crm-followup-overdue{
    flex:1 1 auto!important;
    min-width:0!important;
    justify-content:center!important;
    margin:0!important;
    padding:4px 5px!important;
    font-size:8.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
}
.crm-card-actions .crm-card-offer-action{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:56px!important;
    min-height:23px!important;
    margin:0!important;
    padding:3px 6px!important;
    font-size:8.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
}
.crm-candidate-card.overdue .crm-card-actions{
    margin-left:34px!important;
}
@media(max-width:850px){
    .crm-card-actions{
        margin-left:36px!important;
    }
}


/* === Kanban cards v3: always-visible actions === */
.crm-card-whatsapp-mark{
    display:none!important;
}
.crm-card-phone{
    gap:0!important;
}
.crm-card-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:4px!important;
    width:calc(100% - 36px)!important;
    margin:5px 0 0 36px!important;
    overflow:visible!important;
}
.crm-card-actions .crm-followup-overdue{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    height:25px!important;
    margin:0!important;
    padding:3px 5px!important;
    overflow:hidden!important;
    border-radius:6px!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}
.crm-card-actions .crm-card-offer-action{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:74px!important;
    height:25px!important;
    min-height:25px!important;
    margin:0!important;
    padding:3px 6px!important;
    border-radius:6px!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:visible!important;
}
/* When Offer Sent has no overdue follow-up, let the offer button use the whole action row. */
.crm-card-actions > .crm-card-offer-action:only-child{
    grid-column:1 / -1!important;
    width:100%!important;
}
.crm-candidate-card.overdue .crm-card-actions{
    width:calc(100% - 34px)!important;
    margin-left:34px!important;
}

.crm-candidate-add-modal{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:22px}
.crm-candidate-add-backdrop{position:absolute;inset:0;border:0;background:rgba(18,38,56,.58);backdrop-filter:blur(2px);cursor:default}
.crm-candidate-add-dialog{position:relative;z-index:1;width:min(820px,calc(100vw - 32px));max-height:min(860px,calc(100vh - 40px));overflow:auto;border:1px solid #d9e4ee;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(16,39,57,.28);padding:22px}
.crm-candidate-add-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #e5edf4}
.crm-candidate-add-head h2{margin:2px 0 4px;font-size:24px;color:#17334b}.crm-candidate-add-head p{margin:0;color:#687d8d}
.crm-candidate-add-x{width:34px;height:34px;border:0;border-radius:8px;background:#eff4f8;color:#526879;font-size:23px;cursor:pointer}
.crm-candidate-add-alert{margin:14px 0;padding:10px 12px;border-radius:8px;background:#eef8f3;color:#176a49;font-size:12px;font-weight:700}.crm-candidate-add-alert.is-error{background:#fff1f0;color:#b42318}
.crm-candidate-add-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:18px}
.crm-candidate-add-choice{display:grid;grid-template-columns:44px 1fr;gap:4px 12px;align-items:center;text-align:left;padding:18px;border:1px solid #d8e4ed;border-radius:12px;background:#fff;color:#213d54;cursor:pointer}.crm-candidate-add-choice:hover{border-color:#78afe0;background:#f8fcff}.crm-candidate-add-choice.is-primary{border-color:#b9d9f3;background:#f5fbff}
.crm-candidate-add-choice-icon{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#e9f4fd;color:#1673b5;font-size:12px;font-weight:900}.crm-candidate-add-choice strong{font-size:14px}.crm-candidate-add-choice small{color:#708392;line-height:1.4}
.crm-candidate-add-back{margin:14px 0 10px;border:0;background:transparent;color:#2877b0;font-weight:800;cursor:pointer}
.crm-candidate-cv-drop{display:flex;min-height:280px;flex-direction:column;align-items:center;justify-content:center;gap:9px;border:2px dashed #b8cee0;border-radius:14px;background:#f8fbfe;text-align:center;cursor:pointer;transition:.15s}.crm-candidate-cv-drop:hover,.crm-candidate-cv-drop.is-dragging{border-color:#318bd0;background:#eef8ff}.crm-candidate-cv-drop-icon{font-size:38px;color:#2c83c4}.crm-candidate-cv-drop strong{font-size:18px;color:#213d54}.crm-candidate-cv-drop small{color:#718695}.crm-candidate-cv-drop em{font-style:normal;font-size:11px;color:#91a1ae}
.crm-candidate-cv-loading{display:flex;align-items:center;gap:15px;min-height:180px;padding:24px;border-radius:12px;background:#f7fbfe}.crm-candidate-cv-loading>span{width:30px;height:30px;border:3px solid #cfe2f2;border-top-color:#287fc0;border-radius:50%;animation:crm-spin .8s linear infinite}.crm-candidate-cv-loading div{display:grid;gap:4px}.crm-candidate-cv-loading small{color:#738696}@keyframes crm-spin{to{transform:rotate(360deg)}}
.crm-candidate-review-summary{display:grid;gap:3px;margin:4px 0 14px;padding:12px 14px;border:1px solid #cfe3f3;border-radius:10px;background:#f3faff}.crm-candidate-review-summary strong{color:#176da7}.crm-candidate-review-summary span{font-size:11px;color:#63798a}
.crm-candidate-review-section{border:1px solid #e0e8ef;border-radius:12px;padding:15px}.crm-candidate-review-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.crm-candidate-review-heading h3{margin:2px 0 0;font-size:16px}.crm-candidate-review-heading>span{padding:4px 8px;border-radius:999px;background:#fff3dc;color:#9a6515;font-size:10px;font-weight:800}
.crm-candidate-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.crm-candidate-review-field{display:grid;gap:5px}.crm-candidate-review-field.is-wide{grid-column:1/-1}.crm-candidate-review-field>span{font-size:10px;font-weight:800;color:#516879}.crm-candidate-review-field input,.crm-candidate-review-field select,.crm-candidate-review-field textarea{width:100%;box-sizing:border-box;border:1px solid #ccd9e4;border-radius:7px;background:#fff;padding:8px 9px;font:12px/1.3 Arial,sans-serif;color:#19364d}.crm-candidate-review-field.is-required-missing input{border-color:#e59a91;background:#fffafa}.crm-candidate-review-field.is-found input,.crm-candidate-review-field.is-found select,.crm-candidate-review-field.is-found textarea{border-color:#bcdcc8;background:#f9fdfb}
.crm-candidate-found-details{margin-top:12px;border:1px solid #dce8df;border-radius:10px;background:#fbfefc}.crm-candidate-found-details summary{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;color:#386348;font-size:11px;font-weight:800}.crm-candidate-found-details>div{padding:0 13px 13px}.crm-candidate-found-details[hidden]{display:none!important}
.crm-candidate-add-actions{position:sticky;bottom:-22px;display:flex;justify-content:flex-end;gap:8px;margin:18px -22px -22px;padding:13px 22px;border-top:1px solid #e1e9ef;background:#fff;z-index:2}
@media(max-width:700px){.crm-candidate-add-modal{padding:0}.crm-candidate-add-dialog{width:100%;height:100dvh;max-height:none;border-radius:0;padding:16px}.crm-candidate-add-choice-grid,.crm-candidate-review-grid{grid-template-columns:1fr}.crm-candidate-review-field.is-wide{grid-column:1}.crm-candidate-add-actions{bottom:-16px;margin:16px -16px -16px;padding:12px 16px}.crm-candidate-cv-drop{min-height:230px}}

/* === Add Candidate v1.5.1 === */
.crm-candidate-add-modal{
    display:none!important;
}
#crm-candidate-add-modal:target,
.crm-candidate-add-modal.is-open{
    display:flex!important;
}
.crm-candidate-cv-drop.is-dragging{
    border-color:#318bd0!important;
    background:#eef8ff!important;
    box-shadow:0 0 0 3px rgba(49,139,208,.12)!important;
}
.crm-candidate-cv-drop{
    position:relative;
    z-index:2;
}
/* =========================================
   KANBAN - NU COMPRIMA CARDURILE
   ========================================= */

.crm-kanban-cards,
.crm-kanban-dropzone {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

/* Fiecare candidat își păstrează dimensiunea */
.crm-candidate-card {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: 135px !important;
    max-height: none !important;
}

/* Coloana nu încearcă să împartă înălțimea între toate cardurile */
.crm-kanban-column {
    align-items: stretch !important;
}

/* Lista poate deveni mai lungă decât ecranul */
.crm-kanban-column .crm-kanban-cards,
.crm-kanban-column .crm-kanban-dropzone {
    min-height: 0 !important;
    height: auto !important;
}

/* =========================================
   OFFER SENT - ACTIONS FINAL
   ========================================= */

/* Zona de acțiuni folosește toată lățimea cardului.
   Nu mai păstrăm indentarea de 36px aici, fiindcă înghesuia butoanele. */
.crm-card-actions{
    display:grid!important;
    grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    margin:8px 0 0!important;
    overflow:visible!important;
}

/* Ambele acțiuni au aceeași înălțime și sunt centrate. */
.crm-card-actions .crm-followup-overdue,
.crm-card-actions .crm-card-offer-action{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    height:29px!important;
    min-height:29px!important;
    margin:0!important;
    padding:4px 6px!important;
    box-sizing:border-box!important;
    border-radius:7px!important;
    font-size:8.5px!important;
    font-weight:800!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Follow-up expirat */
.crm-card-actions .crm-followup-overdue{
    background:#ffe8e5!important;
    color:#c52a20!important;
    border:1px solid #ffd1cc!important;
}

/* Trimite ofertă */
.crm-card-actions .crm-card-offer-action{
    background:#eef7ff!important;
    color:#126ca8!important;
    border:1px solid #b9d8ef!important;
    cursor:pointer!important;
}

.crm-card-actions .crm-card-offer-action:hover{
    background:#dff1ff!important;
    border-color:#8ebfe1!important;
}

/* Dacă există doar acțiunea de ofertă, ocupă tot rândul. */
.crm-card-actions .crm-card-offer-action:only-child{
    grid-column:1 / -1!important;
    width:100%!important;
}

/* Cardurile overdue nu mai mută acțiunile spre dreapta. */
.crm-candidate-card.overdue .crm-card-actions{
    width:100%!important;
    margin:8px 0 0!important;
}

/* =========================================
   KANBAN - NU COMPRIMA CARDURILE
   ========================================= */

.crm-kanban-cards,
.crm-kanban-dropzone{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
}

.crm-candidate-card{
    flex:0 0 auto!important;
    flex-shrink:0!important;
    height:auto!important;
    min-height:135px!important;
    max-height:none!important;
}

.crm-kanban-column{
    align-items:stretch!important;
}

.crm-kanban-column .crm-kanban-cards,
.crm-kanban-column .crm-kanban-dropzone{
    min-height:0!important;
    height:auto!important;
}
/* =========================================
   CANDIDATE GROUP - FIX LAYOUT
   ========================================= */

.crm-group-workspace{
    padding:20px!important;
}

.crm-group-workspace .crm-panel-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:18px!important;
    padding-bottom:16px!important;
    margin-bottom:16px!important;
}

.crm-group-workspace .crm-panel-head h2{
    margin:3px 0 6px!important;
}

.crm-group-workspace .crm-panel-head p{
    margin:0!important;
    color:var(--muted)!important;
}

.crm-group-workspace [data-group-list]{
    display:grid!important;
    gap:10px!important;
    margin-bottom:18px!important;
}

.crm-group-workspace .crm-group-empty,
.crm-group-workspace .crm-empty{
    min-height:0!important;
    padding:14px!important;
    border:1px dashed #d6e2eb!important;
    border-radius:10px!important;
    background:#f8fbfd!important;
    text-align:left!important;
    place-items:start!important;
}

.crm-group-workspace .crm-group-empty strong,
.crm-group-workspace .crm-empty strong{
    display:block!important;
    margin-bottom:4px!important;
}

.crm-group-workspace [data-group-add]{
    display:grid!important;
    gap:12px!important;
    padding-top:16px!important;
    border-top:1px solid #e3ebf1!important;
}

.crm-group-workspace [data-group-add] > div:first-child{
    display:grid!important;
    gap:3px!important;
}

.crm-group-workspace [data-group-add] h3{
    margin:0!important;
    font-size:15px!important;
}

.crm-group-workspace [data-group-add] p{
    margin:0!important;
    color:var(--muted)!important;
    font-size:11px!important;
}

.crm-group-workspace .crm-group-add-row,
.crm-group-workspace [data-group-add-row]{
    display:grid!important;
    grid-template-columns:minmax(220px,1.6fr) minmax(180px,.8fr) auto!important;
    gap:10px!important;
    align-items:end!important;
}

.crm-group-workspace .crm-group-add-row label,
.crm-group-workspace [data-group-add-row] label{
    display:grid!important;
    gap:6px!important;
    min-width:0!important;
    font-size:11px!important;
    font-weight:800!important;
}

.crm-group-workspace .crm-group-add-row input,
.crm-group-workspace .crm-group-add-row select,
.crm-group-workspace [data-group-add-row] input,
.crm-group-workspace [data-group-add-row] select{
    width:100%!important;
    min-height:42px!important;
    padding:8px 10px!important;
    border:1px solid #cbd9e5!important;
    border-radius:8px!important;
    background:#fff!important;
}

.crm-group-workspace .crm-group-add-row .crm-button,
.crm-group-workspace [data-group-add-row] .crm-button{
    min-height:42px!important;
    white-space:nowrap!important;
}

.crm-group-workspace [data-group-results]{
    display:grid!important;
    gap:6px!important;
    margin-top:4px!important;
}

.crm-group-workspace [data-group-help]{
    margin-top:4px!important;
    color:var(--muted)!important;
    font-size:10px!important;
}

@media(max-width:800px){
    .crm-group-workspace .crm-group-add-row,
    .crm-group-workspace [data-group-add-row]{
        grid-template-columns:1fr!important;
    }

    .crm-group-workspace .crm-group-add-row .crm-button,
    .crm-group-workspace [data-group-add-row] .crm-button{
        width:100%!important;
    }
}
/* =========================================
   CANDIDATE GROUP - POLISHED LAYOUT
   ========================================= */

.crm-group-workspace{
    padding:22px!important;
}

/* Header */
.crm-group-workspace .crm-panel-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:20px!important;
    margin-bottom:18px!important;
    padding-bottom:16px!important;
}

.crm-group-workspace .crm-panel-head h2{
    margin:3px 0 5px!important;
    font-size:21px!important;
}

.crm-group-workspace .crm-panel-head p{
    margin:0!important;
    max-width:760px!important;
    color:#60758b!important;
    line-height:1.45!important;
}

/* Lista membrilor */
.crm-group-workspace [data-group-list]{
    display:grid!important;
    gap:8px!important;
    margin-bottom:18px!important;
}

.crm-group-workspace [data-group-list] article,
.crm-group-workspace [data-group-list] > div:not(.crm-empty){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    padding:11px 13px!important;
    border:1px solid #dce7ef!important;
    border-radius:10px!important;
    background:#f9fbfd!important;
}

.crm-group-workspace [data-group-list] a{
    color:#0872b9!important;
    font-weight:800!important;
    text-decoration:none!important;
}

.crm-group-workspace [data-group-list] small{
    color:#6c8192!important;
    font-size:10px!important;
}

/* Add member box */
.crm-group-workspace [data-group-add]{
    display:grid!important;
    gap:12px!important;
    margin-top:4px!important;
    padding:16px!important;
    border:1px solid #dce7ef!important;
    border-radius:11px!important;
    background:#f8fbfd!important;
}

.crm-group-workspace [data-group-add] > div:first-child{
    display:grid!important;
    gap:3px!important;
}

.crm-group-workspace [data-group-add] h3{
    margin:0!important;
    font-size:15px!important;
}

.crm-group-workspace [data-group-add] p{
    margin:0!important;
    color:#6b8091!important;
    font-size:11px!important;
}

/* Search + relation + button */
.crm-group-workspace .crm-group-add-row,
.crm-group-workspace [data-group-add-row]{
    display:grid!important;
    grid-template-columns:minmax(260px,1.5fr) minmax(190px,.8fr) auto!important;
    gap:10px!important;
    align-items:end!important;
}

.crm-group-workspace .crm-group-add-row label,
.crm-group-workspace [data-group-add-row] label{
    display:grid!important;
    gap:6px!important;
    min-width:0!important;
    font-size:11px!important;
    font-weight:800!important;
}

.crm-group-workspace .crm-group-add-row input,
.crm-group-workspace .crm-group-add-row select,
.crm-group-workspace [data-group-add-row] input,
.crm-group-workspace [data-group-add-row] select{
    width:100%!important;
    min-height:42px!important;
    padding:8px 10px!important;
    border:1px solid #cbd9e5!important;
    border-radius:8px!important;
    background:#fff!important;
}

.crm-group-workspace [data-group-add-row] .crm-button,
.crm-group-workspace .crm-group-add-row .crm-button{
    min-height:42px!important;
    padding:0 18px!important;
    white-space:nowrap!important;
}

/* Help text */
.crm-group-workspace [data-group-help]{
    margin:0!important;
    color:#7a8d9c!important;
    font-size:10px!important;
}

/* Group matching area */
.crm-group-workspace .crm-group-matches{
    margin-top:18px!important;
    padding-top:18px!important;
    border-top:1px solid #dce7ef!important;
}

.crm-group-workspace .crm-group-matches h2,
.crm-group-workspace .crm-group-matches h3{
    margin:4px 0 6px!important;
}

.crm-group-workspace .crm-group-matches > p{
    margin:0 0 12px!important;
    color:#60758b!important;
    font-size:11px!important;
}

.crm-group-workspace .crm-group-matches .crm-empty{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:52px!important;
    padding:14px 16px!important;
    border:1px dashed #cddde9!important;
    border-radius:10px!important;
    background:#f8fbfd!important;
    color:#60758b!important;
    text-align:left!important;
}

/* Mobile */
@media(max-width:850px){
    .crm-group-workspace .crm-group-add-row,
    .crm-group-workspace [data-group-add-row]{
        grid-template-columns:1fr!important;
    }

    .crm-group-workspace [data-group-add-row] .crm-button,
    .crm-group-workspace .crm-group-add-row .crm-button{
        width:100%!important;
    }
}
/* =========================================
   CANDIDATE GROUP - POLISHED LAYOUT
   ========================================= */

.crm-group-workspace{
    padding:22px!important;
}

/* Header */
.crm-group-workspace .crm-panel-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:20px!important;
    margin-bottom:18px!important;
    padding-bottom:16px!important;
}

.crm-group-workspace .crm-panel-head h2{
    margin:3px 0 5px!important;
    font-size:21px!important;
}

.crm-group-workspace .crm-panel-head p{
    margin:0!important;
    max-width:760px!important;
    color:#60758b!important;
    line-height:1.45!important;
}

/* Lista membrilor */
.crm-group-workspace [data-group-list]{
    display:grid!important;
    gap:8px!important;
    margin-bottom:18px!important;
}

.crm-group-workspace [data-group-list] article,
.crm-group-workspace [data-group-list] > div:not(.crm-empty){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    padding:11px 13px!important;
    border:1px solid #dce7ef!important;
    border-radius:10px!important;
    background:#f9fbfd!important;
}

.crm-group-workspace [data-group-list] a{
    color:#0872b9!important;
    font-weight:800!important;
    text-decoration:none!important;
}

.crm-group-workspace [data-group-list] small{
    color:#6c8192!important;
    font-size:10px!important;
}

/* Add member box */
.crm-group-workspace [data-group-add]{
    display:grid!important;
    gap:12px!important;
    margin-top:4px!important;
    padding:16px!important;
    border:1px solid #dce7ef!important;
    border-radius:11px!important;
    background:#f8fbfd!important;
}

.crm-group-workspace [data-group-add] > div:first-child{
    display:grid!important;
    gap:3px!important;
}

.crm-group-workspace [data-group-add] h3{
    margin:0!important;
    font-size:15px!important;
}

.crm-group-workspace [data-group-add] p{
    margin:0!important;
    color:#6b8091!important;
    font-size:11px!important;
}

/* Search + relation + button */
.crm-group-workspace .crm-group-add-row,
.crm-group-workspace [data-group-add-row]{
    display:grid!important;
    grid-template-columns:minmax(260px,1.5fr) minmax(190px,.8fr) auto!important;
    gap:10px!important;
    align-items:end!important;
}

.crm-group-workspace .crm-group-add-row label,
.crm-group-workspace [data-group-add-row] label{
    display:grid!important;
    gap:6px!important;
    min-width:0!important;
    font-size:11px!important;
    font-weight:800!important;
}

.crm-group-workspace .crm-group-add-row input,
.crm-group-workspace .crm-group-add-row select,
.crm-group-workspace [data-group-add-row] input,
.crm-group-workspace [data-group-add-row] select{
    width:100%!important;
    min-height:42px!important;
    padding:8px 10px!important;
    border:1px solid #cbd9e5!important;
    border-radius:8px!important;
    background:#fff!important;
}

.crm-group-workspace [data-group-add-row] .crm-button,
.crm-group-workspace .crm-group-add-row .crm-button{
    min-height:42px!important;
    padding:0 18px!important;
    white-space:nowrap!important;
}

/* Help text */
.crm-group-workspace [data-group-help]{
    margin:0!important;
    color:#7a8d9c!important;
    font-size:10px!important;
}

/* Group matching area */
.crm-group-workspace .crm-group-matches{
    margin-top:18px!important;
    padding-top:18px!important;
    border-top:1px solid #dce7ef!important;
}

.crm-group-workspace .crm-group-matches h2,
.crm-group-workspace .crm-group-matches h3{
    margin:4px 0 6px!important;
}

.crm-group-workspace .crm-group-matches > p{
    margin:0 0 12px!important;
    color:#60758b!important;
    font-size:11px!important;
}

.crm-group-workspace .crm-group-matches .crm-empty{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:52px!important;
    padding:14px 16px!important;
    border:1px dashed #cddde9!important;
    border-radius:10px!important;
    background:#f8fbfd!important;
    color:#60758b!important;
    text-align:left!important;
}

/* Mobile */
@media(max-width:850px){
    .crm-group-workspace .crm-group-add-row,
    .crm-group-workspace [data-group-add-row]{
        grid-template-columns:1fr!important;
    }

    .crm-group-workspace [data-group-add-row] .crm-button,
    .crm-group-workspace .crm-group-add-row .crm-button{
        width:100%!important;
    }
}
/* =========================================
   AGENCY DRAG TO TRASH
   ========================================= */

.irimia-agency-selector[draggable="true"]{
    cursor:grab;
}

.irimia-agency-selector[draggable="true"]:active{
    cursor:grabbing;
}

.irimia-agency-selector.is-dragging{
    opacity:.45;
    transform:scale(.98);
}

.crm-agency-trash{
    position:fixed;
    left:50%;
    bottom:22px;
    z-index:20000;

    width:min(420px,calc(100vw - 32px));

    transform:
        translate(-50%,30px)
        scale(.96);

    opacity:0;

    pointer-events:none;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.crm-agency-trash.is-visible{
    opacity:1;

    transform:
        translate(-50%,0)
        scale(1);

    pointer-events:auto;
}

.crm-agency-trash-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:4px 10px;

    min-height:82px;
    padding:15px 20px;

    border:2px dashed #e15246;
    border-radius:16px;

    background:rgba(255,244,242,.97);

    color:#b42318;

    box-shadow:
        0 18px 50px rgba(88,31,25,.22);

    backdrop-filter:blur(8px);

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.crm-agency-trash-icon{
    grid-row:1 / 3;

    font-size:28px;
}

.crm-agency-trash strong{
    font-size:14px;
}

.crm-agency-trash small{
    width:100%;

    color:#9a5048;

    text-align:center;

    font-size:10px;
}

.crm-agency-trash.is-over .crm-agency-trash-inner{
    transform:scale(1.04);

    border-color:#c51f14;

    background:#ffe5e1;

    box-shadow:
        0 20px 55px rgba(166,31,20,.28);
}

.crm-agency-trash.is-over strong::after{
    content:" — ELIBEREAZĂ";
}

.crm-agency-trash.is-deleting .crm-agency-trash-inner{
    opacity:.65;
}

/* =========================================
   IRIMIA INVOICE — ATS LEGACY TEMPLATE
   ========================================= */
.crm-legacy-invoices-page{max-width:1540px!important}
.crm-legacy-invoice-create{padding:24px!important;border:1px solid #cbddeb!important;border-radius:18px!important;background:#fff!important;box-shadow:0 16px 44px rgba(15,57,91,.08)!important}
.crm-legacy-invoice-create[hidden]{display:none!important}
.crm-legacy-invoice-create .crm-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #dce8f1}
.crm-legacy-invoice-create .crm-panel-head h2{margin:3px 0 4px;font-size:24px;color:#123f6b}
.crm-legacy-invoice-create .crm-panel-head p{margin:0;color:#647b8e}
.crm-legacy-invoice-builder{display:grid;grid-template-columns:minmax(330px,430px) minmax(620px,1fr);gap:26px;align-items:start}
.crm-legacy-invoice-controls{display:grid;gap:17px;padding:20px;border:1px solid #d8e5ef;border-radius:15px;background:#f8fbfd}
.crm-legacy-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.crm-legacy-control-grid label{display:grid;gap:7px;color:#244764;font-size:12px;font-weight:900}
.crm-legacy-control-grid input{width:100%;min-height:45px;padding:10px 12px;border:1px solid #bfcfdd;border-radius:9px;background:#fff;color:#102f4c;font-size:14px;font-weight:800}
.crm-legacy-control-grid input:focus{border-color:#0e73bd;outline:0;box-shadow:0 0 0 3px rgba(14,115,189,.13)}
.crm-legacy-auto-box{display:grid;gap:0;overflow:hidden;border:1px solid #d5e3ed;border-radius:12px;background:#fff}
.crm-legacy-auto-box>div{display:grid;gap:3px;padding:12px 14px;border-bottom:1px solid #e5edf3}
.crm-legacy-auto-box>div:last-child{border-bottom:0}
.crm-legacy-auto-box span{color:#688096;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.crm-legacy-auto-box strong{color:#153c60;font-size:13px}
.crm-legacy-client-card{display:grid;gap:3px;padding:14px 15px;border-left:4px solid #0f6fac;border-radius:10px;background:#eaf5ff}
.crm-legacy-client-card span{color:#0a6aa9;font-size:9px;font-weight:900;letter-spacing:.12em}
.crm-legacy-client-card strong{color:#123f6b;font-size:14px}
.crm-legacy-client-card small{color:#577087}
.crm-legacy-form-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important}
.crm-legacy-form-actions .crm-button{min-height:44px!important}
.crm-legacy-help{margin:0;color:#6c8193;font-size:11px;line-height:1.55}
.crm-invoice-actions .crm-invoice-delete-form{display:inline-flex!important;margin:0!important}
.crm-invoice-actions .crm-invoice-delete-button{min-height:38px;padding:0 13px;border:1px solid #efb2ac;border-radius:8px;background:#fff;color:#b42318;font:inherit;font-weight:900;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}
.crm-invoice-actions .crm-invoice-delete-button:hover,.crm-invoice-actions .crm-invoice-delete-button:focus{border-color:#d92d20;background:#fff1ef;color:#9d1c13;outline:0}
.crm-legacy-preview-stage{overflow:auto;padding:22px;border:1px solid #d2e0ea;border-radius:15px;background:#d8dee5}
.crm-legacy-invoice-sheet{position:relative;box-sizing:border-box;width:100%;max-width:820px;min-height:1160px;margin:0 auto;padding:38px;background:#eaf5ff;color:#17324a;box-shadow:0 10px 34px rgba(21,47,68,.20);font-family:Arial,sans-serif}
.crm-legacy-invoice-sheet *{box-sizing:border-box}
.crm-legacy-sheet-top{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;min-height:148px;padding:26px 30px;border:1px solid #d9e9f5;border-radius:16px;background:#fff}
.crm-legacy-brand{display:flex;align-items:flex-start;gap:16px;min-width:0}
.crm-legacy-brand img{width:70px;height:62px;margin-top:2px;object-fit:contain}
.crm-legacy-brand div{display:grid;gap:4px;min-width:0}
.crm-legacy-brand strong{color:#123f6b;font-size:19px;line-height:1.2;letter-spacing:.01em}
.crm-legacy-brand span{color:#708596;font-size:10px;font-weight:800;letter-spacing:.13em}
.crm-legacy-brand small{color:#526b7e;font-size:10px;line-height:1.55}
.crm-legacy-number{display:grid;gap:5px;min-width:190px;text-align:right}
.crm-legacy-number span{color:#708596;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.crm-legacy-number strong{color:#123f6b;font-size:22px}
.crm-legacy-number small{color:#526b7e;font-size:10px;line-height:1.65}
.crm-legacy-main-card{margin-top:24px;padding:42px 30px 34px;border:1px solid #d9e9f5;border-radius:16px;background:#fff}
.crm-legacy-parties{display:grid;grid-template-columns:1fr 1fr;gap:54px;margin:0}
.crm-legacy-parties article{min-height:215px;padding:0;background:transparent}
.crm-legacy-parties article>span{display:block;margin-bottom:13px;color:#0d6daa;font-size:10px;font-weight:900;letter-spacing:.11em}
.crm-legacy-parties h3{margin:0 0 13px;color:#123f6b;font-size:16px}
.crm-legacy-parties p{margin:0 0 13px;color:#526b7e;font-size:10px;line-height:1.62}
.crm-legacy-lines{overflow:hidden;margin-top:7px;border-radius:0;background:#fff}
.crm-legacy-line-head,.crm-legacy-line-item{display:grid;grid-template-columns:minmax(0,1fr) 110px 84px 112px;align-items:center}
.crm-legacy-line-head{padding:11px 0;border-bottom:2px solid #123f6b;background:#fff;color:#123f6b;font-size:9px;font-weight:900;letter-spacing:.07em}
.crm-legacy-line-item{min-height:62px;padding:15px 0;border-bottom:1px solid #d7e3ec;color:#314e66;font-size:10px}
.crm-legacy-line-item span:first-child{color:#173a59;font-weight:800}
.crm-legacy-line-head span:not(:first-child),.crm-legacy-line-item span:not(:first-child){text-align:right}
.crm-legacy-totals{width:285px;margin:15px 0 0 auto}
.crm-legacy-totals>div{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid #d7e3ec;color:#536d80;font-size:10px}
.crm-legacy-totals .is-total{margin-top:0;border:0;background:transparent;color:#123f6b;font-size:13px;font-weight:900}
.crm-legacy-note{margin-top:28px;padding:0;background:transparent;color:#5f7688;font-size:9px;line-height:1.55}
.crm-legacy-note p{margin:0}
.crm-legacy-note strong{display:inline;color:#0c6ca8;font-size:9px;letter-spacing:.04em}
.crm-legacy-invoice-sheet footer{position:absolute;right:42px;bottom:28px;left:42px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;color:#718595;font-size:8px;line-height:1.45}
.crm-legacy-invoice-sheet footer b{order:-1;white-space:nowrap;color:#4e6a7f}

@media(max-width:1150px){
    .crm-legacy-invoice-builder{grid-template-columns:1fr}
    .crm-legacy-invoice-controls{max-width:none}
    .crm-legacy-preview-stage{max-height:850px}
}
@media(max-width:720px){
    .crm-legacy-invoice-create{padding:15px!important}
    .crm-legacy-control-grid,.crm-legacy-form-actions{grid-template-columns:1fr!important}
    .crm-legacy-preview-stage{padding:10px}
    .crm-legacy-invoice-sheet{width:760px;min-height:1070px;padding:30px}
}
@media print{
    body *{visibility:hidden!important}
    [data-invoice-preview],[data-invoice-preview] *{visibility:visible!important}
    [data-invoice-preview]{position:absolute!important;inset:0 auto auto 0!important;width:210mm!important;max-width:none!important;min-height:297mm!important;margin:0!important;padding:11mm!important;box-shadow:none!important}
}

/* Linked candidates – live picker */
[data-workflow-scenario][hidden]{display:none!important}
.crm-group-adder{position:relative;margin-top:18px;padding:18px;border:1px solid #d7e4f2;border-radius:16px;background:#f8fbff}.crm-group-adder-title{display:flex;align-items:center;gap:12px;margin-bottom:14px}.crm-group-adder-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e1f0ff;color:#0866b5;font-size:20px}.crm-group-adder-title strong,.crm-group-adder-title small{display:block}.crm-group-adder-title small{margin-top:2px;color:#66809b}.crm-group-picker-row{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(180px,.85fr) auto;gap:12px;align-items:end}.crm-group-search-field,.crm-group-relationship{position:relative;display:grid;gap:6px}.crm-group-search-field>span:first-child,.crm-group-relationship>span:first-child{font-size:12px;font-weight:800;color:#264866}.crm-group-search-control{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #bdd0e3;border-radius:10px;background:#fff}.crm-group-search-control:focus-within{border-color:#1677d2;box-shadow:0 0 0 3px rgba(22,119,210,.12)}.crm-group-search-control input{width:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}.crm-group-relationship select{min-height:44px}.crm-group-search-results{position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;overflow:auto;max-height:320px;padding:6px;border:1px solid #c7d9eb;border-radius:12px;background:#fff;box-shadow:0 18px 46px rgba(18,57,88,.18)}.crm-group-search-result{display:grid;width:100%;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;padding:10px;border:0;border-radius:9px;background:#fff;text-align:left;cursor:pointer}.crm-group-search-result:hover,.crm-group-search-result:focus{background:#edf6ff;outline:none}.crm-group-search-result span:nth-child(2){min-width:0}.crm-group-search-result strong,.crm-group-search-result small{display:block}.crm-group-search-result small{overflow:hidden;margin-top:2px;color:#66809b;text-overflow:ellipsis;white-space:nowrap}.crm-group-search-result>b{color:#1677d2;font-size:12px}.crm-group-search-empty{padding:18px;text-align:center;color:#6b8196}.crm-group-selected{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px;border:1px solid #acd7bd;border-radius:12px;background:#f0fbf4}.crm-group-selected>span:nth-child(2){display:grid}.crm-group-selected small{color:#5e7c6a}.crm-group-selected button{margin-left:auto;border:0;background:transparent;color:#0b6fc2;font-weight:800;cursor:pointer}.crm-group-live-hint{margin:9px 2px 0;color:#637d95;font-size:12px}.crm-group-member-avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#5b38d0;color:#fff;font-weight:900}.crm-group-members{display:grid;gap:8px}.crm-group-member{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #d8e4ef;border-radius:12px;background:#fff;color:inherit;text-decoration:none}.crm-group-member-copy{display:grid;min-width:0}.crm-group-member-copy small{color:#6b8297}.crm-group-relation{margin-left:auto;color:#31536f;font-weight:800}.crm-group-count{padding:5px 9px;border-radius:99px;background:#e9f3fc;color:#185f98;font-size:12px;font-weight:900}.crm-group-empty{display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed #c7d9e8;border-radius:12px;color:#607990}.crm-group-empty>span{font-size:25px}.crm-group-empty strong,.crm-group-empty small{display:block}.crm-group-empty small{margin-top:2px}.crm-group-picker-row>.crm-button{min-height:44px;white-space:nowrap}@media(max-width:800px){.crm-group-picker-row{grid-template-columns:1fr}.crm-group-search-results{position:fixed;inset:auto 16px 16px;max-height:55vh}.crm-group-picker-row>.crm-button{width:100%}.crm-group-relation{margin-left:0}}


/* 1.8.6 · Summary offer + group on one row */
.crm-summary-actions-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start;margin-top:16px}
.crm-summary-actions-grid.is-single{grid-template-columns:1fr}
.crm-summary-actions-grid>.crm-panel{height:100%;margin:0!important;min-width:0}
.crm-summary-actions-grid #oferte .crm-panel-head p,.crm-summary-actions-grid #grup .crm-panel-head p{max-width:620px}
.crm-summary-actions-grid .crm-group-picker-row{grid-template-columns:minmax(0,1fr) minmax(150px,.7fr)!important}
.crm-summary-actions-grid .crm-group-picker-row>.crm-button{grid-column:1/-1;width:max-content}
@media(max-width:1180px){.crm-summary-actions-grid{grid-template-columns:1fr}.crm-summary-actions-grid .crm-group-picker-row{grid-template-columns:minmax(0,1fr) minmax(180px,.7fr)!important}.crm-summary-actions-grid .crm-group-picker-row>.crm-button{grid-column:auto;width:auto}}
@media(max-width:760px){.crm-summary-actions-grid .crm-group-picker-row{grid-template-columns:1fr!important}.crm-summary-actions-grid .crm-group-picker-row>.crm-button{width:100%}}

/* 1.8.6 · invoice creation clarity + preview parity */
.crm-legacy-invoice-create{border:2px solid #9fc8e6!important;box-shadow:0 16px 42px rgba(18,78,121,.11)!important}
.crm-invoice-create-head{margin:-1px -1px 18px!important;padding:17px 18px!important;border-radius:13px 13px 0 0;background:linear-gradient(135deg,#eff8ff,#fff)!important;border-bottom:1px solid #d3e5f2!important}
.crm-invoice-create-callout{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #d5e5f1;border-radius:11px;background:#f7fbff}
.crm-invoice-create-callout>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#1374bd;color:#fff;font-size:12px;font-weight:900}
.crm-invoice-create-callout strong,.crm-invoice-create-callout small{display:block}.crm-invoice-create-callout strong{color:#153f60;font-size:11px}.crm-invoice-create-callout small{margin-top:2px;color:#6d8396;font-size:9px;line-height:1.4}
.crm-invoice-create-callout.is-final{background:#f1f9f4;border-color:#cfe7d7}.crm-invoice-create-callout.is-final>span{background:#268653}
.crm-legacy-invoice-sheet footer span{max-width:76%;font-weight:700}


/* 1.8.7 · invoice archive/import and chronological grouping */
.crm-invoice-hero-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.crm-invoice-import[hidden]{display:none!important}
.crm-invoice-import{margin:18px 0!important;padding:22px!important;border:1px solid #cfe0ed!important;border-radius:16px!important;background:#fff!important}
.crm-invoice-import .crm-panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:17px}
.crm-invoice-import-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.7fr) auto;gap:14px;align-items:center}
.crm-invoice-dropzone{display:grid;gap:5px;padding:16px;border:2px dashed #abc9df;border-radius:12px;background:#f7fbff;color:#173f5e;cursor:pointer}.crm-invoice-dropzone span{color:#6a8296;font-size:11px}.crm-invoice-dropzone input{margin-top:7px}
.crm-invoice-import-note{display:grid;gap:4px;padding:13px;border-radius:11px;background:#eef7ff;color:#48667f}.crm-invoice-import-note b{color:#126fab}.crm-invoice-import-note span{font-size:11px;line-height:1.45}
.crm-invoice-year-row td{padding:16px 12px 8px!important;border:0!important;background:#eef5fa!important;color:#123f6b!important}.crm-invoice-year-row td,.crm-invoice-month-row td{display:table-cell!important}.crm-invoice-year-row strong{font-size:16px}.crm-invoice-year-row span,.crm-invoice-month-row span{margin-left:9px;color:#6b8194;font-size:10px;font-weight:700}
.crm-invoice-month-row td{padding:8px 12px!important;border-top:1px solid #d7e4ee!important;background:#f8fbfd!important;color:#44657f!important}.crm-invoice-month-row strong{font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.crm-invoice-status.is-imported{background:#e9f1ff!important;color:#315f9f!important}
@media(max-width:900px){.crm-invoice-import-form{grid-template-columns:1fr}.crm-invoice-hero-actions{width:100%}}

/* 1.8.9 invoice archive folding */
.crm-invoice-year-row td{padding:0!important;background:#e8f2fa!important;border-top:1px solid #cbddea!important;border-bottom:1px solid #cbddea!important}.crm-invoice-year-button{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;padding:18px 16px;cursor:pointer;color:#0f3e68;text-align:left}.crm-invoice-year-button span{display:flex;align-items:baseline;gap:12px}.crm-invoice-year-button strong{font-size:22px;line-height:1;font-weight:900}.crm-invoice-year-button small{font-size:11px;color:#688096;font-weight:800}.crm-invoice-year-button b{font-size:20px;transition:transform .18s ease}.crm-invoice-year-button[aria-expanded="false"] b{transform:rotate(-90deg)}.crm-invoice-table tr[hidden]{display:none!important}


/* === 2.0.4 · candidate modal polish + job delete drop === */
.crm-candidate-cv-loading[hidden]{display:none!important}
.crm-candidate-add-x{display:grid!important;place-items:center!important;flex:0 0 34px;line-height:1!important;text-decoration:none!important;padding:0!important}
.crm-job-trash{z-index:21000}
.crm-job-trash .crm-agency-trash-inner{min-height:82px}

/* 3.9.51 · candidate workflow corrections */
.irimia-board-page .crm-candidate-card{min-width:0!important;overflow:hidden!important}
.irimia-board-page .crm-candidate-card .crm-card-actions{align-self:stretch!important;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:7px 0 0!important}
.irimia-board-page .crm-candidate-card .crm-card-actions .crm-card-offer-action{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.crm-candidate-job-link{margin:10px 0!important;padding:15px 18px!important}.crm-candidate-job-link .crm-panel-head{padding-bottom:10px}.crm-link-job-form{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:10px}.crm-link-job-form label{display:grid;gap:5px}.crm-link-job-form label>span{color:#527088;font-size:10px;font-weight:800}.crm-link-job-form select{width:100%;min-height:40px}.crm-linked-job-list{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 10px}.crm-linked-job-list>span{display:grid;gap:2px;padding:7px 10px;border:1px solid #d6e5ef;border-radius:9px;background:#f6fbfe}.crm-linked-job-list strong{color:#173e5e;font-size:11px}.crm-linked-job-list small{color:#708496;font-size:9px}.crm-driving-category-field{display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;gap:10px!important;align-items:start!important}.crm-driving-category-field[hidden]{display:none!important}.crm-driving-category-field>span{color:#587287;font-size:10px;font-weight:800}.crm-driving-category-field>div{display:flex;flex-wrap:wrap;gap:6px}.crm-driving-category-field>div>label{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:5px!important;margin:0!important;padding:6px 8px!important;border:1px solid #cfdeea;border-radius:7px;background:#fff}.crm-driving-category-field input{width:15px!important;min-height:15px!important}.crm-inline-profile-form.is-viewing .crm-driving-category-field>div>label{background:transparent!important}.crm-profile-actions [data-profile-edit-toggle][aria-disabled="true"]{opacity:.72;pointer-events:none}
@media(max-width:700px){.crm-link-job-form{grid-template-columns:1fr}.crm-driving-category-field{grid-template-columns:1fr!important}}

/* 3.9.63 · carduri Kanban simetrice înainte și după follow-up */
.irimia-board-page .crm-candidate-card{display:grid!important;grid-template-rows:34px 36px 18px 29px!important;align-content:start!important;gap:5px!important;height:142px!important;min-height:142px!important;max-height:142px!important;padding:9px 10px!important;overflow:hidden!important;border-radius:10px!important;background:#fff!important;box-shadow:0 5px 14px rgba(21,55,79,.07)!important}
.irimia-board-page .crm-candidate-card.overdue{border:1px solid #f0c4bf!important;border-left:3px solid #ef3f38!important;background:linear-gradient(145deg,#fff 0%,#fff8f7 100%)!important}
.irimia-board-page .crm-candidate-card>a:first-of-type{display:block!important;min-width:0!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0 27px 0 22px!important;overflow:hidden!important}
.irimia-board-page .crm-candidate-card .crm-card-top{display:flex!important;align-items:flex-start!important;min-width:0!important;height:34px!important;max-height:34px!important;padding:0!important;overflow:hidden!important}
.irimia-board-page .crm-candidate-card .crm-card-top strong{display:-webkit-box!important;min-width:0!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;color:#0873c4!important;font-size:11px!important;font-weight:900!important;line-height:1.18!important}
.irimia-board-page .crm-candidate-card .crm-group-pill{flex:0 0 auto!important;margin-left:auto!important;font-size:7px!important}
.irimia-board-page .crm-candidate-card .crm-card-job{display:-webkit-box!important;height:36px!important;min-height:36px!important;max-height:36px!important;margin:0 0 0 22px!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;color:#17384f!important;font-size:9.5px!important;font-weight:750!important;line-height:1.28!important}
.irimia-board-page .crm-candidate-card .crm-card-meta-compact{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;height:18px!important;margin:0 0 0 22px!important;overflow:hidden!important;font-size:8px!important}
.irimia-board-page .crm-candidate-card .crm-card-phone{display:block!important;min-width:0!important;overflow:hidden!important;color:#58748a!important;font-size:8px!important;font-weight:700!important;text-decoration:none!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.irimia-board-page .crm-candidate-card .crm-card-date{color:#6d8294!important;font-size:7.5px!important;white-space:nowrap!important}
.irimia-board-page .crm-candidate-card .crm-card-actions,.irimia-board-page .crm-candidate-card.overdue .crm-card-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;align-items:stretch!important;gap:5px!important;width:auto!important;min-width:0!important;height:29px!important;margin:0!important;overflow:hidden!important}
.irimia-board-page .crm-candidate-card .crm-card-actions.is-empty{visibility:hidden!important}
.irimia-board-page .crm-candidate-card .crm-card-followup-state,.irimia-board-page .crm-candidate-card .crm-card-offer-action{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:29px!important;min-height:29px!important;margin:0!important;padding:4px 5px!important;overflow:hidden!important;border-radius:7px!important;box-sizing:border-box!important;font-size:7.8px!important;font-weight:900!important;line-height:1!important;text-align:center!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.irimia-board-page .crm-candidate-card .crm-card-followup-state.is-upcoming{border:1px solid #cce0ee!important;background:#f0f7fc!important;color:#416d8d!important}
.irimia-board-page .crm-candidate-card .crm-card-followup-state.is-overdue{border:1px solid #f3c2bd!important;background:#fff0ee!important;color:#bb2e25!important}
.irimia-board-page .crm-candidate-card .crm-card-offer-action{border:1px solid #b9d8ef!important;background:#eef7ff!important;color:#126ca8!important;cursor:pointer!important}
.irimia-board-page .crm-candidate-card .crm-card-offer-action:hover{border-color:#83b8dd!important;background:#dff1ff!important}
.irimia-board-page .crm-candidate-card .crm-card-offer-action:only-child{grid-column:1/-1!important}
.irimia-board-page .crm-candidate-card .crm-card-action-placeholder{display:block!important;grid-column:1/-1!important;height:29px!important}
.irimia-board-page .crm-candidate-card .crm-card-select{top:7px!important;right:7px!important}.irimia-board-page .crm-candidate-card .crm-card-cv-badge{top:8px!important;left:8px!important}
@media(max-width:782px){.irimia-board-page .crm-candidate-card{grid-template-rows:38px 42px 22px 34px auto!important;height:auto!important;min-height:172px!important;max-height:none!important}.irimia-board-page .crm-candidate-card>a:first-of-type,.irimia-board-page .crm-candidate-card .crm-card-top{height:38px!important;min-height:38px!important;max-height:38px!important}.irimia-board-page .crm-candidate-card .crm-card-job{height:42px!important;min-height:42px!important;max-height:42px!important;font-size:11px!important}.irimia-board-page .crm-candidate-card .crm-card-meta-compact{height:22px!important;font-size:9px!important}.irimia-board-page .crm-candidate-card .crm-card-actions{height:34px!important}.irimia-board-page .crm-candidate-card .crm-card-followup-state,.irimia-board-page .crm-candidate-card .crm-card-offer-action{height:34px!important;min-height:34px!important;font-size:9px!important}}

/* U39129: password reset for invited users */
.crm-alert-success{background:#eaf9f2;border:1px solid #b6e5d1;color:#126247}.crm-login-link{justify-self:end;color:#176ea8;font-size:12px;font-weight:800;text-decoration:none}.crm-login-link:hover{text-decoration:underline}.crm-login-link-bottom{display:block;margin-top:18px;text-align:center}
