.statement-page,
.statement-home {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.statement-home {
  margin-bottom: 22px;
}
.statement-page .card,
.statement-summary {
  margin: 0;
  padding: 22px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 2px 8px #18315104;
  border-radius: 14px;
  min-width: 0;
}
.statement-page h2,
.statement-summary h2 {
  font-size: 19px;
  letter-spacing: 0.02em;
}
.statement-page h3 {
  font-size: 15px;
  margin: 0;
}
.statement-page .section-heading,
.statement-summary .section-heading {
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.statement-page .section-heading p,
.statement-summary .section-heading p {
  color: #7a8597;
  font-size: 12px;
  margin: 6px 0 0;
}
.statement-page label,
.statement-summary label,
.statement-import-select label {
  font-size: 12px;
  color: #6b7689;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.statement-page select,
.statement-page input,
.statement-summary select,
.statement-import-select select {
  min-width: 0;
  width: 100%;
  height: 36px;
  border: 1px solid #dce3ed;
  border-radius: 7px;
  background: #fff;
  color: #34435a;
  padding: 6px 10px;
}
.statement-page button,
.statement-summary button,
.statement-import-tools button {
  min-height: 34px;
}
.statement-period {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.statement-period > label {
  flex: 0 1 155px;
}
.statement-period > label:has([name='split']) {
  flex-basis: 128px;
  margin-left: auto;
}
.statement-quick {
  display: flex;
  gap: 2px;
  border-radius: 7px;
  background: #f3f5f9;
  padding: 3px;
  align-self: flex-end;
  flex-wrap: wrap;
}
.statement-quick button {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #788398;
  padding: 6px 10px;
  font-size: 12px;
}
.statement-quick button.is-active {
  background: #fff;
  color: #305ea9;
  box-shadow: 0 1px 5px #243e6620;
}
.statement-more {
  margin-top: 14px;
  border: 0;
  background: transparent;
  padding: 0;
}
.statement-more > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
  color: #78551f;
  font-size: 13px;
  padding: 9px 12px;
  background: #fffaf1;
  border: 1px solid #cbb18a;
  border-radius: 7px;
  list-style: none;
}
.statement-more > summary::-webkit-details-marker{display:none}
.statement-more > summary:hover{background:#f5ead9;border-color:#8c632c}
.statement-more > summary:focus-visible{outline:2px solid #8c632c;outline-offset:3px}
.statement-filter-icon{font-size:17px;line-height:1}
.statement-filter-hint{color:#6e6454;font-size:12px}
.statement-filter-toggle{border-left:1px solid #dcc7a9;padding-left:8px;font-size:12px;font-weight:600}
.statement-more[open]>.statement-filter-grid{padding:14px;background:#faf8f4;border:1px solid #e7d9c4;border-radius:8px}
@media(max-width:600px){.statement-filter-hint{display:none}.statement-more>summary{min-height:42px}}
.statement-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 13px 16px;
  margin-top: 12px;
}
.statement-status {
  font-size: 12px;
  color: #7a8597;
  line-height: 1.7;
  margin: 16px 0 0;
}
.statement-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid #edf0f5;
  padding-top: 15px;
  gap: 18px;
}
.statement-totals span,
.statement-home-metrics span {
  display: block;
  color: #7c8798;
  font-size: 12px;
  margin-bottom: 8px;
}
.statement-totals strong {
  font-size: 20px;
  font-weight: 650;
  color: #263a58;
  overflow-wrap: anywhere;
  line-height: 1.5;
  display: block;
}
.statement-totals > div:last-child strong {
  font-size: 14px;
}
.statement-chart {
  height: 320px;
  width: 100%;
  min-width: 0;
}
.statement-chart-card > p {
  font-size: 11px;
  color: #8993a2;
  margin: 7px 0 0;
}
.statement-ranking button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto 60px;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #eff2f6;
  padding: 11px 0;
  color: #536077;
  font-size: 12px;
  box-shadow: none;
}
.statement-ranking button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.statement-ranking button > strong {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.statement-ranking button > small {
  position: relative;
  font-size: 10px;
  color: #8a95a6;
  padding-top: 9px;
  text-align: right;
}
.statement-ranking i {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  border-radius: 3px;
  background: #4972c6;
}
.statement-ranking:nth-child(2) i {
  background: #3d9b8a;
}
.statement-ranking:nth-child(3) i {
  background: #d18b50;
}
.statement-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.statement-ranking > p {
  font-size: 11px;
  margin: 14px 0 0;
}
.statement-table {
  max-height: 540px;
  overflow: auto;
  max-width: 100%;
  border: 0;
  scrollbar-gutter: stable;
}
.statement-table table {
  min-width: 740px;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.statement-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #7f8999;
  font-weight: 500;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #e7edf4;
}
.statement-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f5;
  max-width: 260px;
  overflow-wrap: anywhere;
  color: #536077;
}
.statement-table tr:hover td {
  background: #f8fafd;
}
.statement-table .statement-number {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.statement-table td strong {
  color: #263a58;
  font-weight: 650;
}
.statement-table .text-button[disabled] {
  opacity: 1;
  color: #536077;
  cursor: default;
  border: 0;
  background: transparent;
}
.statement-coverage {
  font-size: 11px;
  color: #b17a30;
  white-space: nowrap;
}
.statement-coverage.complete {
  color: #408b75;
}
.statement-detail h3 small {
  font-size: 12px;
  color: #9aa3b2;
  margin-left: 10px;
  font-weight: 400;
}
.statement-page-size {
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
  white-space: nowrap;
}
.statement-page-size select {
  width: 64px !important;
}
.statement-pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 14px;
  font-size: 12px;
  color: #7c8798;
  flex-wrap: wrap;
}
.statement-reconcile {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f5;
  font-size: 12px;
  line-height: 1.7;
  color: #7b8798;
}
.statement-reconcile summary {
  cursor: pointer;
}
.statement-ok {
  color: #33866e;
}
.statement-reconcile p {
  overflow-wrap: anywhere;
}
.statement-home-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}
.statement-home-metrics > div {
  padding: 17px 18px;
  border-left: 1px solid #e9edf4;
  min-width: 0;
}
.statement-home-metrics > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.statement-home-metrics strong {
  font-size: 23px;
  color: #293c58;
  font-weight: 650;
  display: block;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.statement-home-metrics small {
  display: block;
  font-size: 10px;
  color: #959eac;
  line-height: 1.65;
  margin-top: 9px;
}
.statement-summary > [data-home-note] {
  font-size: 11px;
  color: #939eae;
  margin: 8px 0 0;
}
.statement-summary .manage-actions {
  align-items: center;
}
.statement-summary .manage-actions label {
  flex-direction: row;
  align-items: center;
}
.statement-summary .manage-actions select {
  width: 80px;
}
.statement-home-funds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.statement-home-funds:not(:has(> :not([hidden]))) {
  display: none;
}
.statement-home-funds > .stat {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e5ebf4;
  border-radius: 10px;
  background: #f8faff;
  box-shadow: none;
}
.statement-home-funds > .stat > span {
  font-size: 12px;
  color: #71809a;
}
.statement-home-funds .number {
  display: block;
  margin: 8px 0 4px;
  font-size: 24px;
  color: #293c58;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.statement-home-funds .number small {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
}
.statement-home-funds .text-button {
  font-size: 12px;
  padding: 0;
  text-align: left;
}
.home-balance-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}
.statement-home-funds .recharge-subtotals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.statement-home-funds .recharge-subtotals > span {
  justify-content: flex-start;
  gap: 4px 8px;
}
.statement-home-funds .error-text:empty {
  display: none;
}

.statement-home > .home-shared-accounts.card {
  min-width: 0;
  padding: 14px 18px;
}
.home-shared-accounts.card > .section-heading {
  margin-bottom: 8px;
}
.home-shared-accounts > .error-text:empty {
  display: none;
}
.home-shared-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.home-shared-name { width: 14%; }
.home-shared-members { width: 28%; }
.home-shared-recharge { width: 13%; }
.home-shared-value { width: 11.5%; }
.home-shared-remaining { width: 14%; }
.home-shared-action { width: 8%; }
.home-shared-accounts .home-shared-table th,
.home-shared-accounts .home-shared-table td {
  padding: 9px 10px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.home-shared-table thead th {
  background: #eef2f9;
  color: #354560;
  font-weight: 600;
}
.home-shared-table thead th:first-child { border-radius: 7px 0 0 7px; }
.home-shared-table thead th:last-child { border-radius: 0 7px 7px 0; }
.home-shared-table tbody th,
.home-shared-table tbody td { border-bottom: 1px solid #e4eaf4; }
.home-shared-table tbody tr:last-child > * { border-bottom: 0; }
.home-shared-table tbody th small { display: block; margin-top: 3px; color: #586780; font-weight: 400; }
.home-shared-accounts .home-shared-table td.home-shared-money {
  position: relative;
  padding-inline: 4px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.home-shared-accounts .home-shared-table td.has-operator { padding-inline-end: 25px; }
.home-shared-accounts .home-shared-table td.has-exchange-arrow { padding-inline-end: 44px; }
.home-shared-money-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 78px;
  padding: 6px 8px;
  border: 1px solid #dfe7f4;
  border-radius: 7px;
  background: #f1f5fb;
}
.home-shared-money-card.is-remaining { background: #eaf0fa; }
.home-shared-money-card strong { color: #13264b; font-size: clamp(14px, 1.12vw, 18px); line-height: 1.25; }
.home-shared-money-card small { margin: 0; color: #546780; font-size: 11px; line-height: 1.2; }
.home-shared-money-label,
.home-shared-mobile-fold { display: none; }
.home-shared-money-operator {
  position: absolute;
  inset-inline-end: 2px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  width: 21px;
  color: #13264b;
  line-height: 1.15;
}
.home-shared-money-operator b { font-size: 19px; }
.has-exchange-arrow .home-shared-money-operator { width: 40px; }
.home-shared-money-operator small { margin: 0; font-size: 10px; font-weight: 700; text-align: center; white-space: nowrap; color: #984511; }
.home-shared-operation button { white-space: nowrap; }
.home-shared-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.home-shared-keys li {
  min-width: 0;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5fb;
  color: #304563;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-shared-table .home-shared-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-shared-table .home-shared-keys li { font-size: 13px; }
.home-shared-account-dialog { width: min(920px, calc(100vw - 28px)); }
.home-shared-account-dialog [data-account-history] { margin-top: 14px; }
.home-shared-detail-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.home-shared-detail-values div { padding: 8px 10px; border-radius: 7px; background: #f1f5fb; }
.home-shared-detail-values dt { color: #586780; font-size: 12px; }
.home-shared-detail-values dd { margin: 3px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .statement-home > .home-shared-accounts.card { padding: 12px; }
  .home-shared-table,
  .home-shared-table tbody { display: block; }
  .home-shared-table colgroup { display: none; }
  .home-shared-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-shared-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid #e4eaf4;
    border-radius: 8px;
  }
  .home-shared-accounts .home-shared-table tbody tr > * { min-width: 0; padding: 0; border: 0; }
  .home-shared-table tbody th,
  .home-shared-table td:nth-child(2),
  .home-shared-operation { grid-column: 1 / -1; }
  .home-shared-table tbody th small { display: inline; margin: 0 0 0 7px; }
  .home-shared-accounts .home-shared-table td.home-shared-money { padding: 0; }
  .home-shared-money-label {
    display: inline;
    color: #586780;
    font-size: 12px;
    font-weight: 400;
  }
  .home-shared-mobile-fold { display: inline; }
  .home-shared-money-operator { display: none; }
  .home-shared-operation { text-align: right; }
}
@media (max-width: 500px) {
  .home-shared-table .home-shared-keys li { padding-inline: 5px; font-size: 12px; }
}
.statement-import-tools {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6ebf2;
}
.statement-import-select {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.statement-import-select label {
  min-width: 220px;
  max-width: 620px;
  flex: 1;
}
.statement-block {
  display: block;
  max-width: 350px;
  overflow-wrap: anywhere;
  color: #8892a1;
  margin-top: 4px;
}
.statement-import-tools details {
  font-size: 12px;
  margin-top: 12px;
}
.statement-import-tools summary {
  cursor: pointer;
}
.statement-drop {
  border: 1px dashed #aebed5;
  border-radius: 10px;
  background: #f7f9fd;
  color: #6880a6;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
  font-size: 13px;
}
.statement-drop.is-dragging {
  background: #e9f1ff;
  border-color: #4972c6;
}
.statement-drop:focus-visible {
  outline: 2px solid #4972c6;
}
.statement-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 15px 60px #1a2c4340;
}
.statement-dialog::backdrop {
  background: #18294260;
}
.statement-dialog label {
  display: grid;
  gap: 8px;
}
.statement-dialog textarea {
  width: 100%;
  min-height: 90px;
}
.statement-dialog .manage-actions {
  margin-top: 18px;
}
@media (max-width: 1200px) {
  .statement-home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .statement-home-metrics > div:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }
  .statement-rankings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .statement-rankings > .card:last-child {
    grid-column: 1/-1;
  }
  .statement-home-metrics strong {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  .statement-home-funds {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .statement-home-funds > .stat {
    padding: 12px 14px;
  }
  .statement-home-funds .text-button {
    min-height: 44px;
  }
  .statement-page .card,
  .statement-summary {
    padding: 16px;
    border-radius: 11px;
  }
  .statement-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .statement-period > label {
    flex: 1 1 125px;
  }
  .statement-period > label:has([name='split']) {
    margin-left: 0;
    flex: 1 1 130px;
  }
  .statement-quick {
    flex-basis: 100%;
    order: 4;
  }
  .statement-rankings {
    grid-template-columns: 1fr;
  }
  .statement-rankings > .card:last-child {
    grid-column: auto;
  }
  .statement-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .statement-totals strong {
    font-size: 18px;
  }
  .statement-home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .statement-home-metrics > div {
    padding: 13px;
  }
  .statement-home-metrics > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .statement-home-metrics > div:nth-child(4) {
    border-left: 1px solid #e9edf4;
    padding-left: 13px;
  }
  .statement-home-metrics strong {
    font-size: 21px;
  }
  .statement-page .section-heading,
  .statement-summary .section-heading {
    flex-wrap: wrap;
  }
  .statement-chart {
    height: 300px;
  }
  .statement-import-select {
    flex-wrap: wrap;
  }
  .statement-import-select label {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }
  .statement-pagination {
    justify-content: space-between;
  }
  .statement-pagination span {
    order: 3;
    flex-basis: 100%;
    text-align: center;
  }
  .statement-summary .manage-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

.statement-home-data > summary {
  font-size: 12px;
  color: #75869c;
  cursor: pointer;
  padding: 2px 2px 10px;
}

.statement-page label,
.statement-summary label {
  margin-bottom: 0;
}
.statement-page h2,
.statement-summary h2 {
  margin: 0;
  line-height: 1.4;
}
.statement-page .section-heading p,
.statement-summary .section-heading p {
  line-height: 1.5;
}
.statement-page .section-heading,
.statement-summary .section-heading {
  margin-bottom: 14px;
}
.statement-filter-grid {
  gap: 10px 16px;
}
.statement-page .statement-period label {
  margin-bottom: 0;
}
.statement-home-metrics strong {
  white-space: nowrap;
  font-size: 22px;
}
.statement-summary .manage-actions label {
  white-space: nowrap;
}
.statement-summary .manage-actions {
  flex-wrap: wrap;
}

.statement-page[hidden],
.statement-home[hidden] {
  display: none !important;
}
html:has([data-view='billing-daily']:not([hidden])),
html:has([data-view='billing-monthly']:not([hidden])),
html:has([data-view='desk']:not([hidden]) .statement-home:not([hidden])) {
  overflow: hidden;
}

/* Model totals share the same colors as the stacked consumption chart. */
.statement-model-totals{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}.statement-model-totals:empty{display:none}.statement-model-totals>div{display:grid;grid-template-columns:10px auto auto;align-items:center;gap:3px 6px;padding:5px 0;font-size:12px;min-width:0}.statement-model-dot{width:9px;height:9px;border-radius:50%}.statement-model-totals strong{font-size:12px;font-variant-numeric:tabular-nums}.statement-model-totals small{grid-column:2/-1;color:#758198}.statement-summary .statement-more>summary{margin-top:8px}.statement-summary .statement-more[open]{margin-bottom:8px}

.xy-site-shell .statement-period>.manage-actions{margin:0;align-self:flex-end;gap:8px}

.statement-view-tabs{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 2px}.statement-view-tabs button{font-size:14px;padding:9px 16px}.statement-view-tabs button[aria-pressed=true]{background:#8c632c;color:#fff;border-color:#8c632c}.statement-analysis-host[hidden],.statement-page [data-statement-panel][hidden]{display:none!important}
