/* ==== FINANCIAL TABLE STYLES ==== */

.records-table-wrapper {
  max-height: 500px; /* загальна обгортка — не потрібна, якщо scroll всередині */
  overflow-x: auto;
  overflow-x: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  padding: 8px;
}
.table-scroll-outer {
  max-height: 440px; /* або "10 рядків" — порахуємо нижче */
  overflow-y: auto;
}

/* Таблиця */
.table-records {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  color: #333;
}

.table-records th,
.table-records td {
  padding: 6px 7px;
  white-space: nowrap;
}

.table-records thead th {
  background: #f6f4ff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.6px;
  border-bottom: 2px solid #e0e0e0;
  color: #444;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-records tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.table-records tbody tr:hover {
  background: #faf7ff;
}

.table-records td:nth-child(n+5):not(:last-child) {
  text-align: center;
}
.table-records th:nth-child(n+5):not(:last-child) {
  text-align: center;
}
/* Кнопки */
.table-records .btn-sm {
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.table-records .btn-outline-success {
  color: #4caf50;
  border-color: #c8e6c9;
}
.table-records .btn-outline-success:hover {
  background: #e8f5e9;
  border-color: #81c784;
}
.table-records .btn-outline-danger {
  color: #f44336;
  border-color: #ffcdd2;
}
.table-records .btn-outline-danger:hover {
  background: #ffebee;
  border-color: #e57373;
}
.table-records th:last-child,
.table-records td:last-child {
  text-align: center;
}

.btn-outline-success {
  padding: 6px 8px !important;      /* зменшує ширину кнопки */
  border-radius: 8px !important;    /* робить форму більш квадратною */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 43px;                     /* вирівнює з Add Record */
  width: 43px;                      /* робить її квадратною */
}



