/* G4-REV1 (the Owner 2026-10-01) — loaded after hdr1.css. The «check and fix» button beside the reversed-balance alert and its floating window: the
   ledger accounts, the statement's reading, the reclassification for display, the ways out and the adjustment form. Structure and behaviour only. */
.p3-reverse .rev1-open{display:inline-block;margin:6px 0 0;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:12.5px;cursor:pointer}
.rev1-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:20px}
.rev1-dialog h2{margin:0 0 4px;font-size:17px}
.rev1-dialog h3{margin:14px 0 6px;font-size:13.5px}
.rev1-dialog .rev1-close{float:inline-end;min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.rev1-dialog .rev1-context{margin:0 0 8px;font-size:12.5px;color:var(--muted)}
.rev1-dialog .rev1-line{margin:0 0 8px;font-size:13px;line-height:1.7}
.rev1-dialog .rev1-case{padding:8px 10px;border:1px solid var(--line);border-inline-start:4px solid #b7791f;border-radius:10px}
.rev1-dialog [data-rev1-case="advances"] .rev1-case{border-inline-start-color:#2f855a}
.rev1-dialog .rev1-muted{margin:0 0 8px;font-size:12.5px;color:var(--muted);line-height:1.6}
.rev1-table{width:100%;border-collapse:collapse;font-size:12.5px;margin:0 0 8px}
.rev1-table th,.rev1-table td{padding:5px 8px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
.rev1-table tr.rev1-reversed td{font-weight:600}
.rev1-table td small{margin-inline-start:6px;color:var(--muted)}
.rev1-reclass td:nth-child(3){font-weight:600}
.rev1-actions{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.rev1-actions button{min-height:38px;padding:0 14px}
.rev1-adjust{padding:12px;border:1px solid var(--line);border-radius:12px}
.rev1-adjust .rev1-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.rev1-adjust label{display:grid;gap:4px;font-size:12.5px}
.rev1-adjust label.rev1-wide{grid-column:1/-1}
.rev1-adjust input{min-height:38px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font:inherit}
.rev1-adjust input[readonly]{color:var(--muted)}
.rev1-adjust .rev1-effect{margin:8px 0;font-size:12.5px;line-height:1.7;color:var(--muted)}
.rev1-adjust .rev1-message{margin:6px 0 0;font-size:12.5px;line-height:1.6}
@media (max-width:760px){
 .rev1-dialog{padding:14px}
 .rev1-adjust .rev1-fields{grid-template-columns:1fr}
 .p3-reverse .rev1-open,.rev1-actions button,.rev1-adjust input{min-height:44px}
}
/* G4-REV1 (candidate): the row note opens the window; the drill-down offers the reconciliation */
.rev1-flag{font:inherit;cursor:pointer;background:transparent;border:0;padding:0;margin:0;text-align:start;color:inherit;display:block;width:100%}
.rev1-flag .p3-flag{text-decoration:underline dotted;text-underline-offset:3px}
.rev1-flag:hover .p3-flag,.rev1-flag:focus-visible .p3-flag{text-decoration-style:solid}
.rev1-flag:focus-visible{outline:2px solid var(--accent,#43c9ff);outline-offset:2px;border-radius:6px}
.rev1-reconcile{font:inherit;font-size:13px;cursor:pointer;border-radius:999px;border:1px solid var(--accent,#43c9ff);background:transparent;color:inherit;padding:4px 12px;min-height:34px}
/* G4-REV1B (the Owner 2026-10-03): the entry before it is recorded (the two accounts, their sides and lines), the adjustments recorded on the month and taking one off */
.rev1-adjust select{min-height:38px;padding:0 8px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font:inherit;max-width:100%}
.rev1-entry{margin:10px 0 0}
.rev1-entry h4{margin:0 0 6px;font-size:13px}
.rev1-entry-table td:nth-child(3),.rev1-entry-table td:nth-child(4),.rev1-entry-table th:nth-child(3),.rev1-entry-table th:nth-child(4){text-align:end;white-space:nowrap}
.rev1-recorded{margin:12px 0 0;padding:10px 12px;border:1px solid var(--line);border-inline-start:4px solid #2f855a;border-radius:12px}
.rev1-recorded h3{margin:0 0 6px}
.rev1-recorded-list,.rev1-recorded-lines{list-style:none;margin:0;padding:0}
.rev1-recorded-list>li{padding:6px 0;border-bottom:1px solid var(--line)}
.rev1-recorded-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 4px}
.rev1-recorded-head .rev1-remove{margin-inline-start:auto}
.rev1-recorded-lines li{font-size:12.5px;line-height:1.6;overflow-wrap:anywhere}
.rev1-remove{min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:12.5px;cursor:pointer;white-space:nowrap}
.rev1-remove[data-rev1-confirm]{border-color:#c53030;color:#c53030}
.rev1-recorded .rev1-message,.rev1-dialog .rev1-done{margin:6px 0 0;font-size:12.5px;line-height:1.6}
.rev1-dialog [data-rev1-case="split_done_differs"] .rev1-case{border-inline-start-color:#2f855a}
@media (max-width:760px){
 .rev1-adjust select,.rev1-remove{min-height:44px}
 /* the entry as one card per account: the account, its line, then its side and amount */
 .rev1-entry-table thead{display:none}
 .rev1-entry-table tr{display:grid;grid-template-columns:1fr;gap:2px;padding:6px 0;border-bottom:1px solid var(--line)}
 .rev1-entry-table td{border-bottom:0;padding:0 2px;overflow-wrap:anywhere}
 .rev1-entry-table td:nth-child(2){color:var(--muted);font-size:12px}
 .rev1-entry-table td:nth-child(3),.rev1-entry-table td:nth-child(4){text-align:start;font-weight:600}
 .rev1-entry-table td[data-label]::before{content:attr(data-label) ': ';font-weight:400;color:var(--muted)}
 .rev1-entry-table td.rev1-empty{display:none}
}

/* G4-REV1C: immediate reconciliation state, using the site's theme colors. */
.rev1c-badge{display:inline-block;padding:.6rem 1rem;margin-block:.4rem .8rem;border:2px solid var(--line);border-radius:.25rem;background:var(--panel);color:var(--text);font-weight:700;max-width:100%;overflow-wrap:anywhere}
.rev1c-matched{border-color:var(--green);background:color-mix(in srgb,var(--green) 24%,var(--panel))}
.rev1c-different{border-color:var(--red);background:color-mix(in srgb,var(--red) 24%,var(--panel))}
.rev1c-unknown{border-color:var(--amber)}
.rev1-dialog [data-rev1c-advance-reason]{display:block;margin-block:.4rem}
.rev1-dialog :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
html:has(#rev1Dialog[open]),body:has(#rev1Dialog[open]){overflow-x:clip}
@media(max-width:600px){.rev1-dialog{box-sizing:border-box}.rev1-dialog select,.rev1-dialog input{min-width:0;max-width:100%}.rev1-table{table-layout:fixed}.rev1-dialog .rev1-table td,.rev1-dialog .rev1-table th,.rev1-dialog .rev1-table bdi{white-space:normal;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.rev1-dialog,.rev1-dialog *{scroll-behavior:auto;animation:none;transition:none}}
