/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all 0.2s;
}

.fade-transform-enter-from {
  opacity: 0;
  transition: all 0.2s;
  transform: translateX(-30px);
}

.fade-transform-leave-to {
  opacity: 0;
  transition: all 0.2s;
  transform: translateX(30px);
}

.t-button--variant-outline {
  border-color: var(--td-gray-color-2) !important;
}

.t-button--variant-base.t-button--theme-primary {
  background: linear-gradient(135deg, var(--td-brand-color), var(--td-success-color-11));
}

.t-button--variant-base.t-button--theme-primary:hover {
  background: linear-gradient(135deg, var(--td-brand-color), var(--td-success-color-11));
  opacity: 0.76;
}

.t-button--shape-round {
  min-width: 80px;
}

.t-button--variant-base.t-button--theme-primary.t-is-disabled {
  background: linear-gradient(135deg, var(--td-brand-color), var(--td-success-color-11));
  opacity: 0.36;
  border-color: none;
}

.t-input--focused {
  box-shadow: none !important;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inputUserName-del {
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 8px;
  height: 22px;
  font-size: 12px;
  line-height: 22px;
  box-sizing: border-box;
  color: var(--td-font-gray-3);
  background: var(--td-gray-color-1);
}

p {
  margin: 0;
}

.t-tag--default {
  background: var(--td-gray-color-1);
}

.t-input,
.t-textarea__inner {
  border-color: var(--td-gray-color-2) !important;
}

// 表格
.t-table {
  // min-width: 1200px;

  thead th {
    background: var(--td-gray-color-1);
    border: none;

    .t-table__th-cell-inner {
      font-weight: 700;
    }
  }

  tr:nth-child(even) {
    background-color: var(--td-brand-color-12); /* 偶数行的背景色 */
  }

  tr:nth-child(odd) {
    background-color: var(--td-white); /* 奇数行的背景色 */
  }

  tr:hover {
    background-color: var(--td-brand-color-1); /* 鼠标悬停时的背景色 */
  }

  td {
    border: none;
    font-size: 13px;
    padding: 10px 16px !important;
  }

  .t-table__content {
    border-bottom: 1px solid var(--td-border);
    border-top: 1px solid var(--td-border);
  }
}

// t-dialog

.t-dialog-new-class {
  .t-dialog__body__icon {
    color: var(--td-font-gray-2) !important;
  }

  .t-button {
    background-color: var(--td-gray-color-1) !important;
  }
}

/* scroll bar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--td-gray-color-4);
  border-radius: 20px;
}

/* nprogress */
#nprogress .bar {
  background: var(--t-color-primary) !important;
}

#nprogress .spinner-icon {
  border-top-color: var(--t-color-primary) !important;
  border-left-color: var(--t-color-primary) !important;
}

#nprogress .peg {
  box-shadow:
    0 0 10px var(--t-color-primary),
    0 0 5px var(--t-color-primary) !important;
}

// 状态

.dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;

  &.status-success {
    background-color: var(--td-success-color-6);
  }

  &.status-brand {
    background-color: var(--td-brand-color-11);
  }

  &.status-gray {
    background-color: var(--td-font-gray-3);
  }
}

.status-success {
  color: var(--td-success-color-6);
}

.status-brand {
  color: var(--td-brand-color-11);
}

.status-gray {
  color: var(--td-font-gray-3);
}
