/* ELFinance : tableau annuel des mensualités */
.matrix-panel{padding-bottom:17px}.matrix-head{align-items:flex-start;flex-wrap:wrap}.matrix-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.matrix-year{display:flex;align-items:center;gap:11px;background:#fff6f8;border:1px solid #f2dfe6;border-radius:12px;padding:4px}.matrix-year strong{min-width:48px;text-align:center;font-size:14px;color:#964961}.matrix-year button{width:32px;height:33px;border:0;border-radius:8px;background:#fff;color:var(--rose-deep);display:flex;align-items:center;justify-content:center}.matrix-year button:hover{background:#fce9ef}.matrix-search-line{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0}.matrix-search-line input{background:#fff;border:1px solid #eadbe1;padding:11px 13px;border-radius:11px;font-size:12px;min-width:180px;width:min(360px,100%)}.matrix-search-line span{font-size:11px;color:var(--muted)}.matrix-scroll{overflow-x:auto;overflow-y:auto;max-height:68vh;border-radius:13px;border:1px solid var(--border);overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d99fb2 #fff4f7}.matrix-scroll:focus-visible{outline:3px solid #efb2c5;outline-offset:2px}.matrix-table{border-collapse:separate;border-spacing:0;min-width:1960px;width:max-content;font-size:12px}.matrix-table th,.matrix-table td{padding:10px 9px;border-bottom:1px solid #f4e7ec;border-right:1px solid #f7edf0;white-space:nowrap;background:#fff;text-align:left;vertical-align:middle}.matrix-table thead th{background:#fff2f6;position:sticky;top:0;z-index:3;color:#8e4863;letter-spacing:.02em;font-size:11px;font-weight:800}.matrix-table .matrix-label-col{position:sticky;left:0;min-width:205px;width:205px;max-width:205px;white-space:normal;z-index:2;box-shadow:3px 0 8px -7px #59334180}.matrix-table thead .matrix-label-col{z-index:5;background:#fbe5ec}.matrix-type-col{width:90px;min-width:90px}.matrix-day-col{width:48px;min-width:48px;text-align:center!important}.matrix-month-head,.matrix-month-cell,.matrix-summary td:not(.matrix-type-col):not(.matrix-day-col){min-width:111px;width:111px;text-align:right!important}.matrix-table .matrix-total-col{min-width:120px;max-width:125px;text-align:right;font-weight:800}.matrix-table .matrix-actions-col{min-width:76px;width:76px;text-align:center}.matrix-label-col .matrix-row-name{font-weight:800;font-size:12px;line-height:1.4;color:#513c48;white-space:normal;word-break:break-word}.matrix-label-col .matrix-row-detail{font-weight:500;font-size:10px;color:#a78c99;line-height:1.35;margin-top:5px;white-space:normal}.matrix-type{font-size:10px;font-weight:800;border-radius:8px;padding:6px 7px;display:inline-block;background:#f6f2f4;color:#826b79}.matrix-type.income{background:#e6f6ed;color:var(--green)}.matrix-type.expense{background:#fff0f2;color:var(--red)}.matrix-type.transfer{background:#f3edfc;color:#8659a6}.matrix-cell-wrap{display:flex;justify-content:flex-end;align-items:center;position:relative}.matrix-input{font:inherit;font-size:11.5px;font-weight:700;color:#5e4650;text-align:right;width:100%;max-width:97px;min-height:34px;background:#fff;border:1px solid transparent;border-radius:8px;padding:6px 7px}.matrix-input:hover:not(:disabled),.matrix-input:focus{border-color:#e4b0c0;background:#fffaff}.matrix-input:disabled{opacity:1;color:#746970;background:#faf5f7}.matrix-input::placeholder{color:#c9afb9}.matrix-cell-mark{position:absolute;top:-7px;right:-5px;border-radius:99px;font-size:10px;line-height:13px;padding:0 3px;pointer-events:none;background:#fff}.matrix-cell-mark.confirmed{color:#16855a}.matrix-cell-mark.pending{color:#b87917}.matrix-table .matrix-selected{background:#fff5ec}.matrix-table thead .matrix-selected{background:#f9e4d6;color:#8d4f2c}.matrix-table tfoot th,.matrix-table tfoot td{font-size:11px;font-weight:750;background:#fff9fa;border-top:1px solid #f3e6eb}.matrix-table tfoot .matrix-label-col{font-size:11px;background:#fff5f7}.matrix-table tfoot .matrix-selected{background:#fff1e3}.matrix-table tfoot .net th,.matrix-table tfoot .net td{font-weight:850;color:#9e4161;background:#fcecf1}.matrix-table tfoot .net .matrix-selected{background:#f7d7da}.matrix-actions{display:flex;justify-content:center;gap:5px}.matrix-guide{color:#917984;font-size:11px;line-height:1.75;margin:15px 0 0}.matrix-guide strong{font-weight:800}.matrix-empty{font-size:12px;color:var(--muted);padding:20px;text-align:center}.matrix-month-summary{margin:16px 0 20px}.matrix-apply{margin-bottom:22px}.matrix-apply .section-head{flex-wrap:wrap}.matrix-summary{font-variant-numeric:tabular-nums}
@media(max-width:650px){.matrix-panel{padding:16px 11px}.matrix-head{padding:0 5px}.matrix-controls{width:100%;justify-content:space-between}.matrix-search-line{flex-direction:column;align-items:stretch;gap:7px;padding:0 4px}.matrix-search-line input{max-width:100%;width:100%}.matrix-scroll{max-height:60vh}.matrix-table{min-width:0}.matrix-table .matrix-label-col{min-width:138px;width:138px;max-width:138px;padding-left:8px}.matrix-label-col .matrix-row-name{font-size:11px}.matrix-label-col .matrix-row-detail{font-size:9px}.matrix-month-summary{margin-bottom:16px}.matrix-guide{padding:0 4px}.matrix-apply .section-head .btn{width:100%}}
/* Choix explicite des mois : une fois, tous les mois ou mois choisis */
.schedule-period-main{background:#fff8fa;border:1px solid #f4dee5;border-radius:13px;padding:13px}
.schedule-period-main label{color:var(--rose-deep)}
.schedule-period-custom{display:grid;gap:13px;background:#fff9fb;border:1px solid var(--border);padding:13px;border-radius:13px}
.schedule-month-fieldset{min-width:0;margin:0;padding:0;border:0}
.schedule-month-fieldset legend{font-size:12px;font-weight:800;color:#5d4b56;margin-bottom:10px}
.schedule-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.schedule-month-grid label{min-width:0;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11.5px;font-weight:700;background:#fff;border:1px solid #ecdde4;border-radius:10px;padding:10px 9px;color:#66525c}
.schedule-month-grid label:has(input:checked){border-color:#d68da6;background:#fff0f4;color:var(--rose-deep)}
.schedule-month-grid input{accent-color:var(--rose);width:15px;height:15px;flex-shrink:0}
.schedule-month-grid span{min-width:0}
@media(max-width:390px){.schedule-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.schedule-month-grid label.month-disabled{opacity:.38;cursor:not-allowed;background:#f7f4f5}

.schedule-period-summary{border:1px solid #ebccda;border-radius:11px;padding:11px 12px;font-size:11.5px;color:#914562;font-weight:700;line-height:1.7;background:#fff5f9}
.schedule-period-custom .schedule-month-grid label:has(input:checked){border-color:#d36f98;background:#fff0f5}

/* Tableau de mensualisation : couleur du mouvement, sans colonne Type */
.matrix-table tr.matrix-data-row.matrix-income .matrix-row-name,
.matrix-table tr.matrix-data-row.matrix-income td.matrix-total-col,
.matrix-table tr.matrix-data-row.matrix-income .matrix-input{color:#16845c}
.matrix-table tr.matrix-data-row.matrix-expense .matrix-row-name,
.matrix-table tr.matrix-data-row.matrix-expense td.matrix-total-col,
.matrix-table tr.matrix-data-row.matrix-expense .matrix-input,
.matrix-table tr.matrix-data-row.matrix-transfer .matrix-row-name,
.matrix-table tr.matrix-data-row.matrix-transfer td.matrix-total-col,
.matrix-table tr.matrix-data-row.matrix-transfer .matrix-input{color:#ba4561}
.matrix-table tr.matrix-data-row.matrix-income th.matrix-label-col{background:#f0faf4;border-left:3px solid #3caa7a}
.matrix-table tr.matrix-data-row.matrix-expense th.matrix-label-col,
.matrix-table tr.matrix-data-row.matrix-transfer th.matrix-label-col{background:#fff3f6;border-left:3px solid #de819c}
.matrix-table tr.matrix-data-row .matrix-input::placeholder{color:#c4adb6}
.matrix-table tr.matrix-data-row.matrix-income .matrix-input:disabled{background:#f1f8f3;color:#16845c}
.matrix-table tr.matrix-data-row.matrix-expense .matrix-input:disabled,
.matrix-table tr.matrix-data-row.matrix-transfer .matrix-input:disabled{background:#fff2f5;color:#ba4561}
.matrix-table tfoot tr.matrix-summary.income th,
.matrix-table tfoot tr.matrix-summary.income td{color:#188559}
.matrix-table tfoot tr.matrix-summary.expense th,
.matrix-table tfoot tr.matrix-summary.expense td,
.matrix-table tfoot tr.matrix-summary.transfer th,
.matrix-table tfoot tr.matrix-summary.transfer td{color:#b94866}
.matrix-table tfoot tr.matrix-summary.net td.matrix-net-positive{color:#188559}
.matrix-table tfoot tr.matrix-summary.net td.matrix-net-negative{color:#b94866}
.matrix-table tfoot tr.matrix-summary.net td.matrix-net-neutral{color:#846879}
/* Le reste net reste visible sous le tableau même lorsque celui-ci défile. */
.matrix-table tfoot tr.matrix-summary.net th,
.matrix-table tfoot tr.matrix-summary.net td{position:sticky;bottom:0;z-index:5;border-top:2px solid #dd9cb4;box-shadow:0 -4px 12px #79536618;background:#fcecf1}
.matrix-table tfoot tr.matrix-summary.net th.matrix-label-col{left:0;z-index:7}
.matrix-table tfoot tr.matrix-summary.net td.matrix-selected{background:#f7d7da}
.matrix-table tr.matrix-data-row.matrix-income:hover td{background:#f7fcf9}
.matrix-table tr.matrix-data-row.matrix-expense:hover td,
.matrix-table tr.matrix-data-row.matrix-transfer:hover td{background:#fff8fa}
.matrix-kind-key{font-size:11px;display:flex;gap:13px;margin-top:8px;flex-wrap:wrap}
.matrix-kind-key span{display:inline-flex;align-items:center;gap:6px;font-weight:650}
.matrix-kind-key .income{color:#188559}
.matrix-kind-key .debit{color:#b94866}
.matrix-kind-key i{display:inline-block;width:9px;height:9px;border-radius:50%;background:currentColor}
