.sw-utable {
  min-width: auto;
  overflow: hidden;
  position: static;
}

.sw-utable__head,
.sw-urow {
  grid-template-columns: minmax(0, 374fr) 150fr 200fr 120fr 140fr 116px;
  padding: 0 18px;
}

.sw-utable__head {
  --bs-border-color: #f0f1f4;
  height: 37px;
  background: #fcfcfd;
}

.sw-utable__head span {
  font-size: 12px;
  font-weight: 500;
  color: var(--sw-text-faint);
}
.sw-urow {
  min-height: 66px;
  border-bottom: 1px solid #f3f4f6;
}

.sw-urow__user {
  gap: 12px;
  min-width: 0;
}

.sw-uav {
  width: 38px;
  height: 38px;
  background: #f1eefe;
  color: var(--sw-violet);
  font-size: 13px;
}

.sw-uav-meta {
  min-width: 0;
}

.sw-uname {
  font-size: 14px;
}

.sw-uemail {
  font-size: 13px;
}
.sw-urow__scope,
.sw-urow__active {
  font-size: 14px;
  color: var(--sw-text-muted);
}

.sw-rpill,
.sw-spill {
  --bs-badge-padding-x: 10px;
  --bs-badge-padding-y: 3px;
  --bs-badge-font-size: 12px;
  --bs-badge-font-weight: 600;
  line-height: var(--bs-body-line-height);
}
.sw-rpill--super-admin,
.sw-rpill--admin {
  background: #ede9fe;
  color: #6e5df8;
}
.sw-rpill--reviewer {
  background: #e7e9f8;
  color: #5b66cf;
}
.sw-rpill--merchant {
  background: #dbeafe;
  color: #2563eb;
}
.sw-rpill--influencer {
  background: #fce3ef;
  color: #c73d80;
}
.sw-rpill--advertiser {
  background: #f8e9cf;
  color: #c7800d;
}
.sw-rpill--customer {
  background: #eff1f6;
  color: #667080;
}

.sw-spill--active {
  background: #dcfce7;
  color: #16a34a;
}
.sw-spill--invited {
  background: #feedd6;
  color: #c7800d;
}
.sw-spill--suspended {
  background: #fce6e6;
  color: #dc2626;
}

.sw-urow__actions {
  gap: 6px;
}


.sw-utable__foot {
  gap: 12px;
  padding: 14px 18px;
}
.sw-utable__count {
  font-size: 13px;
}

/* =========================
  Responsive — table → cards (<1200px)
========================= */
@media (max-width: 1199.98px) {
  .sw-utable {
    --bs-card-border-width: 0;
    --bs-card-bg: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .sw-urow {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "user user user"
      "role scope status"
      "active active actions";
    gap: 14px 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--sw-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  }
  .sw-urow__user {
    grid-area: user;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
  }
  .sw-urow__role {
    grid-area: role;
  }
  .sw-urow__scope {
    grid-area: scope;
  }
  .sw-urow__status {
    grid-area: status;
  }
  .sw-urow__active {
    grid-area: active;
  }
  .sw-urow__actions {
    grid-area: actions;
    justify-self: end;
    align-self: center;
  }

  .sw-urow__role::before,
  .sw-urow__scope::before,
  .sw-urow__status::before,
  .sw-urow__active::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--sw-text-faint);
    margin-bottom: 6px;
  }

  .sw-urow__actions .sw-uact {
    background: #f4f5f7;
  }
  .sw-urow__actions .sw-uact--danger {
    background: #fce6e6;
  }

  .sw-utable__foot {
    background: #fff;
    border: 1px solid var(--sw-border);
    border-radius: 14px;
    margin-top: 0;
  }
}

.sw-vu__head {
  --bs-border-color: #f0f1f4;
  padding: 18px 24px 20px;
}
.sw-vu__id {
  gap: 14px;
}

.sw-vu__avatar {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.sw-vu__id-main {
  flex: 1;
  min-width: 0;
}
.sw-vu__id-line {
  gap: 10px;
}

.sw-vu__name {
  min-width: 0;
  font-size: 20px;
}

.sw-vu__sub {
  font-size: 13px;
  margin: 6px 0 0;
}

.sw-vu__body {
  flex: 1;
  padding: 20px 24px;
  gap: 22px;
}

.sw-vu-sec__label {
  font-size: 13px;
  margin: 0 0 10px;
}

.sw-vu-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sw-vu-field {
  --bs-border-color: #f0f1f4;
  --bs-border-radius: 10px;
  min-width: 0;
  background: #f8f8fb;
  padding: 10px 12px;
}
.sw-vu-field--full {
  grid-column: 1 / -1;
}

.sw-vu-field__label {
  font-size: 12px;
}

.sw-vu-field__val {
  font-size: 14px;
}

.sw-vu__foot {
  --bs-border-color: #f0f1f4;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}

.sw-vu__audit {
  --bs-btn-padding-x: 0px;
  --bs-btn-padding-y: 0px;
  --bs-btn-border-width: 0;
  --bs-btn-border-color: currentColor;
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--sw-violet);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-color: var(--sw-violet);
  --bs-btn-hover-border-color: currentColor;
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-border-color: currentColor;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 600;
}
.sw-vu__audit:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .sw-vu__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .sw-vu__foot .sw-eu__foot-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.sw-sheet--confirm {
  z-index: 1086;
}

.sw-confirm {
  padding: 6px 6px 2px;
}

.sw-confirm__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}
.sw-confirm__icon svg {
  width: 26px;
  height: 26px;
}
.sw-confirm__icon--warn {
  background: #fef3c7;
  color: #d97706;
}

.sw-confirm__title {
  font-size: 18px;
}

.sw-confirm__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 360px;
}

.sw-confirm__actions {
  gap: 10px;
}

.sw-confirm__actions .sw-btn-ghost,
.sw-confirm__actions .sw-btn-warning {
  flex: 1;
}

.sw-btn-warning {
  --bs-btn-padding-x: 16px;
  --bs-btn-padding-y: 0px;
  --bs-btn-border-width: 0;
  --bs-btn-border-color: currentColor;
  --bs-btn-border-radius: 10px;
  --bs-btn-bg: #d97706;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #c2680b;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: currentColor;
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-border-color: currentColor;
  --bs-btn-focus-shadow-rgb: 217, 119, 6;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 600;
  height: 38px;
}
