/* Mobile user cards */
.user-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
}

.badge-soft {
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 0.85rem;
}

.badge-approved {
  background: rgba(25, 135, 84, 0.14);
  color: #198754;
}

.badge-pending {
  background: rgba(255, 193, 7, 0.18);
  color: #856404;
}

.badge-canceled {
  background: rgba(220, 53, 69, 0.14);
  color: #dc3545;
}

/* Mobile cards */
.booking-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
}

.booking-card .meta {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.85rem;
}

/* Prevent long emails from forcing width */
.text-break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Premium inline user controls */
.user-inline-form {
  --radius: 999px;
}

.role-pill {
  border-radius: var(--radius);
  padding: 0.35rem 0.8rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-inline-form .form-control {
  border-radius: 999px;
}

.user-inline-form .btn {
  border-radius: 999px;
}

.user-inline-form .btn-outline-secondary {
  color: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 0, 0, 0.15);
}

.user-inline-form .btn-outline-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Premium segmented role control */
.role-segment {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.role-btn {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.32rem 0.75rem;
  color: rgba(0, 0, 0, 0.65);
  background: transparent;
}

/* Soft danger button — same style as Save */
.btn-danger-soft {
  border-radius: 999px;
  background: rgba(220,53,69,0.12);
  color: #dc3545;
  border: 1px solid rgba(220,53,69,0.35);
  font-weight: 500;
}

.btn-danger-soft:hover {
  background: rgba(220,53,69,0.18);
  color: #dc3545;
}



.btn-check:checked + .role-btn {
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.save-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Premium accordion cards */
.user-acc .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.user-acc .accordion-button {
  padding: 14px 14px;
  background: #fff;
}

.user-acc .accordion-button:not(.collapsed) {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: none;
}

.user-acc .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.08);
}

.user-acc .accordion-body {
  background: #fff;
}

/* Accordion user cards */
.user-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.accordion-button {
  background: #fff;
}

.accordion-button:not(.collapsed) {
  background: rgba(0,0,0,0.03);
}

.accordion-button:focus {
  box-shadow: none;
}

/* Role segmented (reuse desktop style) */
.role-segment {
  display: inline-flex;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.role-btn {
  border: 0;
  border-radius: 999px;
  padding: .4rem .9rem;
  background: transparent;
  color: rgba(0,0,0,0.65);
}

.btn-check:checked + .role-btn {
  background: rgba(0,0,0,0.88);
  color: #fff;
}


.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.75);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Remove default Bootstrap arrow */
.accordion-button::after {
  display: none !important;
}

/* Custom chevron */
.chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.55);
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Rotate when open */
.accordion-button:not(.collapsed) .chevron {
  transform: rotate(180deg);
  color: rgba(0,0,0,0.85);
}

.add-user{
  border-radius: 999px;
}

.btn-outline-dark{
  border-radius: 999px;
  font-size: 0.85rem;
}

.btn-dark{
  border-radius: 999px;
  font-size: 0.85rem;
}
/* Fix dropdown being clipped inside rounded table card */
.table-card { 
  overflow: visible !important;
}

.table-card .table-responsive {
  overflow: visible !important;
}


.accordion-flush .accordion-item.user-card{
  border-radius: 14px;
}

.form-label{
  font-size: 14px;
}