.fw-workspace{background:#fff;border:1px solid #dce5ef;border-radius:14px;padding:22px;margin:0 0 22px;color:#20344b;min-width:0}.fw-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.fw-header h3{font-size:23px;margin:0 0 8px}.fw-header p,.fw-note{color:#62748a;line-height:1.65;margin:6px 0 15px}.fw-header>div:last-child,.fw-tabs,.fw-tools,.fw-pager,.fw-month{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.fw-workspace button,.fw-dialog button{width:auto;white-space:nowrap;flex:none}.fw-tabs{padding:12px 0}.fw-tabs button[aria-pressed=true]{background:#1557b0;color:#fff;border-color:#1557b0}.fw-tools{padding:14px 0;border-bottom:1px solid #e7edf4;margin-bottom:15px}.fw-tools label,.fw-month label{display:grid;gap:6px;min-width:150px;font-size:13px}.fw-tools input,.fw-tools select{min-width:190px}.fw-tools [hidden]{display:none}.fw-table-scroll{max-width:100%;overflow:auto}.fw-workspace table{width:100%;border-collapse:collapse;font-size:14px}.fw-workspace th{color:#536a82;background:#f3f6fa;text-align:left;white-space:nowrap;padding:12px 10px}.fw-workspace td{padding:12px 10px;border-bottom:1px solid #e7edf4;vertical-align:top;min-width:85px}.fw-workspace td:first-child{min-width:150px}.fw-workspace td button{font-size:12px;margin:0 5px 5px 0;padding:6px 9px}.fw-workspace small{display:block;color:#6c7e91;margin-top:5px;line-height:1.5}.fw-workspace .fw-warning,.fw-warning{color:#916515;background:#fff7e8;padding:9px;border-radius:7px;line-height:1.6}.fw-error,.fw-form-error{color:#b42336}.fw-status:empty{display:none}.fw-metrics{display:flex;gap:15px;flex-wrap:wrap;margin:12px 0}.fw-metric{background:#f0f6ff;border:1px solid #dde9fb;border-radius:10px;padding:15px 22px;min-width:200px}.fw-metric span{display:block;color:#5e748e;margin-bottom:6px}.fw-metric strong{font-size:25px}.fw-pager{justify-content:flex-end;padding-top:15px;font-size:13px}.fw-empty{padding:30px!important;color:#7a899b;text-align:center}.fw-dialog{width:min(680px,92vw);max-height:88vh;overflow:auto;border:1px solid #dce5ef;border-radius:14px;padding:22px;color:#20344b}.fw-dialog::backdrop{background:#16263f66}.fw-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.fw-dialog header h3{margin:0}.fw-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.fw-dialog label{display:grid;gap:7px;font-size:14px}.fw-dialog input,.fw-dialog select,.fw-dialog textarea{width:100%;box-sizing:border-box}.fw-dialog textarea{min-height:90px}.fw-full,.fw-dialog footer,.fw-form-error{grid-column:1/-1}.fw-dialog footer{display:flex;justify-content:flex-end;gap:12px}.fw-month{margin:12px 0}.fw-form-error:empty{display:none}@media(max-width:900px){.fw-header{flex-direction:column}.fw-workspace{padding:14px}.fw-tools input,.fw-tools select{min-width:145px}.fw-dialog form{grid-template-columns:1fr}.fw-metric{min-width:150px}}

.fw-tools[hidden]{display:none}
.fw-workspace[data-view="accounts"].fw-account-directory .fw-tools{grid-template-columns:minmax(180px,2fr) repeat(2,minmax(140px,1fr))}
.fw-workspace[data-view="accounts"].fw-account-directory td:nth-last-child(-n+4){white-space:normal;overflow-wrap:anywhere}
@media(max-width:768px){.fw-workspace[data-view="accounts"].fw-account-directory .fw-tools{grid-template-columns:minmax(0,1fr)}.fw-workspace[data-view="accounts"].fw-account-directory .fw-account-navigation{flex-wrap:wrap}.fw-workspace[data-view="accounts"].fw-account-directory .fw-account-actions button{width:auto}.fw-workspace[data-view="accounts"].fw-account-directory table{min-width:680px}}
.fw-workspace[data-view="payables"] :is(th,td):last-child{position:sticky;right:0;background:#fff;min-width:105px;box-shadow:-4px 0 6px -6px #536a82}
.fw-workspace[data-view="payables"] th:last-child{background:#f3f6fa}
.fw-workspace[data-view="payables"] td:nth-child(n+4):nth-child(-n+6){white-space:nowrap}
.fw-workspace[data-view="payables"] .fw-tabs:empty{display:none}
.fw-workspace[data-view="payables"] td:nth-child(7){white-space:nowrap}
.fw-workspace[data-view="payables"]{box-sizing:border-box;max-width:100%}.fw-workspace[data-view="payables"] details{white-space:normal;min-width:155px}.fw-workspace[data-view="payables"] summary{cursor:pointer}.fw-workspace[data-view="payables"] .fw-metric{box-sizing:border-box}
.payable-dialog form{grid-template-columns:repeat(2,minmax(0,1fr))}.payable-dialog label{min-width:0}.payable-dialog [hidden]{display:none!important}.payable-dialog .payable-invoice-confirm{display:flex;align-items:flex-start;gap:10px;color:#885900;background:#fff7e8;padding:12px;border-radius:8px}.payable-dialog input[type="checkbox"]{width:18px;flex:none;margin-top:2px}.payable-validation{width:100%;grid-column:1/-1;margin:4px 0}.payable-dialog [aria-invalid="true"],.finance-a-funds [aria-invalid="true"]{border-color:#b42336}.payable-dialog h4{margin:6px 0 0}@media(max-width:700px){.payable-dialog form{grid-template-columns:minmax(0,1fr)}}
.fw-workspace[data-view="accounts"]{box-sizing:border-box;max-width:100%}.fw-workspace[data-view="accounts"] .fw-metric{min-width:160px;flex:1;padding:12px;box-sizing:border-box}.fw-workspace[data-view="accounts"] .fw-metric strong{font-size:22px}.fw-workspace[data-view="accounts"] .fw-tools label{max-width:100%;min-width:145px}.fw-workspace[data-view="accounts"] .fw-tools select{max-width:330px}.fw-workspace[data-view="accounts"] td:nth-last-child(-n+4){white-space:nowrap}.fw-workspace[data-view="accounts"] td:last-child,.fw-workspace[data-view="accounts"] th:last-child{position:sticky;right:0;background:#fff;box-shadow:-4px 0 6px -6px #536a82}.fw-workspace[data-view="accounts"] th:last-child{background:#f3f6fa}.fw-dialog [aria-invalid="true"]{border-color:#b42336}.fw-leave{border:1px solid #e1bb72;background:#fff8e8;padding:14px;margin-top:12px;border-radius:8px}.fw-leave button{margin-right:10px}.fw-dialog form{grid-template-columns:repeat(2,minmax(0,1fr))}.fw-dialog label{min-width:0}@media(max-width:700px){.fw-dialog form{grid-template-columns:minmax(0,1fr)}}
.fw-workspace[data-view="accounts"] .fw-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px}.fw-workspace[data-view="accounts"] .fw-tools label{min-width:0;max-width:none}.fw-workspace[data-view="accounts"] .fw-tools :is(input,select){min-width:0;max-width:none;width:100%;box-sizing:border-box}.fw-workspace[data-view="accounts"] .fw-tools>button{justify-self:start}@media(max-width:700px){.fw-workspace[data-view="accounts"] .fw-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fw-workspace[data-view="settlements"] :is(th,td):last-child{position:sticky;right:0;background:#fff;min-width:150px;box-shadow:-5px 0 8px -7px #536a82;z-index:1}.fw-workspace[data-view="settlements"] th:last-child{background:#f3f6fa}.fw-workspace[data-view="settlements"] td:nth-child(1){min-width:180px}.fw-workspace[data-view="settlements"] td:nth-child(6){min-width:170px;max-width:260px}.fw-workspace[data-view="settlements"] td:nth-child(6) small{max-height:3.2em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.fw-workspace[data-view="settlements"] .fw-month{background:#f7faff;border:1px solid #dbe7f5;border-radius:8px;padding:10px 12px}.fw-workspace[data-view="settlements"] .fw-month button{background:#1557b0;color:#fff;border-color:#1557b0}.fw-workspace[data-view="settlements"] .fw-note{max-width:980px}

/* Mobile finance views: keep payment and settlement flows touch friendly. */
@media (max-width:768px){
  .fw-workspace{padding:14px;border-radius:10px;margin-bottom:14px}
  .fw-header{gap:10px}
  .fw-header h3{font-size:20px;margin-bottom:5px}
  .fw-header>div:last-child{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .fw-workspace button{min-height:40px;padding:9px 10px}
  .fw-header>div:last-child button{width:100%}
  .fw-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:9px 0;scrollbar-width:thin}
  .fw-tabs button{flex:0 0 auto;min-height:40px}
  .fw-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 0;margin-bottom:12px}
  .fw-tools label,.fw-month label{min-width:0;width:100%}
  .fw-tools input,.fw-tools select{width:100%;min-width:0;box-sizing:border-box;min-height:40px}
  .fw-tools>button{width:100%}
  .fw-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
  .fw-metric{min-width:0;padding:11px 10px;border-radius:8px}
  .fw-metric strong{font-size:21px;overflow-wrap:anywhere}
  .fw-note{font-size:13px}
  .fw-month{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px}
  .fw-month input{min-height:40px;box-sizing:border-box;width:100%}
  .fw-month button{width:100%}
  .fw-table-scroll{overflow:visible}
  .fw-workspace table{display:block;min-width:0!important}
  .fw-workspace thead{display:none}
  .fw-workspace tbody{display:grid;gap:10px}
  .fw-workspace tbody tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #dce5ef;border-radius:10px;background:#fff;overflow:hidden}
  .fw-workspace tbody tr:has(>.fw-empty){display:block}
  .fw-workspace td{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;align-items:start;min-width:0!important;padding:10px;border:0;border-bottom:1px solid #edf1f6;overflow-wrap:anywhere}
  .fw-workspace td:last-child{border-bottom:0}
  .fw-workspace td::before{content:attr(data-label);font-size:12px;line-height:1.5;color:#6b7f96;font-weight:600}
  .fw-workspace td:last-child{position:static!important;box-shadow:none!important;background:transparent!important}
  .fw-workspace td button{min-height:38px;margin:0 5px 5px 0}
  .fw-workspace .fw-empty{display:block!important;padding:24px 12px!important;text-align:center}
  .fw-workspace .fw-empty::before{display:none}
  /* Account ledgers keep their numeric relationships in a horizontal strip. */
  .fw-workspace[data-view="accounts"] .fw-table-scroll{overflow-x:auto;padding-bottom:4px}
  .fw-workspace[data-view="accounts"] table{display:table;min-width:680px!important}
  .fw-workspace[data-view="accounts"] thead{display:table-header-group}
  .fw-workspace[data-view="accounts"] tbody{display:table-row-group}
  .fw-workspace[data-view="accounts"] tbody tr{display:table-row;border:0;border-radius:0;overflow:visible}
  .fw-workspace[data-view="accounts"] td{display:table-cell;padding:10px;min-width:85px!important;border-bottom:1px solid #e7edf4}
  .fw-workspace[data-view="accounts"] td::before{display:none}
  .fw-workspace[data-view="accounts"] td:last-child{position:sticky!important;right:0;background:#fff!important;box-shadow:-4px 0 6px -6px #536a82!important}
  .fw-workspace[data-view="accounts"] th:last-child{position:sticky;right:0;z-index:2}
  .fw-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;border-radius:12px}
  .fw-dialog header{margin-bottom:12px}
  .fw-dialog form{grid-template-columns:minmax(0,1fr);gap:12px}
  .fw-dialog input,.fw-dialog select,.fw-dialog textarea{min-height:42px}
  .fw-dialog textarea{min-height:100px}
  .fw-dialog footer{position:sticky;bottom:-16px;background:#fff;padding:12px 0 0;margin-top:4px;z-index:2}
  .fw-dialog footer button{flex:1;min-height:44px}
  .payable-dialog form{grid-template-columns:minmax(0,1fr)}
  .fw-workspace[data-view="accounts"] .fw-tools{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:768px){
  .fw-workspace[data-view="payables"] tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:12px;border:1px solid #dce5ef;border-radius:10px;background:#fff;overflow:hidden}
  .fw-workspace[data-view="payables"] tbody tr > td{display:block!important;min-width:0!important;padding:0;border:0}
  .fw-workspace[data-view="payables"] tbody tr > td::before{display:none}
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(1){grid-column:1;grid-row:1;color:#173b5e;font-size:14px;font-weight:700;line-height:1.45}
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(2),
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(3),
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(4),
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(5){display:none!important}
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(6){grid-column:2;grid-row:1;color:#173b5e;font-size:15px;font-weight:750;text-align:right;white-space:nowrap}
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(7){grid-column:1/-1;grid-row:2;color:#647990;font-size:11px}
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(8){grid-column:1/-1;grid-row:3;padding-top:8px;border-top:1px solid #edf1f6}
  .fw-workspace[data-view="payables"] tbody tr > td:nth-child(8) button{min-height:36px;padding:7px 10px}
}


/* Separate contractual return dates from follow-up appointments. */
.fw-workspace[data-view="settlements"] td:nth-child(5){min-width:150px;max-width:240px}.fw-workspace[data-view="settlements"] td:nth-child(6){min-width:140px}.fw-workspace[data-view="settlements"] td:nth-child(5) small{max-height:3.2em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.fw-workspace[data-view="settlements"] td:nth-child(3),.fw-workspace[data-view="settlements"] td:nth-child(4){white-space:nowrap}.fw-settlement-date-note{display:block;margin-top:8px;color:#62748a;font-size:13px}.fw-return-date-edit{border-top:1px solid #e7edf4;padding-top:12px}.fw-return-date-edit summary{cursor:pointer;color:#1557b0}.fw-return-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}.fw-dialog .fw-return-date-check{display:flex;align-items:center;gap:8px;margin-top:12px}.fw-dialog .fw-return-date-check input{width:16px;flex:none}.fw-return-date-fields label:last-child{grid-column:1/-1}@media(max-width:700px){.fw-return-date-fields{grid-template-columns:minmax(0,1fr)}}

/* Accounts: compact viewport layout and detail dialogs. */
.fw-workspace[data-view="accounts"]{padding:12px 14px;margin-bottom:0;min-width:0;isolation:isolate}
.fw-workspace[data-view="accounts"] [hidden],
.fw-workspace[data-view="accounts"] .fw-account-page-hidden,.fw-workspace .fw-list-page-hidden{display:none!important}
.fw-workspace .fw-body>.fw-table-scroll[data-page-size-mode="fixed"] thead th{position:sticky;top:0;z-index:2}
.fw-workspace[data-view="accounts"] button{margin-top:0;min-height:30px;padding:5px 10px;font-size:12px;line-height:18px;border-radius:7px}
.fw-workspace[data-view="accounts"] .fw-header{flex-direction:row;align-items:center;gap:12px;flex:none;min-width:0}
.fw-workspace[data-view="accounts"] .fw-header h3{margin:0;font-size:21px;line-height:30px}
.fw-workspace[data-view="accounts"] .fw-header p{display:none}
.fw-workspace[data-view="accounts"] .fw-header>div:last-child{display:flex;width:auto;flex-wrap:nowrap;gap:8px}
.fw-workspace[data-view="accounts"] .fw-account-navigation{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.fw-workspace[data-view="accounts"] .fw-tabs{flex:none;flex-wrap:nowrap;gap:6px;min-width:0;padding:8px 0 6px}
.fw-workspace[data-view="accounts"] .fw-tabs button[aria-pressed="false"]{background:#f2f5f9;color:#536a82}
.fw-workspace[data-view="accounts"] .fw-tabs button[aria-pressed="false"]:hover{background:#e6eef8;color:#244f7c}
.fw-workspace[data-view="accounts"] .fw-account-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-left:auto;min-width:0}
.fw-workspace[data-view="accounts"] .fw-account-actions button{background:#eef4fb;color:#244f7c;border:1px solid #d9e5f2;font-weight:600}
.fw-workspace[data-view="accounts"] .fw-account-actions button:hover{background:#e2edfa}
.fw-workspace[data-view="accounts"] .fw-account-actions [data-fw="transfer"],
.fw-workspace[data-view="accounts"] .fw-account-row-actions [data-fw="account-movements"],
body.pc-ui-preview .fw-workspace[data-view="accounts"] .fw-account-actions button.secondary[data-fw="transfer"],
body.pc-ui-preview .fw-workspace[data-view="accounts"] .fw-account-row-actions button.secondary[data-fw="account-movements"]{background:#175dca;border-color:#175dca;color:#fff;font-weight:600}
.fw-workspace[data-view="accounts"] .fw-account-actions [data-fw="transfer"]:hover,
.fw-workspace[data-view="accounts"] .fw-account-row-actions [data-fw="account-movements"]:hover,
body.pc-ui-preview .fw-workspace[data-view="accounts"] .fw-account-actions button.secondary[data-fw="transfer"]:hover,
body.pc-ui-preview .fw-workspace[data-view="accounts"] .fw-account-row-actions button.secondary[data-fw="account-movements"]:hover{background:#104ba5;border-color:#104ba5;color:#fff}
.fw-workspace[data-view="accounts"] .fw-account-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}
.fw-workspace[data-view="accounts"] .fw-account-row-actions [data-fw="account-detail"]{color:#42658a;background:#fff;border-color:#d1dce8}
.fw-workspace[data-view="accounts"] .fw-account-context-slot{min-width:0;max-width:calc(100% - 190px);margin-left:auto}
.fw-workspace[data-view="accounts"] .fw-account-context-slot:empty{display:none}
.fw-workspace[data-view="accounts"] .fw-account-current{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 8px;margin:0;border:1px solid #d9e5f2;border-radius:7px;background:#f3f7fd;min-width:0}
.fw-workspace[data-view="accounts"] .fw-account-current>div{display:flex;align-items:baseline;gap:10px;min-width:0;font-size:13px}
.fw-workspace[data-view="accounts"] .fw-account-current span{color:#62748a;flex:none;font-size:12px}
.fw-workspace[data-view="accounts"] .fw-account-current strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#203d60}
.fw-workspace[data-view="accounts"] .fw-tools{flex:none;display:grid;grid-template-columns:minmax(130px,1.25fr) minmax(120px,1fr) minmax(110px,.9fr) minmax(260px,1.65fr) auto;align-items:end;gap:8px;padding:5px 0 9px;margin:0;border-bottom:1px solid #e7edf4}
.fw-workspace[data-view="accounts"] .fw-tools:has(.fw-account-direction:not([hidden])){grid-template-columns:minmax(130px,1.3fr) minmax(115px,1fr) minmax(100px,.9fr) minmax(254px,1.7fr) 82px auto}
.fw-workspace[data-view="accounts"] .fw-tools label{min-width:0;width:auto;max-width:none;margin:0;gap:4px;color:#62748a;font-size:12px;font-weight:400;line-height:16px}
.fw-workspace[data-view="accounts"] .fw-tools :is(input,select){width:100%;min-width:0;max-width:none;min-height:32px;height:32px;margin:0;padding:4px 8px;border-radius:7px;font-size:12px;color:#20344b}
.fw-workspace[data-view="accounts"] .fw-account-date-range{display:grid;min-width:0;gap:4px;color:#62748a;font-size:12px;line-height:16px}
.fw-workspace[data-view="accounts"] .fw-account-date-range>div{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:4px;border:1px solid #d1dce8;border-radius:7px;background:#fff;padding:0 3px}
.fw-workspace[data-view="accounts"] .fw-account-date-range input{height:30px;min-height:30px;padding:3px;border:0;border-radius:4px;background:transparent}
.fw-workspace[data-view="accounts"] .fw-account-date-range input:focus-visible{outline:2px solid #6fa3dc;outline-offset:-2px}
.fw-workspace[data-view="accounts"] .fw-account-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;padding-bottom:1px}
.fw-workspace[data-view="accounts"] .fw-account-filter-actions button{padding:5px 8px}
.fw-workspace[data-view="accounts"] .fw-status{flex:none;font-size:12px;line-height:18px;margin:6px 0}
.fw-workspace[data-view="accounts"] .fw-body{min-width:0}
.fw-workspace[data-view="accounts"] .fw-account-summary{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:8px 0;margin:0;min-width:0}
.fw-workspace[data-view="accounts"] .fw-account-metrics{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;min-width:0}
.fw-workspace[data-view="accounts"] .fw-account-metrics>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;min-width:0;color:#62748a;font-size:12px;line-height:22px}
.fw-workspace[data-view="accounts"] .fw-account-metrics label{margin:0;color:inherit;font-size:12px;font-weight:400;line-height:18px}
.fw-workspace[data-view="accounts"] .fw-account-metrics strong{color:#203d60;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:22px}
.fw-workspace[data-view="accounts"] .fw-account-scope{grid-column:2;grid-row:2;position:relative;align-self:center;color:#62748a;font-size:12px;line-height:20px}
.fw-workspace[data-view="accounts"] .fw-account-scope summary{cursor:pointer;white-space:nowrap;color:#426d9b}
.fw-workspace[data-view="accounts"] .fw-account-scope>p,
.fw-workspace[data-view="accounts"] .fw-account-scope>div{position:absolute;right:0;top:100%;z-index:8;width:min(420px,76vw);margin:5px 0 0;padding:12px 14px;border:1px solid #d8e4f1;border-radius:8px;background:#fff;box-shadow:0 6px 20px #20344b26;color:#536a82;font-size:12px;line-height:1.7;white-space:normal}
.fw-workspace[data-view="accounts"] .fw-account-notices{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;color:#6c7e91;font-size:12px;line-height:20px}
.fw-workspace[data-view="accounts"] .fw-account-notices:empty{display:none}
.fw-workspace[data-view="accounts"] .fw-account-notices button{min-height:22px;margin:0;padding:0 7px;border:1px solid #efd9a7;border-radius:5px;background:#fff7e8;color:#876011;font-weight:500;line-height:20px}
.fw-workspace[data-view="accounts"] .fw-account-notices button:hover{background:#ffefcf}
.fw-workspace[data-view="accounts"] .fw-table-scroll{min-width:0;max-width:100%;border-top:1px solid #e0e7f0;border-bottom:1px solid #e0e7f0;scrollbar-width:thin;overscroll-behavior-x:contain}
.fw-workspace[data-view="accounts"] table{width:100%;table-layout:fixed;font-size:12px}
.fw-workspace[data-view="accounts"] th{height:34px;padding:7px 9px;font-size:12px;line-height:18px;font-weight:600}
.fw-workspace[data-view="accounts"] td{height:44px;min-width:0;padding:5px 9px;vertical-align:middle;white-space:normal;line-height:16px}
.fw-workspace[data-view="accounts"] td:first-child{min-width:0}
.fw-workspace[data-view="accounts"] td small{margin:0;font-size:11px;line-height:16px}
.fw-workspace[data-view="accounts"] td button{min-height:28px;margin:0;padding:4px 8px;font-size:12px;line-height:18px}
.fw-workspace[data-view="accounts"] .fw-account-cell{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:32px;overflow:hidden;overflow-wrap:anywhere;line-height:16px}
.fw-workspace[data-view="accounts"] .fw-account-cell>span,
.fw-workspace[data-view="accounts"] .fw-account-cell>small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:16px}
.fw-workspace[data-view="accounts"] .fw-account-number{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;line-height:16px}
.fw-workspace[data-view="accounts"] td .fw-balance-notice{display:block;color:#9b4d12;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:16px;max-width:100%}
.fw-workspace[data-view="accounts"] .fw-query-pending{color:#9b4d12}
.fw-account-attention{padding:8px 10px;margin:0 0 12px;background:#fff7e8;border:1px solid #efd9a7;border-radius:7px;font-size:13px;line-height:20px}
.fw-account-attention p{margin:0 0 4px}
.fw-account-attention button{margin:4px 0 0}
.fw-workspace[data-view="accounts"] .fw-date-issues .fw-table-scroll{flex:none;overflow:auto;max-height:50vh}
.fw-workspace[data-view="accounts"] .fw-date-issues table{min-width:0;width:100%;table-layout:fixed}
.fw-workspace[data-view="accounts"] .fw-date-issues th:first-child{width:50%}
.fw-workspace[data-view="accounts"] .fw-date-issues th:nth-child(2){width:25%}
.fw-workspace[data-view="accounts"] .fw-date-issues :is(th,td):last-child{width:25%}
.fw-workspace[data-view="accounts"] td .fw-warning{background:transparent;padding:0;border-radius:0;line-height:16px}
.fw-workspace[data-view="accounts"] :is(th,td):last-child{width:88px;min-width:0;text-align:right}
.fw-workspace[data-view="accounts"] .fw-empty{height:auto;padding:24px 12px!important;line-height:20px}
.fw-workspace[data-view="accounts"] .fw-pager{flex:none;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:8px;min-height:40px;padding:8px 0 0;margin-top:auto;font-size:12px;line-height:18px}
.fw-workspace[data-view="accounts"] .fw-pager>span{margin-right:auto;color:#62748a}
.fw-workspace[data-view="accounts"][data-account-section="main"] table{min-width:680px}
.fw-workspace[data-view="accounts"][data-account-section="main"] th:first-child{width:36%}
.fw-workspace[data-view="accounts"][data-account-section="main"] th:nth-child(2){width:29%}
.fw-workspace[data-view="accounts"][data-account-section="main"] :is(th,td):nth-child(3){text-align:right}
.fw-workspace[data-view="accounts"][data-account-section="main"] td:nth-child(3) strong{font-size:15px;color:#203d60}
.fw-workspace[data-view="accounts"][data-account-section="main"] :is(th,td):last-child{width:168px}
.fw-workspace[data-view="accounts"][data-account-section="movements"] table{min-width:840px}
.fw-workspace[data-view="accounts"][data-account-section="movements"] th:first-child{width:100px}
.fw-workspace[data-view="accounts"][data-account-section="movements"] th:nth-child(2){width:16%}
.fw-workspace[data-view="accounts"][data-account-section="movements"] th:nth-child(3){width:25%}
.fw-workspace[data-view="accounts"][data-account-section="movements"][data-account-single="true"] th:nth-child(2){width:36%}
.fw-workspace[data-view="accounts"][data-account-section="movements"][data-account-single="true"] th:nth-child(3){width:auto}
.fw-workspace[data-view="accounts"][data-account-section="movements"][data-account-single="true"] td:nth-child(n+3):nth-child(-n+5){overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.fw-workspace[data-view="accounts"][data-account-section="movements"]:not([data-account-single="true"]) td:nth-child(n+4):nth-child(-n+6),
.fw-workspace[data-view="accounts"][data-account-section="records"] td:nth-child(3){overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.fw-workspace[data-view="accounts"][data-account-section="records"] table{min-width:780px}
.fw-workspace[data-view="accounts"][data-account-section="records"] th:first-child{width:100px}
.fw-workspace[data-view="accounts"][data-account-section="records"] th:nth-child(2){width:25%}
.fw-workspace[data-view="accounts"][data-account-section="records"] th:nth-child(3){width:16%}
.fw-workspace[data-view="accounts"][data-account-section="records"] th:nth-child(4){width:24%}
@media(min-width:769px){
  .fw-workspace[data-view="accounts"]{display:flex;flex-direction:column;height:var(--fw-account-height,calc(100dvh - 180px));min-height:0;overflow:hidden}
  .fw-workspace[data-view="accounts"] .fw-body{display:flex;flex-direction:column;flex:1;min-height:0}
  .fw-workspace[data-view="accounts"] .fw-table-scroll{flex:1;min-height:0;overflow-x:auto;overflow-y:hidden}
  .fw-workspace[data-view="accounts"] thead th{position:sticky;top:0;z-index:2;background:#f3f6fa}
  .fw-workspace[data-view="accounts"] thead th:last-child{z-index:3}
}
@media(min-width:769px) and (max-width:1150px){
  .fw-workspace[data-view="accounts"] .fw-tools,
  .fw-workspace[data-view="accounts"] .fw-tools:has(.fw-account-direction:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 8px}
  .fw-workspace[data-view="accounts"] .fw-account-date-range{grid-column:1/3}
  .fw-workspace[data-view="accounts"] .fw-account-filter-actions{grid-column:3}
  .fw-workspace[data-view="accounts"] .fw-tools:has(.fw-account-direction:not([hidden])) .fw-account-date-range{grid-column:1/3}
  .fw-workspace[data-view="accounts"] .fw-account-actions{gap:4px}
  .fw-workspace[data-view="accounts"] .fw-account-actions button{padding-inline:6px}
  .fw-workspace[data-view="accounts"] .fw-account-metrics>span{display:block;line-height:18px}
  .fw-workspace[data-view="accounts"] .fw-account-metrics strong{display:block}
}
.fw-account-dialog,.fw-account-detail{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden;border:1px solid #dce5ef;border-radius:12px;background:#fff;color:#20344b}
.fw-account-dialog[open],.fw-account-detail[open]{display:flex;flex-direction:column}
.fw-account-dialog>header,.fw-account-detail>header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:14px 18px;border-bottom:1px solid #e4ebf3;background:#fff}
.fw-account-dialog>header h3,.fw-account-detail>header h3{min-width:0;margin:0;font-size:18px;line-height:26px;overflow-wrap:anywhere}
.fw-account-dialog>header button,.fw-account-detail>header button{flex:none;width:auto;min-height:30px;margin:0;padding:5px 10px}
.fw-account-dialog-body,.fw-account-detail-body,
.fw-account-dialog>form,.fw-account-detail>section{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 18px}
.fw-account-dialog form{min-width:0;gap:12px 14px}
.fw-account-dialog label{margin:0;gap:5px;font-size:13px;line-height:18px}
.fw-account-dialog button,.fw-account-detail button{width:auto;margin-top:0;font-size:13px;line-height:20px}
.fw-account-dialog :is(input,select,textarea){min-width:0;font-size:13px}
.fw-account-dialog footer{align-items:center;padding-top:4px}
.fw-account-detail .fw-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:0;min-width:0}
.fw-account-detail .fw-detail-facts>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;padding:10px 0;border-bottom:1px solid #edf1f6;min-width:0}
.fw-account-detail .fw-detail-facts dt{margin:0;color:#6c7e91;font-size:12px;line-height:20px}
.fw-account-detail .fw-detail-facts dd{min-width:0;margin:0;font-size:13px;line-height:20px;white-space:pre-wrap;overflow-wrap:anywhere}
.fw-account-detail .fw-detail-facts>.fw-full{grid-column:1/-1}
.fw-account-detail .fw-detail-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:16px}
.fw-account-detail .fw-account-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e4ebf3}
.fw-account-detail .fw-account-detail-heading>div:first-child{min-width:0}
.fw-account-detail .fw-account-detail-heading strong{display:block;font-size:15px;overflow-wrap:anywhere}
.fw-account-detail .fw-account-detail-heading span{display:block;margin-top:4px;color:#62748a;font-size:12px}
.fw-account-detail .fw-account-detail-heading .fw-detail-actions{padding:0;flex:none}
.fw-account-detail .fw-detail-more{margin-top:16px;padding-top:12px;border-top:1px solid #e7edf4;font-size:13px;line-height:1.6}
.fw-account-detail .fw-detail-more summary{cursor:pointer;color:#62748a}
.fw-account-detail .fw-detail-more[open] summary{margin-bottom:10px}
.fw-account-detail .fw-detail-more button{margin:0 6px 6px 0}
@media(max-width:768px){
  .fw-workspace[data-view="accounts"]{height:auto;overflow:visible;padding:12px}
  .fw-workspace[data-view="accounts"] .fw-header{flex-wrap:wrap}
  .fw-workspace[data-view="accounts"] .fw-header h3{font-size:20px}
  .fw-workspace[data-view="accounts"] .fw-account-navigation{flex-wrap:wrap;gap:0}
  .fw-workspace[data-view="accounts"] .fw-tabs{flex-wrap:wrap;overflow:visible;gap:6px}
  .fw-workspace[data-view="accounts"] .fw-tabs>button{min-height:36px}
  .fw-workspace[data-view="accounts"] .fw-account-actions{width:100%;justify-content:flex-start;margin-left:0}
  .fw-workspace[data-view="accounts"] .fw-header>.fw-account-actions{flex-wrap:wrap;justify-content:flex-start}
  .fw-workspace[data-view="accounts"] .fw-account-context-slot{width:100%;max-width:100%;margin:0 0 4px}
  .fw-workspace[data-view="accounts"] .fw-tools,
  .fw-workspace[data-view="accounts"] .fw-tools:has(.fw-account-direction:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:8px}
  .fw-workspace[data-view="accounts"] .fw-account-search,
  .fw-workspace[data-view="accounts"] .fw-account-date-range{grid-column:1/-1}
  .fw-workspace[data-view="accounts"] .fw-tools :is(input,select){height:38px;min-height:38px;font-size:13px}
  .fw-workspace[data-view="accounts"] .fw-account-filter-actions{justify-content:flex-start;align-self:end}
  .fw-workspace[data-view="accounts"] .fw-account-filter-actions button{min-height:36px}
  .fw-workspace[data-view="accounts"] .fw-account-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
  .fw-workspace[data-view="accounts"] .fw-account-metrics>span{display:block;line-height:18px}
  .fw-workspace[data-view="accounts"] .fw-account-metrics strong{display:block;font-size:17px}
  .fw-workspace[data-view="accounts"] .fw-account-summary{gap:8px}
  .fw-workspace[data-view="accounts"] .fw-account-notices{grid-column:1/-1;grid-row:2}
  .fw-workspace[data-view="accounts"] .fw-account-scope{grid-column:1/-1;grid-row:3;justify-self:start}
  .fw-workspace[data-view="accounts"] .fw-account-scope>p,
  .fw-workspace[data-view="accounts"] .fw-account-scope>div{left:0;right:auto}
  .fw-workspace[data-view="accounts"] .fw-table-scroll{overflow-x:auto;overflow-y:visible}
  .fw-workspace[data-view="accounts"] td{height:44px;padding:5px 9px}
  .fw-workspace[data-view="accounts"] .fw-pager{flex-wrap:wrap;gap:6px;padding-top:10px}
  .fw-account-dialog,.fw-account-detail{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .fw-account-dialog>header,.fw-account-detail>header{padding:12px 14px}
  .fw-account-dialog-body,.fw-account-detail-body,
  .fw-account-dialog>form,.fw-account-detail>section{padding:14px}
  .fw-account-dialog footer{bottom:-14px;padding-top:10px}
  .fw-account-detail .fw-detail-facts{grid-template-columns:minmax(0,1fr)}
  .fw-account-detail .fw-detail-actions button{min-height:38px}
}

/* Low-frequency month checking stays with the finance account tools. */
.fw-workspace[data-view="accounts"] .fw-finance-more{position:relative;flex:none;font-size:13px}
.fw-workspace[data-view="accounts"] .fw-finance-more[hidden]{display:none}
.fw-workspace[data-view="accounts"] .fw-finance-more>summary{cursor:pointer;white-space:nowrap;padding:7px 10px;border:1px solid #d9e5f2;border-radius:6px;color:#244f7c;background:#fff;line-height:18px}
.fw-workspace[data-view="accounts"] .fw-finance-more[open]>div{position:absolute;right:0;top:calc(100% + 5px);z-index:30;display:grid;min-width:130px;padding:6px;background:#fff;border:1px solid #d9e5f2;border-radius:7px;box-shadow:0 5px 16px #20344b22}
.fw-workspace[data-view="accounts"] .fw-finance-more>div button{width:100%;text-align:left;margin:0}

/* Sorting shares the existing navigation or totals row. */
.fw-workspace .fw-tabs>.business-list-sort-inline{padding:0;max-width:100%}
.fw-workspace [data-payable-summary]>.business-list-sort-inline label{display:flex;align-items:center;gap:6px;min-width:0}
.fw-workspace [data-payable-summary]>.business-list-sort-inline select{min-width:0}
.fw-workspace[data-view="accounts"] .fw-account-navigation>.business-list-sort-inline{margin-left:auto}
.fw-workspace[data-view="accounts"] .fw-account-navigation:has(>.business-list-sort-inline) .fw-account-context-slot{max-width:calc(100% - 420px)}
@media(max-width:768px){.fw-workspace .fw-tabs:has(>.business-list-sort-inline){flex-wrap:wrap;overflow:visible}.fw-workspace[data-view="accounts"] .fw-account-navigation:has(>.business-list-sort-inline) .fw-account-context-slot{max-width:100%}.fw-workspace[data-view="accounts"] .fw-account-navigation>.business-list-sort-inline{margin-left:0}}
