.cash-bank-fields[hidden]{display:none}
.cash-bank-fields h3{font-size:16px;margin:0 0 18px}
.cash-bank-fields .form-grid{gap:20px 24px}
.report-toolbar,.report-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:18px 0}
.report-toolbar label,.report-section-heading label{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted,#77819c);white-space:nowrap;flex-shrink:0;width:auto}
.report-toolbar input,.report-section-heading input{width:160px;border:1px solid #dce3f5;border-radius:10px;background:white;padding:10px 12px;color:inherit;font:inherit}
.report-section-heading h3,.report-section-heading h4{margin:0;color:#233252}
.report-section-heading p{margin:8px 0 0;font-size:13px;color:#77819c}
.cash-history-sections{display:flex;flex-direction:column;gap:28px;width:100%}
.cash-history-section{min-width:0;width:100%}
.cash-history-section .table-wrap,.report-history .table-wrap{max-height:440px;overflow:auto}
.cash-history-section th,.report-history th{position:sticky;top:0;z-index:1;background:#f7f9ff}
.cash-history-section td{white-space:normal;overflow-wrap:anywhere;max-width:350px}
.report-cell-meta{display:block;font-size:12px;color:#7d87a1;margin-top:6px;line-height:1.5}
.cash-month-report{background:white;border:1px solid #e2e8f7;border-radius:18px;padding:24px;margin-top:24px}
.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:18px 0;border-bottom:1px solid #e7ecf7}
.report-metrics span,.report-costs span{display:block;font-size:13px;color:#76819a;line-height:1.6}
.report-metrics strong{display:block;font-size:24px;margin:12px 0;overflow-wrap:anywhere;color:#293a71;font-variant-numeric:tabular-nums}
.report-costs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:22px 0}
.report-costs strong{display:block;font-size:17px;margin-top:8px}
.report-history{margin-top:24px;min-width:0}
.report-history summary{cursor:pointer;font-weight:600;padding:16px 0;color:#405581}
.modal-card:has(#cash-report-settings){width:min(920px,calc(100vw - 48px));min-width:0}
.modal-card:has(#cash-report-settings) .modal-close{flex-shrink:0}
#cash-report-settings{color:var(--ink);font-size:14px;line-height:1.6}
#cash-report-settings .report-account-intro{margin:0 0 12px;max-width:72ch}
#cash-report-settings .report-account-warning{margin:0 0 24px;padding:12px 16px;background:#f4f6ff;border-radius:10px;color:#35456b}
#cash-report-settings .report-account-picker{min-width:0;margin:0;padding:0;border:0}
#cash-report-settings legend{padding:0;font-size:16px;font-weight:700;color:var(--ink)}
#cash-report-settings .report-account-heading{display:flex;justify-content:space-between;gap:12px;margin:6px 0 12px;color:#59677f;font-size:13px}
#cash-report-settings [data-account-selection-count]{color:var(--primary,#4f65e8);font-weight:700}
#cash-report-settings .report-account-columns,#cash-report-settings .report-account-row{display:grid;grid-template-columns:32px minmax(0,1.3fr) minmax(100px,.8fr) minmax(145px,.8fr) 52px;align-items:center;gap:16px;padding:14px 16px}
#cash-report-settings .report-account-columns{position:sticky;top:0;z-index:1;background:#f7f9fd;border-block:1px solid #e2e8f3;font-size:12px;color:#59677f}
#cash-report-settings .report-account-options{max-height:410px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#cash-report-settings .report-account-row{margin:0;min-height:76px;border-bottom:1px solid #e2e8f3;cursor:pointer;font-size:14px;font-weight:400;transition:background .15s}
#cash-report-settings .report-account-row:hover{background:#f7f9ff}
#cash-report-settings .report-account-row:has(:checked){background:#eef2ff}
#cash-report-settings .report-account-row:has(:focus-visible){outline:2px solid var(--primary,#4f65e8);outline-offset:-2px}
#cash-report-settings input[type=checkbox]{width:18px;height:18px;min-height:0;min-width:0;margin:0;padding:0;justify-self:start;accent-color:var(--primary,#4f65e8);box-shadow:none;cursor:pointer}
#cash-report-settings input[type=checkbox]:focus-visible{outline:2px solid var(--primary,#4f65e8);outline-offset:3px}
#cash-report-settings .report-account-row:has(:disabled),#cash-report-settings input[type=checkbox]:disabled{cursor:wait}
#cash-report-settings .report-account-name{min-width:0;overflow-wrap:anywhere;font-weight:600}
#cash-report-settings .report-account-tags{display:flex;gap:8px;font-size:12px;font-weight:400}
#cash-report-settings .report-account-selected{display:none;color:#344bae;font-weight:600}
#cash-report-settings :checked~.report-account-name .report-account-selected{display:inline}
#cash-report-settings .report-account-inactive{color:#59677f}
#cash-report-settings .report-account-number{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#cash-report-settings .report-account-bank{min-width:0;overflow-wrap:anywhere}
#cash-report-settings .report-account-mobile-label{display:none}
#cash-report-settings .report-account-empty{padding:28px 16px;background:#f7f9fd;color:#59677f}
#cash-report-settings .report-account-footnote{margin:16px 0 0;font-size:12px;color:#59677f}
@media(max-width:620px){
  #cash-report-settings .report-account-columns{display:none}
  #cash-report-settings .report-account-row{grid-template-columns:24px minmax(0,1fr) 64px;gap:6px 12px;padding:16px 12px;align-items:start}
  #cash-report-settings .report-account-row input{grid-column:1;grid-row:1/4;margin-top:3px}
  #cash-report-settings .report-account-name{grid-column:2;grid-row:1}
  #cash-report-settings .report-account-bank{grid-column:2;grid-row:2;font-size:13px;color:#59677f}
  #cash-report-settings .report-account-number{grid-column:2;grid-row:3;font-size:13px;color:#59677f}
  #cash-report-settings .report-account-currency{grid-column:3;grid-row:1/4;font-size:13px;white-space:nowrap}
  #cash-report-settings .report-account-mobile-label{display:inline;margin-right:6px;color:#59677f;font-weight:400}
}
@media(max-width:1050px){.report-metrics,.report-costs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.cash-month-report{padding:16px}.report-metrics strong{font-size:20px}.report-costs{gap:16px}.cash-bank-fields .half{grid-column:1/-1}}
.cash-list-heading{margin:0 0 18px;align-items:flex-start}
.cash-list-title{display:flex;align-items:baseline;gap:12px 20px;flex-wrap:wrap;min-width:0;padding-top:10px}
.cash-month-total{font-size:15px;font-weight:600;color:#35456b;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cash-month-total small{font-size:12px;font-weight:400;color:#59677f;margin-left:12px;white-space:nowrap}
.cash-list-heading label{margin-left:auto;color:#59677f}
.cash-list-heading input{width:172px;min-height:42px;color:#35456b;color-scheme:light;cursor:pointer}
.cash-list-heading input:focus-visible{outline:2px solid var(--primary,#4f65e8);outline-offset:3px}
.cash-list-heading input::selection{background:#dce3ff;color:#233252}
.cash-month-summary th,.cash-month-summary td{background:#f4f6ff;border-top:1px solid #dce3f5;padding:16px 20px;font-variant-numeric:tabular-nums;color:#35456b}
.cash-month-summary td{text-align:right;white-space:normal}
.cash-month-table th.cash-amount,.cash-month-table td.cash-amount{min-width:180px;width:180px;text-align:left;padding-inline:24px 32px;font-variant-numeric:tabular-nums}
.cash-month-table tfoot .cash-summary-amount{white-space:normal;overflow-wrap:anywhere}
.cash-month-table tfoot th{text-align:left}
.cash-recipient-section{grid-column:1/-1;min-width:0;padding-top:18px;border-top:1px solid #e2e8f3}
.modal-card:has([data-cash-recipient]){width:min(920px,calc(100vw - 48px));max-width:calc(100vw - 48px);min-width:0}
.modal-card:has([data-cash-recipient]) .modal-body{min-width:0}
.cash-recipient-section[hidden],.cash-recipient-section [hidden]{display:none}
.cash-recipient-section h3{font-size:15px;margin:0 0 14px}
.cash-recipient-help{font-size:12px;line-height:1.7;color:#59677f;margin:12px 0 0}
.freight-history-overflow .analytics-chart-scroll{overflow-x:scroll;scrollbar-width:none;padding-bottom:12px}
.freight-history-overflow .analytics-chart{min-width:calc(var(--freight-months)*114px)}
.freight-history-overflow .analytics-chart-scroll::-webkit-scrollbar{display:none}
.freight-history-overflow .analytics-chart-scroll::-webkit-scrollbar-track{background:#eef2fb;border-radius:6px}
.freight-history-overflow .analytics-chart-scroll::-webkit-scrollbar-thumb{background:#8798be;border-radius:6px;border:2px solid #eef2fb}
.freight-history-scrollbar{display:block;width:100%;height:16px;min-height:16px;margin:10px 0 0;padding:0;border:0;box-shadow:none;appearance:none;background:transparent;cursor:ew-resize;accent-color:#8798be}
.freight-history-scrollbar::-webkit-slider-runnable-track{height:10px;border-radius:6px;background:#eef2fb}
.freight-history-scrollbar::-webkit-slider-thumb{appearance:none;width:72px;height:12px;margin-top:-1px;border:2px solid #eef2fb;border-radius:6px;background:#8798be;cursor:ew-resize}
.freight-history-scrollbar::-moz-range-track{height:10px;border-radius:6px;background:#eef2fb}
.freight-history-scrollbar::-moz-range-thumb{width:72px;height:8px;border:2px solid #eef2fb;border-radius:6px;background:#8798be}
.freight-history-scrollbar:focus-visible{outline:2px solid var(--primary,#5065ed);outline-offset:3px}
.cash-month-summary span{display:inline-block;margin-left:20px;font-size:12px;color:#59677f}
.cash-month-empty{text-align:center;padding:30px;color:#59677f}
.cash-outflow-attachments{grid-column:1/-1;border-top:1px solid #e2e8f3;padding-top:18px;min-width:0}
.cash-outflow-attachments h3{font-size:15px;margin:0 0 12px}
.cash-outflow-attachments input[type=file]{max-width:100%;font-size:14px}
.cash-outflow-attachments .expense-document-files li{overflow-wrap:anywhere}
.cash-outflow-detail .expense-document-value dd{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:780px) and (min-width:621px){
  #cash-report-settings .report-account-columns,#cash-report-settings .report-account-row{grid-template-columns:24px minmax(0,1fr) minmax(80px,.65fr) minmax(120px,.85fr) 42px;gap:10px;padding-inline:10px;font-size:12px}
}
@media(max-width:620px){
  .cash-list-heading{gap:14px;margin-bottom:16px}
  .cash-list-title{width:100%;padding-top:0;gap:8px}
  .cash-list-heading label{margin-left:auto}
  .cash-month-total{font-size:14px;line-height:1.6}
  .cash-month-summary th,.cash-month-summary td{padding:14px 12px}
}

/* Shared page hierarchy and period controls, 2.3.0. */
.module-heading {display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 20px;border-radius:12px;background:var(--primary,#5067ed);color:#fff;font-size:16px;font-weight:700;line-height:24px;}
.page-actions .button.primary {min-height:44px;padding:10px 20px;border-radius:12px;font-size:16px;line-height:24px;}
.topbar-left {flex:1;min-width:0;}
.period-actions {align-items:center;flex-wrap:wrap;gap:16px;}
.period-selector,.report-toolbar label:has(input[type="month"]),.report-section-heading label:has(input[type="month"]),.page-actions label:has(input[type="month"]) {display:inline-flex;align-items:center;gap:12px;width:auto;margin:0;color:#60718e;font-size:14px;font-weight:400;white-space:nowrap;}
.period-selector input[type="month"],.report-toolbar input[type="month"],.report-section-heading input[type="month"],.page-actions input[type="month"] {box-sizing:border-box;width:168px;min-height:44px;margin:0;padding:10px 12px;border:1px solid #dce3f5;border-radius:12px;background:#fff;color:#334466;font:inherit;font-variant-numeric:tabular-nums;}
@media(max-width:600px){.period-actions .right{width:100%;justify-content:flex-start;}.period-selector{flex-wrap:wrap;}.module-heading{max-width:100%;}.page-actions{flex-wrap:wrap;}}
.module-heading,.page-actions .button.primary {box-sizing:border-box;height:44px;padding:8px 20px;}.period-selector input[type="month"] {height:44px;}

/* Enterprise lists share the same inset as their section headings. */
.enterprise-section {--enterprise-inset:24px;}
.enterprise-section>.panel-header,#enterprise-banks .panel-header {padding-inline:var(--enterprise-inset);}
.enterprise-info-panel>.panel-header {padding-inline:24px;}
.enterprise-info-grid {padding-inline:24px;}
.enterprise-section>.table-card th:first-child,.enterprise-section>.table-card td:first-child {padding-left:var(--enterprise-inset);}
.enterprise-section>.notice {margin-inline:var(--enterprise-inset);}
.account-status-row {display:flex;align-items:center;justify-content:space-between;gap:24px;}
.account-status-row>.field {margin:0;}
.password-change-button {min-height:44px;flex-shrink:0;color:#354bc4;border-color:#dce3f5;}
.account-password-panel {min-width:0;padding:20px;border:1px solid #e1e7f5;border-radius:14px;background:#f8faff;}
.account-password-current {display:flex;align-items:flex-end;gap:12px;}
.account-password-current>label {flex:1;min-width:0;display:grid;gap:8px;}
.account-password-current input {width:100%;min-width:0;font-variant-numeric:tabular-nums;}
.account-password-panel p {margin:12px 0;font-size:13px;color:#60718e;}
.account-password-save {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;}
.account-password-save small {color:#60718e;}
.account-password-panel [hidden] {display:none!important;}
@media(max-width:600px){.account-password-current,.account-password-save{align-items:stretch;flex-direction:column;}.account-password-panel{padding:16px;}}
.modal-card:has(#account-password-panel){width:min(920px,calc(100vw - 48px));max-width:calc(100vw - 48px);min-width:0;}.modal-card:has(#account-password-panel) .modal-body{min-width:0;}.modal-card:has(#account-password-panel) h2{overflow-wrap:anywhere;}.modal-card:has(#account-password-panel) .modal-close{flex-shrink:0;}
.account-status-row,.account-password-panel{grid-column:1 / -1;}.account-status-row>.field{min-width:140px;}.account-password-current>.button{flex-shrink:0;white-space:nowrap;}
/* Financial return and reconciliation dialogs, 1.0.0. */
.modal-card:has(:is(#offset-232,#accounts-232,#repair-232,#return-232,[data-payment-direction],[data-finance232="repair-preview"])) {max-width:calc(100vw - 48px);min-width:0;}
.modal-card:has(:is(#offset-232,#accounts-232,#repair-232,#return-232,[data-payment-direction])) .modal-body {min-width:0;}
:is(#offset-232,#accounts-232,#repair-232,#return-232),.form-grid:has([data-payment-direction]) {grid-template-columns:repeat(12,minmax(0,1fr));min-width:0;}
:is(#offset-232,#accounts-232,#repair-232,#return-232) > .wide {grid-column:1 / -1;min-width:0;}
:is(#offset-232,#accounts-232,#repair-232,#return-232) .field,.form-grid:has([data-payment-direction]) .field {min-width:0;}
:is(#offset-232,#accounts-232,#repair-232,#return-232) :is(input,select,textarea),.form-grid:has([data-payment-direction]) :is(input,select,textarea) {max-width:100%;min-width:0;}
#repair-232 .finance232-confirm {display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.7;}
#repair-232 .finance232-confirm input {width:18px;height:18px;min-height:18px;flex-shrink:0;margin:2px 0 0;}
#return-lines-232 .line-table {max-width:100%;}
#return-lines-232 .line-table table {min-width:620px;}
#return-lines-232 .line-table input[type="number"] {width:140px;}
@media(max-width:600px){:is(#offset-232,#accounts-232,#repair-232,#return-232) .field,.form-grid:has([data-payment-direction]) .field {grid-column:1 / -1;}}
