/* =========================
  Page header
========================= */
.sw-uhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sw-uhead__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--sw-text);
  margin: 0;
}
.sw-uhead__sub {
  font-size: 14px;
  color: var(--sw-text-muted);
  margin: 6px 0 0;
}
.sw-uhead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sw-export,
.sw-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: baseline;
}

.sw-btn-outline {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--sw-border);
  --bs-btn-color: var(--sw-text);
  --bs-btn-hover-bg: #f7f7f9;
  --bs-btn-hover-border-color: var(--sw-border);
  --bs-btn-hover-color: var(--sw-text);
  --bs-btn-active-bg: #f7f7f9;
  --bs-btn-active-border-color: var(--sw-border);
  --bs-btn-active-color: var(--sw-text);
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
}

.sw-export svg {
  width: 16px;
  height: 16px;
  color: var(--sw-text-muted);
}

.sw-create {
  --bs-btn-hover-border-color: var(--sw-violet);
  --bs-btn-active-border-color: var(--sw-violet);
}
.sw-create svg {
  width: 16px;
  height: 16px;
}

.sw-uact {
  --bs-btn-padding-x: 0px;
  --bs-btn-padding-y: 0px;
  --bs-btn-border-width: 0;
  --bs-btn-border-color: currentColor;
  --bs-btn-border-radius: 8px;
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--sw-text-muted);
  --bs-btn-hover-bg: #f3f4f6;
  --bs-btn-hover-color: var(--bs-btn-color);
  --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;
  width: 30px;
  height: 30px;
}
.sw-uact svg {
  width: 15px;
  height: 15px;
}

.sw-uact--danger {
  --bs-btn-color: #dc2626;
  --bs-btn-bg: #fce6e6;
  --bs-btn-hover-bg: #fbd5d5;
}

.sw-utoolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.sw-usearch {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  color: var(--sw-text-faint);
}
.sw-usearch svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sw-usearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--sw-text);
}

.sw-usearch .form-control {
  padding: 1px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sw-ufilters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sw-text);
  cursor: pointer;
  white-space: nowrap;
}
.sw-ufilters svg {
  width: 16px;
  height: 16px;
  color: var(--sw-text-muted);
}
.sw-ufilters.is-active {
  background: #f1eefe;
  border-color: #ddd6fe;
  color: var(--sw-violet);
}
.sw-ufilters.is-active svg {
  color: var(--sw-violet);
}

.sw-dd {
  position: relative;
}

.sw-dd__toggle {
  --bs-btn-padding-y: 0px;
  --bs-btn-padding-x: 12px;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 500;
  --bs-btn-color: var(--sw-text);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--sw-border);
  --bs-btn-border-radius: 10px;
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-hover-bg: var(--bs-btn-bg);
  --bs-btn-hover-border-color: var(--bs-btn-border-color);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 36px;
  white-space: nowrap;
  vertical-align: baseline;
}
.sw-dd--inline .sw-dd__toggle {
  width: auto;
}
.sw-dd--field .sw-dd__toggle {
  --bs-btn-font-weight: 400;
  height: 44px;
}
.sw-dd__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-dd__label--ph {
  color: var(--sw-text-faint);
}
.sw-dd__chev {
  width: 15px;
  height: 15px;
  color: var(--sw-text-muted);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.sw-dd.is-open .sw-dd__chev {
  transform: rotate(180deg);
}

.sw-dd.is-open .sw-dd__toggle {
  --bs-btn-border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-dd__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 16, 32, 0.16);
  padding: 6px;
  z-index: 60;
  max-height: 280px;
  overflow: auto;
  display: none;
}
.sw-dd.is-open .sw-dd__menu {
  display: block;
}

.sw-dd--inline .sw-dd__menu {
  left: auto;
  right: 0;
}
.sw-dd--field .sw-dd__menu {
  width: 100%;
  max-width: none;
}
.sw-dd__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--sw-text);
  cursor: pointer;
  text-align: left;
}
.sw-dd__opt:hover {
  background: #f5f4fe;
}
.sw-dd__opt.is-selected {
  color: var(--sw-violet);
  font-weight: 600;
  background: #f5f4fe;
}
.sw-dd__check {
  width: 16px;
  height: 16px;
  color: var(--sw-violet);
  flex-shrink: 0;
  opacity: 0;
}
.sw-dd__opt.is-selected .sw-dd__check {
  opacity: 1;
}

.sw-dd__opt > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-dd__meta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--sw-text-faint);
}
.sw-dd__opt.is-selected .sw-dd__meta {
  color: var(--sw-text-muted);
}

.sw-dd__menu--portal {
  position: fixed;
  z-index: 1990;
  box-shadow: 0 18px 48px rgba(15, 16, 32, 0.22);
}

.sw-dd--tool .sw-dd__toggle {
  width: auto;
  font-weight: 500;
}
.sw-dd--tool .sw-dd__menu {
  left: auto;
  right: 0;
}

.sw-dd--framed .sw-dd__toggle {
  --bs-btn-color: #474f5c;
  --bs-btn-border-color: #e5e8ec;
  padding: 0 12px 0 14px;
}

.sw-fgroup__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sw-text-muted);
  margin-bottom: 10px;
}
.sw-sheet__clear {
  border: 0;
  background: transparent;
  color: var(--sw-violet);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.sw-sheet__panel {
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 10px 20px 24px;
  max-height: 88vh;
  overflow: auto;
}
.sw-sheet__grip {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #e2e4ea;
  margin: 0 auto 14px;
}
.sw-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sw-sheet__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--sw-text);
  margin: 0;
}
.sw-sheet__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sw-sheet__foot {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.sw-sheet__foot .sw-btn-ghost,
.sw-sheet__foot .sw-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .sw-sheet__panel {
    border-radius: 20px;
    padding: 24px;
  }
  .sw-sheet__grip {
    display: none;
  }
}

.sw-modal {
  border: 0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(15, 16, 32, 0.24);
}
.sw-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.sw-modal__icon svg {
  width: 24px;
  height: 24px;
}
.sw-modal__icon--danger {
  background: #fce6e6;
  color: #dc2626;
}
.sw-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sw-text);
  margin: 0 0 8px;
}
.sw-modal__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--sw-text-muted);
  margin: 0 0 16px;
}
.sw-modal__text b {
  color: var(--sw-text);
}
.sw-modal__input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--sw-text);
}
.sw-modal__input:focus {
  outline: 0;
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-modal__error {
  font-size: 13px;
  color: #dc2626;
  margin: 8px 0 0;
}
.sw-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.sw-btn-ghost {
  --bs-btn-padding-x: 16px;
  --bs-btn-padding-y: 0px;
  --bs-btn-border-width: 1px;
  --bs-btn-border-color: var(--sw-border);
  --bs-btn-border-radius: 10px;
  --bs-btn-bg: #fff;
  --bs-btn-color: var(--sw-text);
  --bs-btn-hover-bg: #f7f7f9;
  --bs-btn-hover-color: var(--sw-text);
  --bs-btn-hover-border-color: var(--sw-border);
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-border-color: var(--sw-border);
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-color: var(--sw-text);
  --bs-btn-disabled-border-color: var(--sw-border);
  --bs-btn-disabled-opacity: 1;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 600;
  height: 40px;
  vertical-align: baseline;
}
.sw-btn-danger {
  --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: #dc2626;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #b91c1c;
  --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-disabled-bg: #dc2626;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-border-color: currentColor;
  --bs-btn-disabled-opacity: 0.45;
  --bs-btn-focus-shadow-rgb: 220, 38, 38;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 600;
  height: 40px;
  vertical-align: baseline;
}
.sw-btn-primary {
  --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: var(--sw-violet);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--sw-violet-600);
  --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-disabled-bg: var(--sw-violet);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-border-color: currentColor;
  --bs-btn-disabled-opacity: 1;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 600;
  height: 40px;
  vertical-align: baseline;
}
.sw-modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--sw-text-muted);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.sw-modal__close:hover {
  background: #f3f4f6;
}
.sw-modal__close svg {
  width: 18px;
  height: 18px;
}
.sw-field {
  display: flex;
  flex-direction: column;
}
.sw-field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sw-text);
  margin-bottom: 7px;
}
.sw-field__input {
  height: 44px;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--sw-text);
  background: #fff;
}
select.sw-field__input {
  cursor: pointer;
}
.sw-field__input:focus {
  outline: 0;
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-seg {
  display: flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.sw-seg__btn {
  flex: 1;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-text-muted);
  cursor: pointer;
  transition: none;
}

.sw-seg__btn.is-active,
.sw-seg__btn.active {
  background: #fff;
  color: var(--sw-violet);
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.08);
}

.sw-cu-seg-wrap {
  padding: 14px 24px;
  border-bottom: 1px solid #f0f1f4;
  flex-shrink: 0;
}
.sw-cu-seg-wrap .sw-seg {
  width: 100%;
}

#createUserModal .sw-seg__btn {
  height: 40px;
  font-size: 14px;
  color: var(--sw-text-muted);
}
#createUserModal .sw-seg__btn.is-active,
#createUserModal .sw-seg__btn.active {
  color: var(--sw-text);
}

#createUserModal .sw-cu-tabs,
#createUserModal .tab-pane.active {
  display: contents;
}
#createUserModal .tab-pane > .sw-eu__body {
  gap: 16px;
}

.sw-cu-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1.5px dashed #d7dae1;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.sw-cu-drop:hover,
.sw-cu-drop.is-drag {
  border-color: var(--sw-violet);
  background: #f8f7fe;
}
.sw-cu-drop__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #f1eefe;
  color: var(--sw-violet);
  margin-bottom: 2px;
}
.sw-cu-drop__ic svg {
  width: 24px;
  height: 24px;
}
.sw-cu-drop__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sw-text);
  margin: 0;
}
.sw-cu-drop__hint {
  font-size: 13px;
  color: var(--sw-text-muted);
  margin: 0;
}
.sw-cu-drop__btn {
  margin-top: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--sw-border);
  background: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sw-text);
  cursor: pointer;
}
.sw-cu-drop__btn:hover {
  background: #f7f7f9;
}
.sw-cu-drop__file {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-violet);
}

.sw-cu-template {
  text-decoration: none;
  cursor: pointer;
}
.sw-cu-template:hover {
  background: #ece8fe;
}
.sw-cu-template .sw-eu-perm__title {
  text-decoration: underline;
}

.sw-cu-req {
  font-size: 13px;
  color: var(--sw-text-muted);
  margin: 0;
}

.sw-sheet--lg .sw-sheet__panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sw-sheet--lg .sw-sheet__grip {
  margin: 10px auto 0;
}
@media (min-width: 768px) {
  .sw-sheet--lg .sw-sheet__panel {
    max-height: 90vh;
  }
}
@media (max-width: 767.98px) {
  .sw-sheet--lg .sw-sheet__panel {
    max-height: 92vh;
  }
}

/* Header */
.sw-eu__head {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f1f4;
  flex-shrink: 0;
}
.sw-eu__head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sw-eu__crumb {
  font-size: 13px;
  color: var(--sw-text-muted);
}
.sw-eu__crumb-home {
  color: var(--sw-violet);
  text-decoration: none;
  font-weight: 500;
}
.sw-eu__id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sw-eu__avatar {
  width: 56px;
  height: 56px;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.sw-eu__avatar.has-photo {
  color: transparent;
}
.sw-eu__id-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sw-eu__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--sw-text);
}
.sw-eu__change {
  border: 0;
  background: transparent;
  color: var(--sw-violet);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-top: 5px;
}
.sw-spill__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  margin-right: 6px;
  display: inline-block;
}

/* Body */
.sw-eu__body {
  flex: 1;
  overflow: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sw-eu__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sw-eu__row > * {
  min-width: 0;
}
.sw-req {
  color: #dc2626;
}
.sw-eu__hint {
  font-size: 12px;
  color: var(--sw-text-muted);
  margin: 8px 0 0;
}
.sw-eu__body .sw-field__input,
.sw-eu__body .sw-dd--field .sw-dd__toggle,
.sw-eu-input {
  height: 40px;
}

/* Icon input (email / phone / password) */
.sw-eu-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
}
.sw-eu-input:focus-within {
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-eu-input > svg {
  width: 16px;
  height: 16px;
  color: var(--sw-text-muted);
  flex-shrink: 0;
}
.sw-eu-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--sw-text);
}

.sw-eu-input--auto {
  background: #f3f4f6;
}
.sw-eu-input--auto input {
  color: var(--sw-text);
  cursor: default;
}

.sw-eu-field__input {
  height: 40px;
  padding: 0 14px 0 40px;
  --bs-border-radius: 10px;
  font-size: 14px;
}
.sw-eu-field__input:focus {
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-eu-field__ic {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--sw-text-muted);
  pointer-events: none;
}
.sw-eu-field--eye .sw-eu-field__input {
  padding-right: 41px;
}
.sw-eu-field__eye {
  position: absolute;
  right: 13px;
  top: 11.5px;
  display: inline-flex;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sw-text-muted);
  cursor: pointer;
}
.sw-eu-field__eye svg {
  width: 17px;
  height: 17px;
}

.sw-eu-field__input::placeholder,
.sw-eu__body .sw-field__input.form-control::placeholder,
.sw-modal__input.form-control::placeholder,
.sw-usearch .form-control::placeholder {
  color: #757575;
  opacity: 1;
}

.sw-eu-grid {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  column-gap: 20px;
  row-gap: 20px;
}
.sw-eu-grid > * {
  min-width: 0;
}
@media (max-width: 767.98px) {
  .sw-eu-grid {
    column-gap: 14px;
    row-gap: 14px;
  }
}

.sw-dd__lead {
  width: 16px;
  height: 16px;
  color: var(--sw-text-muted);
  flex-shrink: 0;
}
.sw-dd--lead .sw-dd__toggle {
  justify-content: flex-start;
  gap: 8px;
}
.sw-dd--lead .sw-dd__label {
  flex: 1;
  text-align: left;
}

/* Permissions info box */
.sw-eu-perm {
  display: flex;
  gap: 12px;
  background: #f3f1fe;
  border-radius: 12px;
  padding: 14px 16px;
}
.sw-eu-perm > svg {
  width: 17px;
  height: 17px;
  color: var(--sw-violet);
  flex-shrink: 0;
  margin-top: 1px;
}
.sw-eu-perm__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sw-violet);
  margin: 0 0 2px;
}
.sw-eu-perm__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--sw-text-muted);
  margin: 0;
}

.sw-eu-editform {
  display: contents;
}

.sw-eu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  padding: 13px 16px;
}
.sw-eu-toggle__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sw-text);
  margin: 0 0 2px;
}
.sw-eu-toggle__text {
  font-size: 13px;
  color: var(--sw-text-muted);
  margin: 0;
}

.form-switch .sw-switch-input {
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background-color: #d6d3e8;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3e%3ccircle cx='13' cy='13' r='10' fill='%23fff' filter='drop-shadow(0 1px 1px rgba(15,16,32,0.25))'/%3e%3c/svg%3e");
  background-size: 26px 26px;
  background-position: left center;
  cursor: pointer;
}
.form-switch .sw-switch-input:checked {
  background-color: var(--sw-violet);
  background-position: right center;
}
.form-switch .sw-switch-input:focus {
  border: 0;
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.form-switch .sw-switch-input--green:checked {
  background-color: #16a34a;
}

/* Footer */
.sw-eu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #f0f1f4;
  flex-shrink: 0;
}
.sw-eu__foot-right {
  display: flex;
  gap: 10px;
}
.sw-btn-danger-ghost {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #f1d3d3;
  background: #fff;
  color: #dc2626;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sw-btn-danger-ghost:hover {
  background: #fef2f2;
}

.sw-btn-danger-ghost svg {
  width: 16px;
  height: 16px;
}

.sw-btn-warning-ghost {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #efd9b8;
  background: #fff;
  color: #b45309;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sw-btn-warning-ghost:hover {
  background: #fff8ee;
}
.sw-btn-warning-ghost svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 767.98px) {
  .sw-eu__row {
    gap: 14px;
  }
  .sw-eu__row--stack {
    grid-template-columns: 1fr;
  }
  .sw-eu__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .sw-eu__foot .sw-btn-danger-ghost,
  .sw-eu__foot .sw-btn-warning-ghost {
    width: 100%;
  }
  .sw-eu__foot-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.sw-cu__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sw-cu__titles {
  min-width: 0;
}
.sw-cu__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--sw-text);
  margin: 0;
}
.sw-cu__sub {
  font-size: 13px;
  color: var(--sw-text-muted);
  margin: 4px 0 0;
}
.sw-cu__foot {
  justify-content: flex-end;
}

.sw-dd__auto {
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-violet);
  display: none;
}
.sw-dd--auto .sw-dd__auto {
  display: inline;
}
.sw-dd--auto .sw-dd__chev {
  display: none;
}
.sw-dd--auto .sw-dd__toggle {
  background: #f7f7f9;
  pointer-events: none;
}

.sw-dd--locked .sw-dd__toggle {
  background: #f7f7f9;
  pointer-events: none;
}
.sw-dd--locked .sw-dd__chev {
  display: none;
}

.sw-pager {
  display: flex;
  gap: 8px;
}
.sw-pager__btn {
  height: 29px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sw-text);
  cursor: pointer;
}
.sw-pager__btn:hover:not(:disabled) {
  background: #f7f7f9;
}
.sw-pager__btn:disabled {
  color: var(--sw-text-faint);
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .sw-usearch {
    flex: 1;
  }
  .sw-dd--inline {
    display: none;
  }
  .sw-ufilters__txt {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .sw-uhead__actions {
    width: 100%;
  }
  .sw-uhead__actions .sw-export,
  .sw-uhead__actions .sw-create {
    flex: 1;
    justify-content: center;
  }
}

.sw-sheet.modal {
  --bs-modal-zindex: 1080;
  --bs-modal-width: 420px;
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 20px;
  --bs-modal-margin: 0px;
  --bs-backdrop-zindex: 1079;
}

.modal-backdrop.sw-sheet-backdrop {
  --bs-backdrop-opacity: 1;
  background-color: rgba(15, 16, 32, 0.45);
}

.sw-sheet.modal .sw-sheet__panel {
  width: 100%;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  transition: none;
  opacity: 1;
}

@media (max-width: 767.98px) {
  .sw-sheet.modal .modal-dialog {
    display: flex;
    align-items: flex-end;
    margin: 0;
    max-width: 100%;
    min-height: 100%;
  }
}

.sw-sheet--lg.modal {
  --bs-modal-width: 560px;
}

.sw-sheet.sw-sheet--confirm.modal {
  --bs-modal-zindex: 1086;
}

@media (min-width: 768px) {
  .sw-sheet.modal .modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    min-height: 0;
    width: var(--bs-modal-width);
    max-width: var(--bs-modal-width);
    opacity: 0;
    transform: translate(-50%, -46%);
    transition:
      transform 0.22s ease,
      opacity 0.22s ease;
  }
  .sw-sheet.modal.show .modal-dialog {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.sw-ustrip {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 14px;
  margin-bottom: 18px;
}
.sw-ustat {
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  min-width: 0;
}
.sw-ustat__ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f3f1fe;
  color: var(--sw-violet);
}
.sw-ustat__ic svg {
  width: 18px;
  height: 18px;
}
.sw-ustat__txt {
  min-width: 0;
}
.sw-ustat__num {
  font-size: 18px;
  line-height: 1.15;
  color: #0f1020;
}
.sw-ustat__num--amber {
  color: #c7800d;
}
.sw-ustat__label {
  font-size: 11.5px;
  line-height: 1.3;
  margin-top: 1px;
  color: #9499a8;
}

.sw-vcamp__close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f0f2f5;
}
.sw-vcamp__close svg {
  width: 16px;
  height: 16px;
}
.sw-vcamp__close:hover {
  background: #e7eaee;
}
/* stats strip */
.sw-vcamp-stats {
  gap: 10px;
}
.sw-vcamp-stat {
  flex: 1 1 0;
  min-width: 0;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fb;
}
.sw-vcamp-stat__num {
  font-size: 15px;
  color: #0f1020;
}
.sw-vcamp-stat__lbl {
  font-size: 10.5px;
  color: #9499a8;
}

@media (max-width: 575.98px) {
  .sw-vd .sw-vcamp-stats {
    flex-wrap: wrap;
  }
  .sw-vd .sw-vcamp-stat {
    flex: 1 1 calc(50% - 6px);
  }
}

.sw-dcamp.modal {
  --bs-modal-width: 520px;
}
.sw-dcamp .sw-sheet__panel {
  border-radius: 18px;
}

/* header */
.sw-dcamp__head {
  gap: 14px;
  padding: 24px 24px 4px;
}
.sw-dcamp__ic {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fef2d6;
  color: #c7800d;
  flex-shrink: 0;
}
.sw-dcamp__ic svg {
  width: 22px;
  height: 22px;
}
.sw-dcamp__title {
  font-size: 18px;
  color: #0f1020;
}
.sw-dcamp__sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
}

/* body */
.sw-dcamp__body {
  gap: 14px;
  padding: 16px 24px 18px;
  min-height: 0;
}
.sw-dcamp__eyebrow {
  font-size: 10.5px;
  color: #9499a8;
  letter-spacing: 0.02em;
}

.sw-dcamp__ic--danger {
  background: #fce5e5;
  color: #d13d3d;
}

.sw-dcamp-chip {
  padding: 12px 14px;
  background: #fbfcfd;
  border: 1px solid #e0e3e8;
  border-radius: 12px;
}
.sw-dcamp-chip__ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f3f1fe;
  color: var(--sw-violet);
  flex-shrink: 0;
}
.sw-dcamp-chip__ic svg {
  width: 18px;
  height: 18px;
}

.sw-dcamp-chip__ic--sales {
  background: #dbf5ed;
  color: #0a8c80;
}

.sw-dcamp-chip__ic--loc {
  background: #e0f5f0;
  color: #0a8c80;
}

.sw-dcamp-chip__ic--img {
  border-radius: 8px;
  background: #f2f2f7;
  overflow: hidden;
}
.sw-dcamp-chip__name {
  font-size: 13.5px;
  color: #0f1020;
}
.sw-dcamp-chip__meta {
  font-size: 11.5px;
  color: #9499a8;
}

.sw-dcamp-anon {
  --bs-border-color: #e0e5ed;
  padding: 14px;
  border-radius: 12px;
}
.sw-dcamp-anon__from,
.sw-dcamp-anon__to {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}
.sw-dcamp-anon__from {
  background: #f7f9fb;
  color: #9499a8;
  font-weight: 500;
}
.sw-dcamp-anon__to {
  background: #f3f1fe;
  color: #6e5df8;
}
.sw-dcamp-anon__arrow {
  width: 16px;
  height: 16px;
  color: #9499a8;
  flex-shrink: 0;
}
.sw-dcamp-anon__note {
  font-size: 11.5px;
  color: #9499a8;
  line-height: 1.45;
}

/* what happens */
.sw-dcamp-what {
  padding: 12px 14px;
  background: #f7f9fb;
  border-radius: 10px;
}
.sw-dcamp-what__title {
  font-size: 12px;
  color: #0f1020;
}
.sw-dcamp-what__list {
  margin-top: 6px;
  padding-left: 18px;
  list-style: disc;
}
.sw-dcamp-what__list li {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
.sw-dcamp-what__list li::marker {
  color: #9499a8;
}

/* alternative hint */
.sw-dcamp-alt {
  padding: 11px 14px;
  background: #dbf5e5;
  border-radius: 10px;
}
.sw-dcamp-alt__ic {
  color: #0d7352;
  line-height: 0;
  margin-top: 1px;
}
.sw-dcamp-alt__ic svg {
  width: 17px;
  height: 17px;
  display: block;
}
.sw-dcamp-alt__title {
  font-size: 12px;
  color: #0d7352;
}
.sw-dcamp-alt__text {
  margin-top: 2px;
  font-size: 11.5px;
  color: #337361;
  line-height: 1.45;
}

/* type-to-confirm */
.sw-dcamp-confirm__label {
  font-size: 12.5px;
  color: #474f5c;
  line-height: 1.4;
}
.sw-dcamp-confirm__label strong {
  color: #0f1020;
}
.sw-dcamp-confirm__input.form-control {
  padding: 12px;
  border: 1.5px solid #d13d3d;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f1020;
}
.sw-dcamp-confirm__input.form-control:focus {
  border-color: #d13d3d;
  box-shadow: 0 0 0 3px rgba(209, 61, 61, 0.15);
}

/* footer */
.sw-dcamp__foot {
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f2f5;
  flex-wrap: wrap;
  row-gap: 10px;
}
.sw-dcamp__foot .btn {
  white-space: nowrap;
}
.sw-dcamp__go {
  --bs-btn-padding-x: 18px;
  --bs-btn-padding-y: 11px;
  --bs-btn-color: #fff;
  --bs-btn-bg: #d13d3d;
  --bs-btn-border-color: #d13d3d;
  --bs-btn-border-radius: 10px;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #bd3232;
  --bs-btn-hover-border-color: #bd3232;
  --bs-btn-active-bg: #bd3232;
  --bs-btn-active-border-color: #bd3232;
  --bs-btn-disabled-color: #9499a8;
  --bs-btn-disabled-bg: #f0f2f5;
  --bs-btn-disabled-border-color: #f0f2f5;
  --bs-btn-disabled-opacity: 1;
  --bs-btn-focus-shadow-rgb: 209, 61, 61;
  font-size: 13px;
  font-weight: 600;
}
.sw-dcamp__go svg {
  width: 16px;
  height: 16px;
}

.sw-vd.modal {
  --bs-modal-width: 640px;
}
.sw-vd .sw-sheet__panel {
  border-radius: 18px;
}

/* header */
.sw-vd__head {
  gap: 14px;
  padding: 22px 24px 14px;
}
.sw-vd__ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f1fe;
  color: var(--sw-violet);
}
.sw-vd__ic svg {
  width: 22px;
  height: 22px;
}
.sw-vd__title {
  font-size: 18px;
  color: #0f1020;
}
.sw-vd__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #6b7280;
}

/* pills — Bootstrap .badge + brand tints */
.sw-vd-pill {
  --bs-badge-padding-x: 10px;
  --bs-badge-padding-y: 4px;
  --bs-badge-font-size: 10px;
  --bs-badge-border-radius: 999px;
  line-height: var(--bs-body-line-height);
  letter-spacing: 0.03em;
}

.sw-vd-pill--dist,
.sw-vd-pill--adv,
.sw-vd-pill--prod {
  background: #f3f1fe;
  color: #6e5df8;
}
.sw-vd-pill--active {
  background: #dbf5e5;
  color: #0f9966;
}

.sw-vd__ic--chain {
  background: #e6f2ff;
  color: #1a73cc;
}
.sw-vd-pill--chain {
  background: #e6f2ff;
  color: #1a73cc;
}
.sw-vd__ic--division {
  background: #edf0fc;
  color: #595ccc;
}
.sw-vd-pill--division {
  background: #edf0fc;
  color: #595ccc;
}
.sw-vd__ic--loc {
  background: #e0f5f0;
  color: #0a8c80;
}
.sw-vd-pill--loc {
  background: #e0f5f0;
  color: #0a8c80;
}

/* body */
.sw-vd__body {
  gap: 16px;
  padding: 4px 24px 18px;
  min-height: 0;
}

.sw-vd-grid {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  column-gap: 16px;
  row-gap: 16px;
}
.sw-vd-grid > * {
  min-width: 0;
}

.sw-vcamp-budget__val {
  font-size: 12px;
  color: #0f1020;
}
.sw-vcamp-progress {
  --bs-progress-height: 8px;
  --bs-progress-bg: #edf0f5;
  --bs-progress-border-radius: 999px;
  --bs-progress-bar-bg: var(--sw-violet);
}

.sw-vd--boxed .sw-vd-dl {
  padding: 14px 16px;
  border: 1px solid var(--sw-border);
  border-radius: 12px;
}
.sw-vd--boxed .sw-vd-dl .sw-vd-row:first-of-type {
  border-top: 0;
}

.sw-vd-dl__title {
  font-size: 10.5px;
  color: #9499a8;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.sw-vd-row {
  padding: 7px 0;
  border-top: 1px solid #eef1f5;
  gap: 12px;
}
.sw-vd-row__k {
  font-size: 12.5px;
  color: #6b7280;
}
.sw-vd-row__v {
  font-size: 12.5px;
  color: #0f1020;
  text-align: right;
  min-width: 0;
}

/* network header + note */
.sw-vd-net__title {
  font-size: 10.5px;
  color: #9499a8;
  letter-spacing: 0.05em;
}
.sw-vd-net__link {
  font-size: 12px;
  color: var(--sw-violet);
  text-decoration: none;
}
.sw-vd-net__link:hover {
  text-decoration: underline;
}
.sw-vd-net__link svg {
  width: 13px;
  height: 13px;
}
.sw-vd-net__note {
  font-size: 11px;
  color: #9499a8;
  line-height: 1.4;
  max-width: 280px;
}

/* network table — Bootstrap .table + brand theme */
.sw-vd-table {
  --bs-table-bg: transparent;
  --bs-table-color: #0f1020;
  margin-top: 12px;
  font-size: 12.5px;
}
.sw-vd-table thead th {
  font-size: 10.5px;
  font-weight: 600;
  color: #9499a8;
  border-bottom: 1px solid #e6e9ee;
  padding: 0 10px 8px;
}
.sw-vd-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid #f2f4f7;
  vertical-align: middle;
}
.sw-vd-table tbody tr:last-child td {
  border-bottom: 0;
}
.sw-vd-table td.sw-vd-num {
  color: #474f5c;
}
.sw-vd-chain {
  color: #0f1020;
  font-weight: 500;
}
.sw-vd-chain__ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f3f1fe;
  color: var(--sw-violet);
}
.sw-vd-chain__ic svg {
  width: 14px;
  height: 14px;
}

.sw-vd-chain__ic--bare {
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: none;
}
.sw-vd-chain__ic--bare svg {
  width: 15px;
  height: 15px;
}

.sw-vd-chain__ic--chain {
  color: #1a73cc;
}
.sw-vd-chain__ic--division {
  color: #595ccc;
}
.sw-vd-chain__ic--loc {
  color: #0a8c80;
}

.sw-vd-net--boxed .table-responsive {
  margin-top: 10px;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
}
.sw-vd-net--boxed .sw-vd-table {
  margin-top: 0;
}
.sw-vd-net--boxed .sw-vd-table thead th {
  padding: 7px 14px;
  background: #f7f9fb;
  border-bottom: 0;
}
.sw-vd-net--boxed .sw-vd-table tbody td {
  padding: 7.5px 14px;
}

/* footer */
.sw-vd__foot {
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f2f5;
  flex-wrap: wrap;
  row-gap: 10px;
}
.sw-vd__foot .btn {
  white-space: nowrap;
}
.sw-vd__shadow svg,
.sw-vd__edit svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 575.98px) {
  .sw-vd-grid {
    row-gap: 14px;
  }

  .sw-vd-grid > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .sw-dcamp .sw-dcamp-stats {
    flex-wrap: wrap;
  }
  .sw-dcamp .sw-vcamp-stat {
    flex: 1 1 calc(50% - 6px);
  }
}
