#items-table th,
#items-table td {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  font-size: 0.875rem;
}

#costs-table th,
#costs-table td {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  font-size: 0.875rem;
}

#sales-table th,
#sales-table td {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  font-size: 0.875rem;
}

#items-table th:nth-child(2),
#items-table td:nth-child(2) {
  min-width: 260px;
}

#items-table .desc-clamp {
  white-space: normal;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-sticky-actions {
  position: relative;
}

.table-sticky-actions thead .sticky-actions-col {
  position: sticky;
  right: 0;
  z-index: 4;
  background-color: #f8f9fa;
  box-shadow: -4px 0 6px rgba(15, 23, 42, 0.06);
}

.table-sticky-actions tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background-color: #ffffff;
  box-shadow: -4px 0 6px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.table-sticky-actions thead .sticky-actions-col,
.table-sticky-actions tbody td:last-child {
  min-width: 130px;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
}

.modal-sticky-actions {
  position: sticky;
  bottom: -1px;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  border-bottom-left-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.card > .card-header {
  background: var(--bs-tertiary-bg);
}
