[hidden] {
  display: none !important;
}

.ui-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ui-stats--half {
  grid-template-columns: 1fr;
}

.ui-stat {
  min-width: 0;
  margin-bottom: 0;
}

.ui-stat__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-bottom: 0.5rem;
}

.ui-stat__head .ui-stat__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ui-stat__head .main-card-icon {
  flex: 0 0 auto;
}

.ui-stat__head .main-card-icon .avatar.avatar-lg {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
}

.ui-stat__head .ui-btn {
  flex: 0 0 auto;
}

.ui-stat__big {
  overflow-wrap: anywhere;
}

.ui-stat__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  min-width: 0;
  padding: 0.2rem 0;
  font-size: 0.75rem;
}

.ui-stat__label {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.ui-stat__value {
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ui-stat__head + .ui-stat__row {
  margin-top: 0.75rem;
}

@media (min-width: 960px) {
  .ui-stats--half {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0 !important;
}

.ui-loadbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.ui-loadbar.is-on {
  opacity: 1;
}

.ui-loadbar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: var(--primary-color);
  animation: ui-loadbar-sweep 1s linear infinite;
}

@keyframes ui-loadbar-sweep {
  from { left: -40%; }
  to { left: 100%; }
}

.btn.is-loading,
.ui-btn.is-loading,
.ui-pager button.is-loading,
.ui-tabs__tab.is-loading,
.ui-dropdown__item.is-loading,
.dropdown-item.is-loading,
.header-link.is-loading {
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.btn.is-loading::after,
.ui-btn.is-loading::after,
.ui-pager button.is-loading::after,
.ui-tabs__tab.is-loading::after,
.ui-dropdown__item.is-loading::after,
.dropdown-item.is-loading::after,
.header-link.is-loading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ui-loader-color, currentColor);
  animation: ui-btn-loader 1.1s linear infinite;
}

@keyframes ui-btn-loader {
  0% { left: 0; width: 0; }
  50% { left: 0; width: 100%; }
  100% { left: 100%; width: 0; }
}

.ui-alerts {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, calc(100vw - 24px));
  pointer-events: none;
}

.ui-alerts[popover] {
  inset: 12px 12px auto auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.ui-alert {
  --alert-rgb: var(--info-rgb);
  --alert-text: #fff;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 36px 12px 12px;
  border: 1px solid rgba(var(--alert-rgb), 0.25);
  border-left: 3px solid rgb(var(--alert-rgb));
  border-radius: 0.5rem;
  background: color-mix(in srgb, rgb(var(--alert-rgb)) 72%, rgba(0, 0, 0, 0.8));
  color: var(--alert-text);
  box-shadow: 0 0.25rem 1rem rgba(26, 38, 56, 0.08);
  font-size: 0.8125rem;
  pointer-events: auto;
  animation: ui-alert-in 120ms ease-out;
  transition: opacity 120ms ease, transform 120ms ease;
}

.ui-alert--info { --alert-rgb: var(--info-rgb); }
.ui-alert--success { --alert-rgb: var(--success-rgb); }
.ui-alert--warning {
  --alert-rgb: var(--warning-rgb);
  --alert-text: var(--custom-black);
}
.ui-alert--error { --alert-rgb: var(--danger-rgb); }

.ui-alert.is-leaving {
  opacity: 0;
  transform: translateX(12px);
}

.ui-alert__content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ui-alert--clickable .ui-alert__content {
  cursor: copy;
}

.ui-alert__close {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.ui-alert__close:hover {
  color: inherit;
  opacity: 1;
}

@keyframes ui-alert-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ui-altcha {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 2.875rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--input-border);
  border-radius: 0.375rem;
  background: var(--form-control-bg);
  color: var(--text-muted);
  font-size: 0.8125rem;
  user-select: none;
}

.ui-altcha__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--input-border);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  line-height: 1;
}

.ui-altcha.is-verified {
  border-color: rgba(var(--success-rgb), 0.45);
  color: rgb(var(--success-rgb));
}

.ui-altcha.is-verified .ui-altcha__box {
  border-color: rgb(var(--success-rgb));
  background: rgb(var(--success-rgb));
  color: #fff;
}

.ui-altcha.is-error {
  border-color: rgb(var(--danger-rgb));
  color: rgb(var(--danger-rgb));
}

.ui-spin {
  display: inline-block;
  animation: ui-spin 1s linear infinite;
}

@keyframes ui-spin {
  to { transform: rotate(360deg); }
}

.ui-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--default-border);
  border-radius: 0.375rem;
  background: var(--custom-white);
  color: var(--default-text-color);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.ui-btn:hover {
  border-color: var(--primary04);
  background: var(--default-background);
  color: var(--primary-color);
}

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

.ui-btn--primary {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.ui-btn--primary:hover {
  border-color: var(--primary07);
  background: var(--primary07);
  color: #fff;
}

.ui-btn--primary.is-loading::after {
  --ui-loader-color: #fff;
}

.ui-btn--surface {
  background: var(--default-background);
}

.ui-btn--error {
  border-color: rgb(var(--danger-rgb));
  background: rgb(var(--danger-rgb));
  color: #fff;
}

.ui-btn--error:hover {
  border-color: rgb(var(--danger-rgb));
  background: rgba(var(--danger-rgb), 0.85);
  color: #fff;
}

.ui-btn--ghost {
  border-color: transparent;
  background: transparent;
}

.ui-btn--sm {
  padding: 0.25rem 0.45rem;
  font-size: 0.6875rem;
}

.ui-dropdown {
  position: relative;
  display: inline-flex;
}

.ui-dropdown > summary {
  list-style: none;
}

.ui-dropdown > summary::-webkit-details-marker {
  display: none;
}

.ui-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 0.25rem 0;
  border: 1px solid var(--default-border);
  border-radius: 0.375rem;
  background: var(--custom-white);
  box-shadow: 0 0.5rem 1.5rem rgba(26, 38, 56, 0.12);
}

.ui-dropdown__menu--fixed {
  position: fixed;
  top: auto;
  right: auto;
}

.ui-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--default-text-color);
  font-family: inherit;
  font-size: 0.75rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ui-dropdown__item:hover {
  background: var(--default-background);
  color: var(--primary-color);
}

.ui-dropdown__item--error {
  color: rgb(var(--danger-rgb));
}

.ui-dropdown__item--error:hover {
  background: rgba(var(--danger-rgb), 0.08);
  color: rgb(var(--danger-rgb));
}

.ui-trunc {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.ui-flag {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  vertical-align: middle;
}

.ui-flag__image {
  display: block;
  flex: none;
  width: 1.1333rem;
  height: 0.85rem;
  object-fit: contain;
}

.ui-mark-yes {
  color: rgb(var(--success-rgb));
}

.ui-mark-no {
  color: rgb(var(--danger-rgb));
}

.ui-star {
  margin-right: 0.25rem;
  color: rgb(var(--warning-rgb));
}

.ui-table--nowrap {
  white-space: nowrap;
}

.ui-table td.ui-td-right,
.ui-table th.ui-td-right {
  text-align: right;
}

.ui-table th.is-sortable {
  cursor: pointer;
  user-select: none;
}

.ui-table th.is-sortable:hover {
  color: var(--primary-color);
}

.ui-table th.is-sortable::after {
  content: " ↕";
  opacity: 0.4;
}

.ui-table th.is-sorted-asc::after {
  content: " ↑";
}

.ui-table th.is-sorted-desc::after {
  content: " ↓";
}

.ui-table .is-sticky {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: inset 1px 0 0 var(--default-border);
}

.ui-table th.is-sticky {
  z-index: 3;
}

.ui-table--sticky {
  border-collapse: separate;
  border-spacing: 0;
}

.ui-table--sticky th.is-sticky,
.ui-table--sticky td.is-sticky {
  box-shadow: inset 1px 0 0 var(--default-border), inset -1px 0 0 var(--default-border);
}

.ui-table--head-accent th.is-sticky {
  background: color-mix(in srgb, var(--primary-color) 14%, #fff);
}

.ui-table--head-dark th.is-sticky {
  background: var(--default-text-color);
}

.ui-table--striped tbody tr:nth-child(even) td.is-sticky {
  background: var(--default-background);
}

.ui-table tbody tr.is-in-cart td {
  background: rgba(var(--primary-rgb), 0.12);
}

.ui-table tbody tr.is-in-cart td.is-sticky {
  background: color-mix(in srgb, var(--primary-color) 12%, #fff);
}

.ui-table--hover tbody tr:hover td {
  background: rgba(var(--primary-rgb), 0.07);
}

.ui-table--hover tbody tr.is-in-cart:hover td {
  background: rgba(var(--primary-rgb), 0.16);
}

.ui-table--hover tbody tr:hover td.is-sticky {
  background: color-mix(in srgb, var(--primary-color) 12%, #fff);
}

.ui-table tbody tr.is-in-cart:hover td.is-sticky {
  background: color-mix(in srgb, var(--primary-color) 18%, #fff);
}

.ui-field {
  display: block;
  margin-bottom: 0.75rem;
}

.ui-input[aria-invalid="true"],
.ui-select[aria-invalid="true"],
.ui-textarea[aria-invalid="true"] {
  border-color: rgb(var(--danger-rgb));
  background: rgba(var(--danger-rgb), 0.06);
}

.ui-textarea {
  min-height: calc(3lh + 12px);
  resize: vertical;
}

.ui-checks {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ui-filters .ui-field {
  margin-bottom: 0;
}

.ui-filters__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.ui-filters--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 0.75rem;
  container-type: inline-size;
}

.ui-filters--grid .ui-filters__actions {
  grid-column: 1 / -1;
  justify-self: end;
  margin-left: 0;
}

.ui-filters--grid .ui-span-2 {
  grid-row: span 2;
  align-self: stretch;
}

.ui-filters__toggles,
.ui-filters__sort {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-filters__toggles .ui-field,
.ui-filters__sort .ui-field {
  margin-bottom: 0;
}

@container (min-width: 684px) {
  .ui-filters__toggles,
  .ui-filters__sort {
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .ui-filters__toggles {
    grid-column: -3;
  }

  .ui-filters__sort {
    grid-column: -2;
  }
}

.ui-range .input-group {
  flex: 1 1 0;
  min-width: 0;
}

.ui-smartselect {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-smartselect .ui-field {
  margin-bottom: 0;
}

.ui-smartselect .ui-input {
  width: 100%;
  min-width: 0;
}

.ui-smartselect__box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.ui-smartselect__box .ui-smartselect__input {
  flex: 1 1 140px;
  width: auto;
}

.ui-smartselect__box .ui-smartselect__tags {
  margin-top: 0;
}

.ui-smartselect__menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 600;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.25rem 0;
  border: 1px solid var(--default-border);
  border-radius: 0.375rem;
  background: var(--custom-white);
  box-shadow: 0 0.5rem 1.5rem rgba(26, 38, 56, 0.12);
}

.ui-smartselect__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--default-text-color);
  font-family: inherit;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.ui-smartselect__option:hover,
.ui-smartselect__option.is-active {
  background: var(--primary-color);
  color: #fff;
}

.ui-smartselect__option-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-smartselect__option-hint {
  margin-left: auto;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-smartselect__option:hover .ui-smartselect__option-hint,
.ui-smartselect__option.is-active .ui-smartselect__option-hint {
  color: #fff;
}

.ui-smartselect__note {
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.ui-smartselect__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.ui-smartselect__tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 0 2px 0 0.5rem;
  border: 1px solid var(--default-border);
  border-radius: 0.3rem;
  background: var(--default-background);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.7;
}

.ui-smartselect__tag-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-smartselect__tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.6875rem;
  cursor: pointer;
}

.ui-smartselect__tag-remove:hover {
  color: rgb(var(--danger-rgb));
}

.ui-linelist {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-linelist .ui-field {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.ui-linelist__box {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--input-border);
  border-radius: 0.375rem;
  background: var(--form-control-bg);
  font-size: 0.85rem;
  line-height: 1.5;
}

.ui-linelist__box:hover {
  border-color: var(--primary04);
}

.ui-linelist__box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--primary005);
}

.ui-linelist.is-error .ui-linelist__box {
  border-color: rgb(var(--danger-rgb));
}

.ui-linelist.is-error .form-label {
  color: rgb(var(--danger-rgb));
}

.ui-linelist__mirror {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 0.375rem 0.75rem;
  color: transparent;
  pointer-events: none;
}

.ui-linelist__line {
  min-height: 1.5em;
  white-space: pre;
}

.ui-linelist__line.is-invalid {
  background: rgba(var(--danger-rgb), 0.08);
  box-shadow: inset 2px 0 0 rgb(var(--danger-rgb));
}

.ui-linelist__input {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.375rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--default-text-color);
  font: inherit;
  line-height: 1.5;
  resize: none;
}

.ui-linelist__input:focus {
  outline: none;
}

.ui-linelist__input::placeholder {
  color: var(--text-muted);
}

.ui-cartbar {
  display: flex;
  gap: 0.5rem;
}

.ui-cartbar .ui-btn {
  padding: 0.375rem 0.65rem;
}

.ui-cartbar__clear {
  border-color: rgba(var(--danger-rgb), 0.5) !important;
  color: rgb(var(--danger-rgb)) !important;
}

.ui-cartbar__clear:hover {
  background: rgb(var(--danger-rgb)) !important;
  color: #fff !important;
}

.ui-cart-flight {
  position: fixed;
  z-index: 900;
  margin: 0;
  table-layout: fixed;
  border-radius: 0.375rem;
  background: var(--custom-white);
  box-shadow: 0 0.25rem 1rem rgba(26, 38, 56, 0.16);
  pointer-events: none;
  transform-origin: center;
}

.ui-cart-flight td {
  overflow: hidden;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.55em;
  border-radius: 0.35rem;
  background: rgb(var(--light-rgb));
  color: var(--default-text-color);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.ui-badge--muted {
  background: rgb(var(--light-rgb));
  color: var(--text-muted);
}

.ui-badge--primary {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

.ui-badge--info {
  background: rgba(var(--info-rgb), 0.1);
  color: rgb(var(--info-rgb));
}

.ui-badge--success {
  background: rgba(var(--success-rgb), 0.1);
  color: rgb(var(--success-rgb));
}

.ui-badge--warning {
  background: rgba(var(--warning-rgb), 0.1);
  color: rgb(var(--warning-rgb));
}

.ui-badge--error {
  background: rgba(var(--danger-rgb), 0.1);
  color: rgb(var(--danger-rgb));
}

.ui-copyable {
  display: inline-block;
  max-width: 180px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px dashed var(--primary04);
  background: transparent;
  color: var(--primary-color);
  font: inherit;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  cursor: copy;
}

.ui-copyable:hover {
  color: var(--primary07);
}

.ui-rowlink {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.ui-rowlink:hover {
  color: var(--primary07);
  text-decoration: underline;
}

.ui-rowlink--muted {
  color: var(--text-muted);
}

.ui-subrow > td {
  padding: 0;
  border-bottom: 2px solid var(--input-border);
  background: var(--default-background);
}

.ui-subrow__cells {
  display: flex;
  width: 100%;
}

.ui-subrow__cell {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: max-content;
  padding: 0.3rem 0.55rem;
  border: 0;
  border-left: 1px solid var(--default-border);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: copy;
}

.ui-subrow__cell:first-child {
  border-left: 0;
}

.ui-subrow__name {
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ui-subrow__cell .ui-copyable {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.ui-subrow__cell.is-empty {
  color: var(--text-muted);
  font-weight: 400;
  cursor: default;
}

.ui-subrow__note {
  display: block;
  padding: 0.3rem 0.55rem;
  color: var(--text-muted);
}

.ui-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 0.5rem 0.5rem 0 0;
}

.ui-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--custom-white);
  color: var(--default-text-color);
  font-size: 0.8125rem;
}

.ui-table th,
.ui-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--default-border);
  vertical-align: middle;
}

.ui-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-align: start;
  text-transform: uppercase;
  white-space: nowrap;
}

.ui-table--head-accent th {
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--primary-color);
}

.ui-table--head-dark th {
  background: var(--default-text-color);
  color: var(--custom-white);
}

.ui-table--head-underline th {
  border-bottom: 2px solid var(--default-text-color);
}

.ui-table--bordered th,
.ui-table--bordered td {
  border-right: 1px solid var(--default-border);
}

.ui-table--bordered th:last-child,
.ui-table--bordered td:last-child {
  border-right: 0;
}

.ui-table--striped tbody tr:nth-child(even) td {
  background: var(--default-background);
}

.ui-table--compact th,
.ui-table--compact td {
  padding: 0.5rem 0.75rem;
}

.ui-table__empty {
  padding: 2rem 1rem !important;
  color: var(--text-muted);
  text-align: center !important;
}

.ui-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ui-pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 0.45rem;
  border: 1px solid var(--default-border);
  border-radius: 0.35rem;
  background: var(--custom-white);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.ui-pager button:hover:not(:disabled) {
  border-color: var(--primary04);
  color: var(--primary-color);
}

.ui-pager button:disabled {
  cursor: default;
  opacity: 0.55;
}

.ui-pager button.is-current {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  opacity: 1;
}

.ui-pager__info,
.ui-pager__approx,
.ui-pager__gap {
  padding-inline: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.ui-notice {
  --notice-rgb: var(--info-rgb);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(var(--notice-rgb), 0.2);
  border-left: 3px solid rgb(var(--notice-rgb));
  border-radius: 0.5rem;
  background: rgba(var(--notice-rgb), 0.06);
  color: var(--default-text-color);
  font-size: 0.8125rem;
}

.ui-notice--info { --notice-rgb: var(--info-rgb); }
.ui-notice--success { --notice-rgb: var(--success-rgb); }
.ui-notice--warning { --notice-rgb: var(--warning-rgb); }
.ui-notice--error { --notice-rgb: var(--danger-rgb); }

.ui-notice__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgb(var(--notice-rgb));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ui-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 0.4rem 0.75rem;
  margin-top: 0.6rem;
}

.ui-address > .ui-badge {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.ui-address > .btn {
  grid-column: 1 / span 2;
  grid-row: 3;
  justify-self: start;
}

.ui-address__text {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.ui-address__qr {
  display: block;
  grid-column: 3;
  grid-row: 1 / span 3;
  width: 148px;
  height: 148px;
  padding: 7px;
  border: 1px solid var(--default-border);
  border-radius: 0.35rem;
  background: #fff;
}

.ui-address__qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ui-address__note {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (max-width: 575.98px) {
  .ui-address {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: none;
  }

  .ui-address > .ui-badge,
  .ui-address__text {
    grid-row: 1;
  }

  .ui-address > .btn {
    grid-row: 2;
  }

  .ui-address__qr {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.ui-flex {
  display: flex;
}

.ui-gap-2 {
  gap: 0.5rem;
}

.ui-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ui-chat__scroll {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: var(--custom-white);
}

.ui-chat__older,
.ui-chat__new {
  align-self: center;
}

.ui-chat__day {
  align-self: center;
  padding: 0.188rem 0.5rem;
  border-radius: 0.3rem;
  background: var(--primary02);
  color: var(--primary-color);
  font-size: 0.7rem;
  line-height: 1.4;
}

.ui-chat__msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: min(75%, 680px);
}

.ui-chat__msg--own {
  align-items: flex-end;
  margin-left: auto;
}

.ui-chat__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.ui-chat__msg--own .ui-chat__meta {
  justify-content: flex-end;
}

.ui-chat__author {
  font-weight: 600;
}

.ui-chat__author--user {
  color: var(--text-muted);
}

.ui-chat__author--support {
  color: rgb(var(--info-rgb));
}

.ui-chat__author--admin {
  color: rgb(var(--warning-rgb));
}

.ui-chat__time,
.ui-chat__edited {
  color: var(--text-muted);
}

.ui-chat__edited {
  font-style: italic;
}

.ui-chat__acts {
  display: inline-flex;
  gap: 0.15rem;
  opacity: 0;
  transition: opacity 120ms ease;
}

.ui-chat__msg:hover .ui-chat__acts,
.ui-chat__msg:focus-within .ui-chat__acts {
  opacity: 1;
}

.ui-chat__bubble {
  max-width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem;
  border-radius: 0 0.3rem 0.3rem 0.3rem;
  background: rgb(var(--light-rgb));
  color: var(--default-text-color);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ui-chat__msg--own .ui-chat__bubble {
  border-radius: 0.3rem 0 0.3rem 0.3rem;
  background: var(--primary09);
  color: #fff;
}

.ui-chat__msg--system {
  align-items: center;
  max-width: 100%;
  color: var(--text-muted);
  text-align: center;
}

.ui-chat__msg--system .ui-chat__bubble {
  border: 0;
  background: transparent;
  font-size: 0.75rem;
}

.ui-chat__statusbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-top: 1px solid var(--default-border);
  color: rgb(var(--warning-rgb));
  font-size: 0.75rem;
}

.ui-chat__statusbar:has(> [hidden]:only-child) {
  display: none;
}

.ui-presence--online {
  color: rgb(var(--success-rgb));
}

.ui-presence--typing {
  color: rgb(var(--warning-rgb));
}

.ui-presence {
  animation: ui-presence-pulse 2.4s ease-in-out infinite;
}

@keyframes ui-presence-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.ui-chat__composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--default-border);
}

.ui-chat__row > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ui-chat__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.375rem;
  max-height: 160px;
  resize: none;
}

dialog.ui-dialog {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100dvh - 3rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--default-border);
  border-radius: 0.5rem;
  background: var(--custom-white);
  color: var(--default-text-color);
  font-family: inherit;
  box-shadow: 0 1rem 3rem rgba(26, 38, 56, 0.2);
}

dialog.ui-dialog.effect-super-scaled {
  transform: scale(2);
  opacity: 0;
  transition: all 0.3s;
}

dialog.ui-dialog.effect-super-scaled.show {
  transform: scale(1);
  opacity: 1;
}

dialog.ui-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.ui-dialog--sm {
  width: min(400px, calc(100vw - 2rem));
}

.ui-dialog--lg {
  width: min(900px, calc(100vw - 2rem));
}

.ui-dialog--xl {
  width: min(1200px, calc(100vw - 2rem));
}

.ui-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--default-border);
  font-size: 0.9rem;
  font-weight: 600;
}

.ui-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.ui-dialog__close:hover {
  background: var(--default-background);
  color: var(--default-text-color);
}

.ui-dialog__body {
  max-height: calc(100dvh - 220px);
  overflow-y: auto;
  padding: 1rem;
}

.ui-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--default-border);
}

@media (max-width: 767.98px) {
  .ui-chat__scroll {
    padding: 0.85rem;
  }

  .ui-chat__msg {
    max-width: 92%;
  }

  .ui-chat__composer {
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-alert,
  .ui-loadbar {
    transition: none;
  }

  .ui-alert,
  .ui-spin,
  .ui-presence {
    animation: none;
  }

  .ui-chat__acts {
    transition: none;
  }

  dialog.ui-dialog.effect-super-scaled,
  dialog.ui-dialog.effect-super-scaled.show {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .ui-loadbar::after,
  .btn.is-loading::after,
  .ui-btn.is-loading::after,
  .dropdown-item.is-loading::after,
  .header-link.is-loading::after {
    left: 0;
    width: 100%;
    animation: none;
  }
}

.ui-select2 {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-select2 .ui-field {
  margin-bottom: 0;
}

.ui-select2 .select2-container {
  flex: 0 0 100%;
  min-width: 0;
  font-family: inherit;
}

.ui-select2 .select2-container--default.select2-container--focus .select2-selection--multiple,
.ui-select2 .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem var(--primary005);
}

.ui-select2 .select2-container--default.select2-container--focus .select2-selection--single .select2-selection__rendered,
.ui-select2 .select2-container--default.select2-container--open .select2-selection--single .select2-selection__rendered {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem var(--primary005);
}

.ui-select2 .select2-container .select2-search--inline .select2-search__field {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.ui-select2 .select2-selection__placeholder,
.ui-select2 .select2-container .select2-search__field::placeholder,
.ui-select2-dropdown .select2-search__field::placeholder {
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  opacity: 1;
}

.ui-select2 .select2-container--default .select2-selection--multiple .select2-selection__choice {
  max-width: 100%;
}

.ui-select2 .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-dropdown.ui-select2-dropdown {
  z-index: 600 !important;
  box-shadow: 0 0.5rem 1.5rem rgba(26, 38, 56, 0.12);
}

.ui-select2-dropdown .select2-search__field {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: inherit;
}

.ui-select2-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ui-select2-option__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select2-option__hint {
  margin-left: auto;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-results__option--selected .ui-select2-option__hint {
  color: inherit;
}

.ui-coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.ui-coin-badge__icon {
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
}

.ui-stat__head .ui-coin-badge__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.ui-bars {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ui-bars__track {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 96px;
  border-bottom: 1px solid var(--default-border);
}

.ui-bars__slot {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  min-width: 0;
  border-radius: 4px;
  outline-offset: 2px;
}

.ui-bars__slot:focus-visible {
  outline: 2px solid var(--primary-color);
}

.ui-bars__bar {
  width: 100%;
  max-width: 24px;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: var(--primary-color);
}

.ui-bars__bar.is-zero {
  background: var(--default-border);
}

.ui-bars__slot:hover .ui-bars__bar:not(.is-zero),
.ui-bars__slot:focus .ui-bars__bar:not(.is-zero) {
  background: var(--primary07);
}

.ui-bars__labels {
  display: flex;
  gap: 2px;
}

.ui-bars__labels span {
  flex: 1 1 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.625rem;
  text-align: center;
  white-space: nowrap;
}

.ui-chart-tooltip {
  position: absolute;
  z-index: 10;
  width: 160px;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--default-border);
  border-radius: 0.375rem;
  background: var(--custom-white);
  box-shadow: 0 0.25rem 0.75rem rgba(26, 38, 56, 0.12);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
}

.ui-chart-tooltip[hidden] {
  display: none;
}

.ui-chart-tooltip strong,
.ui-chart-tooltip span {
  display: block;
  overflow-wrap: anywhere;
}

.ui-chart-tooltip strong {
  color: var(--default-text-color);
  font-size: 0.75rem;
}

.ui-chart-tooltip span {
  margin-top: 0.125rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.ui-chart-data {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.ui-chart-data summary {
  cursor: pointer;
}

.ui-chart-data .table-responsive {
  margin-top: 0.5rem;
}
