@import url("./finance-monthly-overview.css");
/* One record, one window: bank, invoices and cash use the same surface. */
.fv3 dialog.fv3-record-dialog {
  position:fixed; inset:0; margin:auto; padding:0; width:min(980px,calc(100vw - 40px));
  max-width:980px; max-height:calc(100dvh - 48px); height:fit-content; overflow:auto;
  border:1px solid #74808c; border-radius:16px; background:#20272e; color:#edf2f6;
  box-shadow:0 24px 90px #0009; overscroll-behavior:contain; color-scheme:dark;
  container-type:inline-size;
}
.fv3 dialog.fv3-record-dialog::backdrop { background:#091015ad; backdrop-filter:blur(3px); }
.fv3 .fv3-record-dialog .fv3-detail { position:static; width:100%; padding:24px; margin:0; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.fv3 .fv3-record-dialog .fv3-detail-head { margin-bottom:16px; align-items:flex-start; }
.fv3 .fv3-record-dialog .fv3-detail-head h2 { font-size:21px; line-height:1.35; max-width:36ch; margin:4px 0; overflow-wrap:anywhere; }
.fv3 .fv3-record-dialog .fv3-invoice-title { display:flex; align-items:center; gap:20px; justify-content:space-between; padding-bottom:18px; }
.fv3 .fv3-record-dialog .fv3-invoice-title strong { font-size:25px; }
.fv3 .fv3-record-dialog .fv3-invoice-title small { display:block; font-size:13px; font-weight:400; color:#b5c1ca; margin-top:4px; }
.fv3 .fv3-record-dialog .fv3-detail-tabs { display:flex; gap:4px; overflow-x:auto; flex-wrap:nowrap; border-bottom:1px solid #55616c; margin:0 0 22px; padding:0; }
.fv3 .fv3-record-dialog .fv3-detail-tabs button { flex:1 0 auto; border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; padding:12px 16px; white-space:nowrap; }
.fv3 .fv3-record-dialog .fv3-detail-tabs button[aria-selected=true] { border-bottom-color:#ff9a4b; color:#ffb477; background:#ffffff08; }
.fv3 .fv3-record-dialog button, .fv3 .fv3-record-dialog a:not(.fv3-link) { box-shadow:none; background-image:none; }
.fv3 .fv3-record-dialog button:not(.fv3-primary):not([role=tab]):not(.fv3-link) { background:#303a43; color:inherit; border:1px solid #65717b; }
.fv3 .fv3-record-dialog button.fv3-primary { background:#fa9140; color:#171c20; border:1px solid #fa9140; font-weight:650; }
.fv3 .fv3-record-dialog button { min-height:40px; border-radius:8px; }
.fv3 .fv3-record-dialog button:focus-visible, .fv3 .fv3-record-dialog a:focus-visible { outline:2px solid #ffb477; outline-offset:3px; }
.fv3 .fv3-record-dialog .fv3-record-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:20px 0; }
.fv3 .fv3-record-dialog .fv3-record-actions small { flex-basis:100%; color:#b5c1ca; }
.fv3 .fv3-record-dialog .fv3-bank-document-control { padding:0; margin:0; border:0; background:transparent; }
.fv3 .fv3-record-dialog .fv3-note { background:#ffffff08; border:0; border-radius:8px; padding:12px; margin:12px 0; }
.fv3 .fv3-record-dialog > .fv3-note, .fv3 .fv3-record-dialog > .fv3-error { margin:16px 24px 0; }
.fv3 .fv3-record-dialog .fv3-record-more { padding:14px 0; border-top:1px solid #53606b; margin-top:16px; }
.fv3 .fv3-record-dialog .fv3-record-more summary { cursor:pointer; font-weight:500; }
.fv3 .fv3-record-dialog .fv3-bank-invoice-card { background:#ffffff05; border:1px solid #52606b; border-radius:10px; padding:16px; margin:12px 0; }
.fv3 .fv3-record-dialog .fv3-fields { gap:18px 24px; }
.fv3 .fv3-record-dialog .fv3-fields dd { margin-top:5px; }
.fv3 .fv3-record-dialog .fv3-match { display:grid; gap:14px; }
.fv3 .fv3-record-dialog .fv3-match h3 { margin:0; }
.fv3 .fv3-record-dialog .fv3-classification, .fv3 .fv3-record-dialog .fv3-cost-editor, .fv3 .fv3-record-dialog .fv3-review-editor { background:transparent; border:0; padding:0; box-shadow:none; }
.fv3 .fv3-record-dialog .fv3-bank-invoice-file { border:0; padding:0; background:transparent; }
.fv3 .fv3-record-dialog input:not([type=checkbox]):not([type=radio]), .fv3 .fv3-record-dialog select, .fv3 .fv3-record-dialog textarea { background:#29333c; border:1px solid #56636f; color:#f4f6f8; }
.fv3 .fv3-record-dialog label { color:inherit; }
.fv3 .fv3-record-dialog .fv3-bank-invoice-save { background:#20272e; border-top:1px solid #53606b; padding:12px 0; }
.fv3 .fv3-record-dialog .fv3-review-footer { bottom:0; background:#20272e; border-top:1px solid #53606b; }
[data-theme=light] .fv3 dialog.fv3-record-dialog, .fv3[data-theme=light] dialog.fv3-record-dialog, body.light .fv3 dialog.fv3-record-dialog { background:#f7f9fb; color:#202a34; color-scheme:light; }
body.light .fv3 .fv3-record-dialog button:not(.fv3-primary):not([role=tab]):not(.fv3-link), [data-theme=light] .fv3 .fv3-record-dialog button:not(.fv3-primary):not([role=tab]):not(.fv3-link) { background:#e9eef2; color:#202a34; }
body.light .fv3 .fv3-record-dialog .fv3-review-footer, [data-theme=light] .fv3 .fv3-record-dialog .fv3-review-footer { background:#f7f9fb; }
body.light .fv3 .fv3-record-dialog .fv3-invoice-title small, [data-theme=light] .fv3 .fv3-record-dialog .fv3-invoice-title small { color:#52616e; }
:is([data-theme=light],body.light) .fv3 .fv3-record-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { background:#fff; color:#202a34; border-color:#9aa8b3; }
:is([data-theme=light],body.light) .fv3 .fv3-record-dialog .fv3-bank-invoice-save { background:#f7f9fb; }
:is([data-theme=light],body.light) .fv3 .fv3-record-dialog .fv3-detail-tabs button[aria-selected=true] { color:#9c4300; border-bottom-color:#bd590d; }
@media(max-width:600px) {
 .fv3 dialog.fv3-record-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:12px; }
 .fv3 .fv3-record-dialog .fv3-detail { padding:16px; }
 .fv3 .fv3-record-dialog .fv3-detail-head h2 { font-size:18px; }
 .fv3 .fv3-record-dialog .fv3-fields { grid-template-columns:1fr; }
 .fv3 .fv3-record-dialog .fv3-record-actions { align-items:stretch; }
 .fv3 .fv3-record-dialog .fv3-record-actions > button { width:100%; }
}
.fv3-card-matching { margin: 16px; padding: 20px; border: 1px solid var(--fv3-border); border-radius: 12px; background: var(--fv3-surface); min-width: 0; }
.fv3-card-matching > header, .fv3-card-match-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.fv3-card-matching > header > div { flex: 1 1 280px; }
.fv3-card-matching h3 { margin: 0 0 8px; }
.fv3-card-matching p { margin: 8px 0; }
.fv3-card-match-row { display: grid; grid-template-columns: 28px minmax(0,1fr) minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--fv3-border); }
.fv3-card-match-row small, .fv3-card-match-review small { display: block; color: var(--fv3-muted); margin: 4px 0; }
.fv3-card-match-row button { text-align: left; overflow-wrap: anywhere; }
.fv3-card-match-row strong { white-space: nowrap; }
.fv3-card-match-consent { display: flex; gap: 12px; align-items: start; padding: 16px 0; }
.fv3-card-matching input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; }
.fv3-card-match-review { max-height: 320px; overflow-y: auto; }
.fv3-card-matching details { margin-top: 16px; }
@container (max-width: 700px) {
  .fv3-card-match-row { grid-template-columns: 24px minmax(0,1fr); }
  .fv3-card-match-row > div, .fv3-card-match-row > strong { grid-column: 2; }
  .fv3-card-match-row > label { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .fv3-card-matching { margin: 8px; padding: 12px; }
}
.fv3-accounting { padding:24px; border:1px solid var(--fv3-border); border-radius:12px; background:var(--fv3-surface); width:100%; box-sizing:border-box; }
.fv3-accounting h2 { margin:0 0 8px; }
.fv3-accounting p { max-width:78ch; line-height:1.6; }
.fv3-accounting label { display:flex; gap:12px; align-items:center; margin:20px 0; }
.fv3-accounting-actions { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; }
.fv3-accounting-actions button { display:flex; align-items:center; gap:8px; min-height:44px; }
.fv3-accounting-actions svg { width:20px; height:20px; }
.fv3 {
  --fv3-surface: var(--panel-strong, #13222c);
  --fv3-border: var(--line, #2c414c);
  --fv3-muted: var(--muted, #a5b9c5);
  --fv3-cyan: var(--cyan, #56d9ff);
  --fv3-green: var(--green, #54f0a6);
  --fv3-amber: var(--amber, #ffc66d);
  --fv3-red: var(--red, #ff8795);
  color: var(--text, #edf7ff);
  font: 14px/1.45 Inter, Arial, sans-serif;
  letter-spacing: 0;
  min-width: 0;
  container-type: inline-size;
}
.fv3 * { box-sizing: border-box; letter-spacing: 0; }
.fv3-cashbook { padding: 18px 20px; background: var(--fv3-surface); border-top: 1px solid var(--fv3-border); min-width: 0; }
.fv3-cash-balances { display: flex; flex-wrap: wrap; gap: 24px; margin: 16px 0 22px; }
.fv3-cash-balances > div { min-width: 0; }
.fv3-cash-balances dd { font-size: 20px; font-weight: 700; margin: 4px 0; }
.fv3-cash-balances small { display: block; }
.fv3-cash-editor { border-block: 1px solid var(--fv3-border); padding: 16px 0; margin: 16px 0; }
.fv3-cash-editor header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fv3-cash-editor h3 { margin: 0; }
.fv3-cash-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fv3-cash-fields label { display: grid; gap: 6px; min-width: 0; }
.fv3-cash-fields input, .fv3-cash-fields select { width: 100%; }
.fv3-cash-confirm { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.fv3-cash-confirm input { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; padding: 0; }
.fv3-cash-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.fv3-cash-table th, .fv3-cash-table td { padding: 12px 6px; border-bottom: 1px solid var(--fv3-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.fv3 .fv3-cash-table th:first-child { width: 22%; }
.fv3 .fv3-cash-table th:nth-child(2) { width: auto; }
.fv3 .fv3-cash-table th:nth-child(3) { width: 26%; }
.fv3 .fv3-cash-table th:last-child { width: 56px; }
.fv3 .fv3-cash-table td:nth-child(3), .fv3 .fv3-cash-table th:nth-child(3) { display: table-cell; text-align: right; font-variant-numeric: tabular-nums; }
.fv3-cash-table small, .fv3-cash-table .fv3-link { display: block; }
@container (max-width: 500px) {
  .fv3-cashbook { padding: 14px 10px; }
  .fv3-cash-fields { grid-template-columns: minmax(0, 1fr); }
  .fv3-cash-table { font-size: 12px; }
  .fv3 .fv3-cash-table th:first-child { width: 25%; }
}
.fv3 h1 { font-size: 36px; line-height: 1.15; margin: 0; }
.fv3 h2 { font-size: 18px; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.fv3 h3 { font-size: 14px; margin: 0 0 12px; }
.fv3 p { margin: 0 0 12px; }
.fv3 small, .fv3 dt { color: var(--fv3-muted); font-size: 12px; }
.fv3 button, .fv3 input, .fv3 select, .fv3-upload {
  font: inherit; color: inherit; min-height: 38px; min-width: 0;
  border: 1px solid var(--fv3-border); border-radius: 6px;
  background: var(--fv3-surface); padding: 8px 11px;
}
.fv3 button, .fv3-upload { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.fv3 button:disabled { opacity: .5; cursor: wait; }
.fv3 button:hover:not(:disabled), .fv3-upload:hover { border-color: var(--fv3-cyan); }
.fv3 svg { width: 17px; height: 17px; flex-shrink: 0; }
.fv3 :focus-visible { outline: 2px solid var(--fv3-cyan); outline-offset: 2px; }
.fv3 button.fv3-primary { background: var(--fv3-cyan); color: #07161c; border-color: transparent; font-weight: 700; }
.fv3-heading { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fv3-title { flex-shrink: 0; }
.fv3-heading small { display: block; color: var(--fv3-cyan); font-weight: 800; margin-bottom: 6px; }
.fv3-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.fv3-actions > button, .fv3-toolbar-control > button, .fv3-actions .fv3-upload { width: 42px; height: 42px; min-height: 42px; flex-shrink: 0; border-radius: 50%; padding: 0; background: rgba(9, 15, 27, .24); border-color: rgba(86, 217, 255, .18); }
.fv3-toolbar-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fv3-actions button { position: relative; }
.fv3-actions svg { width: 18px; height: 18px; }
.fv3-actions > [data-action=toggle-actions] { width: 48px; height: 48px; min-height: 48px; }
.fv3-display-options { position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; width: min(300px, 100%); padding: 16px; background: var(--fv3-surface); border: 1px solid var(--fv3-border); border-radius: 6px; box-shadow: 0 12px 32px #0008; }
.fv3-display-options label { display: grid; gap: 6px; font-size: 13px; margin-bottom: 12px; }
.fv3-display-options label:last-child { margin-bottom: 0; }
.fv3-display-options .fv3-display-check { display: flex; align-items: center; gap: 9px; }
.fv3-display-check input { width: 17px; height: 17px; min-height: 17px; margin: 0; padding: 0; accent-color: var(--fv3-cyan); }
.fv3-compact td { padding-top: 7px; padding-bottom: 7px; }
.fv3-hide-totals .fv3-totals, .fv3-hide-secondary .fv3-list td > small { display: none; }
.fv3-actions .fv3-primary { box-shadow: 0 3px 12px #071b24; }
.fv3-actions button:hover:not(:disabled), .fv3-actions .fv3-upload:hover { background: #193746; }
.fv3-actions .fv3-primary:hover:not(:disabled) { background: #8de6ff; }
.fv3-actions [aria-pressed=true] { color: var(--fv3-cyan); border-color: var(--fv3-cyan); background: #193847; }
.fv3-header-search { display: flex; align-items: center; flex: 0 1 260px; width: 260px; min-width: 160px; max-width: 260px; border: 1px solid #2b5264; background: #101f2a; border-radius: 6px; }
.fv3-header-search input { width: 100%; min-width: 0; min-height: 40px; border: 0; background: transparent; font-size: 13px; }
.fv3-toolbar-drawer { animation: fv3-toolbar-reveal .18s ease-out; }
.fv3-input-active .fv3-toolbar-drawer { animation: none; }
@keyframes fv3-toolbar-reveal { from { opacity: 0; transform: translateX(12px); clip-path: inset(0 0 0 100%); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { .fv3-toolbar-drawer { animation: none; } }
.fv3-filter-count { position: absolute; right: -3px; top: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #081b23; background: var(--fv3-cyan); font-size: 10px; font-weight: 700; }
.fv3-action-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; width: min(300px, 100%); padding: 6px; border: 1px solid var(--fv3-border); border-radius: 6px; background: var(--fv3-surface); box-shadow: 0 12px 32px #0008; }
.fv3-action-menu button { display: flex; justify-content: flex-start; width: 100%; padding: 12px 10px; border: 0; background: none; text-align: left; line-height: 1.35; }
.fv3-action-menu button:hover:not(:disabled) { background: #193847; }
.fv3-filter-summary { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.fv3-filter-summary button { min-height: 24px; height: 24px; width: 24px; padding: 0; border: 0; background: none; }
.fv3-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fv3-upload { position: relative; }
.fv3-upload input { position: absolute; opacity: 0; inset: 0; width: 100%; cursor: pointer; }
.fv3-upload:focus-within { outline: 2px solid var(--fv3-cyan); outline-offset: 2px; }
.fv3-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fv3-totals article { min-width: 0; padding: 12px 16px; border: 1px solid var(--fv3-border); border-radius: 6px; background: var(--fv3-surface); }
.fv3-totals strong { display: block; font-size: 24px; line-height: 1.35; margin-top: 5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fv3-totals .receivable strong { color: var(--fv3-green); }
.fv3-totals .payable strong { color: var(--fv3-amber); }
.fv3-totals .overdue strong { color: var(--fv3-red); }
.fv3-totals .difference.positive strong { color: var(--fv3-green); }
.fv3-totals .difference.negative strong { color: var(--fv3-red); }
.fv3-tabs { display: flex; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--fv3-border); }
.fv3-tabs button { background: transparent; border-color: transparent; min-height: 42px; padding: 9px 14px; font-weight: 600; white-space: nowrap; }
.fv3-tabs button[aria-current=page] { background: #193847; border-color: #367289; color: var(--fv3-cyan); }
.fv3-count { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 24px; height: 22px; padding: 0 6px; margin-left: 3px; font-size: 11px; background: #253b48; color: #cbdce5; border-radius: 4px; font-variant-numeric: tabular-nums; }
.fv3-tabs [aria-current=page] .fv3-count { background: #235268; color: #b6eeff; }
.fv3-filters { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); align-items: end; flex: 0 1 330px; width: 330px; min-width: 0; gap: 6px; }
.fv3-filters input, .fv3-filters select { width: 100%; min-width: 0; min-height: 34px; padding: 5px 7px; font-size: 12px; }
.fv3-filters label { display: grid; gap: 2px; font-size: 11px; color: var(--fv3-muted); }
.fv3-filters label input, .fv3-filters label select { color: var(--text, #edf7ff); }
.fv3-body { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 16px; }
.fv3-list { min-width: 0; }
.fv3-load-state { padding: 24px; background: var(--fv3-surface); border: 1px solid var(--fv3-border); border-radius: 6px; min-width: 0; }
.fv3-load-state p { overflow-wrap: anywhere; }
.fv3-bank-controls { padding-block: 10px; border-block: 1px solid var(--fv3-border); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fv3-bank-controls > * { max-width: 100%; }
.fv3-cash-rule { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.fv3 .fv3-bank-check, .fv3 [data-bank-select-all], .fv3 [data-cash-rule] { width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; vertical-align: middle; accent-color: var(--fv3-cyan); }
.fv3-bank-check, .fv3 [data-bank-select-all] { margin: 0 8px 0 0; }
.fv3-bank-bulk { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.fv3-bank-bulk label { display: grid; gap: 4px; }
.fv3-bank-bulk select { width: 100%; min-width: 0; }
.fv3-account-payments { padding-block: 12px; border-block: 1px solid var(--fv3-border); }
.fv3-account-payments > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; padding-block: 8px; border-bottom: 1px solid var(--fv3-border); }
.fv3-account-payments strong { font-size: 13px; }
.fv3-allocated-kind { padding-block: 10px; }
.fv3-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; }
.fv3-list-head h2 { font-size: 17px; }
.fv3-list-head small { white-space: nowrap; }
.fv3-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0 12px; color: var(--fv3-muted); font-size: 12px; }
.fv3-pagination[data-position=bottom] { padding: 12px 0 0; }
.fv3-page-range { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fv3-page-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.fv3-page-controls label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fv3-page-controls input, .fv3-page-controls select { height: 34px; min-height: 34px; padding: 4px 6px; font-size: 12px; }
.fv3-page-controls input { width: 56px; }
.fv3-page-controls select { width: 60px; margin-right: 6px; }
.fv3-page-controls button { width: 34px; height: 34px; min-height: 34px; padding: 0; flex-shrink: 0; }
.fv3-page-controls button:disabled { cursor: default; }
.fv3-list-total { text-align: right; }
.fv3-list-total > strong { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.fv3-overdue-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.fv3-overdue-lists > .fv3-list { container-type: inline-size; }
.fv3-overdue-lists .fv3-list-head { display: grid; gap: 6px; }
.fv3-overdue-lists .fv3-list-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fv3 table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.fv3 th, .fv3 td { padding: 12px 10px; border-bottom: 1px solid var(--fv3-border); vertical-align: middle; text-align: left; overflow-wrap: anywhere; }
.fv3 table thead th { background: #172d39 !important; color: #b6ccd7 !important; font-weight: 500; }
.fv3 th button { font-size: 12px; min-height: 24px; padding: 0; border: 0; border-radius: 0; background: none; justify-content: flex-start; text-align: left; }
.fv3 th[aria-sort=ascending] button, .fv3 th[aria-sort=descending] button { color: var(--fv3-cyan); }
.fv3 th:nth-child(1) { width: 24%; }
.fv3 th:nth-child(2) { width: 17%; }
.fv3 th:nth-child(3) { width: 16%; }
.fv3 th:nth-child(4), .fv3 th:nth-child(5) { width: 15%; }
.fv3 th:nth-child(6) { width: 13%; }
@container (min-width: 761px) {
  .fv3-bank-table th:nth-child(1) { width: 30%; }
  .fv3-bank-table th:nth-child(2) { width: 21%; }
  .fv3-bank-table th:nth-child(3) { width: 16%; }
  .fv3-bank-table th:nth-child(4) { width: 18%; }
  .fv3-bank-table th:nth-child(5) { width: 15%; }
}
.fv3 td { font-size: 13px; }
.fv3 td small { display: block; margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
.fv3 tbody tr:nth-child(even) { background: #101e27; }
.fv3 tbody tr:hover { background: #162b37; }
.fv3 tr.selected, .fv3 tbody tr.selected:hover { background: #1b3b4b; box-shadow: inset 3px 0 var(--fv3-cyan); }
.fv3 tr[data-select] { cursor: pointer; }
.fv3 .fv3-row-select { border: 0; background: none; padding: 0; min-height: 24px; justify-content: flex-start; text-align: left; font-weight: 700; border-radius: 0; line-height: 1.35; }
.fv3-amount { text-align: right !important; white-space: nowrap; font-weight: 700; }
.fv3 .fv3-invoice-table th:nth-child(1) { width: 21%; }
.fv3 .fv3-invoice-table th:nth-child(2) { width: 14%; }
.fv3 .fv3-invoice-table th:nth-child(3), .fv3 .fv3-invoice-table th:nth-child(4), .fv3 .fv3-invoice-table th:nth-child(5) { width: 11%; }
.fv3 .fv3-invoice-table th:nth-child(6), .fv3 .fv3-invoice-table th:nth-child(7) { width: 12%; }
.fv3 .fv3-invoice-table th:nth-child(8) { width: 8%; }
.fv3 .fv3-invoice-table th:nth-child(6) button, .fv3 .fv3-invoice-table th:nth-child(7) button { justify-content: flex-end; text-align: right; width: 100%; }
@container (max-width: 760px) {
  .fv3 .fv3-invoice-table th:nth-child(4), .fv3 .fv3-invoice-table td:nth-child(4), .fv3 .fv3-invoice-table th:nth-child(5), .fv3 .fv3-invoice-table td:nth-child(5), .fv3 .fv3-invoice-table th:nth-child(7), .fv3 .fv3-invoice-table td:nth-child(7), .fv3 .fv3-invoice-table th:nth-child(8), .fv3 .fv3-invoice-table td:nth-child(8) { display: none; }
  .fv3 .fv3-invoice-table th:nth-child(6), .fv3 .fv3-invoice-table td:nth-child(6) { display: table-cell; width: 35%; }
  .fv3 .fv3-invoice-table th:nth-child(1) { width: 37%; }
  .fv3 .fv3-invoice-table th:nth-child(2) { width: 28%; }
}
.is-document-review .fv3-invoice-table th:nth-child(4), .is-document-review .fv3-invoice-table td:nth-child(4), .is-document-review .fv3-invoice-table th:nth-child(5), .is-document-review .fv3-invoice-table td:nth-child(5), .is-document-review .fv3-invoice-table th:nth-child(7), .is-document-review .fv3-invoice-table td:nth-child(7), .is-document-review .fv3-invoice-table th:nth-child(8), .is-document-review .fv3-invoice-table td:nth-child(8) { display: none; }
.is-document-review .fv3-invoice-table th:nth-child(6), .is-document-review .fv3-invoice-table td:nth-child(6) { display: table-cell; width: 35%; }
.fv3-status { display: inline-block; max-width: 100%; font-size: 11px; font-weight: 600; line-height: 1.4; padding: 4px 7px; border-radius: 4px; background: #403827; color: var(--fv3-amber); overflow-wrap: normal; }
.fv3-status.paid { color: #93f3c4; background: #153d32; }
.fv3-status.partial { color: #b2eaff; background: #204456; }
.fv3-status.review, .fv3-status.overpaid, .fv3-status.identity_review { color: var(--fv3-red); background: #412934; }
.fv3-status.transfer, .fv3-status.excluded { color: #c3d0d7; background: #2e3b43; }
.fv3 .fv3-mobile-status, .fv3 .fv3-mobile-remaining, .fv3 .fv3-mobile-date { display: none; }
.is-document-review .fv3-list th:nth-child(3), .is-document-review .fv3-list td:nth-child(3), .is-document-review .fv3-list th:nth-child(5), .is-document-review .fv3-list td:nth-child(5), .is-document-review .fv3-list th:nth-child(6), .is-document-review .fv3-list td:nth-child(6) { display: none; }
.is-document-review .fv3-list th:nth-child(1) { width: 38%; }
.is-document-review .fv3-list th:nth-child(2) { width: 27%; }
.is-document-review .fv3-list th:nth-child(4) { width: 35%; }
.is-document-review .fv3-mobile-status, .is-document-review .fv3-mobile-remaining, .is-document-review .fv3-mobile-date { display: block; font-size: 11px; margin-top: 5px; white-space: normal; }
.is-document-review .fv3-amount { white-space: normal; }
.fv3-detail { min-width: 0; padding: 20px; background: var(--fv3-surface); border-left: 1px solid #44616f; }
.fv3-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fv3-detail-head small { display: block; color: var(--fv3-cyan); margin-bottom: 5px; }
.fv3-detail-head button { width: 34px; height: 34px; min-height: 34px; padding: 0; flex-shrink: 0; }
.fv3-detail-actions { display: flex; gap: 6px; }
.fv3-invoice-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 12px; }
.fv3-invoice-title strong { font-size: 17px; overflow-wrap: anywhere; }
.fv3-detail-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--fv3-border); margin: 0 -4px 12px; }
.fv3-detail-tabs button { flex: 1 0 54px; min-height: 38px; padding: 8px 4px; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: none; font-size: 12px; line-height: 1.25; color: var(--fv3-muted); white-space: normal; }
.fv3-detail-tabs button[aria-selected=true] { border-bottom-color: var(--fv3-cyan); color: var(--fv3-cyan); font-weight: 700; }
.fv3-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0 0 14px; }
.fv3-field { min-width: 0; }
.fv3-field dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fv3-balance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 14px; padding: 12px 0; border-top: 1px solid var(--fv3-border); border-bottom: 1px solid var(--fv3-border); }
.fv3-balance dd { font-size: 21px; line-height: 1.3; }
.fv3-balance .fv3-field:first-child dd { color: var(--fv3-green); }
.fv3-balance .fv3-field:last-child dd { color: var(--fv3-amber); }
.fv3-detail section { border-top: 1px solid var(--fv3-border); padding: 12px 0 0; margin-top: 14px; }
.fv3-detail section:first-child { border: 0; margin-top: 0; padding-top: 0; }
.fv3-balance + section { border-top: 0; margin-top: 0; padding-top: 12px; }
.fv3-payment-block { display: grid; grid-template-columns: minmax(0, 1fr) 116px; align-items: start; gap: 14px; }
.fv3-payment-block.no-qr { grid-template-columns: minmax(0, 1fr); }
.fv3-payment-block dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.fv3-payment-block .fv3-field:first-child, .fv3-payment-block .fv3-field:nth-child(2) { grid-column: 1 / -1; }
.fv3-payment-block dd { font-size: 12px; }
.fv3-qr { display: block; background: #fff; padding: 5px; border-radius: 4px; width: 116px; height: 116px; aspect-ratio: 1; }
.fv3-qr-label { display: block; text-align: center; margin-top: 6px; font-size: 11px; }
.fv3-history { list-style: none; margin: 0; padding: 0; }
.fv3-history li { padding: 12px 0; border-bottom: 1px solid var(--fv3-border); }
.fv3-history small { display: block; margin-top: 5px; }
.fv3-history strong { margin-left: 12px; }
.fv3 .fv3-link { border: 0; background: none; padding: 3px 0; min-height: 24px; color: var(--fv3-cyan); border-radius: 0; justify-content: flex-start; text-align: left; }
.fv3-attachment { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--fv3-border); }
.fv3-attachment a { display: inline-flex; align-items: center; gap: 6px; color: var(--fv3-cyan); }
.fv3-attachment small { flex-basis: 100%; }
.finance-reading-failure { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.fv3-match { display: grid; gap: 12px; border-top: 1px solid var(--fv3-border); padding: 16px 0 0; margin-top: 18px; }
.fv3-match label { display: grid; gap: 5px; color: var(--fv3-muted); }
.fv3-match input, .fv3-match select { width: 100%; min-width: 0; color: var(--text, #edf7ff); }
.fv3-verification { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--fv3-border); }
.fv3-verification small { display: block; margin-top: 5px; }
.fv3-verification .fv3-status { flex-shrink: 0; }
.fv3-cost-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fv3-cost-fields > label { display: grid; gap: 5px; color: var(--fv3-muted); font-size: 12px; min-width: 0; }
.fv3-cost-fields input, .fv3-cost-fields select { width: 100%; min-width: 0; color: var(--text, #edf7ff); font-size: 13px; }
.fv3-cost-wide { grid-column: 1 / -1; }
.fv3-cost-vehicles { margin: 0; border: 0; padding: 0; min-width: 0; }
.fv3-cost-vehicles legend { margin-bottom: 6px; color: var(--fv3-muted); font-size: 12px; }
.fv3-cost-vehicles label { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 12px; overflow-wrap: anywhere; }
.fv3-cost-vehicles input { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; padding: 0; margin: 0; accent-color: var(--fv3-cyan); }
.fv3-cost-breakdown, .fv3-cost-audit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--fv3-border); }
.fv3-cost-share { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--fv3-border); font-size: 12px; font-variant-numeric: tabular-nums; }
.fv3-cost-share > * { min-width: 0; overflow-wrap: anywhere; }
.fv3-cost-share small { display: block; color: var(--fv3-muted); font-weight: 400; }
.fv3-cost-share > :not(:first-child) { text-align: right; }
.fv3-cost-share-head { font-size: 11px; color: var(--fv3-muted); }
.fv3-cost-sum { border-bottom: 0; }
.fv3-cost-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.fv3-cost-actions button:first-child { flex: 1; }
.fv3-imported-costs { margin: 14px 0; padding: 12px 14px; background: var(--fv3-surface); border-top: 1px solid var(--fv3-border); border-bottom: 1px solid var(--fv3-border); font-size: 12px; }
.fv3-imported-costs summary { cursor: pointer; }
.fv3-imported-cost-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--fv3-border); }
.fv3-imported-cost-group summary > * { margin-right: 12px; overflow-wrap: anywhere; }
.fv3-dkv-cost-table { width: 100%; margin-top: 10px; table-layout: fixed; font-size: 12px; }
.fv3-dkv-cost-table th { text-align: left; font-weight: 600; color: var(--fv3-muted); }
.fv3 .fv3-dkv-cost-table tr > th, .fv3 .fv3-dkv-cost-table tr > td { display: table-cell; padding: 8px 4px; vertical-align: top; overflow-wrap: anywhere; }
.fv3 .fv3-dkv-cost-table tr > th { width: 33.3333%; }
.fv3-dkv-cost-table th:last-child { text-align: right; }
.fv3-dkv-cost-table td small { display: block; margin-top: 4px; }
.fv3-review-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 16px; }
.fv3-review-source a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; color: var(--fv3-cyan); }
.fv3-review-editor .fv3-cost-wide > label, .fv3-review-search, .fv3-review-source-select { display: grid; gap: 5px; font-size: 12px; color: var(--fv3-muted); min-width: 0; }
.fv3-review-search { margin: 10px 0; }
.fv3-review-source-select select { width: 100%; }
.fv3-review-ico { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fv3-review-ico strong { font-size: 13px; }
.fv3-review-consent { margin: 14px 0; }
.fv3-review-orders summary { cursor: pointer; font-weight: 600; }
.fv3-review-orders small { display: block; margin-top: 3px; }
.fv3-review-result .fv3-status { margin-bottom: 12px; }
.fv3-review-editor > button, .fv3-review-result > button { width: 100%; }
.fv3-issues { padding: 12px 12px 12px 26px; color: var(--fv3-amber); background: #302d25; font-size: 12px; list-style: disc; margin: 0 0 18px; }
.fv3-error, .fv3-note { padding: 10px 12px; border-left: 3px solid; margin: 0 0 16px !important; background: var(--fv3-surface); }
.fv3-error, .fv3 .negative { color: var(--fv3-red); }
.fv3-note { color: var(--fv3-green); }
.fv3-empty { padding: 30px 14px !important; color: var(--fv3-muted); text-align: center !important; }
.fv3-jobs { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 16px; font-size: 12px; color: var(--fv3-muted); }
.fv3-reading-review { padding: 0; background: transparent; }
.fv3-reading-review > .fv3-list-head { margin: 0; padding: 0; }
.fv3-reading-review > .fv3-list-head h2 { margin: 0; font-size: 14px; }
.fv3 .fv3-reading-heading { padding: 10px 12px; min-height: 44px; border: 0; background: transparent; font-size: 14px; }
.fv3-reading-review #fv3-reading-items { padding: 12px; }
.fv3-reading-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.fv3-review-source > a { flex: 1 1 180px; overflow-wrap: anywhere; }
.fv3-review-source > button { white-space: nowrap; }
.fv3-review-orders .fv3-cost-vehicles { max-height: 300px; overflow-y: auto; }
.fv3-review-footer { position: sticky; bottom: 0; padding: 12px 0; background: var(--fv3-surface); z-index: 1; }
.fv3-reading-review .fv3-verification > div { min-width: 0; overflow-wrap: anywhere; }
.fv3-reading-review [hidden] { display: none !important; }
.fv3-reading-heading { flex-wrap: wrap; text-align: left; }
.fv3-reading-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fv3-reading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 1 auto; }
.fv3-reading-actions a { color: var(--fv3-cyan); font-size: 13px; }
.fv3 .fv3-reading-actions button { width: auto; min-height: 38px; height: auto; padding: 8px 10px; white-space: nowrap; }
.fv3 .fv3-reading-actions button[data-read] { width: 38px; padding: 0; flex-shrink: 0; }
.fv3-reading-actions .fv3-reading-resolve { width: auto; padding: 0 10px; }
@container (max-width: 850px) {
  .fv3-reading-review .fv3-verification { flex-direction: column; gap: 8px; }
  .fv3-reading-actions { justify-content: flex-start; }
}
@media (max-width: 600px) { .fv3-reading-review .fv3-verification { flex-direction: column; gap: 8px; } .fv3-reading-actions { justify-content: flex-start; } }
.fv3-duplicates { min-width: 0; }
.fv3-repair-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 16px; }
.fv3-repair-toolbar button { font-size: 12px; }
.fv3-duplicate-group { min-width: 0; border: 0; border-top: 1px solid var(--fv3-border); padding: 16px 0; margin: 0; }
.fv3-duplicate-group legend { font-weight: 700; font-size: 15px; padding: 0 8px 0 0; }
.fv3-duplicate-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-bottom: 12px; font-size: 12px; color: var(--fv3-muted); }
.fv3-duplicate-summary strong { color: var(--text, #edf7ff); margin-left: 4px; }
.fv3-duplicate-choice { border-bottom: 1px solid var(--fv3-border); padding: 10px 0; }
.fv3-duplicate-choice label { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; cursor: pointer; }
.fv3-duplicate-choice input { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--fv3-cyan); }
.fv3-duplicate-choice small { display: block; margin-top: 4px; }
.fv3-duplicate-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fv3-duplicate-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: 30px; font-size: 12px; }
.fv3-duplicate-links a { color: var(--fv3-cyan); }
.fv3-repair-preview, .fv3-repair-audit { border-top: 1px solid var(--fv3-border); padding-top: 16px; margin-top: 16px; }
.fv3-duplicate-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.fv3-duplicate-tabs button[aria-pressed=true] { border-color: var(--fv3-cyan); color: var(--fv3-cyan); }
.fv3-duplicate-tabs span { margin-left: 6px; font-variant-numeric: tabular-nums; }
.fv3-bank-duplicate-choice { border-bottom: 1px solid var(--fv3-border); padding: 12px 0; min-width: 0; }
.fv3-bank-duplicate-controls { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; margin-bottom: 8px; }
.fv3-bank-duplicate-controls label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.fv3-bank-duplicate-controls input { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: var(--fv3-cyan); }
.fv3-bank-duplicate-data { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: 13px; }
.fv3-bank-duplicate-data small { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.fv3-bank-repair-target { display: grid; grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr); gap: 12px; margin-top: 12px; }
.fv3-bank-repair-target label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; min-width: 0; }
.fv3-bank-repair-target select, .fv3-bank-repair-target input { width: 100%; min-width: 0; }
.fv3-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.fv3-dashboard.planner-hidden:not(.has-side-detail) { grid-template-columns: minmax(0, 1fr) 32px; }
.fv3-work-area { min-width: 0; }
.fv3 button.fv3-calendar-toggle { display: none; }
.fv3-summary-currencies { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 8px; }
.fv3-summary-currencies > div { display: flex; gap: 2px; }
.fv3-summary-currencies button { font-size: 10px; min-height: 24px; padding: 2px 7px; background: transparent; border-color: transparent; }
.fv3-summary-currencies button[aria-pressed=true] { background: var(--fv3-surface); border-color: var(--fv3-border); color: var(--fv3-cyan); }
.fv3-hide-totals .fv3-summary-currencies { display: none; }
.fv3-ledger-notices { margin-top: 10px; color: var(--fv3-red); font-size: 11px; }
.fv3-ledger-notices summary { cursor: pointer; padding: 8px 10px; background: var(--fv3-surface); border-radius: 6px; }
.fv3-ledger-notices p { margin: 10px; }
.fv3-ledger-notices button { font-size: 11px; min-height: 25px; padding: 3px 7px; }
.fv3-side-rail { min-width: 0; }
.fv3-dashboard.has-side-detail { overflow-anchor: none; }
.fv3-side-rail > * { width: 100%; box-sizing: border-box; }
.fv3 button.fv3-planner-reopen { display: flex; justify-content: center; width: 32px; height: 36px; min-height: 36px; padding: 0; margin-left: auto; border-radius: 8px; }
.fv3 button.fv3-planner-reopen[hidden] { display: none; }
.fv3-planner-drawer { display: grid; grid-template-rows: 0fr; min-width: 0; }
.fv3-planner-drawer.is-open { grid-template-rows: 1fr; }
.fv3-planner-content { min-height: 0; overflow: hidden; }
.fv3-planner-drawer.is-open > .fv3-planner-content { overflow: visible; }
.fv3-planner-content > .fv3-planner { box-sizing: border-box; width: 270px; }
.fv3-detail-drawer { display: grid; grid-template-rows: 0fr; min-width: 0; container-type: inline-size; }
.fv3-detail-drawer.is-open { grid-template-rows: 1fr; margin-top: 16px; }
.fv3-detail-content { min-height: 0; overflow: hidden; }
.fv3-detail-drawer.is-open > .fv3-detail-content { overflow: visible; }
.fv3-side-rail .fv3-detail { border: 1px solid var(--fv3-border); border-radius: 8px; }
.fv3-side-rail .fv3-detail-head h2 { font-size: 17px; overflow-wrap: anywhere; }
.fv3-totals { align-items: stretch; }
.fv3-totals article.fv3-summary { display: block; min-height: 144px; }
.fv3-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fv3-summary header button { width: 26px; height: 26px; min-height: 26px; padding: 0; border: 0; background: transparent; flex-shrink: 0; }
.fv3-summary header svg { width: 15px; height: 15px; }
.fv3-summary-content { padding-top: 18px; }
.fv3-summary-content > small, .fv3-account-number { display: block; font-size: 11px; overflow-wrap: anywhere; }
.fv3-totals article.is-collapsed { min-height: 80px; }
.fv3-summary.is-collapsed strong { font-size: 18px; }
.fv3-account-selector select { width: 100%; font-size: 11px; padding: 3px 5px; min-height: 26px; margin: 0 0 4px; }
.fv3-planner { min-width: 0; padding: 18px; background: var(--fv3-surface); border-radius: 8px; }
.fv3-planner-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.fv3-planner-modes { display: flex; flex: 1; min-width: 0; gap: 3px; padding: 3px; background: #80808018; border-radius: 7px; }
.fv3 button.fv3-planner-hide { flex-shrink: 0; width: 28px; height: 30px; min-height: 30px; padding: 0; background: transparent; border-color: transparent; }
.fv3-planner-hide svg, .fv3-planner-reopen svg { width: 18px; height: 18px; }
.fv3-planner-modes button { flex: 1; min-width: 0; min-height: 30px; font-size: 12px; border: 0; background: transparent; }
.fv3-planner-modes button[aria-pressed=true] { background: var(--fv3-cyan); color: var(--fv3-primary-text, #101b20); }
.fv3-calendar-head, .fv3-calendar-head > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fv3-calendar-head h2 { font-size: 15px; text-transform: capitalize; }
.fv3-calendar-head button { min-height: 28px; width: 28px; height: 28px; padding: 0; background: transparent; border: 0; }
.fv3-calendar-week, .fv3-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.fv3-calendar-week { margin: 16px 0 5px; font-size: 10px; color: var(--fv3-muted); text-align: center; }
.fv3-calendar-grid button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 33px; height: 33px; padding: 3px 0; border: 1px solid transparent; background: transparent; font-size: 12px; }
.fv3-calendar-grid button.outside { opacity: .35; }
.fv3-calendar-grid button.today { border-color: var(--fv3-cyan); }
.fv3-calendar-grid button.selected { background: var(--fv3-cyan); color: #101b20; }
.fv3-calendar-dots { display: flex; justify-content: center; gap: 3px; min-height: 4px; }
.fv3-calendar-dots i, .fv3-calendar-legend i { display: block; width: 4px; height: 4px; border-radius: 50%; }
.fv3-planner .incoming { background: #29c99d; }
.fv3-planner .outgoing { background: #ffac60; }
.fv3-planner .task { background: var(--fv3-cyan); }
.fv3-calendar-legend { display: flex; gap: 16px; margin: 12px 0; font-size: 10px; color: var(--fv3-muted); }
.fv3-calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.fv3-calendar-reset { display: flex; gap: 8px; }
.fv3-calendar-reset button { min-height: 25px; padding: 2px 7px; font-size: 11px; background: transparent; }
.fv3-agenda { padding-top: 18px; border-top: 1px solid var(--fv3-border); margin-top: 18px; }
.fv3-agenda > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fv3-agenda h3 { margin: 0; font-size: 13px; }
.fv3-agenda > header small { font-size: 10px; }
.fv3 button.fv3-agenda-toggle { width: 100%; min-height: 32px; padding: 0; gap: 6px; text-align: left; border: 0; background: transparent; }
.fv3-agenda-toggle strong { flex: 1; min-width: 0; font-size: 12px; }
.fv3-agenda-toggle small { color: var(--fv3-muted); }
.fv3-agenda-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.fv3-agenda-drawer { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .2s ease; }
.fv3-agenda.is-collapsed .fv3-agenda-drawer { grid-template-rows: 0fr; }
.fv3-agenda-content { min-height: 0; overflow: hidden; }
.fv3-agenda-list { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fv3-task-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; padding-inline: 4px; }
.fv3-task-tools select { min-height: 30px; padding: 4px 7px; font-size: 12px; }
.fv3-task-tools button { width: 30px; height: 30px; min-height: 30px; padding: 0; }
.fv3-task-item { display: flex; gap: 9px; align-items: flex-start; border-bottom: 1px solid var(--fv3-border); }
.fv3-task-item input[type=checkbox] { flex-shrink: 0; margin: 15px 0 0; width: 16px; height: 16px; min-height: 16px; accent-color: var(--fv3-cyan); }
.fv3 .fv3-task-item button { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 0; display: block; text-align: left; }
.fv3-task-item strong, .fv3-task-item small { display: block; overflow-wrap: anywhere; }
.fv3-task-item strong { font-size: 12px; }
.fv3-task-item small { font-size: 10px; margin-top: 4px; color: var(--fv3-muted); }
.fv3-task-item small.negative { color: var(--fv3-red); }
.fv3-task-item.is-done strong { text-decoration: line-through; color: var(--fv3-muted); }
.fv3-task-note { white-space: pre-wrap; }
.fv3-task-editor { border-block: 1px solid var(--fv3-border); padding: 10px 0; margin-bottom: 8px; }
.fv3-task-editor > header { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.fv3-task-editor > header button { width: 28px; height: 28px; min-height: 28px; padding: 0; background: transparent; border: 0; }
.fv3-task-editor label { display: block; font-size: 11px; margin: 8px 0; }
.fv3-task-editor input, .fv3-task-editor textarea { display: block; box-sizing: border-box; min-width: 0; width: 100%; margin-top: 4px; padding: 7px; font: inherit; background: var(--fv3-surface); border: 1px solid var(--fv3-border); border-radius: 5px; color: inherit; }
.fv3-task-editor textarea { resize: vertical; max-height: 160px; }
.fv3-task-editor-actions { display: flex; justify-content: space-between; gap: 8px; }
.fv3-task-editor-actions button { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.fv3 .fv3-bank-detail-row > td { display: table-cell; padding: 0; }
.fv3 .fv3-bank-detail-row .fv3-detail { position: static; padding: 18px 12px; border: 0; border-bottom: 2px solid var(--fv3-cyan); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.fv3-bank-detail-row .fv3-detail > h2, .fv3-bank-detail-row .fv3-detail h3 { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .fv3-agenda-drawer { transition: none; } }
.fv3 button.fv3-agenda-item { width: 100%; justify-content: flex-start; text-align: left; align-items: flex-start; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--fv3-border); border-radius: 0; gap: 10px; }
.fv3-agenda-item > span:last-child { min-width: 0; }
.fv3-agenda-item strong, .fv3-agenda-item small, .fv3-agenda-item b { display: block; overflow-wrap: anywhere; }
.fv3-agenda-item strong { font-size: 12px; }
.fv3-agenda-item small { font-size: 10px; margin: 2px 0; }
.fv3-agenda-item b { font-size: 11px; font-weight: 500; }
.fv3-agenda-direction { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; }
.fv3-agenda-direction.received { color: #ffac60; background: #ffac601a; }
.fv3-agenda-direction.issued { color: #29c99d; background: #29c99d1a; }
.fv3-agenda-direction svg { width: 13px; height: 13px; }
.fv3-agenda-empty { color: var(--fv3-muted); font-size: 12px; padding-top: 12px; }
.fv3-summary { position: relative; }
.fv3 button.fv3-summary-link { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border-radius: inherit; border-color: transparent; background: transparent; padding: 0; }
.fv3 button.fv3-summary-link:hover, .fv3 button.fv3-summary-link[aria-pressed=true] { border-color: var(--fv3-cyan); background: transparent; }
.fv3-summary:has(> .fv3-summary-link:hover), .fv3-summary:has(> .fv3-summary-link[aria-pressed=true]) { border-color: var(--fv3-cyan); }
.fv3-summary header button, .fv3-account-selector { position: relative; z-index: 2; }
.fv3 button.fv3-summary-overdue { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; min-height: 28px; width: 100%; margin-top: 6px; padding: 3px 0; border: 0; background: transparent; font-size: 12px; color: var(--fv3-muted); text-align: left; }
.fv3-summary-overdue span { min-width: 0; }
.fv3-summary-overdue b { color: var(--fv3-red); font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fv3 button.fv3-summary-overdue:hover, .fv3 button.fv3-summary-overdue[aria-pressed=true] { background: #80808018; }
.fv3-summary-formula { display: flex; align-items: baseline; min-height: 28px; box-sizing: border-box; margin-top: 6px; padding: 3px 0; font-size: 12px; color: var(--fv3-muted); }
.fv3 th:has([data-sort="amount"]), .fv3 th:has([data-sort="remaining"]) { text-align: right; }
.fv3 th [data-sort="amount"], .fv3 th [data-sort="remaining"] { display: inline-flex; justify-content: flex-end; text-align: right; width: 100%; }
.fv3-summary-accounting { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; min-height: 28px; margin-top: 6px; padding: 3px 0; box-sizing: border-box; font-size: 12px; }
.fv3-summary-accounting span { min-width: 0; opacity: .85; }
.fv3-summary-accounting b { font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@container (min-width: 761px) and (max-width: 900px) {
  .fv3-heading.has-drawer .fv3-title { display: none; }
  .fv3-heading.has-drawer .fv3-actions { width: 100%; }
}
@container (max-width: 1250px) { .fv3-dashboard:not(.detail-open) .fv3-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 900px) { .fv3-dashboard { grid-template-columns: minmax(0, 1fr); } .fv3-planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; } .fv3-planner-heading, .fv3-calendar-head, .fv3-calendar-week, .fv3-calendar-grid, .fv3-calendar-legend, .fv3-calendar-reset { grid-column: 1; } .fv3-agenda { grid-column: 2; grid-row: 1 / 7; border-top: 0; border-left: 1px solid var(--fv3-border); padding: 0 0 0 20px; margin: 0; } }
@container (max-width: 520px) { .fv3-planner { display: block; } .fv3-agenda { border-left: 0; border-top: 1px solid var(--fv3-border); padding: 18px 0 0; margin-top: 18px; } .fv3-totals article.fv3-summary { display: block; min-height: 140px; } .fv3-totals article.is-collapsed { min-height: 80px; } .fv3-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-theme=light] .fv3 {
  --text: #182e3b;
  --panel-strong: #ffffff;
  --line: #cbdbe4;
  --muted: #536e7d;
  --cyan: #007caa;
  --green: #007347;
  --amber: #915600;
  --red: #bc2943;
  color-scheme: light;
}
[data-theme=dark] .fv3 { color-scheme: dark; }
[data-theme=light] .fv3-actions button, [data-theme=light] .fv3-actions .fv3-upload { background: #ffffff; border-color: #c5d9e5; }
[data-theme=light] .fv3-actions button:hover:not(:disabled), [data-theme=light] .fv3-action-menu button:hover:not(:disabled) { background: #e8f5fb; }
[data-theme=light] .fv3-actions button.fv3-primary { background: #008db9; color: #ffffff; border-color: #008db9; box-shadow: 0 3px 12px #006d8e20; }
[data-theme=light] .fv3-actions button.fv3-primary:hover:not(:disabled) { background: #006f95; }
[data-theme=light] .fv3-actions [aria-pressed=true] { background: #e2f3fb; border-color: #007caa; }
[data-theme=light] .fv3-header-search { background: #ffffff; border-color: #c5d9e5; }
[data-theme=light] .fv3-action-menu { background: #ffffff; border-color: #b9cfdd; box-shadow: 0 12px 32px #1a476b25; }
[data-theme=light] .fv3-tabs button[aria-current=page] { background: #e2f3fb; border-color: #93c5d9; }
[data-theme=light] .fv3-count { background: #e6edf3; color: #496473; }
[data-theme=light] .fv3-tabs [aria-current=page] .fv3-count { background: #c9e9f6; color: #006d94; }
[data-theme=light] .fv3 table thead th { background: #eaf2f7 !important; color: #496473 !important; }
[data-theme=light] .fv3 tbody tr:nth-child(even) { background: #f2f7fa; }
[data-theme=light] .fv3 tbody tr:hover { background: #e9f4fa; }
[data-theme=light] .fv3 tr.selected, [data-theme=light] .fv3 tbody tr.selected:hover { background: #dceef8; }
[data-theme=light] .fv3-status { background: #fff0d5; }
[data-theme=light] .fv3-status.paid { background: #d9f4e7; color: #006b45; }
[data-theme=light] .fv3-status.partial { background: #deedf9; color: #075f94; }
[data-theme=light] .fv3-status.review, [data-theme=light] .fv3-status.overpaid, [data-theme=light] .fv3-status.identity_review { background: #fbe2e8; color: #aa253d; }
[data-theme=light] .fv3-status.transfer, [data-theme=light] .fv3-status.excluded { background: #e8edf2; color: #52616f; }
[data-theme=light] .fv3-detail { border-color: #aac5d5; }
[data-theme=light] .fv3-issues { background: #fff1d8; }
@container (max-width: 1020px) {
  .fv3-detail { border-left: 0; border-top: 2px solid #44616f; }
  .fv3-heading { align-items: flex-start; }
  .fv3-totals strong { font-size: 21px; }
  .fv3-detail .fv3-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 380px) {
  .fv3-detail-drawer .fv3-detail { padding: 16px 12px; }
  .fv3-detail-drawer .fv3-fields, .fv3-detail-drawer .fv3-payment-block dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fv3-detail-drawer .fv3-payment-block, .fv3-detail-drawer .fv3-cost-fields { grid-template-columns: minmax(0, 1fr); }
  .fv3-detail-drawer .fv3-invoice-title { flex-wrap: wrap; }
  .fv3-detail-drawer .fv3-balance { gap: 8px; }
  .fv3-detail-drawer .fv3-balance dd { font-size: 18px; }
}
@container (max-width: 760px) {
  .fv3-overdue-lists { grid-template-columns: minmax(0, 1fr); }
  .fv3-heading { flex-wrap: wrap; gap: 12px; }
  .fv3-title { width: 100%; }
  .fv3 h1 { font-size: 27px; }
  .fv3-actions { gap: 6px; order: 2; width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .fv3-actions.has-drawer { flex-wrap: nowrap; }
  .fv3-actions.has-drawer > button, .fv3-actions.has-drawer > .fv3-toolbar-control:not(.is-open) { display: none; }
  .fv3-actions.has-drawer .fv3-toolbar-control.is-open { flex: 1; }
  .fv3-actions.has-drawer .fv3-toolbar-drawer { flex: 1; width: auto; max-width: none; min-width: 0; }
  .fv3-actions button, .fv3-actions .fv3-upload { width: 42px; height: 42px; min-height: 42px; padding: 0; }
  .fv3-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  .fv3-totals article { padding: 12px; }
  .fv3-totals strong { font-size: 19px; }
  .fv3-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .fv3-tabs button { padding: 8px; font-size: 12px; min-height: 48px; line-height: 1.25; white-space: normal; text-align: left; justify-content: space-between; }
  .fv3-filters { grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); }
  .fv3 th:nth-child(3), .fv3 td:nth-child(3), .fv3 th:nth-child(5), .fv3 td:nth-child(5), .fv3 th:nth-child(6), .fv3 td:nth-child(6) { display: none; }
  .fv3 th:nth-child(1) { width: 37%; }
  .fv3 th:nth-child(2) { width: 28%; }
  .fv3 th:nth-child(4) { width: 35%; }
  .fv3 th, .fv3 td { font-size: 12px; padding: 11px 6px; }
  .fv3-amount { white-space: normal; }
  .fv3 th button { font-size: 11px; }
  .fv3 .fv3-mobile-status { display: inline-block; font-size: 10px; margin-top: 5px; }
  .fv3 .fv3-mobile-remaining { display: block; font-weight: 400; white-space: normal; }
  .fv3 .fv3-mobile-date { display: block; font-size: 10px; }
  .fv3-detail { padding: 16px; }
  .fv3-detail .fv3-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fv3-detail-tabs button { font-size: 11px; }
  .fv3-balance dd { font-size: 19px; }
}
@container (max-width: 420px) {
  .fv3-toolbar-control { gap: 6px; }
  .fv3-actions.has-drawer .fv3-toolbar-control > button { width: 32px; height: 32px; min-height: 32px; }
  .fv3-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .fv3-filters input, .fv3-filters select { padding: 4px 2px; font-size: 10px; }
  .fv3-bank-duplicate-data, .fv3-bank-repair-target { grid-template-columns: minmax(0, 1fr); }
  .fv3-bank-duplicate-data .fv3-duplicate-amount { grid-column: 1; }
  .fv3-duplicate-choice label { grid-template-columns: 20px minmax(0, 1fr); }
  .fv3-duplicate-amount { grid-column: 2; }
  .fv3-totals { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .fv3-totals article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
  .fv3-totals strong { margin-top: 0; font-size: 17px; white-space: nowrap; }
  .fv3-totals small { font-size: 11px; }
  .fv3-payment-block { grid-template-columns: minmax(0, 1fr) 106px; gap: 10px; }
  .fv3-qr { width: 106px; height: 106px; }
  .fv3-payment-block dl { grid-template-columns: minmax(0, 1fr); }
  .fv3-invoice-title { flex-wrap: wrap; }
  .fv3-balance { gap: 10px; }
  .fv3-balance dd { font-size: 17px; }
}
@container (max-width: 900px) {
  .fv3-dashboard { display: flex; flex-direction: column; gap: 0; }
  .fv3-work-area { display: contents; }
  .fv3-dashboard > *, .fv3-work-area > * { width: 100%; min-width: 0; }
  .fv3-summary-currencies, .fv3-totals { order: 0; }
  .fv3 button.fv3-calendar-toggle { display: flex; order: 1; justify-content: flex-start; margin: 0 0 12px; }
  .fv3-calendar-toggle > svg:last-child { margin-left: auto; }
  .fv3-side-rail { display: contents; }
  .fv3 button.fv3-planner-reopen { display: none; }
  .fv3-planner-drawer { order: 2; }
  .fv3-planner-content > .fv3-planner { width: 100%; }
  .fv3-detail-drawer { order: 2; margin-bottom: 16px; }
  .fv3-detail-drawer:not(.is-open) { margin-bottom: 0; }
  .fv3-planner { display: none; }
  .fv3-dashboard.calendar-open:not(.planner-hidden) .fv3-planner-drawer { margin-bottom: 16px; }
  .fv3-dashboard.calendar-open .fv3-planner, .fv3-dashboard.has-side-detail .fv3-planner { display: grid; }
  .fv3-dashboard.has-side-detail:not(.planner-hidden) .fv3-calendar-toggle { display: none; }
  .fv3-dashboard.has-side-detail .fv3-planner-drawer { margin-bottom: 0; }
  .fv3-tabs { order: 3; }
  .fv3-filter-summary, .fv3-ledger-notices, .fv3-error, .fv3-note, .fv3-jobs, .fv3-reading-review, .fv3-duplicate-tabs { order: 4; }
  .fv3-body { order: 5; }
}
@container (max-width: 520px) { .fv3-dashboard.calendar-open .fv3-planner, .fv3-dashboard.has-side-detail .fv3-planner { display: block; } }
.fv3-register-open .fv3-body { display: none; }
.fv3-register .fv3-list-head small { overflow-wrap: anywhere; }
.fv3-register-toolbar, .fv3-register-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.fv3-register-toolbar { align-items: flex-end; }
.fv3-register-toolbar > button, .fv3-register-toolbar input { height: 40px; min-height: 40px; }
.fv3-register-toolbar label { display: grid; gap: 4px; font-size: 12px; }
.fv3-register-confirm label { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; }
.fv3-register-confirm input { width: 18px; height: 18px; flex: 0 0 18px; }
.fv3-register-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.fv3-register-totals div { border-bottom: 1px solid var(--fv3-border); padding: 8px 0; }
.fv3-register-totals dt { font-size: 12px; }
.fv3-register-totals dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.fv3-register-warning { font-size: 12px; line-height: 1.5; }
.is-document-review .fv3-list .fv3-invoice-table th:nth-child(6), .is-document-review .fv3-list .fv3-invoice-table td:nth-child(6) { display: table-cell; width: 35%; }
.fv3-qr-reason { padding-top: 8px; color: var(--fv3-muted); font-size: 12px; line-height: 1.5; }
.fv3-register-impact { border-block: 1px solid var(--fv3-border); padding: 12px 0; }
.fv3-register-impact h3 { margin: 0 0 10px; font-size: 14px; }
.fv3-cash-audit-table { width: 100%; table-layout: fixed; }
.fv3 .fv3-cash-audit-table th:first-child { width: 52px; white-space: nowrap; padding-inline: 4px; }
.fv3 .fv3-cash-audit-table th:nth-child(2) { width: auto; }
.fv3 .fv3-cash-audit-table th:nth-child(3) { width: 160px; }
.fv3 .fv3-cash-audit-table th:last-child { width: 220px; }
.fv3-cash-audit-table td { overflow-wrap: anywhere; }
.fv3-cash-audit-table small { display: block; margin-top: 6px; }
.fv3-cash-audit-table input { width: 24px; height: 24px; margin: 10px; }
.fv3-cash-audit .fv3-register-confirm { flex-wrap: wrap; }
.fv3-totals article.fv3-summary strong { white-space: normal; }
@container (max-width: 650px) {
  .fv3-cash-audit-table thead { display: none; }
  .fv3-cash-audit-table tbody { display: block; }
  .fv3-cash-audit-table tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding-block: 12px; border-bottom: 1px solid var(--fv3-border); }
  .fv3 .fv3-cash-audit-table td { display: block; padding: 6px; border: 0; }
  .fv3-cash-audit-table td:first-child { grid-column: 1; grid-row: 1 / 4; padding: 0; }
  .fv3-cash-audit-table td:not(:first-child) { grid-column: 2; }
  .fv3 .fv3-cash-audit-table td[colspan] { grid-column: 1 / -1; grid-row: auto; }
  .fv3-cash-audit-table input { margin: 10px 6px; }
}
.fv3-register-impact dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.fv3-register-impact dt { font-size: 12px; }
.fv3-register-impact dd { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.fv3-register-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--fv3-border); }
.fv3-register-row > div { display: grid; align-content: start; justify-items: start; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.fv3-register-row small { font-size: 12px; }
.fv3-register-row .fv3-status { white-space: normal; }
.fv3-account-layout { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.65fr); gap: 20px; }
.fv3-account-index, .fv3-account-content { min-width: 0; }
.fv3-account-index > button { width: 100%; display: grid; justify-items: start; gap: 5px; margin-block: 6px; text-align: left; border-radius: 6px; }
.fv3-account-index > button[aria-pressed=true] { border-color: var(--fv3-cyan); background: var(--fv3-panel); }
.fv3-account-index > button > *, .fv3-account-content { overflow-wrap: anywhere; }
.fv3-account-detail-head, .fv3-account-actions, .fv3-account-history-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fv3-account-detail-head { padding-block: 12px; border-bottom: 1px solid var(--fv3-border); }
.fv3-account-detail-head h3 { font-size: 17px; margin: 0 0 7px; }
.fv3-account-detail-head small, .fv3-account-history-row small { display: block; margin-top: 5px; }
.fv3-account-totals { margin: 14px 0; }
.fv3-account-totals > div { border-bottom: 1px solid var(--fv3-border); padding-block: 12px; }
.fv3-account-totals dt { font-weight: 600; }
.fv3-account-totals dd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; }
.fv3-account-totals dd span { font-size: 12px; }
.fv3-account-totals strong { display: block; margin-top: 5px; font-size: 16px; overflow-wrap: anywhere; }
.fv3-account-note { white-space: pre-wrap; }
.fv3-bank-editor { margin-block: 16px; border-block: 1px solid var(--fv3-border); padding-block: 12px; }
.fv3-bank-editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; padding: 0; min-width: 0; border: 0; }
.fv3-bank-editor-fields label { display: grid; gap: 5px; min-width: 0; font-size: 12px; }
.fv3-bank-editor-fields input, .fv3-bank-editor-fields select { width: 100%; min-width: 0; }
.fv3-bank-name-input { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; }
.fv3-bank-name-input button { width: 40px; height: 40px; padding: 8px; }
.fv3-bank-editor-fields .fv3-bank-edit-check { display: flex; align-items: center; gap: 8px; }
.fv3-bank-edit-check input[type=checkbox] { flex: none; width: 20px; height: 20px; }
.fv3-bank-edit-history { border-top: 1px solid var(--fv3-border); padding-top: 12px; }
.fv3-audit-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-block: 14px; border-block: 1px solid var(--fv3-border); }
.fv3-audit-totals small { display: block; overflow-wrap: anywhere; }
.fv3-audit-totals strong { display: block; margin-block: 6px; font-size: 18px; }
.fv3-audit-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block: 14px; }
.fv3-audit-controls label { display: grid; gap: 4px; font-size: 12px; }
.fv3-audit-scroll { width: 100%; min-width: 0; overflow-x: auto; margin-block: 14px; }
.fv3-audit-table { min-width: 980px; }
.fv3-audit-sections { min-width: 460px; }
.fv3-audit table { width: 100%; border-collapse: collapse; table-layout: auto; }
.fv3 .fv3-audit th { width: auto; }
.fv3-audit .fv3-link { display: inline; max-width: 100%; line-height: 1.4; overflow-wrap: anywhere; }
.fv3-audit th, .fv3-audit td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fv3-border); }
.fv3-audit th { font-size: 11px; color: var(--fv3-muted); font-weight: 500; }
.fv3-audit td { font-size: 12px; overflow-wrap: anywhere; }
.fv3-audit td small { display: block; margin-top: 4px; color: var(--fv3-muted); }
.fv3-audit td.fv3-amount { text-align: right; white-space: nowrap; }
.fv3-audit-review td:last-child { color: var(--fv3-negative); }
.fv3-bank-edit-wide, .fv3-bank-edit-check { grid-column: 1 / -1; }
@container (max-width: 650px) { .fv3-bank-editor-fields { grid-template-columns: minmax(0, 1fr); } }
.fv3-account-editor { padding-bottom: 18px; border-bottom: 1px solid var(--fv3-border); }
.fv3-account-editor fieldset { min-width: 0; margin: 0; padding: 12px 0; border: 0; }
.fv3-account-editor legend { font-weight: 600; }
.fv3-account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fv3-account-fields label { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: 12px; }
.fv3-account-fields input, .fv3-account-fields select, .fv3-account-fields textarea { width: 100%; min-width: 0; }
.fv3-account-fields label.fv3-account-check { display: flex; align-items: center; gap: 8px; }
.fv3-account-fields input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.fv3-account-wide { grid-column: 1 / -1; }
.fv3-account-history { border-top: 1px solid var(--fv3-border); padding-block: 14px; }
.fv3-account-history-row { padding-block: 12px; border-bottom: 1px solid var(--fv3-border); }
.fv3-account-payments-table { margin-top: 10px; }
.fv3-account-payments-table td { overflow-wrap: anywhere; }
@container (max-width: 900px) {
  .fv3-account-layout { grid-template-columns: minmax(0, 1fr); }
  .fv3-account-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .fv3-account-index .fv3-pagination, .fv3-account-index .fv3-empty { grid-column: 1 / -1; }
}
@container (max-width: 650px) {
  .fv3-account-fields { grid-template-columns: minmax(0, 1fr); }
  .fv3-account-totals dd { grid-template-columns: minmax(0, 1fr); }
  .fv3-account-payments-table thead { display: none; }
  .fv3-account-payments-table tbody { display: block; }
  .fv3-account-payments-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .65fr); border-bottom: 1px solid var(--fv3-border); padding-block: 12px; }
  .fv3 .fv3-account-payments-table td:nth-child(n) { display: block; padding: 5px 0; border: 0; }
  .fv3-account-payments-table td:first-child { grid-column: 1; }
  .fv3-account-payments-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .fv3-account-payments-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .fv3-account-payments-table td:nth-child(4) { grid-column: 1 / -1; }
  .fv3-account-payments-table td[colspan] { grid-column: 1 / -1; }
}
@container (max-width: 600px) {
  .fv3-register-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv3-register-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fv3-register-row > div:last-child { grid-column: 1 / -1; }
}
.fv3-order-editor { display: grid; gap: 12px; margin-block: 12px; min-width: 0; }
.fv3-order-editor > label { display: grid; gap: 6px; }
.fv3-order-editor .fv3-cost-vehicles { max-height: 320px; overflow-y: auto; }
.fv3-order-editor .fv3-cost-vehicles label { min-width: 0; }
.fv3-order-editor .fv3-cost-vehicles span { min-width: 0; overflow-wrap: anywhere; }
.fv3-review-footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
.mail-source-orders .fv3-review-footer { position: sticky; bottom: 0; z-index: 2; background: var(--fv3-surface); border-top: 1px solid var(--fv3-border); }
.mail-source-orders .mail-assistant-actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mail-source-orders .mail-assistant-actions > .primary { margin-left: auto; }
.mail-source-supplier { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-block: 8px; }
.mail-source-orders [hidden] { display: none !important; }
.fv3-split-rows { display: grid; gap: 12px; min-width: 0; }
.fv3-split-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) auto; gap: 12px; align-items: end; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--fv3-border); border-radius: 10px; }
.fv3-split-row legend { padding-inline: 6px; color: var(--fv3-muted); }
.fv3-split-row label { min-width: 0; }
.fv3-split-row button { align-self: end; }
.fv3-split-totals { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 12px; }
.fv3-split-totals span { display: grid; gap: 4px; color: var(--fv3-muted); }
.fv3-split-totals strong { color: var(--fv3-text, var(--text)); }
@media (max-width: 700px) {
  .fv3-split-row { grid-template-columns: minmax(0, 1fr); }
  .fv3-split-row button { justify-self: start; }
}

/* Invoice, payment and cost share one editor; use the current application theme. */
.fv3-new-invoice {padding:14px; border:1px solid var(--fv3-border); border-radius:10px; background:var(--fv3-surface); color:var(--text, #edf7ff);}
.fv3-new-invoice .fv3-note {color:var(--fv3-muted);}
.fv3-new-invoice h4 {margin:18px 0 10px; color:var(--text);}
.fv3-bank-invoice-file {display:grid; gap:10px; padding:12px; background:var(--fv3-surface); border:1px solid var(--fv3-border); border-radius:10px;}
.fv3-bank-invoice-file label {display:grid; gap:6px; min-width:0;}
.fv3-bank-invoice-file select {width:100%; min-width:0;}
.fv3-new-invoice details {margin:16px 0; padding:12px; border:1px solid var(--fv3-border); border-radius:10px;}
.fv3-new-invoice summary {cursor:pointer;}
.fv3-new-invoice details[open] summary {margin-bottom:12px;}
.fv3-new-invoice fieldset {border:1px solid var(--fv3-border); border-radius:8px; padding:10px; min-width:0;}
.fv3-new-invoice .fv3-bank-edit-check {display:flex; align-items:center; gap:10px; padding:6px 0;}
.fv3-new-invoice .fv3-bank-edit-check input[type=checkbox] {flex:0 0 20px; width:20px; height:20px; min-height:20px; margin:0; padding:0;}
.fv3-new-invoice a {color:var(--fv3-cyan); overflow-wrap:anywhere;}
.fv3-bank-invoice-card {padding:14px; margin:10px 0; border:1px solid var(--fv3-border); border-radius:10px; background:var(--fv3-surface); overflow-wrap:anywhere;}
.fv3-bank-invoice-card .fv3-detail-actions {flex-wrap:wrap; align-items:center;}
.fv3-bank-invoice-card .fv3-link {padding:10px 0;}
@media(max-width:600px){.fv3-new-invoice .fv3-cost-fields {grid-template-columns:minmax(0,1fr);} .fv3-bank-invoice-card .fv3-detail-actions>* {max-width:100%;white-space:normal;}}

.fv3-invoice-coverage {display:block; margin-top:6px; font-size:.78rem; font-weight:600; line-height:1.4; color:var(--fv3-muted); white-space:normal;}
.fv3-invoice-coverage:is(.missing,.partial,.review) {color:var(--fv3-orange, #ffb36b);}
.fv3-invoice-coverage:is(.pending,.ready) {color:var(--fv3-cyan);}
.fv3-invoice-coverage.linked {color:var(--fv3-green, #39dca3);}
.fv3-mobile-coverage {display:none;}
.fv3-invoice-coverage-filter {display:grid; gap:4px; min-width:0; max-width:100%; font-size:.8rem; color:var(--fv3-muted);}
.fv3-invoice-coverage-filter select {max-width:100%; min-width:0;}
.fv3-bank-document-control,.fv3-bank-inline-cost,.fv3-invoice-visibility-editor {padding:16px; margin-block:14px; border:1px solid var(--fv3-border); border-radius:12px; background:var(--fv3-surface);}
.fv3-bank-document-control h3 {margin-top:0;}
.fv3-bank-pending-source {display:grid; gap:10px; padding:12px; margin-block:10px; border:1px solid var(--fv3-border); border-radius:8px; overflow-wrap:anywhere;}
.fv3-bank-existing-invoice,.fv3-bank-other-options,.fv3-excluded-invoices {margin-block:16px; padding:12px; border:1px solid var(--fv3-border); border-radius:10px;}
.fv3-bank-existing-invoice>summary,.fv3-bank-other-options>summary,.fv3-excluded-invoices>summary {cursor:pointer; min-height:32px; align-content:center; font-weight:600;}
.fv3-bank-invoice-save {position:sticky; bottom:0; z-index:2; display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px; padding:16px 10px; border-top:1px solid var(--fv3-border); background:var(--fv3-panel, var(--fv3-surface)); backdrop-filter:blur(18px);}
.fv3-bank-invoice-save>p {flex-basis:100%;}
.fv3-invoice-visibility-editor>label {display:grid; gap:6px; margin-block:12px;}
.fv3-invoice-visibility-editor>.fv3-bank-edit-check {display:flex; align-items:center; gap:10px;}
.fv3-bank-document-control :is(button,a),.fv3-reading-actions button {white-space:normal;}
@media(max-width:600px){
  .fv3-invoice-coverage-filter {width:100%;}
  .fv3-bank-document-control,.fv3-bank-inline-cost,.fv3-invoice-visibility-editor {padding:12px;}
  .fv3-bank-document-control .fv3-detail-actions,.fv3-bank-invoice-save {align-items:stretch;flex-direction:column;}
  .fv3-bank-document-control :is(button,a),.fv3-bank-invoice-save button {max-width:100%; min-height:44px;}
}
@container(max-width:760px){.fv3-mobile-coverage {display:block;}}

/* Invoice items use the same theme and save action as the existing cost editor. */
.fv3-item-editor{margin-block:20px;min-width:0}
.fv3-item-row{border:1px solid var(--border, #52606b);border-radius:12px;padding:16px;margin-block:12px;background:var(--panel-soft,rgba(127,127,127,.06));min-width:0}
.fv3-item-row>header{display:flex;justify-content:space-between;gap:16px;align-items:start}
.fv3-item-row>header>div:first-child{min-width:0;overflow-wrap:anywhere}
.fv3-item-row>header>div:last-child{text-align:right;flex-shrink:0}
.fv3-item-row small{display:block;margin-top:5px;opacity:.8}
.fv3-item-tools{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-block:14px}
.fv3-item-tools>label{flex:1;min-width:220px}
.fv3-item-row label{display:grid;gap:6px}
.fv3-item-row fieldset{display:flex;flex-wrap:wrap;gap:10px;border:0;padding:8px 0}
.fv3-item-row fieldset label{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--border,#52606b);border-radius:8px}
.fv3-item-row fieldset input[type=text]{width:80px;min-width:0}
.fv3-item-shares{display:flex;gap:8px;flex-wrap:wrap}
.fv3-item-shares>span{padding:6px 9px;background:var(--panel-soft,rgba(127,127,127,.10));border-radius:7px}
@media(max-width:600px){.fv3-item-row{padding:12px}.fv3-item-row>header{display:block}.fv3-item-row>header>div:last-child{text-align:left;margin-top:10px}.fv3-item-tools>label{min-width:0;width:100%}.fv3-item-tools{display:block}.fv3-item-tools>button{margin-top:10px;width:100%}.fv3-item-row :is(button,select,input){min-height:44px;max-width:100%}}

/* Return evidence stays separate from invoice totals and payment status. */
.fv3-item-return{margin-top:14px;padding-top:12px;border-top:1px solid var(--fv3-border)}
.fv3-item-return .fv3-item-return-toggle{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer}
.fv3-item-return-toggle input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 auto}
.fv3-item-return-fields{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-block:8px}
.fv3-item-return-fields label{display:grid;gap:5px;max-width:170px}
.fv3-item-return-fields input{width:100%;min-height:44px}
.fv3-item-return-fields>span{padding-bottom:10px;color:var(--fv3-muted)}
.fv3-return-notice{display:grid;gap:9px;padding:14px;margin-block:14px;border:1px solid var(--fv3-border);border-radius:10px;background:var(--fv3-surface)}
.fv3-return-notice button{justify-self:start}
.fv3-return-notice>strong,.fv3-invoice-table small.fv3-return-badge{color:var(--fv3-orange,#ffb36b)}
.fv3-return-list{margin-block:16px}
.fv3-return-list>summary{cursor:pointer;padding:10px 0}

/* Settlement status and traceable legacy cash records, using the active theme. */
.fv3-status.payroll_paid{background:color-mix(in srgb,var(--fv3-green,#39dca3) 14%,transparent);color:var(--fv3-green,#39dca3)}
.fv3-cash-provenance{margin-block:10px;padding:10px;border:1px solid var(--fv3-border);border-radius:8px;max-width:42rem;overflow-wrap:anywhere;font-size:.85rem;line-height:1.5}
.fv3-cash-provenance summary{cursor:pointer;font-weight:600;color:var(--fv3-orange,#ffb36b)}
.fv3-cash-provenance p{margin-block:8px}
.fv3-cash-provenance small{color:var(--fv3-muted)}
form[data-cost-rule] [data-rule-cost-only][hidden]{display:none}
[data-theme=light] .fv3-status.payroll_paid{color:#006b45;background:#d9f4e7}
.fv3-cash-warning{color:var(--fv3-text);border-left-color:var(--fv3-orange,#ffb36b)}
@media(max-width:700px){
  .fv3 .fv3-cash-table,.fv3 .fv3-cash-table>thead,.fv3 .fv3-cash-table>tbody{display:block;width:100%}
  .fv3 .fv3-cash-table>thead>tr{display:flex;flex-wrap:wrap;gap:8px}
  .fv3 .fv3-cash-table>thead>tr>th{display:block;width:auto;max-width:100%;border:0}
  .fv3 .fv3-cash-table>thead>tr>th:nth-child(2){display:none}
  .fv3 .fv3-cash-table>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:14px 0;border-bottom:1px solid var(--fv3-border)}
  .fv3 .fv3-cash-table>tbody>tr>td{display:block;min-width:0;width:auto;border:0;padding:4px 0}
  .fv3 .fv3-cash-table>tbody>tr:not(.fv3-cash-detail-row)>td:first-child{grid-row:1;grid-column:1}
  .fv3 .fv3-cash-table>tbody>tr:not(.fv3-cash-detail-row)>td:nth-child(2){grid-row:2;grid-column:1/-1}
  .fv3 .fv3-cash-table>tbody>tr:not(.fv3-cash-detail-row)>td:nth-child(3){display:block;grid-row:1;grid-column:2;text-align:right;align-self:center}
  .fv3 .fv3-cash-table>tbody>tr:not(.fv3-cash-detail-row)>td:nth-child(4){grid-row:3;grid-column:1}
  .fv3 .fv3-cash-table>tbody>tr:not(.fv3-cash-detail-row)>td:nth-child(5){grid-row:3;grid-column:2;text-align:right}
  .fv3 .fv3-cash-table>tbody>tr.fv3-cash-detail-row>td{grid-column:1/-1}
}
@media(min-width:701px){.fv3 .fv3-cash-table th:last-child{width:108px}}
@media(max-width:700px){.fv3 .fv3-cash-table>thead .fv3-column-heading{white-space:nowrap}}

/* Review stays legible over a photo, with a compact heading in both states. */
.fv3 .fv3-reading-review { background:rgba(235,241,245,.09); border:1px solid var(--fv3-border); border-radius:12px; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
.fv3 .fv3-reading-review .fv3-reading-heading { font-size:14px; font-weight:500; line-height:1.3; padding:10px 12px; }
.fv3 .fv3-reading-review #fv3-reading-items { background:rgba(220,230,240,.035); border-top:1px solid var(--fv3-border); border-radius:0 0 12px 12px; }
.fv3 .fv3-reading-review h2 { font-size:14px; font-weight:500; }
.fv3-pending-fields { padding:10px 12px; border:1px solid var(--fv3-border); border-left:3px solid var(--fv3-accent,#f8903d); border-radius:8px; margin:12px 0; }
.fv3-pending-fields p { margin:6px 0; }.fv3-pending-fields small { display:block; }
.fv3-reading-feedback { padding:10px 12px; background:rgba(128,170,170,.12); border-radius:8px; }
.fv3-bank-metadata { margin-top:16px; }.fv3-bank-metadata summary { cursor:pointer; padding:12px 0; }
.fv3-bank-duplicate-choice { padding:12px 0; }.fv3-bank-duplicate-controls { flex-wrap:wrap; }
[data-theme="light"] .fv3 .fv3-reading-review, body.light .fv3 .fv3-reading-review { background:rgba(255,255,255,.55); }
/* The accountant's order register uses the existing finance detail actions. */
.fv3 .fv3-order-accounting-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0; }
.fv3 .fv3-order-accounting-controls label { display:flex; align-items:center; gap:8px; margin:0; min-height:44px; font-size:13px; }
.fv3 .fv3-order-accounting .fv3-note { padding:0; border:0; background:none; color:var(--fv3-muted,#b9c2c9); max-width:none; margin:6px 0; font-size:12px; line-height:1.5; }
.fv3 .fv3-order-accounting-controls input[type=checkbox] { width:18px; height:18px; }
.fv3 .fv3-order-accounting-summary { display:flex; flex-wrap:wrap; gap:12px 24px; margin:16px 0; }
.fv3 .fv3-order-accounting-scroll { overflow-x:auto; }
.fv3 .fv3-order-accounting-table { width:100%; min-width:850px; border-collapse:collapse; table-layout:fixed; }
.fv3 .fv3-order-accounting-table th { text-align:left; font-weight:500; }
.fv3 .fv3-order-accounting-table th:first-child { width:12%; }
.fv3 .fv3-order-accounting-table th:nth-child(2),.fv3 .fv3-order-accounting-table th:nth-child(5) { width:19%; }
.fv3 .fv3-order-accounting-table th:nth-child(3) { width:20%; }
.fv3 .fv3-order-accounting-table th:nth-child(4) { width:30%; }
.fv3 .fv3-order-accounting-table td,.fv3 .fv3-order-accounting-table th { display:table-cell; padding:12px 10px; border-bottom:1px solid var(--fv3-line,rgba(150,160,170,.24)); vertical-align:top; overflow-wrap:anywhere; }
.fv3 .fv3-order-accounting-table small { display:block; margin-top:5px; font-size:12px; line-height:1.5; }
.fv3 .fv3-order-accounting-invoice+.fv3-order-accounting-invoice { margin-top:12px; padding-top:10px; border-top:1px solid rgba(150,160,170,.2); }
.fv3 .fv3-order-missing { color:var(--fv3-warning,#edb784); }
.fv3[data-theme=light] .fv3-order-missing,[data-theme=light] .fv3 .fv3-order-missing { color:#8b4010; }
