/* Dense operational views, kept separate from the existing HireSage components. */
.erp-workspace{color:#272c35;--erp-blue:#2864e8;--erp-border:#e3e7ed;--erp-muted:#697386}
.erp-workspace svg,.erp-row-actions svg{width:18px;height:18px;flex:none;vertical-align:middle}
.erp-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:1px 0 27px}
.erp-overline{font-size:10px!important;font-weight:700;letter-spacing:1.45px;text-transform:uppercase;color:#808997!important;margin:0 0 9px!important}
.erp-heading h1{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin:0 0 8px;font-weight:650;color:#272c35}
.erp-heading h1>span{font-weight:400;color:#9199a5;font-size:22px;margin-left:7px}
.erp-heading p{font-size:13px;color:var(--erp-muted);margin:0;line-height:1.6}
.erp-heading-actions{flex:none}
.erp-workspace .btn{background:var(--erp-blue);border:1px solid var(--erp-blue);border-radius:6px;min-height:38px;padding:9px 14px;box-shadow:none;font-size:12px;font-weight:600;gap:7px}
.erp-workspace .btn.secondary{background:white;border-color:#dce1e8;color:#475264}
.erp-workspace .text-btn,.erp-record-detail .text-btn{color:#2864e8;font-size:12px;font-weight:600}
.erp-workspace button:disabled{opacity:.45;cursor:not-allowed}
.erp-workspace button:focus-visible,.erp-record-form input:focus-visible,.erp-record-form select:focus-visible,.erp-record-form textarea:focus-visible{outline:2px solid #2864e8;outline-offset:3px}
.erp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}
.erp-metric{display:flex;gap:14px;background:#fff;border:1px solid var(--erp-border);border-radius:8px;padding:20px 18px;min-height:120px}
.erp-metric-icon{flex:none;display:flex;width:38px;height:38px;border-radius:9px;background:#eef4ff;color:#2864e8;align-items:center;justify-content:center;margin-top:4px}
.erp-metric-icon svg{width:20px;height:20px}
.erp-metric>div{min-width:0}
.erp-metric span:not(.erp-metric-icon){font-size:11px;font-weight:600;color:#6b7382;display:block}
.erp-metric strong{font-size:29px;font-weight:650;letter-spacing:-.9px;display:block;line-height:1.5;overflow-wrap:anywhere}
.erp-metric small{font-size:10px;line-height:1.5;color:#7d8795;display:block}
.erp-metric.clickable{font:inherit;text-align:left;color:inherit;cursor:pointer;width:100%;transition:border-color .15s,box-shadow .15s}
.erp-metric.clickable:hover{border-color:#2864e8;box-shadow:0 2px 10px rgba(40,100,232,.12)}
.erp-metric.clickable:focus-visible{outline:2px solid #2864e8;outline-offset:2px}
.erp-metric.warn .erp-metric-icon{background:#fff6e7;color:#a77a22}
.erp-late{font-size:10px;font-weight:600;color:#b4462f;background:#fdeeea;border-radius:999px;padding:3px 8px;white-space:nowrap}
.erp-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.erp-panel{border:1px solid var(--erp-border);border-radius:8px;background:#fff;overflow:hidden;min-width:0}
.erp-panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #edf0f4;padding:17px 20px;min-height:60px}
.erp-panel-title h2{font-size:14px;margin:0;font-weight:650;letter-spacing:-.1px}
.erp-panel-content{padding:4px 20px 13px}
.erp-caption{font-size:10px;color:#8c94a1}
.erp-bars{padding:23px 20px 25px;display:flex;flex-direction:column;gap:16px}
.erp-bar-row{display:grid;grid-template-columns:115px minmax(40px,1fr) 36px;align-items:center;gap:13px;font-size:11px}
.erp-bar-row>span{color:#667181;line-height:1.4}
.erp-bar-row>div{background:#f2f5f9;border-radius:3px;height:7px;overflow:hidden}
.erp-bar-row i{height:100%;display:block;background:var(--bar-color,#2864e8);border-radius:3px;min-width:0}
.erp-bar-row strong{text-align:right;font-size:12px;font-weight:650;color:#3c4656}
.erp-compact-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #f0f2f6;font-size:12px}
.erp-compact-row:last-child{border-bottom:0}
.erp-compact-row>div{min-width:0}
.erp-compact-row small{display:block;color:#808a98;font-size:10px;line-height:1.5;margin-top:5px}
.erp-date{font-size:10px;white-space:nowrap;color:#667181;background:#f3f5f8;border-radius:4px;padding:5px 7px}
.erp-count{min-width:22px;height:22px;background:#edf3ff;color:#2864e8;font-size:11px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.erp-finance-highlight{padding:20px 0 4px;display:flex;flex-direction:column;gap:6px}
.erp-finance-highlight>span{font-size:11px;color:#788290}
.erp-finance-highlight strong{font-size:29px;letter-spacing:-.8px;font-weight:650}
.erp-finance-highlight small{font-size:10px;color:#808b99;line-height:1.55}
.erp-panel-content .erp-bars{padding-left:0;padding-right:0;padding-bottom:12px}
.erp-timeline-row{display:flex;gap:12px;padding:14px 0;font-size:11px;border-bottom:1px solid #f1f3f6}
.erp-timeline-row>i{width:7px;height:7px;flex:none;margin-top:4px;border-radius:50%;background:#5f8fe9;box-shadow:0 0 0 4px #edf3ff}
.erp-timeline-row strong{font-weight:550;color:#4e596b}
.erp-timeline-row small{font-size:10px;display:block;color:#8b94a0;margin-top:4px}
.erp-tabs{display:flex;align-items:center;gap:23px;margin-bottom:21px;border-bottom:1px solid #dfe4eb;overflow-x:auto;white-space:nowrap}
.erp-tabs button{border:0;border-bottom:2px solid transparent;background:none;color:#7a8491;padding:0 3px 13px;cursor:pointer;font-size:13px;font-family:inherit;font-weight:550;display:flex;align-items:center;gap:7px}
.erp-tabs button.selected{color:#2864e8;border-bottom-color:#2864e8}
.erp-tabs button>span{background:#e9edf3;font-size:10px;padding:2px 6px;border-radius:8px;color:#7c8796}
.erp-tabs button.selected>span{color:#2864e8;background:#e9f0ff}
.erp-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:16px 18px;border-bottom:1px solid #edf0f4}
.erp-search{display:flex;align-items:center;border:1px solid #e0e5ec;border-radius:5px;height:36px;gap:8px;padding:0 11px;color:#9098a4;min-width:220px;flex:1;max-width:360px}
.erp-search input{border:0;outline:none;font:inherit;font-size:12px;width:100%;min-width:0;background:transparent;color:#3f4858;padding:0}
.erp-search input::placeholder{color:#9aa2af}
.erp-filter{display:flex;align-items:center;gap:8px;font-size:11px;color:#7b8493}
.erp-filter select,.erp-filter input{border:1px solid #e0e5ec;border-radius:5px;background:white;color:#4b5565;font:inherit;font-size:11px;padding:7px 8px;min-height:35px;max-width:200px}
.erp-toolbar-right{margin-left:auto;display:flex;gap:8px}
.erp-toolbar .btn.small{padding:7px 10px;font-size:11px;min-height:34px}
.erp-table-wrap{overflow-x:auto}
.erp-table{border-collapse:collapse;width:100%;font-size:12px;table-layout:auto;margin:0!important}
.erp-table thead{background:#f7f8fa}
.erp-table th{font-size:10px;color:#7a8492;font-weight:600;text-align:left;padding:12px 16px;border-bottom:1px solid #e8ecf1;white-space:nowrap}
.erp-table td{padding:13px 16px;border-bottom:1px solid #edf0f4;line-height:1.5;vertical-align:middle;color:#586171;max-width:280px;overflow-wrap:anywhere}
.erp-table tr:last-child td{border-bottom:0}
.erp-table tbody tr:hover{background:#f9fbff}
.erp-table .erp-num{text-align:right}
.erp-name{display:flex;align-items:center;gap:10px;min-width:160px}
.erp-initials{width:33px;height:33px;background:#eef2f7;color:#6d7a8e;font-size:10px;font-weight:650;display:flex;align-items:center;justify-content:center;border-radius:50%;flex:none}
.erp-name>div{min-width:0}
.erp-record-link{border:0;background:none;font:inherit;font-size:12px;font-weight:600;text-align:left;padding:0;color:#34435a;cursor:pointer;line-height:1.45}
.erp-record-link:hover{color:#2864e8;text-decoration:underline}
.erp-name small,.erp-cell-sub{display:block;color:#929aa6;font-size:10px;line-height:1.5;margin-top:3px}
.erp-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;white-space:nowrap;padding:4px 7px;background:#eff3fa;border-radius:5px;color:#627694;line-height:1.4}
.erp-badge i{width:5px;height:5px;flex:none;background:currentColor;border-radius:50%}
.erp-badge.positive{background:#eaeef6;color:#364f82}
.erp-badge.warning{background:#fff6e7;color:#a77a22}
.erp-badge.negative{background:#fceff0;color:#b0616c}
.erp-row-actions{display:flex;gap:12px;align-items:center;white-space:nowrap}
.erp-row-actions .text-btn{font-size:10px}
.erp-row-actions svg{width:14px;height:14px}
.erp-more{font:inherit;font-size:10px;color:#8b94a3;border:0;background:none;cursor:pointer;padding:0}
.erp-more:hover{color:#2864e8}
.erp-table-footer{padding:12px 18px;border-top:1px solid #edf0f4;display:flex;justify-content:space-between;gap:16px;color:#8b94a2;font-size:10px}
.erp-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:46px 24px;min-height:215px;max-width:540px;margin:auto}
.erp-empty>svg{width:32px;height:32px;color:#c1cad8;margin-bottom:14px}
.erp-empty h3{font-size:14px;line-height:1.5;margin:0 0 7px;color:#526075;font-weight:600}
.erp-empty p{font-size:11px;line-height:1.75;color:#8892a1;margin:0;max-width:360px}
.erp-context{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f1f6ff;border:1px solid #e1eaff;border-radius:6px;padding:14px 17px;font-size:11px;margin-bottom:20px;color:#6e7f98}
.erp-context>strong{color:#426695;font-weight:600;white-space:nowrap}
.erp-context>span{flex:1;min-width:220px;line-height:1.6}
.erp-ledger-status{display:flex;align-items:center;gap:6px;margin-top:20px;color:#99a2ae;font-size:10px;line-height:1.7;flex-wrap:wrap}
.erp-ledger-status>i{height:5px;width:5px;border-radius:50%;background:#7a8aab}
.erp-ledger-status>span{margin-left:auto}
.erp-canonical{background:#fff;border:1px solid #e1e7ef;padding:15px 18px;margin-bottom:18px;border-radius:6px;font-size:12px;color:#6f7a8c}
.erp-canonical summary{cursor:pointer;font-weight:600;color:#50617b}
.erp-position{display:inline-flex;font-size:10px;border:1px solid #dfe5ef;border-radius:4px;padding:4px 7px;color:#78869b}
.erp-position.primary{background:#edf3ff;border-color:#d8e5ff;color:#2864e8}
.erp-money{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:550;color:#4a566a}
.erp-summary-line{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0f5;padding:17px 0;font-size:12px;color:#77818f}
.erp-summary-line strong{font-size:15px;color:#435269}
.erp-footnote,.erp-muted{font-size:11px!important;color:#8b95a3!important;line-height:1.8!important;margin-top:14px}
.erp-error,.erp-loading{padding:15px 18px;border-radius:6px;border:1px solid #cdd2dd;background:#fff9ef;color:#9e6e25;font-size:12px;margin-bottom:20px;line-height:1.7}
.erp-error .text-btn{margin-left:12px}
.erp-planning-scroll{overflow-x:auto}
.erp-planning{border-collapse:collapse;width:100%;font-size:10px;min-width:1000px}
.erp-planning th,.erp-planning td{border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;min-width:25px;height:48px;padding:0 3px;text-align:center}
.erp-planning thead th{font-size:9px;font-weight:500;color:#8a94a2;height:34px;background:#f7f9fb}
.erp-planning th:first-child{width:195px;min-width:195px;position:sticky;left:0;background:#fff;z-index:1;text-align:left;padding:12px 16px}
.erp-planning thead th:first-child{background:#f7f9fb}
.erp-planning th small{display:block;color:#8c96a3;font-weight:400;margin-top:3px;font-size:10px}
.erp-planning .weekend{background:#f8fafc}
.erp-planning td>span{display:block;height:17px;width:100%;border-radius:2px}
.erp-planning td.project>span,.erp-planning-legend i.project{background:#6e9cec}
.erp-planning td.absence>span,.erp-planning-legend i.absence{background:#efc478}
.erp-planning td.time>span,.erp-planning-legend i.time{background:#8395ba}
.erp-planning-legend{display:flex;gap:12px;margin-left:auto;flex-wrap:wrap;font-size:10px;color:#8490a0}
.erp-planning-legend span{display:flex;align-items:center;gap:5px}
.erp-planning-legend i{width:8px;height:8px;border-radius:2px}
.erp-form-intro{font-size:12px;line-height:1.7;color:#788599;margin:0 0 23px;padding:12px 15px;background:#f4f7fc;border-radius:6px}
.erp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 22px}
.erp-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#5e6b7e;min-width:0}
.erp-field>span{font-size:11px;font-weight:600;color:#5e6a7d}
.erp-field b{color:#c28172;font-size:11px}
.erp-field input:not([type=checkbox]),.erp-field select,.erp-field textarea{border:1px solid #dce3ec;border-radius:5px;padding:10px 11px;min-height:38px;color:#3b485a;font:inherit;background:white;width:100%;box-sizing:border-box}
.erp-field textarea{resize:vertical;line-height:1.6}
.erp-field small{font-size:10px;color:#8c96a6;line-height:1.5}
.erp-field.full{grid-column:1/-1}
.erp-field.check{justify-content:center;align-items:flex-start}
.erp-review-check{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.8;color:#6c788a;padding:15px 0;border-top:1px solid #ecf0f5;margin-top:23px}
.erp-review-check input{margin-top:4px;accent-color:#2864e8}
.erp-detail-heading h2{font-size:25px;font-weight:650;line-height:1.35;margin:0 0 13px;letter-spacing:-.5px;overflow-wrap:anywhere}
.erp-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin:25px 0}
.erp-detail-grid .full{grid-column:1/-1}
.erp-detail-grid dt{font-size:10px;color:#9099a7;margin-bottom:5px}
.erp-detail-grid dd{margin:0;color:#4d5a6f;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.erp-registry-scope{display:flex;gap:8px 20px;flex-wrap:wrap;margin:20px 0;padding:15px 18px;background:#f5f7fa;border-left:3px solid #a8bbd6;border-radius:4px;color:#6c7b8f;font-size:11px;line-height:1.7}
.erp-registry-scope strong{color:#52647e;font-size:11px;flex-shrink:0}
.erp-registry-scope span{flex:1;min-width:240px}
.erp-linked-context{margin-top:28px;padding:22px 0 0;border-top:1px solid #e3e9f0;color:#42516a}
.erp-linked-context>header{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:17px}
.erp-linked-context h3{margin:0;font-size:17px;line-height:1.4;font-weight:600}
.erp-linked-context .erp-overline{font-size:9px;margin:0 0 6px;color:#8592a5;letter-spacing:1px;text-transform:uppercase}
.erp-linked-actions{display:flex;flex-wrap:wrap;gap:7px}
.erp-linked-actions .btn{display:inline-flex;align-items:center;gap:5px}
.erp-linked-actions svg{width:13px;height:13px}
.erp-linked-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e4eaf2;border-radius:7px;overflow:hidden;background:#fff}
.erp-linked-section{padding:17px;min-width:0}
.erp-linked-section+.erp-linked-section{border-left:1px solid #e4eaf2}
.erp-linked-section h4{font-size:11px;margin:0 0 13px;display:flex;align-items:center;gap:8px;color:#64718a;font-weight:600}
.erp-linked-section h4 span{font-weight:400;font-size:10px;background:#f0f4fa;color:#7f90a7;padding:2px 6px;border-radius:4px}
.erp-linked-section ul{padding:0;margin:0;list-style:none}
.erp-linked-section li{padding:10px 0;border-top:1px solid #eef1f5;display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0}
.erp-linked-section li:first-child{border-top:0;padding-top:0}
.erp-linked-section .erp-record-link{font-size:12px;text-align:left;overflow-wrap:anywhere}
.erp-linked-section li small{display:block;width:100%;font-size:10px;line-height:1.6;color:#8a96a7;overflow-wrap:anywhere}
.erp-record-form [data-erp-error]{margin:18px 0 0}
@media(max-width:780px){.erp-linked-grid{grid-template-columns:1fr}.erp-linked-section+.erp-linked-section{border-left:0;border-top:1px solid #e4eaf2}.erp-registry-scope span{min-width:100%}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.erp-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1150px){.erp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-metric{min-height:100px}.erp-toolbar-right{margin-left:0}}
@media(max-width:780px){.erp-dashboard-grid{grid-template-columns:1fr}.erp-heading{align-items:flex-start}.erp-heading h1{font-size:25px}.erp-heading-actions .btn{font-size:10px;padding:8px 10px}.erp-kpis{gap:10px}.erp-metric{padding:14px 11px;gap:9px}.erp-metric strong{font-size:24px}.erp-metric-icon{width:29px;height:29px}.erp-metric small{font-size:9px}.erp-toolbar{gap:10px;padding:13px}.erp-search{max-width:none;min-width:170px}.erp-toolbar-right{width:100%;justify-content:flex-end}.erp-form-grid,.erp-detail-grid{grid-template-columns:1fr}.erp-heading p{font-size:11px}.erp-context{align-items:flex-start}.erp-context>span{min-width:100%}.erp-table-footer{flex-direction:column;gap:5px}.erp-ledger-status>span{margin-left:0;width:100%}.erp-panel-title{padding:15px 16px}.erp-panel-title h2{font-size:13px}.erp-bars{padding:21px 16px}.erp-panel-content{padding-left:16px;padding-right:16px}.erp-planning-legend{margin-left:0;width:100%;margin-top:6px}}
/* Lot 7 : doublons, fusion relue, organigramme sourcé */
.erp-duplicates{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.erp-history{margin:8px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.erp-duplicate{border:1px solid #e4eaf2;border-radius:10px;padding:12px 14px;background:#fff}
.erp-duplicate>p{margin:0 0 6px}
.erp-duplicate ul{list-style:none;margin:0;padding:0}
.erp-duplicate li{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;padding:3px 0}
.erp-duplicate small{color:#6b7686}
.erp-merge-form{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:8px;padding-top:8px;border-top:1px dashed #e4eaf2}
.erp-merge-form label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#4a5567}
.erp-merge-form select{min-width:200px;font:inherit;padding:5px 7px;border:1px solid #d9dfe8;border-radius:6px}
.erp-merge-form .erp-check{flex-direction:row;align-items:center;gap:6px}
.erp-orgchart{margin-top:14px;border-top:1px solid #e4eaf2}
.erp-orgtree,.erp-orgtree ul{list-style:none;margin:0;padding:0}
.erp-orgtree ul{margin-left:18px;padding-left:12px;border-left:2px solid #e4eaf2}
.erp-orgtree li{padding:3px 0}
.erp-orgtree small{color:#6b7686}
/* 03/11/2026 (owner): « À traiter » at the top of the dashboard. */
.attention-panel{margin-bottom:18px;padding:0;overflow:hidden}
/* 04/11/2026 (owner): « À traiter » redone — hero line, chips per group, one card per group. */
.attention-hero{display:flex;align-items:center;gap:14px;padding:18px 20px 10px}
.attention-hero h2{margin:0;font-size:17px;font-weight:650;color:#1f2733;display:flex;align-items:center;gap:8px}
.attention-hero p{margin:3px 0 0;font-size:12px;color:#6b7382}.attention-hero p strong{color:#1f2733}
.attention-hero-icon,.attention-icon{flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}
.attention-hero-icon{width:42px;height:42px}.attention-hero-icon svg{width:22px;height:22px}
.attention-calm .attention-hero{padding-bottom:18px}
.attention-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 20px 14px;border-bottom:1px solid var(--erp-border,#e5e8ee)}
.attention-chip{font:inherit;display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:5px 6px 5px 12px;font-size:12px;font-weight:550;cursor:pointer;transition:filter .15s,box-shadow .15s}
.attention-chip b{min-width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#fff;font-size:11px;padding:0 6px}
.attention-chip:hover{box-shadow:0 2px 8px rgba(31,39,51,.1)}.attention-chip:focus-visible{outline:2px solid #2864e8;outline-offset:2px}
.attention-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;padding:16px 20px 20px;background:#fafbfd}
.attention-group{background:#fff;border:1px solid var(--erp-border,#e5e8ee);border-top:3px solid var(--tone,#c7ccd6);border-radius:10px;padding:12px 14px 6px;min-width:0}
.attention-group h3{font-size:13px;font-weight:650;color:#1f2733;margin:0 0 6px;display:flex;align-items:center;gap:9px}
.attention-group h3 .erp-count{margin-left:auto}
.attention-icon{width:30px;height:30px;border-radius:8px}.attention-icon svg{width:16px;height:16px}
.attention-group ul{list-style:none;margin:0;padding:0}
.attention-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #eef0f4}
.attention-group ul>.attention-row:first-child{border-top:0}
.attention-text{min-width:0}.attention-row strong{display:block;font-size:12.5px;font-weight:600;color:#253041;overflow-wrap:anywhere}
.attention-row small{display:block;font-size:11px;color:#7a8492;margin-top:2px;line-height:1.45;overflow-wrap:anywhere}
.attention-row.negative strong{color:#a5505d}.attention-row.positive strong{color:#2f487a}
.attention-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.attention-actions .quiet{color:#7a8492}
.attention-go{font:inherit;font-size:11.5px;font-weight:600;border:0;border-radius:7px;padding:6px 11px;cursor:pointer;background:var(--tone,#2864e8);color:#fff;white-space:nowrap}
.attention-go:hover{filter:brightness(.93)}.attention-go:focus-visible{outline:2px solid #1f2733;outline-offset:2px}
.attention-more summary{font-size:11.5px;color:#4b5565;cursor:pointer;padding:8px 0 6px;list-style:none}.attention-more summary::-webkit-details-marker{display:none}
.attention-more summary::before{content:'+ '}.attention-more[open] summary::before{content:'− '}
.tone-blue{--tone:#2864e8;--tone-bg:#eef4ff}.tone-orange{--tone:#d9692b;--tone-bg:#fff0e6}.tone-amber{--tone:#b7861f;--tone-bg:#fff6e2}
.tone-violet{--tone:#7a4fd6;--tone-bg:#f3eeff}.tone-green{--tone:#2f4d8a;--tone-bg:#e9eef7}.tone-red{--tone:#c2414f;--tone-bg:#fdecee}.tone-grey{--tone:#6b7382;--tone-bg:#f1f3f6}
.attention-hero-icon,.attention-icon{background:var(--tone-bg);color:var(--tone)}
.attention-chip{background:var(--tone-bg);color:var(--tone)}.attention-chip b{color:var(--tone)}
@media(max-width:700px){.attention-groups{grid-template-columns:1fr;padding:12px}.attention-row{flex-direction:column;align-items:flex-start}.attention-hero,.attention-chips{padding-left:14px;padding-right:14px}}
.nav-count.attention{background:#fde7d9;color:#a4511c;margin-left:4px}
.attention-group.flash{animation:attention-flash 1.6s ease}
@keyframes attention-flash{0%,40%{background:#eef4ff}100%{background:#fff}}
.erp-hr-panel{margin-top:14px}.erp-hr-checklist{border-top:1px solid #edf0f4;padding:10px 0}.erp-hr-checklist:first-child{border-top:0}.erp-hr-checklist header{display:flex;align-items:center;justify-content:space-between;gap:10px}.erp-hr-checklist h4{margin:0;font-size:13px}.erp-hr-checklist ul{list-style:none;margin:8px 0;padding:0}.erp-hr-checklist li{padding:4px 0}.erp-hr-checklist label{display:flex;gap:8px;align-items:flex-start;font-size:12px;cursor:pointer}.erp-hr-checklist input{margin-top:2px;accent-color:#2864e8}.erp-hr-checklist input:checked+span{color:#7b8493;text-decoration:line-through}
.erp-bank-choice{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.erp-bank-choice select{border:1px solid #e0e5ec;border-radius:5px;font:inherit;font-size:11px;padding:6px 8px;max-width:340px}
/* 05/11/2026 (owner: « trop de couleurs, trop flashy, il faut que ça reste professionnel »): one slate
   ink for everything, a discreet amber for deadlines and red only for what is urgent. Actions are
   outlined, the counts neutral; the colour of a group shows as a thin edge, never as a fill. */
.tone-blue,.tone-violet,.tone-orange,.tone-green,.tone-grey{--tone:#3d4a5c;--tone-bg:#f1f3f6}
.tone-amber{--tone:#94681a;--tone-bg:#edeff3}.tone-red{--tone:#9f3d48;--tone-bg:#f8eeef}
.attention-hero-icon{background:#f1f3f6;color:#3d4a5c}
.attention-chip{background:#fff;color:#2b3441;border-color:#dfe3ea;font-weight:550}.attention-chip b{background:#f1f3f6;color:#2b3441}
.attention-chip.tone-amber b{background:var(--tone-bg);color:var(--tone)}.attention-chip.tone-red b{background:var(--tone-bg);color:var(--tone)}
.attention-chip:hover{border-color:#b9c1cd;box-shadow:none}
.attention-groups{background:#f8f9fb}
.attention-group{border-top:1px solid var(--erp-border,#e5e8ee)}
.attention-group.tone-amber,.attention-group.tone-red{border-left:3px solid var(--tone)}
.attention-icon{background:#f1f3f6;color:#4a5668}
.attention-go{background:#fff;color:#1f2733;border:1px solid #cfd5de;font-weight:600}
.attention-go:hover{filter:none;background:#1f2733;color:#fff;border-color:#1f2733}
.erp-metric-icon{background:#f1f3f6;color:#3d4a5c}
.erp-metric.warn .erp-metric-icon{background:#edeff3;color:#94681a}
.erp-metric.clickable:hover{border-color:#9aa5b4;box-shadow:0 2px 10px rgba(31,39,51,.06)}
@keyframes attention-flash{0%,40%{background:#eef1f5}100%{background:#fff}}

/* 11/11/2026 (owner): HR checklist edited as rows to tick, and read as a plain list. */
.erp-checklist-edit{border:1px solid var(--line,#e1e3e8);border-radius:12px;padding:10px 12px;margin:0}.erp-checklist-edit legend{font-size:12px;font-weight:600;padding:0 6px}
.erp-checklist-edit ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}.erp-checklist-edit li{display:flex;gap:10px;align-items:center}
.erp-checklist-edit input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--green,#3d578a)}
.erp-checklist-edit input[type=text]{flex:1;height:34px;padding:0 10px;border-radius:10px;border:1px solid var(--line,#e1e3e8);font:inherit;font-size:13px;background:#fff}
.erp-checklist-edit input[type=text]::placeholder{color:var(--muted,#7b857c)}
.erp-checklist-read{list-style:none;margin:0;padding:0;display:grid;gap:4px}.erp-checklist-read li::before{content:"○ ";color:var(--muted,#7b857c)}.erp-checklist-read li.done::before{content:"✓ ";color:var(--green,#3d578a)}
/* 12/11/2026: the simple step buttons of a lead sheet. */
.erp-quick{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.erp-quick .btn{min-height:40px;padding:0 18px}.erp-quick .btn.danger{margin-left:auto;color:#b42318;border-color:#f1c8c3}
/* 12/11/2026 (owner, « prends exemple sur BoondManager »): a row opens its sheet; empty cells are a dash; a sheet shows what is filled. */
.erp-table tbody tr.erp-row{cursor:pointer}.erp-table tbody tr.erp-row:hover td{background:#f5f7fb}.erp-dash{color:#b3b9c4}
.erp-blank{margin:10px 0 4px;font-size:13px}.erp-blank summary{cursor:pointer;color:#2864e8;font-weight:600}.erp-blank p{margin:6px 0 0;color:var(--muted,#6b7280)}
.erp-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
/* 13/11/2026 (owner, « remets en page » CRM, Prospection, Facturation, Achats, Activité et frais, Contrats): figures strip
   above each list and sheets in cards, BoondManager-like. */
.erp-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0;background:#fff;border:1px solid #e3e8ef;border-radius:10px;margin:0 0 14px;overflow:hidden}
.erp-strip-cell{padding:12px 16px;border-right:1px solid #edf0f4;display:flex;flex-direction:column;gap:4px;min-width:0}
.erp-strip-cell:last-child{border-right:0}
.erp-strip-cell span{font-size:10px;font-weight:600;color:#7a8492;text-transform:uppercase;letter-spacing:.6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.erp-strip-cell strong{font-size:18px;font-weight:650;color:#111827;font-variant-numeric:tabular-nums;white-space:nowrap}
.erp-strip-cell.alert strong{color:#c2410c}
.erp-strip-cell.good strong{color:#2864e8}
.erp-fiche .erp-detail-heading{display:flex;align-items:center;gap:14px;padding:4px 0 16px;border-bottom:1px solid #e8ecf1;margin-bottom:16px}
.erp-fiche .erp-detail-heading h2{margin:0 0 6px;font-size:22px}
.erp-fiche-avatar{width:48px;height:48px;font-size:14px;background:#111827;color:#fff}
.erp-fiche-tags{display:flex;gap:6px;flex-wrap:wrap}
.erp-fiche-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start}
.erp-fiche-main,.erp-fiche-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.erp-card{background:#fff;border:1px solid #e3e8ef;border-radius:10px;padding:14px 16px}
.erp-card>h3{font-size:12px;font-weight:700;color:#111827;margin:0 0 12px;text-transform:uppercase;letter-spacing:.6px}
.erp-card .erp-detail-grid{margin:0;gap:14px 20px}
.erp-card .erp-blank{margin:0}
.erp-card .erp-linked-section{border:0;padding:0;margin:0;background:none}
.erp-related-group+.erp-related-group{margin-top:12px;padding-top:12px;border-top:1px solid #edf0f4}
.erp-related-group h4{display:flex;justify-content:space-between;font-size:11px;color:#586171;margin:0 0 6px;font-weight:600}
.erp-related-group h4 span{color:#9099a7}
.erp-related-group ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.erp-related-group li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;min-width:0}
.erp-related-group li .erp-record-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.erp-fiche-date{font-size:11px;color:#9099a7;margin:0 2px}
.erp-fiche>.form-actions{margin-top:16px;padding-top:14px;border-top:1px solid #e8ecf1}
.erp-fiche>.erp-quick{margin:0 0 14px}
@media(max-width:860px){.erp-fiche-body{grid-template-columns:1fr}.erp-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-strip-cell{border-bottom:1px solid #edf0f4}}
/* CRM synchronisation: one folded line until a CRM is connected. */
details.crm-sync{padding:0}
details.crm-sync>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;font-size:13px;font-weight:600;color:#111827}
details.crm-sync>summary::-webkit-details-marker{display:none}
details.crm-sync>summary small{font-weight:500;color:#7a8492}
details.crm-sync>summary::after{content:'▾';color:#7a8492}
details.crm-sync[open]>summary::after{content:'▴'}
details.crm-sync>.crm-cards{padding:0 16px 14px;margin:0}
/* 13/11/2026: a cell stays on one line (a date never breaks as « 202 6 »); a long text is cut with « … »,
   and a list wider than the screen scrolls sideways. */
.erp-table td{white-space:nowrap;overflow-wrap:normal;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.erp-table .erp-name{min-width:0}.erp-table .erp-name>div{min-width:0;overflow:hidden}
.erp-table .erp-name small,.erp-table .erp-name .erp-record-link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
