/* Read-only account history. Table scrolling stays inside its own region. */
.funding-history-panel{width:100%;min-width:0;max-width:100%;overflow:hidden;box-sizing:border-box;background:#fff;border:1px solid rgba(221,229,215,.75);border-radius:14px}
.funding-history-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid rgba(226,232,222,.75)}
.funding-history-header h2{display:flex;align-items:center;gap:9px;margin:0;color:#33412c;font-size:15px;font-weight:600;line-height:24px}
.funding-history-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:21px;padding:0 6px;border-radius:5px;background:#f0f4ec;color:#78876c;font-size:11px;font-weight:500}
.funding-history-filters{display:flex;flex-direction:column;gap:9px;margin:0;padding:16px 20px;background:#fcfdfb;border-bottom:1px solid rgba(226,232,222,.75)}
.funding-history-filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:14px}
.funding-history-panel .funding-history-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;color:#78846e;font-size:12px;font-weight:400}
.funding-history-field input,.funding-history-field select,.funding-history-page-size select{width:100%;min-width:0;max-width:100%;height:36px;box-sizing:border-box;margin:0;padding:0 10px;border:1px solid rgba(213,223,204,.85);border-radius:6px;background:#fff;color:#48573d;font:inherit;font-size:12px;box-shadow:none}
.funding-history-field input:focus-visible,.funding-history-field select:focus-visible,.funding-history-page-size select:focus-visible,.funding-history-button:focus-visible,.funding-history-date-filter summary:focus-visible{outline:2px solid #739955;outline-offset:2px}
.funding-history-filter-actions{display:flex;gap:8px;align-items:center}
.funding-history-panel .funding-history-button{flex:none;min-height:36px;padding:6px 13px;border-radius:6px;white-space:nowrap;font-size:12px;line-height:20px;box-shadow:none}
.funding-history-panel .funding-history-button:disabled{cursor:default;opacity:.5}
.funding-history-date-filter{min-width:0}
.funding-history-date-filter summary{width:fit-content;max-width:100%;padding:3px 0;color:#738365;font-size:11px;line-height:22px;cursor:pointer;overflow-wrap:anywhere}
.funding-history-date-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:630px;padding-top:9px}
.funding-history-date-row[hidden]{display:none!important}
.funding-history-panel--range .funding-history-filter-row{grid-template-columns:minmax(150px,220px) minmax(130px,200px) minmax(280px,330px) auto;align-items:center;justify-content:start}
.funding-history-range-picker{width:100%;min-width:0}
.funding-history-note{margin:0;padding:10px 20px;border-bottom:1px solid #f0f3ec;color:#8d9982;font-size:11px;line-height:1.7}
.funding-history-feedback{margin:0;padding:10px 20px;border-bottom:1px solid #edf3ef;background:#f7faf8;color:#43826b;font-size:12px;line-height:1.6}
.funding-history-feedback.is-error{background:#fff7f7;color:#b8565f;border-color:#f6e6e7}
.funding-history-table-wrap{width:100%;min-width:0;max-width:100%;overflow:auto;overscroll-behavior-x:contain}
.funding-history-table-wrap:focus-visible{outline:2px solid #739955;outline-offset:-2px}
.funding-history-panel .funding-history-table{width:100%;min-width:760px;margin:0;border-collapse:collapse;table-layout:auto;text-align:left;font-variant-numeric:tabular-nums}
.funding-history-panel--topup .funding-history-table{min-width:860px}
.funding-history-panel .funding-history-table th{padding:12px 16px;border-top:0;border-bottom:1px solid rgba(226,232,222,.8);background:#f8faf6;color:#8b9680;font-size:11px;font-weight:500;white-space:nowrap;letter-spacing:0;text-align:left}
.funding-history-panel .funding-history-table td{padding:16px;border-bottom:1px solid #edf1e8;color:#4d5b42;font-size:12px;line-height:1.65;vertical-align:middle}
.funding-history-panel .funding-history-table th:first-child,.funding-history-panel .funding-history-table td:first-child{padding-left:20px}
.funding-history-panel .funding-history-table th:last-child,.funding-history-panel .funding-history-table td:last-child{padding-right:20px}
.funding-history-panel .funding-history-table tbody tr:last-child td{border-bottom:0}
.funding-history-panel .funding-history-table tbody tr:hover{background:#fcfdfb}
.funding-history-panel .funding-history-table small{display:block;margin-top:3px;color:#93a086;font-size:10px;font-weight:400;line-height:1.65}
.funding-history-type{min-width:145px;white-space:nowrap}
.funding-history-reference{min-width:140px;max-width:250px;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px!important}
.funding-history-panel .funding-history-link{display:inline-block;max-width:100%;min-height:28px;margin:0;padding:3px 0;border:0;border-radius:3px;background:transparent;color:#5c7c43;font:inherit;white-space:normal;overflow-wrap:anywhere;text-align:left}
.funding-history-panel .funding-history-link:hover{background:transparent;color:#42672e;text-decoration:underline;text-underline-offset:3px}
.funding-history-panel .funding-history-link:disabled{background:transparent;color:#8d9982;text-decoration:none}
.funding-history-panel .funding-history-money{min-width:112px;text-align:right;white-space:nowrap}
.funding-history-amount{color:#3f5033;font-size:13px;font-weight:600}
.funding-history-amount.is-credit{color:#398467}.funding-history-amount.is-debit{color:#b65c64}.funding-history-amount.is-neutral{color:#819274}
.funding-history-currency{display:block;color:#93a086;font-size:10px}
.funding-history-time{min-width:108px;text-align:right;white-space:nowrap}
.funding-history-panel--ledger .funding-history-table th:nth-child(3),.funding-history-panel--ledger .funding-history-table th:nth-child(4),.funding-history-panel--ledger .funding-history-table th:nth-child(5),.funding-history-panel--topup .funding-history-table th:nth-child(2),.funding-history-panel--topup .funding-history-table th:nth-child(5){text-align:right}
.funding-history-method{min-width:132px;white-space:nowrap}
.funding-history-payable{display:flex;align-items:baseline;gap:5px;margin-top:3px}
.funding-history-payable .funding-history-amount{color:#859476;font-size:11px;font-weight:400}
.funding-history-payable .funding-history-currency{font-size:10px}
.funding-history-status-cell{min-width:100px;max-width:190px}
.funding-history-status{display:inline-flex;padding:3px 8px;border-radius:5px;white-space:nowrap;font-size:11px;font-weight:500;line-height:18px}
.funding-history-status.is-success{background:#edf7f1;color:#338465}.funding-history-status.is-failure{background:#fff0f1;color:#b75d65}.funding-history-status.is-pending{background:#fbf5e8;color:#9b7a32}.funding-history-status.is-neutral{background:#f1f4ed;color:#7c8d6e}
.funding-history-panel .funding-history-actions,.funding-history-panel--topup .funding-history-table th:last-child{text-align:center;min-width:52px}
.funding-history-panel .funding-history-empty{height:205px;padding:32px 20px!important;text-align:left}
.funding-history-empty>div{position:sticky;left:20px;width:min(480px,calc(100vw - 84px));max-width:100%;text-align:center}
.funding-history-empty strong{display:block;color:#7d8d6e;font-size:14px;font-weight:500}
.funding-history-empty span{display:block;margin-top:8px;color:#96a38a;font-size:12px}
.funding-history-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:13px 20px;border-top:1px solid rgba(226,232,222,.8);color:#8b987e;font-size:11px}
.funding-history-page-summary{flex:1;min-width:120px;font-variant-numeric:tabular-nums}
.funding-history-panel .funding-history-page-size{display:flex;align-items:center;gap:7px;margin:0;color:#8b987e;font-size:11px;font-weight:400}
.funding-history-page-size select{width:74px;height:32px;padding:0 7px;font-size:11px}
.funding-history-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.funding-history-page-label{min-width:32px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.funding-history-panel .funding-history-page-actions .funding-history-button{min-height:32px;padding:4px 10px;font-size:11px}
.funding-history-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:991px){.funding-history-panel .funding-history-button,.funding-history-panel .funding-history-page-actions .funding-history-button,.funding-history-field input,.funding-history-field select,.funding-history-page-size select{min-height:44px}.funding-history-panel .funding-history-link{min-width:44px}.funding-history-date-filter summary{min-height:44px;box-sizing:border-box;padding:11px 0}.funding-history-panel .funding-history-field{font-size:12px}}
@media(max-width:700px){.funding-history-header{padding:14px 16px}.funding-history-filters{padding:14px 16px;gap:3px}.funding-history-filter-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.funding-history-filter-actions{grid-column:1/-1;justify-content:flex-end}.funding-history-date-row{gap:12px;padding-top:3px}.funding-history-note,.funding-history-feedback{padding:10px 16px}.funding-history-pagination{padding:12px 16px;gap:10px}.funding-history-page-actions{margin-left:auto}.funding-history-page-summary{min-width:140px}.funding-history-empty>div{left:16px}.funding-history-field input,.funding-history-field select{font-size:16px}.funding-history-page-size select{font-size:14px}}
@media(max-width:380px){.funding-history-filter-row,.funding-history-date-row{grid-template-columns:minmax(0,1fr)}.funding-history-filter-actions{grid-column:auto}.funding-history-page-summary{flex-basis:100%}.funding-history-page-actions{gap:6px}.funding-history-panel .funding-history-page-actions .funding-history-button{padding-left:8px;padding-right:8px}.funding-history-pagination{column-gap:8px}.funding-history-page-size{gap:4px}.funding-history-page-size select{width:66px}.funding-history-panel .funding-history-page-size>span{display:none}}

/* Asset overview uses the provider's filter -> title -> full ledger structure. */
.tabler-workbench .funding-history-panel--embedded{padding:0;border:1px solid rgba(226,232,228,.72);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(31,45,35,.025)}
.funding-history-panel--embedded .funding-history-filters{padding:24px 24px 12px;background:#fff;border:0}
.funding-history-panel--embedded .funding-history-filter-row{grid-template-columns:minmax(140px,.8fr) minmax(130px,.72fr) minmax(300px,1.65fr) auto;align-items:center;gap:12px}
.funding-history-panel--embedded.funding-history-panel--range .funding-history-filter-row{grid-template-columns:minmax(150px,220px) minmax(130px,200px) minmax(280px,330px) auto}
.funding-history-panel--embedded .funding-history-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.funding-history-panel--embedded .funding-history-field input,.funding-history-panel--embedded .funding-history-field select{height:38px;border-color:#e5e9e6;border-radius:7px;background:#fff;color:#68736c;font-size:12px}
.funding-history-panel--embedded .funding-history-date-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;max-width:none;padding:0}
.funding-history-panel--embedded .funding-history-date-separator{color:#98a29b;font-size:11px}
.funding-history-panel--embedded .funding-history-filter-actions{gap:8px}
.funding-history-panel--embedded .funding-history-filter-actions .funding-history-button{min-height:38px;padding:7px 15px;font-size:12px;font-weight:500;border-radius:7px}
.funding-history-data-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px 20px}
.funding-history-data-title{display:flex;align-items:baseline;gap:12px;min-width:0}
.funding-history-data-heading h2{margin:0;color:#303c34;font-size:16px;font-weight:600;line-height:26px}
.funding-history-data-heading .funding-history-count{display:inline;padding:0;min-width:0;height:auto;border:0;border-radius:0;background:none;color:#919b93;font-size:12px;font-weight:400;line-height:20px;white-space:nowrap}
.funding-history-panel--embedded .funding-history-data-heading>.funding-history-button{min-height:34px;padding:5px 12px;border:1px solid #e9ede9;border-radius:7px;background:#fff;color:#6b786e;font-size:12px;font-weight:400}
.funding-history-panel--embedded .funding-history-table-wrap{width:calc(100% - 48px);max-width:calc(100% - 48px);margin:0 24px;border:1px solid #edf0f2;border-radius:9px;background:#fff}
.funding-history-panel--embedded .funding-history-table{min-width:800px}
.funding-history-panel--embedded .funding-history-table th{padding:14px 20px;border-color:#edf0f2;background:#f8fafc;color:#7e8a83;font-size:11px;font-weight:500}
.funding-history-panel--embedded .funding-history-table td{padding:16px 20px;border-color:#eff2f0;color:#4b5950;font-size:12px}
.funding-history-panel--embedded .funding-history-table tbody tr:hover{background:#fbfcfa}
.funding-history-panel--embedded .funding-history-reference{font-family:inherit;font-size:12px!important}
.funding-history-panel--embedded .funding-history-amount{color:#36483c;font-size:13px;font-weight:500}
.funding-history-panel--embedded .funding-history-amount.is-credit{color:#44836a}.funding-history-panel--embedded .funding-history-amount.is-debit{color:#ba6568}.funding-history-panel--embedded .funding-history-amount.is-neutral{color:#8b968f}
.funding-history-panel--embedded .funding-history-note{margin:0;padding:14px 24px;border:0;color:#96a096;font-size:11px}
.funding-history-panel--embedded .funding-history-pagination{margin:0 24px;padding:17px 0 20px;border-color:#edf0ed;color:#98a198}
.funding-history-panel--embedded .funding-history-page-actions{gap:10px}
.funding-history-panel--embedded .funding-history-page-label{display:grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border-radius:7px;background:#4a7337;color:#fff;font-size:11px}
.funding-history-panel--embedded .funding-history-feedback{margin:0 24px 14px;border:1px solid #e6eee4;border-radius:7px}
.funding-history-panel--embedded .funding-history-feedback.is-error{border-color:#f2e1e3}
@media(max-width:1100px){
  .funding-history-panel--range .funding-history-filter-row,.funding-history-panel--embedded.funding-history-panel--range .funding-history-filter-row{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
  .funding-history-panel--range .funding-history-date-filter--inline{grid-column:1/-1}
  .funding-history-panel--range .funding-history-filter-actions{grid-column:1/-1;justify-content:flex-end}
  .funding-history-panel--embedded .funding-history-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .funding-history-panel--embedded .funding-history-date-filter--inline{grid-column:1/-1}
  .funding-history-panel--embedded .funding-history-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:700px){
  .funding-history-panel--embedded .funding-history-filters{padding:16px 16px 12px}
  .funding-history-panel--embedded .funding-history-field input,.funding-history-panel--embedded .funding-history-field select{height:44px;font-size:16px}
  .funding-history-panel--embedded .funding-history-filter-actions .funding-history-button{min-height:44px}
  .funding-history-data-heading{padding:12px 16px 16px;gap:8px}
  .funding-history-data-title{flex-wrap:wrap;gap:2px 10px}
  .funding-history-data-heading h2{font-size:15px}
  .funding-history-data-heading .funding-history-count{font-size:11px}
  .funding-history-panel--embedded .funding-history-table-wrap{width:calc(100% - 32px);max-width:calc(100% - 32px);margin:0 16px}
  .funding-history-panel--embedded .funding-history-note{padding:12px 16px}
  .funding-history-panel--embedded .funding-history-pagination{margin:0 16px;padding:14px 0 16px;gap:10px}
  .funding-history-panel--embedded .funding-history-feedback{margin:0 16px 12px}
}
@media(max-width:380px){
  .funding-history-panel--range .funding-history-filter-row,.funding-history-panel--embedded.funding-history-panel--range .funding-history-filter-row{grid-template-columns:minmax(0,1fr)}
  .funding-history-panel--embedded .funding-history-filter-row{grid-template-columns:minmax(0,1fr)}
  .funding-history-panel--embedded .funding-history-date-row{grid-template-columns:minmax(0,1fr)}
  .funding-history-panel--embedded .funding-history-date-separator{display:none}
  .funding-history-panel--embedded .funding-history-filter-actions{grid-column:auto}
  .funding-history-panel--embedded .funding-history-page-label{min-width:28px;padding:0 5px}
  .funding-history-panel--embedded .funding-history-page-actions{gap:7px}
}

/* Supplier parity: primary ledger content uses the same readable table scale. */
.funding-history-panel .funding-history-table th {
  padding:14px 16px;
  color:#65717e;
  font-size:12px;
  line-height:19.2px;
  font-weight:500;
}
.funding-history-panel .funding-history-table td {
  padding:16px;
  color:#3e4a42;
  font-size:14px;
  line-height:22.4px;
}
.funding-history-panel .funding-history-table small,
.funding-history-panel .funding-history-reference,
.funding-history-panel .funding-history-currency {
  font-size:12px;
  line-height:19.2px;
}
.funding-history-panel .funding-history-amount { font-size:14px; line-height:22.4px; }
.funding-history-panel .funding-history-button {
  min-height:40px;
  border-radius:8px;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:14px;
}
@media(max-width:991px) {
  .funding-history-panel .funding-history-table th,
  .funding-history-panel .funding-history-table td { padding-left:14px; padding-right:14px; }
  .funding-history-panel .funding-history-button { min-height:44px; }
}
/* Embedded ledger has a more specific legacy block; restate parity there too. */
.funding-history-panel--embedded .funding-history-table th {
  color:#65717e;
  font-size:12px;
  line-height:19.2px;
  font-weight:500;
}
.funding-history-panel--embedded .funding-history-table td {
  color:#3e4a42;
  font-size:14px;
  line-height:22.4px;
}
.funding-history-panel--embedded .funding-history-table small,
.funding-history-panel--embedded .funding-history-reference,
.funding-history-panel--embedded .funding-history-currency {
  font-size:12px !important;
  line-height:19.2px;
}
.funding-history-panel--embedded .funding-history-amount { font-size:14px; line-height:22.4px; }
.funding-history-panel--embedded .funding-history-filter-actions .funding-history-button {
  min-height:40px;
  padding:9px 20px;
  border-radius:8px;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:14px;
}
