/* Organisation People Selector Table Styles */

/* Selected row highlight */
.table .person-row.table-success > * {
  --bs-table-color-state: inherit;
  --bs-table-bg-state: #d1e7dd;
  background-color: var(--bs-table-bg-state);
}

/* Compact button styling in table */
.person-row .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}


/* Sticky header for long tables */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Tooltip styling */
.person-row [data-bs-toggle="tooltip"] {
  cursor: help;
}

/* Action column minimum width */
.person-row td:last-child {
  min-width: 150px;
}

/* Table responsive improvements */
@media (max-width: 768px) {
  .person-row .btn-sm {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
  
  .person-row td:last-child {
    min-width: 120px;
  }
}

.form-check-input:checked + .form-check-label {
  color: #198754;
}