.finance-accounts{color:var(--ink);font-size:13px;min-width:0}.finance-accounts fieldset{border:0;padding:0;margin:0;min-width:0}.finance-accounts button,.finance-accounts input,.finance-accounts select{font:inherit;min-height:28px;border:1px solid var(--line);border-radius:3px;padding:3px 7px;background:#fff}.finance-accounts button{cursor:pointer}.finance-accounts button:disabled{cursor:default;opacity:.5}.finance-accounts .primary{background:var(--green);color:white}.fa-toolbar,.fa-filters,.fa-move{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fa-toolbar{justify-content:space-between;margin-bottom:12px}.fa-toolbar strong{font-size:19px}.fa-toolbar>div{display:flex;gap:6px}.fa-banner{background:#edf2f5;border:1px solid #cbd9df;color:#385768;padding:9px 12px;margin:0 0 12px}.fa-filters{background:#fff;padding:10px;border:1px solid var(--line)}.fa-filters label,.fa-move label{display:flex;align-items:center;gap:5px}.fa-filters input{max-width:145px}.fa-palette{margin-left:auto;max-width:330px}.fa-palette>span{font-size:11px;color:var(--muted)}.fa-palette>div{display:flex;gap:3px;margin-top:4px}.fa-palette button{width:17px;height:17px;min-height:17px;padding:0;border:1px solid #ffffff}.fa-palette button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:1px}.fa-move{padding:10px 0}.fa-move>span{font-weight:600}.fa-move select{max-width:250px}.fa-move small,.fa-muted{color:var(--muted)}.fa-scroll{overflow:auto;max-height:calc(100vh - 325px);border:1px solid var(--line);background:#fff}.finance-accounts table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1040px;font-size:12px}.finance-accounts th,.finance-accounts td{border-bottom:1px solid #e4e6e1;padding:2px 6px;height:30px;text-align:left}.finance-accounts thead{position:sticky;top:0;z-index:2;background:#e9eee9}.finance-accounts thead th:nth-child(1){width:28px}.finance-accounts thead th:nth-child(2){width:98px}.finance-accounts thead th:nth-child(3){width:27%}.finance-accounts thead th:nth-child(4){width:78px}.finance-accounts thead th:nth-child(5){width:46px}.finance-accounts th:last-child{width:106px}.finance-accounts td input:not([type]),.finance-accounts td select{width:100%;box-sizing:border-box;min-height:24px;height:24px;padding:1px 5px;background:transparent;border-color:transparent}.finance-accounts td input:hover,.finance-accounts td input:focus,.finance-accounts td select:hover,.finance-accounts td select:focus{border-color:#9aaea0;background:white}.finance-accounts td button{font-size:11px;min-height:23px;padding:1px 4px;color:#365e4a}.finance-accounts input[type=radio],.finance-accounts input[type=checkbox]{min-height:0;width:14px;height:14px;accent-color:var(--green)}.fa-name{display:flex;align-items:center}.fa-name button,.fa-spacer{flex:0 0 33px}.fa-name input{min-width:50px}.fa-name button{border:0;background:transparent}.fa-active{display:flex;align-items:center;gap:3px;white-space:nowrap}.fa-company th{background:#d5e2d9;color:#244e3e;font-size:13px;font-weight:700}.fa-company-1 th{background:#d8e3eb;color:#294d66}.fa-company small{font-size:11px;font-weight:400;margin-left:10px}.fa-selected td{background:#eef6ef}.fa-dirty td{box-shadow:inset 0 -1px #b4cdb6}.finance-accounts .fa-swatch{display:block;width:23px;height:18px;min-height:18px;border:1px solid #ffffff}.fa-error{color:#a33327;background:#fff1ed}.fa-message:not(:empty),.fa-error:not(:empty){padding:8px;margin-bottom:8px}.fa-footer{font-size:12px;color:var(--muted);margin:10px 0}.finance-accounts :focus-visible{outline:2px solid #54798c;outline-offset:1px}@media(max-width:700px){.fa-toolbar{align-items:flex-start}.fa-toolbar>div{flex-wrap:wrap}.fa-palette{margin-left:0}.fa-filters{align-items:flex-start}.fa-move select{max-width:180px}.fa-scroll{max-height:65vh}.fa-toolbar strong{font-size:17px}}
.finance-accounts td input:not([type=checkbox]):not([type=radio]):not([type=file]){min-height:21px;height:21px;padding:1px 5px;border:1px solid #dce4df;background:#fff;border-radius:2px}.finance-accounts td select{height:21px;min-height:21px;border:1px solid #dce4df;background:#fff;border-radius:2px}.finance-accounts td,.finance-accounts th{height:24px;padding:1px 5px}.finance-accounts td button{min-height:20px;height:20px}.finance-accounts td label{margin:0}.finance-accounts .fa-company th{position:static;background:#316e62;color:#fff;height:27px}.finance-accounts .fa-company-1 th{background:#497c9b}.finance-accounts .fa-company small{color:#fff}.finance-accounts .fa-name input{flex:1}.finance-accounts .fa-swatch{width:38px;height:16px;min-height:16px}.finance-accounts .fa-filters input:not([type=checkbox]):not([type=radio]):not([type=file]){min-height:28px;padding:3px 7px}.finance-accounts .fa-scroll{max-height:calc(100dvh - 440px)}
@media(min-width:701px){#content:has(.finance-accounts)>.page-title{margin-bottom:6px}#content:has(.finance-accounts)>.page-title p{margin:4px 0}.finance-accounts .fa-toolbar{margin-bottom:6px}.finance-accounts .fa-toolbar>strong{font-size:13px;color:var(--muted)}.finance-accounts .fa-banner{padding:6px 10px;margin-bottom:8px}.finance-accounts .fa-filters{padding:7px}.finance-accounts .fa-move{padding:7px 0}.finance-accounts .fa-scroll{max-height:calc(100dvh - 435px)}}
@media(max-width:700px){.finance-accounts .fa-scroll{max-height:50vh}.finance-accounts td,.finance-accounts th{height:32px}.finance-accounts td input:not([type=checkbox]):not([type=radio]):not([type=file]),.finance-accounts td select{height:28px;min-height:28px}}
.finance-accounts .fa-name{border-left:1px solid #d6e1da}.finance-accounts .fa-name:has(>.fa-spacer){border-left:1px solid #b8cec0}@media(min-width:701px){.finance-accounts .fa-scroll{max-height:calc(100dvh - 485px)}}
@media(min-width:1100px){.finance-accounts{position:relative}.finance-accounts .fa-toolbar{position:absolute;right:0;top:-61px}.finance-accounts .fa-toolbar>strong{display:none}.finance-accounts .fa-scroll{max-height:calc(100dvh - 445px)}}
.finance-accounts [data-record]{white-space:nowrap}.finance-accounts [data-record-status]{display:inline-block;font-size:11px;margin-right:5px}.finance-accounts .fa-history{width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:80dvh;padding:14px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;box-sizing:border-box}.fa-history::backdrop{background:#152c294d}.fa-history>header,.fa-history>nav{display:flex;align-items:center;gap:10px;justify-content:space-between}.fa-history>header{padding-bottom:9px;border-bottom:1px solid var(--line)}.fa-history>header strong{font-size:16px}.fa-history-context{font-size:12px;color:var(--muted);margin:9px 0}.fa-history-list{max-height:55dvh;overflow:auto}.fa-history details{border:1px solid var(--line);border-radius:4px;margin:7px 0}.fa-history summary{display:flex;gap:9px;flex-wrap:wrap;cursor:pointer;background:#edf3ef;padding:8px;font-size:12px}.fa-history summary strong{margin-right:auto}.finance-accounts .fa-history table{min-width:0;width:100%;table-layout:fixed}.finance-accounts .fa-history th,.finance-accounts .fa-history td{height:auto;padding:7px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;font-size:12px}.finance-accounts .fa-history th:first-child{width:18%}.finance-accounts .fa-history th:last-child{width:auto}.fa-history>nav{justify-content:flex-end;flex-wrap:wrap;margin-top:10px}.fa-history footer{font-size:11px;color:var(--muted);margin-top:9px}.fa-history details>p{padding:0 8px}.fa-history [data-history-empty]{padding:18px 4px}@media(max-width:700px){.finance-accounts .fa-history{padding:10px;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}.fa-history summary{gap:5px}.fa-history summary>span{width:100%}.fa-history-list{max-height:58dvh}}
.fa-page-nav{display:flex;gap:22px;align-items:center;margin:0 0 8px;font-size:12px}.fa-page-nav a{color:var(--green);text-decoration:none}.fa-page-nav [aria-current]{padding:4px 8px;border-bottom:2px solid var(--green);font-weight:600}.finance-accounts .fa-company button{border:0;background:transparent;color:inherit;font-weight:700;padding:0 4px;min-height:24px}.finance-accounts .fa-company button[aria-expanded=false]{text-decoration:underline;text-underline-offset:3px}.finance-accounts tr[hidden]{display:none}


/* Approved single-page overview and editor; no account paging or edit tabs. */
.fa-layout{display:grid;grid-template-columns:minmax(560px,1.65fr) minmax(340px,1fr);gap:14px;align-items:start}
.fa-overview,.fa-editor{min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px}
.finance-accounts .fa-toolbar strong{font-size:22px;color:var(--ink)}
.fa-layout h2{font-size:20px;margin:0 0 14px}.fa-editor h3{font-size:16px;margin:20px 0 12px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.fa-layout .fa-filters{padding:0;border:0;gap:8px;font-size:12px}.fa-layout .fa-filters select{max-width:150px}
.finance-accounts .fa-layout .fa-scroll{max-height:calc(100dvh - 385px);min-height:260px;border:0}
.finance-accounts .fa-layout table{min-width:620px;table-layout:auto}
.finance-accounts .fa-layout th,.finance-accounts .fa-layout td{height:36px;padding:5px 7px;white-space:nowrap}
.finance-accounts .fa-layout thead th{width:auto;font-weight:650}.finance-accounts .fa-layout thead th:nth-child(2){min-width:180px}
.finance-accounts .fa-layout .fa-company th{background:#eef1ef;color:var(--ink);font-size:14px}.fa-layout .fa-company small{color:var(--muted)}
.finance-accounts .fa-layout .fa-company button{color:inherit}.finance-accounts .fa-layout .fa-selected td{background:#e0f1e8}
.fa-layout .fa-name [data-select]{font-size:13px;text-align:left;flex:1;white-space:normal;min-height:26px}
.fa-layout .fa-name [data-fold],.fa-layout .fa-spacer{flex:0 0 22px}
.fa-editor{max-height:calc(100dvh - 235px);overflow:auto;position:sticky;top:12px}
.fa-editor-fields{display:grid;gap:10px}.fa-editor label{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:10px;margin:0}
.finance-accounts .fa-editor input:not([type=checkbox]),.finance-accounts .fa-editor select{box-sizing:border-box;width:100%;height:34px;min-height:34px;padding:5px 8px}
.fa-readonly{background:#f4f5f3;border:1px solid var(--line);padding:7px 8px;border-radius:4px}
.fa-editor [data-child]{margin-top:10px}.fa-editor .fa-palette{margin:0;max-width:none}.fa-editor .fa-palette>div{flex-wrap:wrap;gap:7px}
.fa-editor .fa-palette button{width:24px;height:24px;min-height:24px}.fa-history-fold{border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.fa-history-fold summary{font-size:16px;font-weight:650;cursor:pointer;margin-bottom:12px}
.fa-editor-actions{display:flex;justify-content:flex-end;gap:8px;background:#fff;position:sticky;bottom:-14px;border-top:1px solid var(--line);padding:12px 0;margin-top:18px}
@media(max-width:1100px){.fa-layout{grid-template-columns:minmax(0,1fr)}.fa-editor{position:static;max-height:none}.finance-accounts .fa-layout .fa-scroll{max-height:420px}.fa-editor-fields{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.fa-editor-fields{grid-template-columns:1fr}.fa-layout .fa-filters input{max-width:120px}.fa-toolbar>div{flex-wrap:wrap}.finance-accounts .fa-layout .fa-scroll{min-height:180px}}
.fa-history-inline>details{border-bottom:1px solid var(--line);padding:8px 0}.fa-history-inline summary{font-size:12px;font-weight:400}.fa-history-inline dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:7px;font-size:12px}.fa-history-inline dd{margin:0;overflow-wrap:anywhere}

/* 1107-08 step 2: account owner tags (store colour from organisation settings). */
.finance-accounts .fa-own{display:inline-flex;align-items:center;height:20px;min-height:20px;padding:0 8px;border-radius:999px;border:0;background:var(--c,#6E726A);color:#fff;font-size:12px;font-weight:600;line-height:20px;white-space:nowrap}
.finance-accounts .fa-own-unset{background:transparent;color:#8a918b;border:1px dashed #b5bbb6;font-weight:500}
.finance-accounts .fa-own-system{background:#eef0ec;color:#4d5650;font-weight:500}
.finance-accounts button.fa-own{cursor:pointer;opacity:.35}.finance-accounts button.fa-own[aria-pressed=true]{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c)}
.fa-owner-pick{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:10px}.fa-owner-pick>span:last-child{display:flex;gap:6px;flex-wrap:wrap}
.fa-owner-filter{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.finance-accounts .fa-owner-filter button{height:26px;min-height:26px;padding:0 10px;border-radius:999px;font-size:12px;display:inline-flex;align-items:center;gap:5px}
.fa-owner-filter button i{display:inline-block;width:8px;height:8px;border-radius:50%}
.finance-accounts .fa-owner-filter button[aria-pressed=true]{background:#2f6b4a;border-color:#2f6b4a;color:#fff}
.finance-accounts .fa-owner-filter .fa-owner-unset{border-style:dashed;color:#8a918b}
.fa-copy{margin:8px 0 12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;display:grid;gap:10px}
.fa-copy h3{margin:0;font-size:15px}.fa-copy table{width:100%;border-collapse:collapse}.fa-copy td,.fa-copy th{padding:4px 6px;border-bottom:1px solid #edf0ec;text-align:left}
.finance-accounts .fa-copy td input[data-copy-name]{width:100%;box-sizing:border-box}.finance-accounts .fa-copy td input[data-copy-code]{width:90px}
