:root{--recap-blue:var(--sh-core-blue-900);--recap-blue-dark:#103d79;--recap-blue-soft:#eef5ff;--recap-green:var(--sh-core-success);--recap-green-dark:#0f5c3f;--recap-green-soft:var(--sh-core-success-light);--recap-grey:#5b6472;--recap-grey-dark:#3f4753;--recap-grey-soft:#eef1f4;--recap-line:#d6e2f1;--recap-muted:#64748b}.accounting-recap{display:grid;gap:8px;font-size:.8rem;color:#1f3654}.accounting-recap-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:9px 12px;background:linear-gradient(135deg,#fff 0%,#f3f8ff 100%);border:1px solid var(--recap-line);border-left:4px solid var(--recap-blue);border-radius:10px}.accounting-recap-header h2{margin:0 0 2px;font-size:1.2rem;color:var(--recap-blue-dark)}.accounting-recap-header p{margin:1px 0;color:var(--recap-muted)}.accounting-recap-header .eyebrow{color:var(--recap-blue);font-weight:800;text-transform:uppercase;letter-spacing:.04em;font-size:.62rem}.accounting-recap-actions{display:flex;gap:6px;flex-wrap:wrap}.accounting-recap-actions button{padding:6px 9px;border-radius:7px}.accounting-recap-actions .primary-button{background:var(--recap-blue);border-color:var(--recap-blue);color:#fff}.accounting-recap-actions .primary-button:hover{background:var(--recap-blue-dark)}.accounting-recap-actions .secondary-button{background:#fff;border:1px solid #a9bfdc;color:var(--recap-blue-dark)}.accounting-recap-actions .secondary-button:hover{background:var(--recap-blue-soft)}.accounting-recap-actions button:disabled{opacity:.48;cursor:not-allowed}.accounting-recap-mail-choice{display:flex;align-items:center;gap:5px;font-size:.68rem;font-weight:700;color:var(--recap-muted);cursor:pointer;white-space:nowrap}.accounting-recap-mail-choice input{width:13px;height:13px;cursor:pointer}.accounting-recap-legend{display:flex;flex-wrap:wrap;gap:4px;padding:0 2px}.accounting-recap-legend span{padding:2px 6px;border-radius:999px;font-size:.61rem;border:1px solid var(--recap-line)}.accounting-recap-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:auto auto auto;gap:8px;align-items:stretch}.accounting-recap-divider{grid-row:1/4;width:1px;align-self:stretch;background:linear-gradient(var(--recap-line),var(--recap-blue) 15%,var(--recap-green) 85%,var(--recap-line))}.accounting-recap-section-divider{display:flex;align-items:center;gap:8px;margin:2px 0;color:var(--recap-muted);font-size:.6rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.accounting-recap-section-divider::before,.accounting-recap-section-divider::after{content:"";flex:1;height:1px;background:var(--recap-line)}.accounting-recap-panel{grid-row:1/4;background:#fff;border:1px solid var(--recap-line);border-radius:10px;overflow:visible;box-shadow:0 2px 8px rgba(23,79,155,.06);display:grid;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.accounting-recap-panel>header{grid-row:1;grid-column:1/-1;padding:7px 9px;border-bottom:1px solid var(--recap-line);background:var(--recap-blue);color:#fff;display:grid;grid-template-columns:1fr auto;column-gap:8px;border-radius:9px 9px 0 0}.accounting-recap-courtage>header{background:var(--recap-green)}.accounting-recap-block{grid-row:2;min-width:0;align-self:start}.accounting-recap-block+.accounting-recap-block{border-left:1px solid var(--recap-line)}.accounting-recap-block-wide{grid-row:3;grid-column:1/-1;min-width:0;border-top:1px solid var(--recap-line)}.accounting-recap-panel>header h3{margin:0;font-size:.92rem;color:#fff}.accounting-recap-panel>header strong{font-size:1rem;color:#fff}.accounting-recap-panel>header strong.is-negative{color:#ffd5d2!important}.accounting-recap-panel>header small{grid-column:2;font-size:.62rem;color:#dceaff}.accounting-recap-header-secondary{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-top:4px;padding-top:4px;border-top:1px solid rgba(255,255,255,.25)}.accounting-recap-header-secondary small{grid-column:auto;font-size:.62rem;color:#dceaff}.accounting-recap-header-secondary strong{font-size:.82rem;color:#fff}.accounting-recap-header-secondary strong.is-negative{color:#ffd5d2!important}.accounting-recap-section{padding:5px 7px;border-bottom:1px solid #e8eef6;min-width:0;align-self:start}.accounting-recap-section h4{margin:0 0 4px;padding-bottom:2px;border-bottom:2px solid var(--recap-blue-soft);font-size:.74rem;color:var(--recap-blue-dark)}.accounting-recap-courtage .accounting-recap-section h4{border-bottom-color:var(--recap-green-soft);color:var(--recap-green-dark)}.accounting-recap-section-title-wrap{display:flex;align-items:center;gap:4px;width:100%}.accounting-recap-section-title{flex:1 1 0%;min-width:0;border:0;border-bottom:1px dashed transparent;background:transparent;padding:0 1px;font:inherit;font-weight:inherit;color:inherit}.accounting-recap-section-title:hover,.accounting-recap-section-title:focus{outline:none;border-bottom-color:currentColor}.accounting-recap-section-title[readonly]{cursor:default}.accounting-recap-section-title-wrap .accounting-recap-unlock{position:static;transform:none;flex-shrink:0}.accounting-recap-row-spacer{height:7px}.recap-area-retro{margin-top:8px;background:#eaf7f1;border:1px solid #bfe3d2;border-radius:10px;padding:5px 7px 6px}.recap-area-retro>h4{margin-top:0}.accounting-recap-retro-groups-2col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 10px;align-items:start}.accounting-recap-retro-group{border:0;border-bottom:1px solid #bfe3d2;border-radius:0;margin:0 0 4px;overflow:visible;background:transparent;min-width:0}.accounting-recap-retro-groups-2col>.accounting-recap-retro-group{margin:0}.accounting-recap-retro-group>summary{display:flex;align-items:center;gap:4px;list-style:none;cursor:pointer;padding:2px 1px;background:transparent;color:var(--recap-green-dark);font-weight:800;font-size:.74rem;border-bottom:1px solid #bfe3d2}.accounting-recap-retro-group>summary::-webkit-details-marker{display:none}.accounting-recap-retro-group>summary::before{content:"▾";margin-right:1px;font-size:.62rem;flex-shrink:0}.accounting-recap-retro-group:not([open])>summary::before{content:"▸"}.accounting-recap-retro-group>summary input.accounting-recap-label-input{flex:1 1 0%;min-width:0;font-weight:800;color:inherit}.accounting-recap-retro-group>summary .accounting-recap-extra-remove{flex-shrink:0}.accounting-recap-retro-group>summary>span:last-child{flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}.accounting-recap-retro-group>.accounting-recap-list{padding:1px 1px}.accounting-recap-retro-group>.accounting-recap-add-row{margin:1px 1px 3px}.accounting-recap-retro-unused{margin:2px 0 4px;font-size:.68rem;color:var(--recap-muted)}.accounting-recap-retro-unused>summary{cursor:pointer;list-style:none;padding:2px 2px}.accounting-recap-retro-unused>summary::-webkit-details-marker{display:none}.accounting-recap-retro-unused>.accounting-recap-list{margin-top:4px;display:flex;flex-wrap:wrap;gap:2px 8px}.accounting-recap-retro-unused>.accounting-recap-list>.accounting-recap-metric{flex:1 1 45%;min-width:150px}.accounting-recap-add-row-inline{margin-left:auto;flex-shrink:0;width:15px;height:15px;line-height:13px;padding:0;border:1px dashed #9fd3bd;border-radius:999px;background:transparent;color:var(--recap-green);font-size:.66rem;font-weight:800;cursor:pointer}.accounting-recap-add-row-inline:hover{background:var(--recap-green-soft)}.accounting-recap-add-row{justify-self:start;margin:2px 0;padding:3px 8px;border:1px dashed #a9bfdc;border-radius:6px;background:transparent;color:var(--recap-blue);font-size:.66rem;font-weight:700;cursor:pointer}.accounting-recap-add-row:hover{background:var(--recap-blue-soft)}.accounting-recap-courtage .accounting-recap-add-row{border-color:#9fd3bd;color:var(--recap-green)}.accounting-recap-courtage .accounting-recap-add-row:hover{background:var(--recap-green-soft)}.accounting-recap-extra-remove{margin-left:auto;flex-shrink:0;border:0;background:transparent;color:#b52e35;font-size:.85rem;line-height:1;padding:0 3px;cursor:pointer}.accounting-recap-extra-remove:hover{color:#7a1f24}.accounting-recap-move-group{display:flex;flex-direction:column;gap:1px;flex-shrink:0;margin-left:2px}.accounting-recap-move-btn{width:11px;height:9px;line-height:7px;padding:0;border:1px solid #bcd9c9;border-radius:2px;background:#fff;color:var(--recap-green);font-size:.45rem;cursor:pointer}.accounting-recap-move-btn:hover:not(:disabled){background:var(--recap-green-soft)}.accounting-recap-move-btn:disabled{opacity:.3;cursor:default}.accounting-recap-retro-group>summary .accounting-recap-move-group{margin-left:0}.accounting-recap-list{display:grid;gap:1px}.accounting-recap-list-2col{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 8px}.accounting-recap-list-2col .accounting-recap-metric{grid-template-columns:minmax(0,1fr) 90px}.accounting-recap-list-2col .accounting-recap-label-input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accounting-recap-list-2col .accounting-recap-metric>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.accounting-recap-metric{display:grid;grid-template-columns:minmax(0,1fr) 106px;gap:4px;align-items:center;padding:0 4px;border-radius:5px;min-height:18px;border:1px solid transparent}.accounting-recap-metric:focus-within{border-color:#8fb2df;box-shadow:0 0 0 2px rgba(23,79,155,.08)}.accounting-recap-metric>span{display:flex;align-items:center;gap:3px;min-width:0}.accounting-recap-value-wrap{position:relative}.accounting-recap-money-input{width:100%;min-width:0;padding:2px 4px;border:1px solid #bdcce0;border-radius:5px;text-align:right;background:#fff;color:#16385f;font:inherit}.accounting-recap-metric input[readonly]{background:#edf3fb;color:#425d7c;padding-right:42px}.accounting-recap-unlock{position:absolute;right:2px;top:50%;transform:translateY(-50%);border:0;background:#fff;color:var(--recap-blue);font-size:.52rem;font-weight:800;padding:2px 3px;border-radius:3px;cursor:pointer}.accounting-recap-money-input:focus{outline:2px solid rgba(23,79,155,.18);border-color:var(--recap-blue)}.accounting-recap-money-input.has-formula{border-color:var(--recap-blue);background:#f3f8ff}.accounting-recap-label-input{flex:1 1 0%;min-width:0;width:100%;border:0;border-bottom:1px dashed transparent;background:transparent;padding:1px 2px;font:inherit;color:inherit}.accounting-recap-label-input:hover,.accounting-recap-label-input:focus{outline:none;border-bottom-color:var(--recap-blue);background:rgba(255,255,255,.8)}.accounting-recap-label-input:disabled{border:0;opacity:1}.source-manual,.source-report{background:#fff}.accounting-recap-metric-flag-purple{background:#f3e8ff!important;border-color:#c4b5fd!important}.accounting-recap-metric-flag-purple .accounting-recap-money-input{border-color:#a78bfa}.accounting-recap-pending-check{margin-left:auto;flex-shrink:0;width:13px;height:13px;accent-color:#c9741a;cursor:pointer}.accounting-recap-metric.is-pending{background:#fff4e5!important;border-color:#f3c98a}.accounting-recap-metric.is-pending .accounting-recap-money-input{border-color:#e3a13a}.source-bank{background:#f3f8ff}.source-itool{background:#f7faff}.source-excalibur{background:#eef5ff}.source-calculated{background:#e8f1fc;color:#143f73}.accounting-recap-metric-total{font-weight:700}.accounting-recap-courtage .source-calculated{background:#e2f2ea;color:#0f5c3f}.accounting-recap-source{font-size:.49rem;font-weight:800;padding:1px 3px;border-radius:999px;background:#dce9f8;color:#315b8c;white-space:nowrap}.accounting-recap-courtage .accounting-recap-source{background:#d9ece3;color:#1a6b48}.accounting-recap-table-wrap{overflow:visible}.accounting-recap-table{width:100%;border-collapse:collapse;font-size:.59rem;table-layout:fixed}.accounting-recap-table th,.accounting-recap-table td{padding:2px;border:1px solid #dce5f0;text-align:right;overflow:hidden}.accounting-recap-table thead th{background:#e8f1fc;color:#173f70;font-weight:800}.accounting-recap-table th:first-child{width:18%;text-align:left}.accounting-recap-table input{font-size:.59rem;padding:2px}.accounting-recap-table .accounting-recap-label-input{text-align:left}.accounting-recap-total{font-weight:800;background:#dce9f8;color:#123d70}.accounting-recap-hint{display:block;margin-top:3px;color:var(--recap-muted);font-size:.56rem}.accounting-recap-metric-detail{position:relative;width:100%}.accounting-recap-metric-detail>summary{cursor:pointer;list-style:none;text-align:right}.accounting-recap-metric-detail>summary::-webkit-details-marker{display:none}.accounting-recap-metric-detail>summary::after{content:"▾";margin-left:4px;font-size:.55rem;color:var(--recap-muted)}.accounting-recap-panel>header .accounting-recap-metric-detail>summary::after{color:#dceaff}.accounting-recap-metric-detail[open]>summary::after{content:"▴"}.accounting-recap-metric-detail-list{position:absolute;right:0;top:100%;z-index:5;min-width:220px;margin:2px 0 0;padding:5px 7px;list-style:none;background:#fff;border:1px solid var(--recap-line);border-radius:7px;box-shadow:0 6px 18px rgba(23,79,155,.14);display:grid;gap:2px}.accounting-recap-metric-detail-list li{display:flex;justify-content:space-between;gap:10px;font-size:.62rem;color:#3a5170;white-space:nowrap}.accounting-recap-metric-detail-list li>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}.accounting-recap-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.accounting-recap-footer-block{background:var(--recap-grey-soft);border:1px solid #dde2e8;border-radius:10px;padding:5px 7px}.accounting-recap-footer-block h4{border-bottom-color:#d6dbe2;color:var(--recap-grey-dark)}.accounting-recap-footer-block .source-calculated{background:#e2e6ea;color:var(--recap-grey-dark)}.accounting-recap-footer-block .accounting-recap-source{background:#dfe3e8;color:var(--recap-grey-dark)}.accounting-recap-footer-block .accounting-recap-table thead th{background:#e2e6ea;color:var(--recap-grey-dark)}.accounting-recap-footer-block .accounting-recap-total{background:#dde2e8;color:var(--recap-grey-dark)}.recap-area-note{grid-column:1/-1}.accounting-recap-note-input{width:100%;min-height:52px;resize:vertical;border:1px solid #d8dee6;border-radius:6px;padding:5px 7px;font:inherit;color:#1f3654;background:#fff}.accounting-recap-note-input:focus{outline:2px solid rgba(23,79,155,.18);border-color:var(--recap-blue)}.accounting-recap-note-input:disabled{background:#f0f2f5;color:#475569}.recap-area-card{font-size:.64rem;padding:4px 6px}.recap-area-card h4{font-size:.64rem;margin-bottom:2px}.recap-area-card .accounting-recap-metric{padding:1px 3px;min-height:18px}.recap-area-card .accounting-recap-money-input{padding:1px 3px;font-size:.64rem}.recap-area-card .accounting-recap-source{font-size:.46rem}.accounting-recap-feedback{min-height:16px;margin:0;padding:4px 7px;color:#315b8c;font-size:.68rem}.accounting-recap-history{background:#fff;border:1px solid var(--recap-line);border-radius:10px;padding:8px}.accounting-recap-history h3{margin:0 0 6px;color:var(--recap-blue-dark)}.accounting-recap-history-picker{display:flex;flex-direction:column;gap:3px;max-width:420px;font-size:.72rem;font-weight:700;color:#315b8c;margin-bottom:8px}.accounting-recap-history-picker select{height:32px;padding:4px 8px;border:1px solid #bdcce0;border-radius:6px;background:#fff;color:#16385f;font:inherit}.accounting-recap-history-actions{display:flex;flex-direction:column;gap:6px;margin-bottom:8px;padding:8px;background:var(--recap-blue-soft);border-radius:8px}.accounting-recap-history-actions p{margin:0;font-size:.72rem;color:var(--recap-blue-dark)}.accounting-recap-history-actions-buttons{display:flex;gap:8px}.accounting-recap-history-preview{border:1px solid var(--recap-line);border-radius:10px;padding:8px;background:#f9fbfd}.accounting-recap-modified-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.6rem;font-weight:800;text-transform:uppercase;vertical-align:middle}.accounting-recap-correcting-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#dbeafe;color:#1e40af;font-size:.6rem;font-weight:800;text-transform:uppercase;vertical-align:middle}.accounting-recap-readonly-badge{padding:5px 10px;border-radius:999px;background:#eef2f7;color:#475569;font-size:.68rem;font-weight:700}.accounting-recap-history table{width:100%;border-collapse:collapse}.accounting-recap-history th,.accounting-recap-history td{padding:5px;border-bottom:1px solid #e6edf6;text-align:left}.accounting-recap-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:999}.accounting-recap-modal-backdrop[hidden]{display:none}.accounting-recap-email-settings{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000;width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;background:#fff;border:1px solid var(--recap-line);border-top:4px solid var(--recap-blue);border-radius:12px;padding:12px 14px;box-shadow:0 18px 48px rgba(15,23,42,.28)}.accounting-recap-email-settings[hidden]{display:none}.accounting-recap-email-close{border:0;background:transparent;color:var(--recap-muted);font-size:1.3rem;line-height:1;padding:2px 6px;border-radius:6px;cursor:pointer}.accounting-recap-email-close:hover{background:#eef2f7;color:#1f3654}.accounting-recap-email-settings-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.accounting-recap-email-settings h3{margin:0;color:var(--recap-blue-dark);font-size:.9rem}.accounting-recap-email-settings p{margin:2px 0 6px;color:var(--recap-muted);font-size:.68rem}.accounting-recap-email-status{padding:3px 8px;border-radius:999px;background:#eef2f7;color:#64748b;font-size:.62rem;font-weight:800}.accounting-recap-email-status.is-enabled{background:#e5f6ec;color:#167044}.accounting-recap-email-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:end}.accounting-recap-email-fields label{display:grid;gap:3px;font-size:.65rem;font-weight:700;color:#315b8c}.accounting-recap-email-fields input[type=email],.accounting-recap-email-fields select{height:30px;padding:4px 7px;border:1px solid #bdcce0;border-radius:6px;background:#fff;color:#16385f}.accounting-recap-email-check{display:flex!important;grid-column:1/-1;align-items:center;gap:5px!important;min-height:30px;padding:5px 7px;border:1px solid #d6e2f1;border-radius:6px;background:#f7faff}.accounting-recap-email-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.accounting-recap-email-footer small{color:var(--recap-muted);font-size:.62rem}.accounting-recap-email-footer .primary-button{padding:5px 9px;background:var(--recap-blue);color:#fff;border:1px solid var(--recap-blue);border-radius:7px;white-space:nowrap}.accounting-recap-loading{padding:36px;text-align:center;color:var(--recap-blue)}.is-negative{color:#c62828!important}.sidebar-link[data-accounting-recap-nav]{width:100%;border:0;background:transparent;color:var(--section-accent, inherit);display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:9px;text-align:left;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.sidebar-link[data-accounting-recap-nav]:hover,.sidebar-link[data-accounting-recap-nav].is-active{background:rgba(23,79,155,.1);color:var(--section-accent-strong, #174f9b);font-weight:700}@media(max-width:1250px){.accounting-recap-grid,.accounting-recap-footer{grid-template-columns:1fr}.accounting-recap-grid{grid-template-rows:none}.accounting-recap-divider{display:none}.accounting-recap-sep,.accounting-recap-courtage{grid-row:auto;grid-template-rows:auto auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.accounting-recap-email-fields{grid-template-columns:1fr 140px}}@media(max-width:760px){.accounting-recap-sep,.accounting-recap-courtage{display:block}.accounting-recap-header{flex-direction:column}.accounting-recap-actions{width:100%}.accounting-recap-actions button{flex:1}.accounting-recap-metric{grid-template-columns:1fr 100px}.accounting-recap-list-2col{grid-template-columns:1fr}.accounting-recap-block+.accounting-recap-block{border-left:0;border-top:1px solid var(--recap-line)}.accounting-recap-table{font-size:.56rem}.accounting-recap-email-fields{grid-template-columns:1fr}.accounting-recap-email-footer{align-items:stretch;flex-direction:column}}
.accounting-recap-period-editor{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:6px}
/* .date-field-french is shared site-wide and sets width:100% for itself, which is exactly what
   made each field claim the whole header row and stack vertically - overridden back to a compact,
   side-by-side size here so Date/Début période/Fin période share one line instead of three. */
.accounting-recap-period-editor .date-field-french{width:auto;font-size:.62rem;font-weight:700;color:var(--recap-muted)}
.accounting-recap-period-editor .date-field-french-inputs{margin-top:2px;width:auto}
.accounting-recap-period-editor input[data-date-field-text]{width:100px;flex:0 0 auto;height:26px;padding:2px 6px;border:1px solid #bdcce0;border-radius:6px;background:#fff;color:#16385f;font-size:.7rem}
.accounting-recap-period-editor input[data-date-field-text]:focus{outline:2px solid rgba(23,79,155,.18);border-color:var(--recap-blue)}
.accounting-recap-email-template{display:grid;gap:7px;margin-top:8px}
.accounting-recap-email-template label{display:grid;gap:3px;font-size:.65rem;font-weight:700;color:#315b8c}
.accounting-recap-email-template input[type=text],.accounting-recap-email-template textarea{padding:5px 7px;border:1px solid #bdcce0;border-radius:6px;background:#fff;color:#16385f;font:inherit;font-size:.7rem;resize:vertical}
.accounting-recap-email-template small{color:var(--recap-muted);font-size:.6rem}
.accounting-recap-email-template small code{background:#eef2f7;color:#16385f;padding:0 3px;border-radius:3px;font-size:.6rem}