.statement-settings details{margin:1rem 0;border:1px solid #b8c8be;border-radius:10px;padding:.8rem;background:#fff}.statement-settings summary{font-weight:700;color:#466455;cursor:pointer;padding:.4rem}.statement-settings label{padding:.4rem}.statement-settings input[type=checkbox]{width:1.2rem;height:1.2rem}.statement-settings .objective-grid{gap:.65rem}.statement-settings .table-wrap input{min-width:130px}.statement-legend{display:flex;flex-wrap:wrap;gap:1rem;margin:.7rem 0}.statement-legend span{padding-left:.5rem;font-size:.9rem}.statement-toolbar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.statement-toolbar button{min-height:44px}.statement-panel table{font-variant-numeric:tabular-nums}.statement-panel th:first-child{min-width:230px}.statement-panel td{min-width:100px;text-align:right}.statement-panel tbody tr:nth-child(even){background:#f0f5ef}.statement-panel h4{margin-top:1.5rem}.statement-panel p{max-width:85ch}.statement-panel svg{background:#fff;border:1px solid #d8e0d7;border-radius:8px} @media print{.statement-panel[hidden]{display:none}.statement-toolbar{display:none}.statement-panel .table-wrap{overflow:visible}.statement-settings{display:none}}

/* Pastel annual backgrounds require dark text, including table headings. */
th[data-year],th.year-block{color:#1A1A1A}.statement-settings .objective-grid input{min-width:0}.statement-panel .statement-total th,.statement-panel .statement-total td{font-weight:800;border-top:2px solid #466455}.pricing-block input[type=checkbox]{width:22px;min-height:22px;accent-color:#466455;margin:.8rem auto}.statement-settings details>p{font-size:.85rem}
@media print{#panel-balance.statement-panel:not([hidden]){display:block!important}.statement-panel{break-before:page}.statement-panel h4{break-after:avoid}.statement-panel thead{display:table-header-group}.statement-panel td{min-width:0}.statement-panel th:first-child{min-width:0}.statement-panel svg{max-width:100%;min-width:0!important}}

/* États financiers : repères fixes et lecture clavier des tableaux larges. */
.statement-scroll{max-height:38rem;overflow:auto;position:relative;overscroll-behavior-inline:contain}
.statement-scroll:focus-visible,.statement-legend button:focus-visible,.statement-chart-data summary:focus-visible{outline:3px solid #2448a3;outline-offset:3px}
.statement-panel table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;color:#202d25}
.statement-panel caption,.statement-settings caption{text-align:left;padding:.75rem;background:#f6f8f5;color:#34473b;line-height:1.5;font-size:.9rem;caption-side:top}
.statement-panel thead th{position:sticky;top:0;z-index:2;background:#e4ece6;color:#202d25;text-align:right}
.statement-panel thead th:first-child{left:0;z-index:4;text-align:left}
.statement-panel tbody th[scope=row]{position:sticky;left:0;z-index:1;min-width:230px;max-width:320px;background:#f8faf7;color:#202d25;text-align:left;font-weight:600;box-shadow:1px 0 0 #c4d1c7;white-space:normal}
.statement-panel tbody tr:nth-child(even) td,.statement-panel tbody tr:nth-child(even) th{background:#f0f5ef}
.statement-panel td{color:#202d25;white-space:nowrap;text-align:right}
.statement-panel .statement-total th,.statement-panel .statement-total td{background:#e1ebe2!important;color:#182a1e;font-weight:800;border-top:2px solid #466455;border-bottom:1px solid #a4bba9}
.statement-legend button{min-height:44px;padding:.45rem .7rem;font-size:.9rem;background:#f3f7f2;color:#25382b}
.statement-legend button[aria-pressed=false]{background:#fff;color:#546158;text-decoration:line-through;border-color:#b9c7bd}
.statement-chart-data{margin:.8rem 0 1.5rem;border:1px solid #c8d6cb;border-radius:8px;padding:.7rem}
.statement-chart-data summary{cursor:pointer;font-weight:600;color:#344d3d;padding:.35rem}
@media print{.statement-scroll{max-height:none;overflow:visible}.statement-panel thead th,.statement-panel tbody th[scope=row]{position:static}.statement-legend{display:none}}
.statement-number-help{margin:.5rem 0 1rem;font-size:.85rem;color:#45594b}
.statement-number-help summary{cursor:pointer;padding:.35rem 0}
.statement-number-help summary:focus-visible{outline:3px solid #2448a3;outline-offset:3px}
.statement-number-help p{margin:.5rem 0;line-height:1.5}


/* F21 : information textuelle et focus en complément des couleurs. */
.statement-value::after{content:attr(data-status);display:block;font-size:.72rem;font-weight:500;white-space:normal;margin-top:.25rem}
.statement-panel td.statement-danger,.statement-panel td.statement-error{color:#8b1919!important;font-weight:800!important}
.statement-panel td.statement-missing,.statement-panel td.statement-na{color:#545454!important}
.statement-value:focus-visible{outline:3px solid #2448a3;outline-offset:-3px}
.statement-value-tip{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);z-index:200;width:min(48rem,calc(100vw - 2rem));max-height:40vh;overflow:auto;box-sizing:border-box;background:#fff;color:#202d25;border:2px solid #34473b;border-radius:.5rem;padding:1rem;box-shadow:0 4px 16px #0003;white-space:normal;text-align:left;font-size:.95rem;line-height:1.5;font-weight:400}
.statement-value-tip[hidden]{display:none}
@media print{.statement-value-tip{display:none}.statement-value::after{font-size:.7rem}}
