.ledger-filter {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  margin-bottom: 18px;
}

.ledger-filter label,
.date-picker label {
  color: #344054;
  display: grid;
  font-size: 14px;
  gap: 7px;
}

.date-picker {
  align-items: end;
  display: flex;
  gap: 10px;
}

.table-scroll {
  overflow-x: auto;
}

.ledger-timeline {
  min-width: 1040px;
}

.ledger-timeline th:nth-child(5),
.ledger-timeline td:nth-child(5) {
  text-align: right;
}

.ledger-timeline td:nth-child(6) {
  min-width: 180px;
  white-space: normal;
}

.ledger-month-divider th {
  background: #f2f4f7;
  border-bottom-color: #d0d5dd;
  border-top: 2px solid #d0d5dd;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  text-align: left;
}

.ledger-timeline tbody .ledger-month-divider:first-child th {
  border-top-width: 1px;
}

.ledger-timeline tr[id] {
  scroll-margin-top: 16px;
}

.ledger-timeline tr:target td {
  background: #fff8db;
}

.ledger-timeline tr:target td:first-child {
  box-shadow: inset 3px 0 #d97706;
}

.balance-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.balance-toolbar form {
  margin: 0;
}

.balance-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.recent-snapshots {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.recent-snapshots span {
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

.recent-snapshots a {
  background: #f2f4f7;
  border-radius: 999px;
  color: #344054;
  font-size: 13px;
  padding: 5px 9px;
  text-decoration: none;
}

.recent-snapshots a:hover,
.recent-snapshots a.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.panel-heading-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.balance-ledger {
  gap: 16px;
}

.balance-ledger .member-group-header h2 {
  font-size: 15px;
  margin: 0;
}

.balance-input {
  height: 40px;
  width: 180px;
}

.edit-panel {
  border-color: #84adff;
}

.confirmation-dialog {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  box-sizing: border-box;
  color: #172033;
  max-width: min(460px, calc(100vw - 32px));
  padding: 24px;
}

.confirmation-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.confirmation-dialog h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.confirmation-dialog p {
  color: #475467;
  line-height: 1.7;
  margin: 0;
}

.confirmation-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .ledger-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ledger-filter {
    grid-template-columns: 1fr;
  }

  .date-picker {
    align-items: stretch;
    width: 100%;
  }

  .date-picker label {
    flex: 1;
  }

  .balance-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .balance-toolbar-actions {
    justify-content: flex-start;
  }
}
