.cash-account-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.cash-account-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 12px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eee9de;
  background: none;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
}

.cash-account-row:last-child { border-bottom: 0; }
.cash-account-copy, .cash-account-value { min-width: 0; }

.cash-account-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #dcebf1;
  color: #24647d;
  font-size: 17px;
  font-weight: 900;
}

.cash-account-copy strong,
.cash-account-copy small,
.cash-account-value strong,
.cash-account-value small,
.cash-month-values strong,
.cash-month-values small,
.cash-transaction-value strong,
.cash-transaction-value small { display: block; }

.cash-account-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.cash-account-copy small, .cash-account-value small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.cash-account-value, .cash-month-values, .cash-transaction-value {
  text-align: right;
  white-space: nowrap;
}

.cash-account-value {
  overflow: hidden;
}

.cash-account-value strong,
.cash-account-value small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cash-account-value strong { font-size: 11px; }
.cash-month-row { grid-template-columns: 42px minmax(0, 1fr) auto 12px; }
.cash-month-values small { margin-bottom: 3px; color: var(--muted); font-size: 8px; }
.cash-month-values b { font-size: 9px; }
.cash-month-values strong { margin-top: 5px; font-size: 10px; }
.cash-transaction-row { grid-template-columns: 66px minmax(0, 1fr) auto; }
.cash-transaction-value strong { font-size: 10px; }
.cash-transaction-value small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.closing-strip {
  margin-top: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: var(--deep);
  color: #fff;
}

.closing-strip span { color: #b7d2d3; font-size: 10px; }
.closing-strip strong { font-family: Georgia, serif; font-size: 18px; }

.pagination-row.four-way {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.pagination-row.four-way button {
  min-width: 0;
  padding: 11px 4px;
  white-space: nowrap;
  font-size: 9px;
}

@media (max-width: 480px) {
  .cash-account-row {
    padding: 13px 12px;
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    grid-template-areas:
      "icon copy chevron"
      "icon value chevron";
    column-gap: 10px;
    row-gap: 5px;
    align-items: center;
  }

  .cash-account-icon {
    grid-area: icon;
    width: 38px;
    height: 38px;
  }

  .cash-account-copy {
    grid-area: copy;
  }

  .cash-account-copy strong {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .cash-account-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cash-account-value {
    grid-area: value;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    white-space: normal;
  }

  .cash-account-value strong,
  .cash-account-value small {
    margin: 0;
    white-space: nowrap;
  }

  .cash-account-value small {
    order: -1;
  }

  .cash-account-row > .chevron {
    grid-area: chevron;
    width: 12px;
    overflow: hidden;
    text-align: center;
  }
}
