/* Members Page Styles - Button Alignment */

/* Desktop/Tablet: Align Export CSV and Add Member buttons to the right */
@media (min-width: 576px) {
  /* Card header - ensure horizontal layout with space between */
  .card-header.d-flex.justify-content-between {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Header action buttons container - push to right */
  .card-header > .d-flex.gap-2 {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    width: auto !important;
    justify-content: flex-end !important;
  }

  /* Ensure buttons don't grow */
  .card-header > .d-flex.gap-2 > a,
  .card-header > .d-flex.gap-2 > button {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile-only: Align buttons to the right */
@media (max-width: 575.98px) {
  /* Header action buttons (Export CSV, Add Member) */
  .card-header > .d-flex.gap-2 {
    justify-content: flex-end !important;
    width: 100% !important;
  }

  /* Search input group - ensure button stays on right */
  .input-group.search-elevated {
    flex-wrap: nowrap;
  }
  .input-group.search-elevated .btn-primary {
    flex-shrink: 0;
  }

  /* Filter action buttons container */
  .row .col-12.col-md-3.advanced-filters {
    justify-content: flex-end !important;
  }

  /* Table action buttons (View, Edit, Delete) */
  .table td:last-child .d-flex.gap-1 {
    justify-content: flex-end !important;
  }
}

