.natural-statement {
  margin-top: 24px;
}

.voucher-list button.voucher-row {
  width: 100%;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  border: 0;
  border-bottom: 1px solid #eee9de;
  background: none;
  text-align: left;
}

.voucher-list button.ledger-voucher-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 68px;
  height: auto;
  margin: 0;
  padding: 13px 12px;
  grid-template-columns: 68px minmax(0, 1fr) minmax(82px, auto) 12px;
  gap: 9px;
  align-items: center;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid #eee9de;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1.25;
}

.voucher-list button.ledger-voucher-row:last-child {
  border-bottom: 0;
}

.ledger-voucher-row .voucher-date,
.ledger-voucher-row .voucher-copy,
.ledger-voucher-row .cash-transaction-value {
  min-width: 0;
  max-width: 100%;
}

.ledger-voucher-row .cash-transaction-value strong,
.ledger-voucher-row .cash-transaction-value small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-voucher-row .chevron {
  width: 12px;
  overflow: hidden;
  text-align: center;
}

.tally-statement-table {
  overflow: hidden;
  border: 1px solid #d9d4c8;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(31, 48, 46, 0.05);
}

.tally-statement-head,
.tally-statement-row,
.tally-statement-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tally-statement-head {
  color: #fff;
  background: var(--deep);
}

.tally-statement-head > span {
  min-width: 0;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.tally-statement-head > span + span,
.tally-statement-row > span + span,
.tally-statement-total > span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.tally-statement-head b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, serif;
  font-size: 12px;
}

.tally-statement-head em {
  flex: none;
  padding: 3px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.tally-statement-row {
  min-height: 34px;
  border-bottom: 1px solid #eee9de;
}

.tally-statement-cell {
  min-width: 0;
  width: 100%;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

button.tally-statement-cell {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

button.tally-statement-cell:active {
  background: #eef4ef;
}

.tally-statement-row > span + span {
  border-left-color: #e4dfd3;
}

.tally-statement-cell b,
.tally-statement-cell strong {
  font-size: 9px;
  line-height: 1.3;
}

.tally-statement-cell b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.tally-statement-cell strong {
  white-space: nowrap;
}

.tally-statement-cell.indent-1 b {
  padding-left: 9px;
  color: #516260;
}

.tally-statement-cell.indent-2 b {
  padding-left: 18px;
  color: #687775;
}

.tally-statement-cell.ledger b {
  color: #465957;
  font-style: italic;
  font-weight: 500;
}

.tally-statement-cell.ledger strong {
  font-weight: 600;
}

.tally-statement-cell.group b,
.tally-statement-cell.group strong,
.tally-statement-cell.subtotal b,
.tally-statement-cell.subtotal strong,
.tally-statement-cell.total b,
.tally-statement-cell.total strong,
.tally-statement-cell.phase_total b,
.tally-statement-cell.phase_total strong {
  font-weight: 800;
}

.tally-statement-cell.subtotal,
.tally-statement-cell.total {
  background: #f3f7f3;
}

.tally-statement-cell.phase_total {
  border-top: 1px solid #9ea9a4;
  border-bottom: 1px solid #9ea9a4;
}

.tally-statement-cell.spacer {
  min-height: 27px;
}

.tally-statement-total {
  background: #e8ede8;
}

.tally-statement-total > span {
  min-width: 0;
  padding: 10px 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}

.tally-statement-total > span + span {
  border-left-color: #cfd8d2;
}

@media (max-width: 390px) {
  .voucher-list button.ledger-voucher-row {
    min-height: 64px;
    padding: 12px 9px;
    grid-template-columns: 60px minmax(0, 1fr) minmax(72px, 88px) 10px;
    gap: 7px;
  }

  .tally-statement-head > span {
    padding: 10px 8px;
  }

  .tally-statement-head b {
    font-size: 10px;
  }

  .tally-statement-cell {
    padding: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
  }

  .tally-statement-cell b,
  .tally-statement-cell strong {
    font-size: 8px;
  }

  .tally-statement-total > span {
    padding: 9px 7px;
    font-size: 9px;
  }
}
