.collections-shell{--c-ink:#182128;--c-muted:#69747d;--c-line:#dfe4e7;--c-paper:#fff;--c-bg:#f3f5f6;--c-green:#247263;--c-green-dark:#164f45;--c-amber:#bd751b;--c-red:#bc3d38;--c-critical:#762d38;min-height:100vh;background:var(--c-bg);color:var(--c-ink);display:grid;grid-template-columns:250px minmax(0,1fr);font-family:var(--font-sans,"Segoe UI",sans-serif)}
.collections-sidebar{background:#17242a;color:#f4f7f7;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:5}.collections-brand{display:flex;align-items:center;gap:12px;padding:0 8px 24px}.collections-brand>span{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#e5b852;color:#142127;font-weight:900}.collections-brand div{display:flex;flex-direction:column}.collections-brand b{font-size:17px}.collections-brand small{color:#aebbc0;margin-top:3px}.collections-back{color:#dce4e6;text-decoration:none;border:1px solid #415058;border-radius:8px;padding:10px 12px;margin-bottom:24px;font-size:13px}.collections-back:hover{background:#22343c}.collections-nav-label{margin:0 10px 8px;color:#82949c;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.collections-sidebar nav{display:grid;gap:5px}.collections-sidebar nav button{border:0;background:transparent;color:#cbd5d8;border-radius:8px;padding:11px 10px;text-align:left;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:6px;cursor:pointer;font-weight:650}.collections-sidebar nav button:hover,.collections-sidebar nav button.active{background:#25443f;color:#fff}.collections-sidebar nav button.active{box-shadow:inset 3px 0 #e5b852}.collections-sidebar nav button span{color:#e5b852;text-align:center}.collections-sidebar nav button em{font-style:normal;font-size:11px;background:#0f191d;padding:2px 6px;border-radius:10px}.collections-sidebar-note{margin-top:auto;border:1px solid #394a51;border-radius:10px;padding:14px;background:#1c2d34;display:flex;flex-direction:column;gap:5px}.collections-sidebar-note b{color:#e5b852;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.collections-sidebar-note span{color:#cad4d7;font-size:12px;line-height:1.5}
.collections-main{min-width:0;padding:0 28px 40px}.collections-topbar{min-height:98px;background:#fff;border-bottom:1px solid var(--c-line);margin:0 -28px 24px;padding:20px 28px;display:flex;justify-content:space-between;align-items:center;gap:24px}.collections-topbar p{margin:0 0 4px;color:var(--c-green);font-size:10px;font-weight:900;letter-spacing:.14em}.collections-topbar h1{margin:0;font-size:25px;letter-spacing:-.02em}.collections-topbar>div>span{display:block;color:var(--c-muted);font-size:13px;margin-top:4px}.collections-top-actions{display:flex;align-items:end;gap:10px}.collections-top-actions label{font-size:10px;font-weight:800;text-transform:uppercase;color:var(--c-muted);display:flex;flex-direction:column;gap:4px}.collections-top-actions select,.collections-top-actions button{height:38px;border:1px solid var(--c-line);background:#fff;border-radius:7px;padding:0 12px;color:var(--c-ink)}.collections-top-actions button{cursor:pointer;font-weight:700}.collections-error{display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px solid #e7b8b4;background:#fff2f1;border-radius:8px;margin-bottom:16px}.collections-error span{color:#8d3e38}.collections-error button{margin-left:auto}
.collection-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.collection-kpis article{background:var(--c-paper);border:1px solid var(--c-line);border-top:3px solid var(--c-green);border-radius:9px;padding:16px 17px;display:flex;flex-direction:column;min-height:112px}.collection-kpis article.late{border-top-color:var(--c-red)}.collection-kpis article.current{border-top-color:#467e9d}.collection-kpis article.risk{border-top-color:var(--c-critical)}.collection-kpis span{font-size:11px;font-weight:800;text-transform:uppercase;color:var(--c-muted);letter-spacing:.04em}.collection-kpis b{font-size:24px;margin:10px 0 7px}.collection-kpis small{color:var(--c-muted)}
.collections-workspace{display:grid;grid-template-columns:minmax(650px,1fr) minmax(380px,480px);gap:16px;align-items:start}.collections-list-card,.collection-detail{background:var(--c-paper);border:1px solid var(--c-line);border-radius:9px;overflow:hidden;min-height:640px}.collections-list-head{padding:18px 20px 14px;display:flex;justify-content:space-between;gap:20px;align-items:center}.collections-list-head h2{margin:0;font-size:17px}.collections-list-head p{margin:4px 0 0;color:var(--c-muted);font-size:12px}.collections-search{border:1px solid var(--c-line);border-radius:7px;padding:0 10px;height:38px;display:flex;align-items:center;gap:8px;min-width:270px}.collections-search span{color:var(--c-green);font-size:18px}.collections-search input{border:0;outline:0;width:100%;font:inherit;font-size:12px}.collection-segments{display:flex;gap:4px;padding:0 20px 14px;border-bottom:1px solid var(--c-line)}.collection-segments button{border:0;background:#edf1f2;border-radius:6px;padding:7px 13px;cursor:pointer;color:#59656d;font-size:12px;font-weight:700}.collection-segments button.active{background:var(--c-green);color:#fff}.collection-table-head,.collection-row{display:grid;grid-template-columns:minmax(180px,1.45fr) .8fr .8fr .62fr .8fr 20px;align-items:center;gap:10px}.collection-table-head{padding:10px 16px;background:#f6f8f8;color:#7b858b;font-size:9px;text-transform:uppercase;font-weight:900;letter-spacing:.05em}.collection-row{width:100%;border:0;border-bottom:1px solid #edf0f1;background:#fff;text-align:left;padding:13px 16px;cursor:pointer;color:inherit}.collection-row:hover,.collection-row.selected{background:#f2f8f6}.collection-row.selected{box-shadow:inset 3px 0 var(--c-green)}.collection-row>span{display:flex;flex-direction:column;min-width:0}.collection-row b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-row small{color:var(--c-muted);margin-top:4px;font-size:10px}.collection-row strong{font-size:12px;font-variant-numeric:tabular-nums}.collection-row strong.amount-late{color:var(--c-red)}.collection-row time{font-size:11px;color:var(--c-muted)}.collection-row>i{font-size:20px;color:#95a0a6}.collection-empty{padding:44px 20px;text-align:center;color:var(--c-muted)}
.risk-badge{display:inline-flex;width:max-content;border-radius:12px;padding:4px 8px;font-size:10px;font-style:normal;font-weight:850}.risk-badge.low{background:#e2f2ed;color:#1d695b}.risk-badge.medium{background:#fff0d7;color:#9b5b0d}.risk-badge.high{background:#fde2df;color:#a9342f}.risk-badge.critical{background:#eadde0;color:#6e2530}.collection-detail{position:sticky;top:16px;max-height:calc(100vh - 32px);display:flex;flex-direction:column}.collection-detail-empty{margin:auto;padding:40px;text-align:center;color:var(--c-muted)}.collection-detail-empty>span{display:grid;place-items:center;margin:auto;width:54px;height:54px;border-radius:50%;background:#e7f0ed;color:var(--c-green);font-size:24px}.collection-detail-empty h2{color:var(--c-ink);font-size:18px;margin:16px 0 6px}.collection-detail-empty p{line-height:1.55}.detail-head{padding:17px 18px;background:#1e3438;color:white;display:flex;justify-content:space-between;gap:16px}.detail-head p{margin:0 0 4px;color:#a8c8c1;font-size:9px;text-transform:uppercase;font-weight:850;letter-spacing:.1em}.detail-head h2{margin:0;font-size:19px}.detail-head span{display:block;color:#c9d6d8;font-size:11px;margin-top:5px}.detail-head button{align-self:start;width:31px;height:31px;border-radius:50%;border:1px solid #537075;background:transparent;color:#fff;font-size:20px;cursor:pointer}.detail-tabs{display:flex;border-bottom:1px solid var(--c-line)}.detail-tabs button{flex:1;border:0;background:#f7f8f8;padding:11px;cursor:pointer;font-weight:750;color:#68747b;border-bottom:2px solid transparent}.detail-tabs button.active{background:#fff;color:var(--c-green);border-bottom-color:var(--c-green)}.detail-tabs em{font-style:normal;background:#e4ecea;border-radius:10px;padding:1px 6px;margin-left:4px}.detail-scroll{overflow:auto;padding:14px 16px 24px}.customer-risk-strip{border:1px solid var(--c-line);border-radius:8px;padding:11px 12px;display:flex;align-items:center;gap:10px;background:#fafbfb}.risk-dot,.timeline-dot{width:10px;height:10px;border-radius:50%;background:var(--c-green)}.risk-dot.medium,.timeline-dot.medium{background:var(--c-amber)}.risk-dot.high,.timeline-dot.high{background:var(--c-red)}.risk-dot.critical,.timeline-dot.critical{background:var(--c-critical)}.customer-risk-strip div{display:flex;flex-direction:column}.customer-risk-strip b{font-size:12px}.customer-risk-strip small{color:var(--c-muted);font-size:10px}.customer-risk-strip button{margin-left:auto;border:1px solid var(--c-line);background:white;border-radius:6px;padding:7px 9px;font-size:10px;font-weight:700;cursor:pointer}.collection-accordion{border-bottom:1px solid var(--c-line);padding:13px 0}.collection-accordion summary{cursor:pointer;font-size:12px;font-weight:800;list-style:none;display:flex;justify-content:space-between}.collection-accordion summary span{color:var(--c-green);font-size:10px}.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.contact-form label,.reminder-composer>label{display:flex;flex-direction:column;gap:4px;font-size:9px;font-weight:850;text-transform:uppercase;color:#69747b}.contact-form input,.contact-form select,.contact-form textarea,.reminder-composer input,.reminder-composer select,.reminder-composer textarea,.log-action select,.log-action textarea{width:100%;border:1px solid var(--c-line);border-radius:6px;padding:8px 9px;color:var(--c-ink);background:#fff;font:inherit;font-size:12px;text-transform:none;outline:none}.contact-form input:focus,.contact-form textarea:focus,.reminder-composer input:focus,.reminder-composer textarea:focus{border-color:var(--c-green);box-shadow:0 0 0 2px #dcedea}.contact-form .full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:8px}.form-actions button,.statement-actions button{border:1px solid var(--c-line);background:white;border-radius:6px;padding:8px 11px;cursor:pointer;font-weight:700}.primary{border:0!important;background:var(--c-green)!important;color:#fff!important;border-radius:6px;padding:9px 12px;font-weight:800;cursor:pointer}.primary:hover{background:var(--c-green-dark)!important}.primary:disabled{opacity:.55;cursor:not-allowed}
.invoice-selection{padding:15px 0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.section-title h3{font-size:13px;margin:0}.section-title p{font-size:10px;color:var(--c-muted);margin:3px 0 0}.section-title>button{border:0;background:transparent;color:var(--c-green);font-size:10px;font-weight:800;cursor:pointer}.invoice-selection article{border:1px solid var(--c-line);border-left:3px solid #5f91aa;border-radius:7px;padding:10px;margin-bottom:7px}.invoice-selection article.overdue{border-left-color:var(--c-red);background:#fffafa}.invoice-selection article>label{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:7px;cursor:pointer}.invoice-selection article span{display:flex;flex-direction:column}.invoice-selection article b{font-size:12px}.invoice-selection article small{font-size:10px;color:var(--c-muted);margin-top:3px}.invoice-selection article strong{font-size:12px}.invoice-documents{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:5px;margin:8px 0 0 25px}.invoice-documents>span{display:flex!important;flex-direction:row!important;align-items:center;background:#edf2f2;border-radius:5px;padding:4px 6px}.invoice-documents a{color:var(--c-green);text-decoration:none;font-size:9px;font-weight:750}.invoice-documents button{border:0;background:transparent;color:var(--c-red);cursor:pointer}.attach-button{position:relative;overflow:hidden;border:1px dashed #aab8bd;border-radius:5px;padding:4px 7px;font-size:9px;color:#5d6b72;cursor:pointer}.attach-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.reminder-composer{border:1px solid var(--c-line);border-top:4px solid var(--c-green);border-radius:8px;padding:13px;display:grid;gap:10px}.reminder-composer.medium{border-top-color:var(--c-amber)}.reminder-composer.high{border-top-color:var(--c-red)}.reminder-composer.critical{border-top-color:var(--c-critical)}.attachment-choice{flex-direction:row!important;align-items:center;border:1px solid var(--c-line);border-radius:6px;padding:8px!important;text-transform:none!important;cursor:pointer}.attachment-choice input{width:auto!important}.attachment-choice span{display:flex;flex-direction:column}.attachment-choice b{font-size:11px;color:var(--c-ink)}.attachment-choice small{font-size:9px;color:var(--c-muted)}.email-config-note{border-radius:6px;background:#fff6e5;border:1px solid #efd19c;padding:9px;display:flex;flex-direction:column}.email-config-note b{font-size:10px;color:#8c550e}.email-config-note span{font-size:9px;color:#7e633c;margin-top:3px}.send-confirmation{display:flex;justify-content:space-between;align-items:center;gap:10px}.send-confirmation>span{font-size:9px;color:var(--c-muted);max-width:180px}.log-action{background:#f7f9f9;border:1px solid var(--c-line);border-radius:8px;padding:12px;display:grid;gap:8px}.log-action h3{font-size:13px;margin:0}.log-action p{font-size:10px;color:var(--c-muted);margin:3px 0}.history-timeline{padding:15px 3px}.history-timeline article{display:grid;grid-template-columns:14px 1fr;gap:8px;padding-bottom:18px;position:relative}.history-timeline article:not(:last-child):before{content:"";position:absolute;left:4px;top:12px;bottom:0;border-left:1px solid #ccd5d8}.history-timeline .timeline-dot{margin-top:5px;z-index:1}.history-timeline header{display:flex;justify-content:space-between;gap:8px}.history-timeline header b{font-size:11px}.history-timeline p{font-size:10px;line-height:1.55;white-space:pre-wrap;margin:6px 0;color:#4f5b62}.history-timeline footer{font-size:9px;color:#829096}.reminder-status{font-style:normal;font-size:8px;text-transform:uppercase;padding:3px 6px;border-radius:9px;background:#e7eeec;color:#2b695e}.reminder-status.failed{background:#fbe2df;color:#9d332e}.reminder-status.queued{background:#fff0d8;color:#8d570f}.failure{display:block;color:var(--c-red);font-size:9px;margin-bottom:5px}
.statement-backdrop{position:fixed;inset:0;background:#111a1dcc;z-index:50;display:grid;place-items:start center;padding:24px;overflow:auto}.statement-print{box-sizing:border-box;background:white;width:min(1180px,100%);min-height:760px;padding:34px 40px;color:#182128;border-radius:6px;box-shadow:0 24px 70px #0005}.statement-print>header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:3px solid var(--c-green);padding-bottom:14px}.statement-print>header div{display:flex;flex-direction:column}.statement-print>header b{font-size:23px}.statement-print>header span,.statement-print>header small{color:#68747b;margin-top:4px}.statement-print>header div:last-child{text-align:right}.statement-print>section{padding:20px 0 14px}.statement-print>section p{margin:0;color:var(--c-green);font-size:9px;font-weight:900;letter-spacing:.12em}.statement-print h1{margin:4px 0;font-size:25px}.statement-print>section span{color:#68747b;font-size:11px}.statement-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:18px;border:1px solid #d8e1df;border-left:4px solid var(--c-green);background:#f1f5f4}.statement-summary div{min-width:0;padding:12px 14px;border-right:1px solid #d8e1df;display:flex;flex-direction:column}.statement-summary div:last-child{border-right:0}.statement-summary span{font-size:8px;text-transform:uppercase;color:#6d777c;font-weight:800;letter-spacing:.04em}.statement-summary b{overflow:hidden;font-size:14px;margin-top:5px;text-overflow:ellipsis;white-space:nowrap}.statement-print table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}.statement-print col:nth-child(1){width:20%}.statement-print col:nth-child(2),.statement-print col:nth-child(3){width:16%}.statement-print col:nth-child(4){width:23%}.statement-print col:nth-child(5){width:25%}.statement-print th,.statement-print td{padding:8px 10px;border:1px solid #d8e1e5;text-align:left;vertical-align:middle}.statement-print th{background:#e9eff1;color:#405762;font-size:8px;text-transform:uppercase;letter-spacing:.04em}.statement-print tbody tr:nth-child(even){background:#f8fafb}.statement-print th:last-child,.statement-print td:last-child{text-align:right;white-space:nowrap}.statement-print tfoot th{font-size:10px;background:#dfeae8;color:#173f49}.statement-print>footer{text-align:center;color:#7b858b;font-size:8px;margin-top:18px;padding-top:10px;border-top:1px solid #dfe4e7}.statement-actions{position:sticky;bottom:0;display:flex;align-items:center;gap:9px;justify-content:center;width:min(1180px,100%);margin:12px 0 0;padding:10px;border-radius:6px;background:#17242aeF;box-shadow:0 8px 30px #0004}.statement-actions button{padding:10px 16px}.statement-format-badge{margin-right:auto;padding:6px 9px;border:1px solid #75858c;border-radius:4px;color:#e5edef;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.collections-toast{position:fixed;right:24px;bottom:24px;background:#17242a;color:#fff;border-left:4px solid #e5b852;border-radius:7px;padding:13px 17px;z-index:70;box-shadow:0 12px 30px #0003;max-width:420px;font-size:12px}
@media(max-width:1180px){.collections-workspace{grid-template-columns:1fr}.collection-detail{position:fixed;right:0;top:0;bottom:0;width:min(500px,94vw);max-height:none;z-index:30;border-radius:0;box-shadow:-20px 0 50px #13202733}.collection-detail:not(.open){display:none}.collection-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.collections-shell{display:block}.collections-sidebar{position:static;height:auto;padding:12px}.collections-brand{padding-bottom:10px}.collections-sidebar nav,.collections-sidebar-note,.collections-nav-label{display:none}.collections-back{margin:0}.collections-main{padding:0 12px 28px}.collections-topbar{margin:0 -12px 14px;padding:14px 12px;align-items:flex-start}.collections-topbar>div>span{display:none}.collections-top-actions label{display:none}.collections-topbar h1{font-size:20px}.collection-kpis{grid-template-columns:1fr 1fr;gap:7px}.collection-kpis article{min-height:96px;padding:12px}.collection-kpis b{font-size:18px}.collections-list-head{display:block}.collections-search{margin-top:12px;min-width:0}.collection-table-head{display:none}.collection-row{grid-template-columns:1.5fr 1fr 55px 14px}.collection-row>strong:nth-of-type(2),.collection-row time{display:none}.collections-workspace{display:block}.statement-backdrop{padding:10px}.statement-print{min-width:980px;min-height:0;padding:24px}.statement-summary{grid-template-columns:repeat(5,minmax(150px,1fr))}.statement-print table{font-size:9px}.statement-actions{min-width:980px;justify-content:flex-end}.statement-format-badge{margin-right:auto}}
/* Harmonisation Recouvrement avec les univers Maintenance et Trésorerie */
.collections-shell{--c-bg:#eef2f5;--c-paper:#fff;--c-line:#cbd6dd;--c-green:#006b8f;--c-green-dark:#00526f;grid-template-columns:282px minmax(0,1fr);background:#eef2f5;color:#263f4d}
.collections-sidebar{padding:10px 6px 0;background:linear-gradient(180deg,#edf3f7 0%,#e2edf3 100%);color:#29495c;border-right:1px solid #aebfca;box-shadow:2px 0 7px rgba(34,65,82,.12);overflow-y:auto}.collections-brand{gap:10px;padding:8px 10px 14px;border-bottom:1px solid #c5d2da}.collections-brand img{width:44px;height:44px;object-fit:contain}.collections-brand b{color:#173f55;font-size:14px}.collections-brand small{color:#718997;font-size:9px}.collections-back{margin:12px 10px 28px;padding:14px 13px;border:1px solid #7f9bab;border-radius:2px;background:#f8fbfd;color:#06456a;font-weight:800}.collections-back:hover{background:#fff;border-color:#006b8f}.collections-nav-label{margin:0 7px 5px;padding:0 0 7px;border-bottom:1px solid #c3d1d9;color:#687f8e;font-size:8px;letter-spacing:.1em}.collections-nav-separator{margin-top:14px}.collections-sidebar nav{gap:2px}.collections-sidebar nav button{min-height:39px;padding:8px 9px;border:1px solid transparent;border-radius:3px;color:#52646e;font-size:13px;font-weight:500}.collections-sidebar nav button:hover{background:#d9e7ee;color:#143f56}.collections-sidebar nav button.active{background:#d5dede;color:#152e3b;border-color:#00698f;box-shadow:inset 4px 0 #d64b38}.collections-sidebar nav button span{color:#14779c;font-size:11px}.collections-sidebar nav button em{background:#d2e0e7;color:#345b70;font-size:8px}.collections-sidebar-note{margin:18px 0 0;padding:11px 12px;border:1px solid #aabcc7;border-radius:2px;background:#fff}.collections-sidebar-note b{display:flex;align-items:center;gap:6px;color:#36566a;font-size:10px;letter-spacing:0;text-transform:none}.collections-sidebar-note b i{width:9px;height:9px;border-radius:50%;background:#42c79d;box-shadow:0 0 0 4px #e0f6ee}.collections-sidebar-note span{color:#728793;font-size:9px;line-height:1.55}.collections-user{display:flex;align-items:center;gap:10px;margin:12px -6px 0;padding:12px 14px;border-top:1px solid #b9cad4;background:#dce8ee}.collections-user>span{display:grid;place-items:center;width:36px;height:36px;border:1px solid #abc0cb;border-radius:50%;background:#fff;color:#244b60;font-size:11px;font-weight:900}.collections-user p{display:grid;gap:3px;margin:0}.collections-user b{font-size:11px}.collections-user small{color:#7b909b;font-size:8px}
.collections-main{padding:0 30px 44px}.collections-topbar{margin:0 -30px 24px;padding:18px 30px;border-bottom-color:#c3d0d7}.collections-topbar p{color:#16789b}.collection-kpis article{border-radius:4px;box-shadow:0 1px 2px rgba(30,60,75,.04)}.collections-list-card,.collection-detail{border-radius:4px}.detail-head{background:linear-gradient(135deg,#123f54,#17677d)}
.collection-worklist-card,.collection-reporting>article,.reporting-grid>article{border:1px solid #c6d3da;border-radius:4px;background:#fff;box-shadow:0 1px 2px rgba(29,55,68,.05)}.collection-worklist-card>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #cad6dc}.collection-worklist-card header p,.collection-reporting header p{margin:0 0 4px;color:#157899;font-size:8px;font-weight:900;letter-spacing:.1em}.collection-worklist-card h2,.collection-reporting h2{margin:0;font-size:17px}.collection-worklist-card header span{display:block;margin-top:4px;color:#71818a;font-size:10px}.workflow-rules{display:flex;align-items:center;gap:10px;padding:12px 20px;background:#f1f6f8;border-bottom:1px solid #cbd7dd}.workflow-rules span{display:flex;align-items:center;gap:5px;color:#566d79;font-size:9px}.workflow-rules b{padding:3px 5px;border-radius:3px;background:#d7e6ed;color:#145c79}.workflow-rules i{color:#93a8b2}.worklist-head,.worklist-row{display:grid;grid-template-columns:minmax(210px,1.35fr) .7fr .55fr 1fr 1fr 18px;align-items:center;gap:12px}.worklist-head{padding:9px 16px;background:#e7eef2;color:#667d89;font-size:8px;font-weight:900;text-transform:uppercase}.worklist-row{width:100%;padding:12px 16px;border:0;border-bottom:1px solid #e2e8eb;background:#fff;color:#263f4d;text-align:left;cursor:pointer}.worklist-row:hover{background:#f2f7f9;box-shadow:inset 3px 0 #147da0}.worklist-row>span:first-child{display:flex;align-items:center;gap:9px}.worklist-row>span:first-child>em{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e4edf1;color:#276079;font-size:9px;font-style:normal;font-weight:900}.worklist-row p,.worklist-row>span{display:grid;gap:3px;margin:0}.worklist-row b,.worklist-row strong{font-size:11px}.worklist-row small{color:#71838c;font-size:8px}.worklist-row>strong{color:#b63d33}.worklist-row>i{color:#6f8b98;font-size:18px}.contact-ready b{color:#25775f}.contact-missing b{color:#ae493c}
.collection-reporting{display:grid;gap:14px}.reporting-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.reporting-metrics article{display:grid;gap:5px;padding:15px;border:1px solid #c7d4da;border-top:3px solid #167b9e;background:#fff}.reporting-metrics span{color:#6c7f89;font-size:8px;font-weight:900;text-transform:uppercase}.reporting-metrics b{font-size:22px}.reporting-metrics small{color:#74858e;font-size:9px}.reporting-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px}.aging-report,.activity-report,.benchmark-principles{padding:18px}.aging-report>header,.activity-report>header,.benchmark-principles>header{display:flex;justify-content:space-between;align-items:start;margin-bottom:16px}.aging-report header strong{font-size:17px;color:#264b5e}.aging-bars{display:grid;gap:9px}.aging-bars>button{display:grid;gap:5px;width:100%;padding:8px;border:1px solid transparent;border-radius:4px;background:#fff;color:inherit;text-align:left;cursor:pointer}.aging-bars>button:hover,.aging-bars>button:focus-visible{border-color:#8fb5c4;background:#f1f7f9;outline:0}.aging-bars>button>span{display:flex;justify-content:space-between;font-size:10px}.aging-bars>button>i{height:13px;overflow:hidden;border-radius:2px;background:#e8eef1}.aging-bars>button>i>em{display:block;height:100%;min-width:2px;background:#4d91ad}.aging-bars>button>i>em.medium{background:#d99a31}.aging-bars>button>i>em.high{background:#d85a49}.aging-bars>button>i>em.critical{background:#8f3340}.aging-bars small{display:flex;justify-content:space-between;color:#758992;font-size:8px}.aging-bars small>em{color:#08718f;font-style:normal;font-weight:800}.activity-report>header{display:block}.activity-report>div{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d2dde2}.activity-report>div span{display:grid;gap:2px;padding:13px;border-right:1px solid #d2dde2;border-bottom:1px solid #d2dde2}.activity-report>div span:nth-child(2n){border-right:0}.activity-report>div span:nth-child(n+3){border-bottom:0}.activity-report>div b{font-size:19px}.activity-report>div small{color:#71858f;font-size:8px}.activity-report .has-failure b{color:#bd4035}.activity-report>p{display:grid;gap:4px;margin:14px 0 0;padding:11px;border-left:3px solid #d5902b;background:#fff7e8}.activity-report>p b{font-size:9px}.activity-report>p span{color:#6f654f;font-size:9px;line-height:1.45}.benchmark-principles>header{display:block}.benchmark-principles>div{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.benchmark-principles>div span{display:grid;gap:4px;padding:12px;border:1px solid #d0dce1;background:#f5f8f9}.benchmark-principles b{font-size:10px;color:#165d79}.benchmark-principles small{font-size:8px;color:#71838c}
.reminder-status.draft{background:#e4e9f4;color:#485d89}
.reminder-history-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.reminder-history-actions button{min-height:30px;padding:5px 8px;border:1px solid #aebfc8;border-radius:4px;background:#fff;color:#274b5e;font-size:8px;font-weight:800;cursor:pointer}.reminder-history-actions button.transmit{border-color:#177a64;background:#eaf6f2;color:#17624f}.reminder-history-actions button.delete{border-color:#d3a7a2;color:#a52f28}.reminder-history-actions button:disabled{opacity:.5}
.collection-delivery-status{display:flex;align-items:center;gap:10px;padding:9px 16px;border-bottom:1px solid #cad6dc;font-size:9px;line-height:1.4}.collection-delivery-status b{white-space:nowrap;font-size:9px}.collection-delivery-status.ready{background:#edf8f3;color:#246650}.collection-delivery-status.waiting{background:#fff7e8;color:#80591c}.collection-delivery-status span{color:inherit}
.case-alert b{color:#b42318}.case-warning b{color:#9a641d}
.reporting-metrics-six{grid-template-columns:repeat(3,1fr)}.reporting-metrics-six .metric-alert{border-top-color:#b42318;background:#fff7f6}.reporting-metrics-six .metric-alert b{color:#b42318}
.scenario-performance{padding:18px}.scenario-performance>header{margin-bottom:12px}.scenario-performance>header p{margin:0 0 4px}.scenario-performance>header h2{margin:0;font-size:17px}.scenario-head,.scenario-row{display:grid;grid-template-columns:1.1fr .45fr 1fr .7fr .6fr .45fr;gap:10px;align-items:center}.scenario-head{padding:8px 10px;background:#e8eff2;color:#617985;font-size:8px;font-weight:900;text-transform:uppercase}.scenario-row{min-height:46px;padding:8px 10px;border-bottom:1px solid #e0e8eb;font-size:10px}.scenario-row>span{display:flex;align-items:center;gap:8px}.scenario-row strong{font-variant-numeric:tabular-nums}.scenario-row .failure-number{color:#b42318}
.collectible-summary{display:grid;grid-template-columns:repeat(4,1fr);margin:10px 0;border:1px solid #cbd9df;background:#f5f8f9}.collectible-summary>div{display:grid;gap:4px;padding:9px;border-right:1px solid #cbd9df}.collectible-summary>div:last-child{border-right:0}.collectible-summary span{color:#6a7f89;font-size:7px;font-weight:900;text-transform:uppercase}.collectible-summary b{font-size:10px}.collectible-summary .net{background:#e6f1f3}.collectible-summary .net b{color:#075c77}
.collection-cases>summary{color:#234b5f}.case-list{display:grid;gap:7px;padding:10px}.case-list>p{margin:0;color:#71838c;font-size:9px}.case-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;border:1px solid #d6e0e4;border-left:3px solid #16809d;background:#f9fbfc}.case-list article.broken{border-left-color:#b42318;background:#fff6f5}.case-list article>div{display:grid;gap:3px}.case-list article span{color:#657c87;font-size:7px;font-weight:900;text-transform:uppercase}.case-list article b{font-size:11px}.case-list article small{color:#6e7d84;font-size:8px;line-height:1.4}.case-list article>em{align-self:start;padding:3px 6px;border-radius:3px;background:#dce9ed;color:#285a70;font-size:7px;font-style:normal;font-weight:900;text-transform:uppercase}.case-list article.broken>em{background:#f5d8d4;color:#a1271e}.case-list article>nav{grid-column:1/-1;display:flex;justify-content:flex-end;gap:6px}.case-list article>nav button{min-height:29px;padding:5px 8px;border:1px solid #b7c7ce;border-radius:4px;background:#fff;color:#315463;font-size:8px;font-weight:800;cursor:pointer}.case-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border-top:1px solid #d6e0e4;background:#eef4f6}.case-form label{display:grid;gap:4px;color:#5f747e;font-size:7px;font-weight:900;text-transform:uppercase}.case-form input,.case-form select,.case-form textarea{box-sizing:border-box;width:100%;min-height:36px;padding:7px 8px;border:1px solid #bfced5;border-radius:5px;background:#fff;color:#223d4a;font:inherit;font-size:9px;text-transform:none}.case-form .full{grid-column:1/-1}
.aging-detail-backdrop{position:fixed;inset:0;z-index:55;display:grid;place-items:start center;padding:24px;overflow:auto;background:#111a1dcc}.aging-detail-print{box-sizing:border-box;width:min(1220px,100%);min-height:760px;padding:34px 40px;border-radius:6px;background:#fff;color:#182128;box-shadow:0 24px 70px #0005}.aging-detail-print>header{display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:14px;border-bottom:3px solid var(--c-green)}.aging-detail-print>header div{display:grid;gap:3px}.aging-detail-print>header b{font-size:22px}.aging-detail-print>header span,.aging-detail-print>header small{color:#68747b}.aging-detail-print>header div:last-child{text-align:right}.aging-detail-summary{display:grid;grid-template-columns:1fr .7fr 1fr;margin:18px 0;border:1px solid #d4dfe3;border-left:4px solid var(--c-green);background:#f1f5f4}.aging-detail-summary>div{display:grid;gap:5px;padding:12px 14px;border-right:1px solid #d4dfe3}.aging-detail-summary>div:last-child{border-right:0}.aging-detail-summary span{color:#6d7b82;font-size:8px;font-weight:850;text-transform:uppercase}.aging-detail-summary b{font-size:15px}.aging-detail-print table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}.aging-detail-print th,.aging-detail-print td{padding:7px 8px;border:1px solid #d6e0e4;text-align:left}.aging-detail-print th{background:#e9eff1;color:#405762;font-size:8px;text-transform:uppercase}.aging-detail-print tbody tr:nth-child(even){background:#f8fafb}.aging-detail-print th:last-child,.aging-detail-print td:last-child{text-align:right;white-space:nowrap}.aging-detail-print tfoot th{background:#dfeae8;color:#173f49;font-size:10px}.aging-detail-print>footer{margin-top:16px;padding-top:8px;border-top:1px solid #dfe4e7;color:#7b858b;font-size:8px;text-align:center}.aging-detail-actions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:9px;width:min(1220px,100%);margin-top:12px;padding:10px;border-radius:6px;background:#17242aef;box-shadow:0 8px 30px #0004}.aging-detail-actions>span{margin-right:auto;color:#e5edef;font-size:10px;font-weight:850;text-transform:uppercase}.aging-detail-actions button{padding:9px 13px;border:1px solid #aebdc4;border-radius:5px;background:#fff;color:#223f4d;font-weight:750;cursor:pointer}
@media(max-width:1100px){.worklist-head{display:none}.worklist-row{grid-template-columns:1.2fr .7fr .5fr 1fr 16px}.worklist-row>.contact-ready,.worklist-row>.contact-missing,.worklist-row>.case-alert,.worklist-row>.case-warning{display:none}.reporting-grid{grid-template-columns:1fr}.reporting-metrics,.benchmark-principles>div{grid-template-columns:1fr 1fr}.scenario-head,.scenario-row{grid-template-columns:1fr .5fr 1fr .6fr}.scenario-head span:nth-child(5),.scenario-head span:nth-child(6),.scenario-row>*:nth-child(5),.scenario-row>*:nth-child(6){display:none}}
@media(max-width:760px){.collections-shell{display:block}.collections-sidebar{height:auto}.collections-brand,.collections-sidebar nav,.collections-sidebar-note,.collections-nav-label,.collections-user{display:none}.collections-back{margin:0}.collections-main{padding:0 12px 28px}.reporting-metrics,.benchmark-principles>div{grid-template-columns:1fr 1fr}.collection-worklist-card>header{align-items:stretch;display:grid}.workflow-rules{overflow-x:auto}.worklist-row{grid-template-columns:1fr auto 44px 14px}.worklist-row>span:nth-of-type(2),.worklist-row>span:nth-of-type(3){display:none}.collectible-summary{grid-template-columns:1fr 1fr}.case-form{grid-template-columns:1fr}.case-form .full{grid-column:auto}.scenario-head,.scenario-row{grid-template-columns:1fr .5fr 1fr}.scenario-head span:nth-child(4),.scenario-row>*:nth-child(4){display:none}}

/* Enterprise AR cockpit */
.enterprise-ar{display:grid;gap:14px}.enterprise-ar-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #bfd0d8;border-top:4px solid #08799a;background:linear-gradient(100deg,#fff,#eef6f8)}.enterprise-ar-head p,.enterprise-ar article header p{margin:0 0 4px;color:#08799a;font-size:9px;font-weight:900;letter-spacing:.1em}.enterprise-ar-head h2,.enterprise-ar h3{margin:0}.enterprise-ar-head span,.enterprise-ar header span{display:block;margin-top:4px;color:#667e89;font-size:10px}.enterprise-ar button{border:1px solid #9db4bf;border-radius:4px;background:#fff;color:#174d65;font-weight:800;cursor:pointer}.enterprise-ar button.primary{border-color:#08799a;background:#08799a;color:#fff}.enterprise-ar-head>button{padding:11px 16px}.enterprise-notice{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-left:4px solid #2c9270;background:#e8f7f1;color:#1b5f4c;font-size:11px;font-weight:700}.enterprise-notice button{border:0;background:transparent}.enterprise-tabs{display:flex;border-bottom:1px solid #bfcfd7}.enterprise-tabs button{padding:10px 15px;border:0;border-bottom:3px solid transparent;background:transparent}.enterprise-tabs button.active{border-bottom-color:#08799a;color:#08799a}.enterprise-tabs em{display:inline-grid;place-items:center;min-width:18px;margin-left:5px;padding:2px;border-radius:9px;background:#dcebf0;font-size:8px;font-style:normal}.enterprise-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.enterprise-kpis article{display:grid;gap:4px;padding:15px;border:1px solid #c7d5dc;border-top:3px solid #08799a;background:#fff}.enterprise-kpis span{color:#637985;font-size:8px;font-weight:900;text-transform:uppercase}.enterprise-kpis b{font-size:22px}.enterprise-kpis small{color:#71848d;font-size:8px}.enterprise-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:14px}.enterprise-aging,.enterprise-forecast,.enterprise-exceptions,.enterprise-task-card,.enterprise-risk-card,.enterprise-scenarios>article{padding:18px;border:1px solid #c6d4da;background:#fff}.enterprise-aging>header,.enterprise-forecast>header,.enterprise-exceptions>header,.enterprise-task-card>header,.enterprise-risk-card>header,.enterprise-scenarios>article>header{display:flex;justify-content:space-between;align-items:start;margin-bottom:15px}.enterprise-aging>div{display:grid;gap:5px;margin:9px 0}.enterprise-aging>div span{display:flex;justify-content:space-between;font-size:10px}.enterprise-aging>div i{height:12px;background:#e7eef1}.enterprise-aging>div i em{display:block;height:100%;background:#4d93ae}.enterprise-aging>div i em.days1to30{background:#dca038}.enterprise-aging>div i em.days31to60{background:#da704b}.enterprise-aging>div i em.days61to90{background:#bd463e}.enterprise-aging>div i em.days90plus{background:#722f3a}.enterprise-forecast>div{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #dde6ea}.enterprise-forecast>div span{display:grid}.enterprise-forecast>div small,.enterprise-forecast footer{color:#71848d;font-size:8px}.enterprise-forecast footer{padding-top:12px;line-height:1.5}.enterprise-exceptions>div{display:grid;grid-template-columns:1fr 1fr;gap:20px}.enterprise-exceptions section>b{display:block;margin-bottom:7px;color:#566f7b;font-size:9px;text-transform:uppercase}.enterprise-exceptions section p{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;margin:0;padding:10px;border-bottom:1px solid #e0e7ea}.enterprise-exceptions section p span{display:grid}.enterprise-exceptions section p small{color:#748791;font-size:8px}.enterprise-exceptions section p em{padding:4px 6px;background:#fff0e4;color:#9b4c20;font-size:8px;font-style:normal}.enterprise-exceptions section p em.breached{background:#fee4e2;color:#b42318}.enterprise-task-card>header button{padding:8px 12px}.enterprise-task-row{display:grid;grid-template-columns:24px 1fr 1.2fr .55fr .7fr .55fr .75fr 150px;align-items:center;gap:9px;padding:10px;border-bottom:1px solid #dce5e9;font-size:10px}.enterprise-task-row.head{background:#e8f0f3;color:#637985;font-size:8px;font-weight:900;text-transform:uppercase}.enterprise-task-row>span{display:grid;gap:2px}.enterprise-task-row small{color:#71858f;font-size:8px}.enterprise-task-row nav{display:flex;gap:5px}.enterprise-task-row nav button{padding:6px}.enterprise-task-row em{font-style:normal}.enterprise-empty{padding:30px;text-align:center;color:#71838c}.enterprise-scenarios{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:14px}.enterprise-scenarios>article>header em{padding:5px 8px;border-radius:10px;background:#edf1f3;color:#687c85;font-size:8px;font-style:normal}.enterprise-scenarios>article>header em.active{background:#dff4eb;color:#23715c}.scenario-timeline{display:grid}.scenario-timeline>div{display:grid;grid-template-columns:45px 20px 1fr;align-items:stretch;min-height:68px}.scenario-timeline>div>span{padding-top:9px;font-size:10px;font-weight:900}.scenario-timeline>div>i{position:relative;border-left:2px solid #93b6c5}.scenario-timeline>div>i:before{content:"";position:absolute;left:-6px;top:10px;width:9px;height:9px;border-radius:50%;background:#08799a}.scenario-timeline section{display:grid;gap:2px;padding:7px 10px 12px;border-bottom:1px solid #e2e8eb}.scenario-timeline section small{color:#71838d;font-size:8px}.scenario-timeline section em{justify-self:start;margin-top:3px;padding:3px 5px;background:#fff4dd;color:#8b5c12;font-size:8px;font-style:normal}.enterprise-scenarios article>footer{padding-top:10px;color:#6d808a;font-size:8px}.risk-row{display:grid;grid-template-columns:1.25fr .7fr .65fr .75fr .8fr .8fr 80px;align-items:center;gap:12px;width:100%;padding:11px;border:0;border-bottom:1px solid #dce5e9!important;border-radius:0!important;text-align:left}.risk-row.head{background:#e8f0f3;color:#637985;font-size:8px;font-weight:900;text-transform:uppercase}.risk-row>span{display:grid;gap:3px}.risk-row small{color:#71858f;font-size:8px}.risk-row>span:nth-child(2)>i{height:5px;background:#e0e8eb}.risk-row>span:nth-child(2)>i em{display:block;height:100%;background:#3a9478}.risk-row>span:nth-child(2)>i em.high,.risk-row>span:nth-child(2)>i em.critical{background:#c54d42}.risk-row>em{font-style:normal;color:#08799a}.enterprise-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(15,34,44,.62)}.enterprise-modal form{display:grid;grid-template-columns:1fr 1fr;gap:13px;width:min(680px,100%);max-height:90vh;overflow:auto;padding:20px;border-top:5px solid #08799a;background:#fff}.enterprise-modal form>header,.enterprise-modal .modal-actions,.enterprise-modal form>label:last-of-type{grid-column:1/-1}.enterprise-modal form>header{display:flex;justify-content:space-between}.enterprise-modal form>header button{border:0;font-size:20px}.enterprise-modal label{display:grid;gap:5px;font-size:9px;font-weight:800}.enterprise-modal input[type=number],.enterprise-modal textarea{padding:9px;border:1px solid #b9c9d1}.enterprise-modal fieldset{display:flex;align-items:center;gap:10px;border:1px solid #cbd7dd}.enterprise-modal fieldset label{display:flex}.enterprise-modal .check{display:flex;grid-column:1/-1;align-items:start}.enterprise-modal .check span{display:grid}.enterprise-modal .check small{color:#71838c;font-weight:400}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:10px;border-top:1px solid #d9e2e6}.modal-actions button{padding:9px 12px}.enterprise-loading,.enterprise-error{display:grid;gap:8px;padding:32px;border:1px solid #c7d5dc;background:#fff;text-align:center}
@media(max-width:1100px){.enterprise-kpis{grid-template-columns:1fr 1fr}.enterprise-grid,.enterprise-exceptions>div{grid-template-columns:1fr}.enterprise-task-row{grid-template-columns:24px 1fr 1fr .6fr 120px}.enterprise-task-row>*:nth-child(4),.enterprise-task-row>*:nth-child(6),.enterprise-task-row>*:nth-child(7){display:none}.risk-row{grid-template-columns:1.2fr .7fr .7fr .8fr 70px}.risk-row>*:nth-child(3),.risk-row>*:nth-child(6){display:none}}
@media(max-width:760px){.enterprise-ar-head{display:grid}.enterprise-tabs{overflow-x:auto}.enterprise-tabs button{white-space:nowrap}.enterprise-kpis{grid-template-columns:1fr}.enterprise-scenarios{grid-template-columns:1fr}.enterprise-task-row{grid-template-columns:24px 1fr .7fr}.enterprise-task-row>*:nth-child(n+4):not(:last-child){display:none}.enterprise-task-row nav{display:grid}.risk-row{grid-template-columns:1fr .7fr 30px}.risk-row>*:nth-child(n+3):not(:last-child){display:none}.enterprise-modal form{grid-template-columns:1fr}.enterprise-modal form>*{grid-column:1!important}}

/* Densité ERP et navigation vers le détail AR */
.enterprise-ar-head{min-height:82px;padding:12px 16px}.enterprise-ar-head h2{font-size:16px;font-weight:650}.enterprise-ar-head>div>span{font-size:9px}.enterprise-ar-head>button{min-height:34px;padding:8px 13px;font-size:9px}
.enterprise-tabs button{padding:8px 14px;font-size:11px;font-weight:650}.enterprise-tabs em{font-size:7px}
.enterprise-risk-card{padding:14px!important}.enterprise-risk-card>header{align-items:end;margin-bottom:9px}.enterprise-risk-card>header p{margin:0 0 2px;font-size:8px}.enterprise-risk-card>header h3{font-size:14px;font-weight:600}.enterprise-risk-card>header>span{font-size:8px}
.risk-row{grid-template-columns:1.25fr .72fr .66fr .76fr .78fr .72fr 80px;min-height:42px;padding:6px 8px;gap:8px;font-size:9px;line-height:1.25}.risk-row.head{min-height:28px;padding-block:4px;font-size:7px}.risk-row b,.risk-row strong{font-size:10px;font-weight:700}.risk-row small{font-size:7px;font-weight:400}.risk-row>span:nth-child(3),.risk-row>span:nth-child(4),.risk-row>span:nth-child(6){font-size:9px;font-weight:600}.risk-row>em{font-size:8px;font-weight:700}.risk-row>span:nth-child(2)>i{height:4px}
.enterprise-modal form{gap:9px;padding:15px;border-top-width:3px}.enterprise-modal form>header h3{font-size:15px;font-weight:650}.enterprise-modal label,.enterprise-modal fieldset{font-size:8px}.enterprise-modal input[type=number],.enterprise-modal textarea{padding:7px;font-size:9px}.enterprise-modal .check b{font-size:9px}.enterprise-modal .check small{font-size:7.5px}.modal-actions button{padding:7px 10px;font-size:8px}
.enterprise-aging>header small{display:block;margin-top:3px;color:#71848d;font-size:7px}.enterprise-aging>button{display:grid;gap:4px;width:100%;margin:0;padding:6px 0;border:0;border-bottom:1px solid #e0e7eb;border-radius:0;background:#fff;color:inherit;text-align:left;cursor:pointer}.enterprise-aging>button:hover,.enterprise-aging>button.active{background:#f0f6fa}.enterprise-aging>button>span{display:flex;justify-content:space-between;font-size:9px}.enterprise-aging>button>i{height:10px;background:#e7eef1}.enterprise-aging>button>i>em{display:block;height:100%;background:#4d93ae}.enterprise-aging>button>i>em.days1to30{background:#dca038}.enterprise-aging>button>i>em.days31to60{background:#da704b}.enterprise-aging>button>i>em.days61to90{background:#bd463e}.enterprise-aging>button>i>em.days90plus{background:#722f3a}.enterprise-aging>button>small{justify-self:end;color:#08799a;font-size:7px;font-weight:700;opacity:0}.enterprise-aging>button:hover>small,.enterprise-aging>button.active>small{opacity:1}
.aging-bucket-detail{padding:0!important;border:1px solid #aebfca!important;background:#fff}.aging-bucket-detail>header{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-bottom:1px solid #aebfca;background:#d9e5f3}.aging-bucket-detail>header p{margin:0;color:#28607d;font-size:7px;font-weight:900;letter-spacing:.09em}.aging-bucket-detail>header h3{margin:1px 0;color:#163f56;font-size:14px}.aging-bucket-detail>header span{color:#617783;font-size:8px}.aging-bucket-detail>header button{width:28px;height:28px;border:1px solid #8fa5b3;border-radius:0;background:#fff;font-size:15px}.aging-detail-head,.aging-customer-row{display:grid;grid-template-columns:minmax(180px,1.3fr) .75fr .75fr .6fr .6fr 110px;align-items:center;gap:8px}.aging-detail-head{min-height:28px;padding:3px 10px;border-bottom:1px solid #aebfca;background:#edf3f7;color:#526b79;font-size:7px;font-weight:900;text-transform:uppercase}.aging-customer-row{width:100%;min-height:42px;padding:5px 10px;border:0;border-bottom:1px solid #d8e0e5;border-radius:0;background:#fff;color:#183e54;text-align:left;cursor:pointer}.aging-customer-row:nth-child(odd){background:#f8fafb}.aging-customer-row:hover{background:#eaf3f9}.aging-customer-row>span{display:grid;gap:1px}.aging-customer-row b,.aging-customer-row strong{font-size:9px}.aging-customer-row small{color:#70838d;font-size:7px}.aging-customer-row em{color:#08799a;font-size:8px;font-style:normal;font-weight:800}
.aging-customer-row>*:nth-child(4),.aging-customer-row>.aging-max-delay{font-size:9px!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap}
@media(max-width:800px){.aging-bucket-detail{overflow-x:auto}.aging-detail-head,.aging-customer-row{min-width:760px}.risk-row{grid-template-columns:1fr .7fr 65px}}
.collections-shell.is-embedded{display:block;min-height:100vh}
.collections-shell.is-embedded>.collections-sidebar{display:none}
.collections-shell.is-embedded>.collections-main{width:100%;min-height:100vh;margin:0;padding-left:24px;padding-right:24px}
.collections-shell.is-embedded .collections-topbar{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}
.collections-shell.is-embedded .collections-top-actions>button:last-child{display:inline-flex}
@page collection-statement{size:A4 landscape;margin:9mm}
@page aging-detail{size:A4 landscape;margin:9mm}
@page collections-reporting{size:A4 landscape;margin:9mm}
.collections-report-print{display:none}
.collection-delivery-status button{margin-left:auto;min-height:28px;padding:5px 10px;border:1px solid currentColor;border-radius:3px;background:#fff;color:inherit;font-size:8px;font-weight:850;cursor:pointer;white-space:nowrap}
.email-settings-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(13,32,42,.66)}
.email-settings-modal{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;border:1px solid #91a9b6;border-top:5px solid #08799a;background:#fff;box-shadow:0 24px 70px rgba(7,31,43,.32)}
.email-settings-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid #c6d4db;background:#eef4f7}.email-settings-modal>header p{margin:0 0 3px;color:#08799a;font-size:8px;font-weight:900;letter-spacing:.1em}.email-settings-modal>header h2{margin:0;color:#173f55;font-size:18px}.email-settings-modal>header span{display:block;margin-top:4px;color:#647b87;font-size:9px}.email-settings-modal>header>button{width:30px;height:30px;border:1px solid #91a8b4;background:#fff;color:#214d62;font-size:18px;cursor:pointer}
.email-settings-modal form{padding:18px 20px}.email-settings-loading{padding:44px;text-align:center;color:#637985}.email-settings-state{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:10px 12px;border-left:4px solid #d49b2e;background:#fff7e7}.email-settings-state.ready{border-color:#278168;background:#eaf7f2}.email-settings-state.failed{border-color:#bd433c;background:#fff0ef}.email-settings-state>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#1d5c70;font-weight:900}.email-settings-state>div{display:grid;gap:2px}.email-settings-state b{font-size:10px}.email-settings-state small{color:#627985;font-size:8px}
.email-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.email-settings-grid label{display:grid;gap:5px;color:#526d7a;font-size:8px;font-weight:850;text-transform:uppercase}.email-settings-grid label.full{grid-column:1/-1}.email-settings-grid input,.email-settings-grid select{width:100%;height:38px;padding:0 10px;border:1px solid #aebfc8;border-radius:2px;background:#fff;color:#173f55;font-size:10px}.email-settings-grid small{font-size:8px;font-weight:400;text-transform:none;color:#728792}.email-settings-grid .email-settings-switch{display:flex;flex-direction:row;align-items:center;align-self:end;height:38px;padding:0 10px;border:1px solid #aebfc8;background:#f8fafb;text-transform:none}.email-settings-switch input{width:15px;height:15px}.email-settings-modal footer{display:flex;justify-content:flex-end;gap:8px;margin-top:17px;padding-top:14px;border-top:1px solid #d7e1e5}.email-settings-modal footer button,.email-test-panel button{min-height:34px;padding:7px 11px;border:1px solid #91a8b4;border-radius:3px;background:#fff;color:#174d65;font-size:9px;font-weight:850;cursor:pointer}
.email-test-panel{display:grid;grid-template-columns:1fr minmax(220px,.8fr) auto;align-items:center;gap:10px;margin-top:16px;padding:12px;border:1px solid #c6d5dc;background:#edf4f7}.email-test-panel>div{display:grid;gap:2px}.email-test-panel b{font-size:10px}.email-test-panel span{color:#647c88;font-size:8px}.email-test-panel input{height:34px;padding:0 9px;border:1px solid #9fb3bd;font-size:9px}
@media(max-width:700px){.email-settings-backdrop{padding:0}.email-settings-modal{width:100%;max-height:100vh}.email-settings-grid{grid-template-columns:1fr}.email-settings-grid label.full{grid-column:auto}.email-test-panel{grid-template-columns:1fr}.collection-delivery-status{align-items:flex-start;flex-wrap:wrap}.collection-delivery-status button{margin-left:0}}
@media print{html,body{width:auto!important;height:auto!important;margin:0!important;background:#fff!important}.collections-shell{display:block!important;min-height:0!important;background:#fff!important}body.printing-collection-statement .collections-shell>:not(.statement-backdrop),body.printing-aging-detail .collections-shell>:not(.aging-detail-backdrop),body.printing-collections-reporting .collections-shell>:not(.collections-report-print){display:none!important}body.printing-collection-statement .statement-backdrop,body.printing-aging-detail .aging-detail-backdrop{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;padding:0!important;overflow:visible!important;background:#fff!important}body.printing-collection-statement .collections-shell,body.printing-collection-statement .statement-backdrop,body.printing-collection-statement .statement-print,body.printing-collection-statement .statement-print *,body.printing-aging-detail .collections-shell,body.printing-aging-detail .aging-detail-backdrop,body.printing-aging-detail .aging-detail-print,body.printing-aging-detail .aging-detail-print *,body.printing-collections-reporting .collections-shell,body.printing-collections-reporting .collections-report-print,body.printing-collections-reporting .collections-report-print *{visibility:visible!important}body.printing-collection-statement .statement-print,body.printing-aging-detail .aging-detail-print{display:block!important;width:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}body.printing-collection-statement .statement-backdrop,body.printing-collection-statement .statement-print{page:collection-statement}body.printing-aging-detail .aging-detail-backdrop,body.printing-aging-detail .aging-detail-print{page:aging-detail}.statement-print>header,.aging-detail-print>header{padding-bottom:8px!important}.statement-print>section{padding:10px 0 8px!important}.statement-print h1{font-size:19px!important}.statement-summary,.aging-detail-summary{margin:9px 0!important}.statement-summary div,.aging-detail-summary>div{padding:7px 9px!important}.statement-summary b,.aging-detail-summary b{font-size:11px!important}.statement-print table,.aging-detail-print table{table-layout:fixed!important;font-size:8px!important}.statement-print thead,.aging-detail-print thead{display:table-header-group}.statement-print tfoot,.aging-detail-print tfoot{display:table-footer-group}.statement-print tr,.aging-detail-print tr{break-inside:avoid;page-break-inside:avoid}.statement-print th,.statement-print td,.aging-detail-print th,.aging-detail-print td{padding:5px 7px!important}.statement-print>footer,.aging-detail-print>footer{margin-top:9px!important;padding-top:6px!important}.statement-actions,.aging-detail-actions{display:none!important}body.printing-collections-reporting .collections-report-print{display:block!important;position:static!important;width:100%!important;margin:0!important;padding:0!important;page:collections-reporting;color:#182f3d!important;background:#fff!important}body.printing-collections-reporting .collections-report-print>header{display:flex;justify-content:space-between;padding-bottom:8px;border-bottom:2px solid #08759d}body.printing-collections-reporting .collections-report-print>header div{display:grid;gap:2px}body.printing-collections-reporting .collections-report-print>header div:last-child{text-align:right}body.printing-collections-reporting .collections-report-print h1{margin:10px 0;font-size:20px}body.printing-collections-reporting .collections-report-print h2{margin:10px 0 5px;font-size:11px;color:#08759d}body.printing-collections-reporting .collections-report-kpis{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:9px;border:1px solid #c6d5dc}body.printing-collections-reporting .collections-report-kpis div{display:grid;gap:3px;padding:7px 9px;border-right:1px solid #c6d5dc}body.printing-collections-reporting .collections-report-kpis span{font-size:7px;font-weight:800;text-transform:uppercase}body.printing-collections-reporting .collections-report-kpis b{font-size:12px}body.printing-collections-reporting .collections-report-print table{width:100%;border-collapse:collapse;font-size:7px}body.printing-collections-reporting .collections-report-print th,body.printing-collections-reporting .collections-report-print td{padding:4px 5px;border:1px solid #cdd9df;text-align:left}body.printing-collections-reporting .collections-report-print th{background:#e8f0f3;text-transform:uppercase}body.printing-collections-reporting .collections-report-print tr{break-inside:avoid;page-break-inside:avoid}body.printing-collections-reporting .collections-report-aging{break-inside:avoid}body.printing-collections-reporting .collections-report-print>footer{margin-top:8px;padding-top:5px;border-top:1px solid #cad6dc;color:#70818b;font-size:7px;text-align:center}}

/* Recouvrement — même langage visuel, messages et actions plus lisibles */
@media screen{
  .collections-main button,.collections-main input,.collections-main select,.collections-main textarea{font-family:Arial,"Segoe UI",sans-serif}
  .primary,.collections-top-actions button,.form-actions button,.aging-detail-actions button,.statement-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 13px;border-radius:7px;font-size:10px;font-weight:800;line-height:1.25;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .12s ease}
  .primary:hover:not(:disabled),.collections-top-actions button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 11px rgba(17,90,113,.16)}button:disabled{opacity:.52;cursor:not-allowed!important}
  .collections-topbar h1{font-weight:680;line-height:1.2}.collections-topbar>div>span{line-height:1.45}
.collection-kpis article,.collections-list-card,.collection-detail,.collection-worklist-card,.collection-reporting>article,.reporting-grid>article{border-radius:8px;box-shadow:0 2px 8px rgba(24,56,72,.06)}

/* SAP Object Page — cockpit de recouvrement orienté processus */
.collections-main.section-reporting{background:#f0f4f8}
.section-reporting .collections-topbar{min-height:94px;padding-top:15px;padding-bottom:15px;border-bottom:1px solid #9fb3c2;background:#fff}
.section-reporting .collections-topbar h1{margin:3px 0;font-size:25px;line-height:1.1}
.section-reporting .collections-topbar>div>p{font-size:9px;letter-spacing:.12em}
.section-reporting .collections-topbar>div>span{font-size:11px}
.section-reporting .collections-top-actions{align-items:flex-end;gap:6px}
.section-reporting .collections-top-actions label{min-width:260px;font-size:8px}
.section-reporting .collections-top-actions select,.section-reporting .collections-top-actions button{min-height:34px;border-radius:0;font-size:10px}
.section-reporting .collection-kpis{gap:0;margin:14px 24px 0;border:1px solid #aebfca;background:#fff}
.section-reporting .collection-kpis article{min-height:84px;padding:12px 16px;border:0;border-right:1px solid #cbd6dd;border-top:3px solid #0a6f96;border-radius:0;box-shadow:none}
.section-reporting .collection-kpis article:last-child{border-right:0}
.section-reporting .collection-kpis article span{font-size:9px;letter-spacing:.05em}
.section-reporting .collection-kpis article b{font-size:24px;line-height:1.1}
.section-reporting .collection-kpis article small{font-size:9px}
.section-reporting .collection-reporting{gap:12px;padding:12px 24px 28px}
.reporting-policy-map{overflow:hidden;padding:0!important;border:1px solid #9fb3c2!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.reporting-policy-map>header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:9px 14px;border-bottom:1px solid #b7c7d2;background:#d9e5f3}
.reporting-policy-map>header div{display:grid;gap:1px}
.reporting-policy-map>header p,.reporting-section-title p{margin:0;color:#315a72;font-size:8px;font-weight:900;letter-spacing:.1em}
.reporting-policy-map>header h2,.reporting-section-title h2{margin:0;color:#143b52;font-size:15px}
.reporting-policy-map>header span{color:#526b79;font-size:9px}
.reporting-policy-map>header button{min-height:30px;padding:0 12px;border:1px solid #6d8fa5;border-radius:0;background:#fff;color:#064e75;font-size:9px;font-weight:800;cursor:pointer}
.reporting-policy-steps{display:grid;grid-template-columns:1fr 18px 1fr 18px 1fr 18px 1fr;align-items:center;padding:10px 14px}
.reporting-policy-steps section{display:flex;align-items:center;gap:9px;min-width:0}
.reporting-policy-steps section>em{display:grid;place-items:center;width:28px;height:28px;border:1px solid #7ea0b5;background:#edf4f8;color:#075d84;font-size:9px;font-style:normal;font-weight:900}
.reporting-policy-steps p{display:grid;min-width:0;margin:0}
.reporting-policy-steps b{color:#173e55;font-size:10px}
.reporting-policy-steps small{overflow:hidden;color:#667985;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.reporting-policy-steps>i{color:#7591a2;font-style:normal;text-align:center}
.reporting-policy-map>footer{display:flex;gap:22px;padding:6px 14px;border-top:1px solid #d3dde3;background:#f7f9fb;color:#607581;font-size:8px}
.reporting-policy-map>footer b{color:#314f61}
.reporting-section-title{display:flex;align-items:end;justify-content:space-between;padding:3px 1px 0}
.reporting-section-title>div{display:grid;gap:1px}
.reporting-section-title>span{color:#71838e;font-size:8px}
.section-reporting .reporting-metrics-six{grid-template-columns:repeat(6,minmax(0,1fr));gap:0;border:1px solid #b5c4ce;background:#fff}
.section-reporting .reporting-metrics-six article{min-height:78px;padding:10px 12px;border:0;border-right:1px solid #d0d9df;border-top:2px solid #4f819f}
.section-reporting .reporting-metrics-six article:last-child{border-right:0}
.section-reporting .reporting-metrics-six span{font-size:7px}
.section-reporting .reporting-metrics-six b{font-size:18px}
.section-reporting .reporting-metrics-six small{font-size:8px;line-height:1.35}
.section-reporting .reporting-grid{grid-template-columns:minmax(0,1.55fr) minmax(310px,.65fr);gap:12px}
.section-reporting .reporting-grid>article,.section-reporting .scenario-performance,.section-reporting .benchmark-principles{border-radius:0;box-shadow:none}
@media(max-width:1150px){.section-reporting .reporting-metrics-six{grid-template-columns:repeat(3,1fr)}.section-reporting .reporting-grid{grid-template-columns:1fr}.reporting-policy-steps{grid-template-columns:1fr 12px 1fr}.reporting-policy-steps section:nth-of-type(n+3){margin-top:8px}.reporting-policy-steps>i:nth-of-type(2){display:none}}
@media(max-width:720px){.section-reporting .collection-kpis{grid-template-columns:1fr 1fr;margin-inline:12px}.section-reporting .collection-reporting{padding-inline:12px}.section-reporting .reporting-metrics-six{grid-template-columns:1fr 1fr}.reporting-policy-steps{grid-template-columns:1fr}.reporting-policy-steps>i{display:none}.reporting-policy-map>footer{display:grid;gap:4px}}
  .collection-row,.worklist-row{min-height:52px;transition:background .16s ease,box-shadow .16s ease}.collection-row:hover,.worklist-row:hover{background:#eef6f8;box-shadow:inset 3px 0 #147da0}
  .contact-form input,.contact-form select,.contact-form textarea,.reminder-composer input,.reminder-composer select,.reminder-composer textarea,.log-action select,.log-action textarea{min-height:40px;border-radius:6px;line-height:1.45}.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus,.reminder-composer input:focus,.reminder-composer select:focus,.reminder-composer textarea:focus{border-color:#08789a;outline:0;box-shadow:0 0 0 3px rgba(8,120,154,.16)}
  .collection-detail-empty p,.email-config-note span,.activity-report>p span,.benchmark-principles small{line-height:1.5}.risk-badge,.reminder-status{font-weight:800}.collections-toast{min-height:46px;border-radius:8px;line-height:1.45}
}

/* Présentation professionnelle des relances : corps lisible, sobre et non gras. */
.reminder-composer label textarea {
  min-height: 210px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-wrap;
}
.reminder-system-note {
  display: block;
  margin-top: 3px;
  color: #7b858b;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}
