.indent-label {
  padding-left: 0;
  text-indent: 0;
  font-style: italic;
  font-weight: normal;
}

.summary-table th {
  width: 65%;
  vertical-align: middle;
}

.summary-table td {
  width: 35%;
  vertical-align: middle;
}

.summary-table th,
.summary-table td {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

table .btn {
  min-width: 70px;
}

.btn-edit-delete {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  line-height: 1.2;
  min-width: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  /* Set fixed height */
}

/* Reduce space above and below table rows */
.table tr {
  margin-bottom: 0;
  padding-bottom: 0;
}

.table td,
.table th {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  vertical-align: top;
}

/* Reduce spacing above the button row */
.unit-action-row td {
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

/* Remove border between data row and button row */
.unit-row {
  border-bottom: none;
}

.button-row {
  border-top: none !important;
}

.button-row td {
  border-top: none !important;
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
}

/* Also override Bootstrap borders at td level */
.table>tbody>tr.unit-row>td {
  border-bottom: none !important;
}

.table>tbody>tr.button-row>td {
  border-top: none !important;
}

/* Make reference row bold and add subtle spacing */
.reference-row td {
  padding-top: 0.6rem;
  padding-bottom: 0.4rem;
  font-weight: 600;
  background-color: #f8f9fa;
  /* optional */
  border-top: none;
  border-bottom: none;
}

/* Reduce spacing between number and button rows */
.unit-row td {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-top: none;
  border-bottom: 1px solid #dee2e6;
  /* for clarity between entries */
}

.button-row td {
  border-top: none;
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
}