@import "colors";
@import "font";
@import "space";
@import "mixins";

body {
  background: #eafaf9 !important;
}

* {
  font-family: Poppins;
}

input,
select,
textarea {
  outline: 0;
}

textarea {
  resize: both; // 或 vertical
  overflow: auto;
  /* Webkit 浏览器（Chrome, Safari, Edge） */
  &::-webkit-resizer {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIwLjEzNTMiIGhlaWdodD0iMS4wMDY3NiIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDQ3MTggLTAuNzA5NDg4IDAuNzA0NzE4IDAuNzA5NDg4IDAgMTQuMjg1NikiIGZpbGw9IiNDMUMyQzUiLz4KPHJlY3Qgd2lkdGg9IjEzLjA4NzkiIGhlaWdodD0iMS4wMDY3NiIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDQ3MTggLTAuNzA5NDg4IDAuNzA0NzE4IDAuNzA5NDg4IDUuMDE2NiAxNC4yODU2KSIgZmlsbD0iI0MxQzJDNSIvPgo8cmVjdCB3aWR0aD0iNi4wNDA1OCIgaGVpZ2h0PSIxLjAwNjc2IiB0cmFuc2Zvcm09Im1hdHJpeCgwLjcwNDcxOCAtMC43MDk0ODggMC43MDQ3MTggMC43MDk0ODggMTAuMDMzMiAxNC4yODU2KSIgZmlsbD0iI0MxQzJDNSIvPgo8L3N2Zz4K"); /* 自定义图标 */
    background-size: 10px 10px; /* 图标大小 */
    background-repeat: no-repeat;
    background-position: center;
  }
  /* 固定滚动条宽度，减少变化 */
  &::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
}

p {
  margin-bottom: 0;
}

tr,
th,
td {
  border-width: 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c1c2c5;
}
::-webkit-scrollbar-thumb:window-inactive {
  background: #c1c2c5;
}
/* 滚动槽 */
::-webkit-scrollbar-track {
  border-radius: 10px;
}
/* 火狐 */
input {
  -moz-appearance: textfield;
}
input::placeholder {
  color: #c1c2c5;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
li {
  list-style-type: none;
}
.ant-notification-notice.notice-suc {
  border-left: 5px solid #19cd97;
  box-shadow: 0px 1px 4px rgba(0, 255, 178, 0.25);

  .ant-notification-notice-icon-success {
    color: #19cd97;
  }
}

.ant-notification-notice.notice-err {
  border-left: 5px solid #e71749;
  box-shadow: 0px 1px 4px rgba(231, 23, 73, 0.25);

  .ant-notification-notice-icon-success {
    color: #e71749;
  }
}

.ant-notification-notice.notice-err,
.ant-notification-notice.notice-suc {
  width: auto;
  max-width: 384px;
  border-radius: 0;

  .ant-notification-notice-description {
    margin-left: 42px;
  }

  .ant-notification-notice-icon {
    margin-left: 0;
  }

  .ant-notification-notice-message,
  .ant-notification-notice-close {
    display: none;
  }
}

.ant-tooltip {
  top: 1px;
  max-width: 400px;
}
.inner-tooltip {
  max-width: 300px !important;
}
.ant-tooltip-inner {
  background: #367af6 !important;
  border-radius: 8px !important;
  min-height: 30px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: left;
}

.icon-warning,
.icon-check,
.icon-close {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-block;
  margin-left: 16px;
  border-radius: 50%;
  border: 0;
  background: #e3e5e8;
  cursor: pointer;
  filter: drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.25));
}
.icon-warning.active {
  background: #faad14;
}
.icon-check {
  &:after {
    content: "";
    width: 8px;
    height: 17px;
    position: absolute;
    top: 4px;
    left: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 2px;
    transform: rotate(45deg);
  }

  &.all {
    background: #fff;
    &:after {
      border-color: #e3e5e8;
    }
  }

  &.active {
    background: #367af6;
    &:after {
      border-color: #fff;
    }
  }
}
.icon-close {
  &:before,
  &:after {
    content: "";
    width: 18px;
    height: 2px;
    position: absolute;
    top: 14px;
    left: 6px;
    background: #fff !important;
    box-sizing: border-box;
  }
  &:before {
    transform: rotate(45deg);
  }
  &:after {
    transform: rotate(-45deg);
  }
  &.all {
    background: #fff;
    &:after,
    &:before {
      background: #e3e5e8 !important;
    }
  }
  &.active {
    background: #e71749;
    &:after,
    &:before {
      background: #fff !important;
    }
  }
}

.ant-btn-primary {
  border-radius: 8px;
  padding: 6px 20px 6px 20px;
  display: inline-block;
  background: #367af6;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}

.ant-btn-primary[disabled] {
  color: white !important;
  background: #c1c2c5 !important;
}

.assign-to-button {
  .ant-dropdown-menu {
    background: #ffffff;
    max-height: 170px;
    max-width: 200px;
    overflow-y: overlay;
  }
}
.search-brm-name {
  border-bottom: 1px solid #c1c2c5;
  .ant-input-affix-wrapper {
    height: 32px;
    border: none !important;
  }
}
.brm-select-box-style {
  width: 100%;
  border-bottom: 1px solid #c1c2c5;
  position: relative;
  .ant-select {
    color: #000042;
    font-size: 14px;
  }
  .ant-select-arrow {
    display: none;
  }
  .ant-select-selector .ant-select-selection-item:before {
    content: "";
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAP1JREFUWIXt1T1OxDAUReFzPQMSXXaA2QIdckGycociSskSyOyAemASiknBaH6S2EmQkI/k5snFJ73iQSqVSqVOEkD5Vn0A3G3JnXO7NQHeeytz7wHyV/dkACSQsF/flFVVPa6NkbDScWYA2oMpgGZN1G8M0Gw3Dzn0Kzt+qK3ZtB6wXUez5PouYZx73p2A1kLdwpyBlkYNYS6ClkKNwVwFzY0ai7kJmgs1BTMIikVNxYwChaJCMKNBU1GhmEmgsagYzGTQECoWEwS6htrv94rFBIPOUd0ngKQsBgP9tQ+pKF6a9mAKSaWkrH9lDGa2vH/PfF3bP0WkUqnUf+0HwWnoq1sJIIsAAAAASUVORK5CYII=)
      no-repeat center;
    background-size: 50%;
    width: 36px;
    height: 36px;
    position: absolute;
    right: -4px;
    top: 2px;
  }
}
.bg-white {
  background: #fff;
}
.bg-green {
  background: #eafaf9;
}
.bg-blue {
  background: #00ccff;
}
.bg-gray {
  background: #c1c2c5;
}
.bg-secondary-gray {
  background: #e3e5e8;
}
.bg-dark {
  background: #87888a;
}
.border-green {
  border: 1px solid #19cd97;
}
.border-red {
  border: 1px solid #e71749;
}
.border-yellow {
  border: 1px solid #eecf2f;
}
.border-blue {
  border: 1px solid #367af6;
}
.rd-relative {
  position: relative !important;
}
.rd-input-bottom {
  padding-left: 0;
  border: none;
  color: #000042;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #c1c2c5 !important;
  &:focus {
    box-shadow: none;
  }
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center !important;
}
.justify-content-center {
  justify-content: center !important;
}
.justify-content-end {
  justify-content: flex-end !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.flex-column {
  flex-direction: column !important;
}
.flex-xl-row {
  flex-direction: row !important;
}
.flex-lg-row-fluid {
  flex: 1 auto;
  min-width: 0;
}

.flex-basis-50 {
  flex-basis: 50% !important;
}
.h-full {
  height: 100% !important;
}
.w-full {
  width: 100% !important;
}
.align-center {
  text-align: center;
}
.align-left {
  text-align: left;
}
.align-right {
  text-align: right;
}
.default-border-bottom {
  border-bottom: 1px solid #c1c2c5;
}
.default-border-right {
  border-right: 1px solid #c1c2c5;
}
.default-border-top {
  border-top: 1px solid #c1c2c5;
}
.default-border-left {
  border-left: 1px solid #c1c2c5;
}
.rd-hidden {
  display: none !important;
}
.vertical-align-middle {
  vertical-align: middle;
}
.block {
  display: block;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-default {
  cursor: default !important;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.rd-border-radius {
  border-radius: 4px;
}
.rd-page-loading-status {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 114px;
  background-color: #eafaf9;
}
.rd-brms-page-container {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 1280px;
  max-width: 1920px;
  margin: auto;
}

.rd-task-form-line {
  margin-top: 20px;
  margin-bottom: 44px;
  border-bottom: 1px solid #f2f4f6;
}

.text-decoration {
  text-decoration: underline !important;
}

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

.white-space-line {
  white-space: pre-line !important;
}

.white-space-wrap {
  white-space: pre-wrap;
}

.work-bread-all {
  word-break: break-all;
}

.word-wrap-break {
  word-break: break-all;
  white-space: pre-wrap;
}

.word-break-keep-all {
  word-break: keep-all !important; /* 保持完整的单词 */
}

.line-horizontal {
  width: 100%;
  height: 1px;
  background: #c1c2c5;
  left: 0;
  right: 0;
  margin: auto;
}

.task-form-item-area {
  width: 100%;
  min-height: 120px;
  padding: 9px 8px;
  font-size: 14px;
  border: 1px solid #c1c2c5;
  box-sizing: border-box;
  border-radius: 8px;
  background-color: #fff;
  color: #000042;
  &::-webkit-input-placeholder {
    color: #c1c2c5;
  }
}

.no-box-shadow {
  box-shadow: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1 {
  font-weight: 400 !important;
  font-size: 28px;
  line-height: 100%;
  color: #000042 !important;
}

h2 {
  font-weight: 500 !important;
  font-size: 22px;
  line-height: 100%;
  color: #000042 !important;
}

h3 {
  font-weight: 500 !important;
  font-size: 16px;
  line-height: 100%;
  color: #000042 !important;
}

h4 {
  font-weight: 400 !important;
  font-size: 14px;
  line-height: 100%;
  color: #000042 !important;
}

h5 {
  font-weight: 300 !important;
  font-size: 12px;
  line-height: 100%;
  color: #5b5b83 !important;
}

h6 {
  font-weight: 400 !important;
  font-size: 10px;
  line-height: 100%;
  color: #5b5b83 !important;
}

.rd-default-table-container {
  nz-table {
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    padding: 8px 0 8px;
    .ant-table-column-sorters {
      justify-content: flex-start;
      .ant-table-column-title {
        flex: initial;
      }
    }

    .ant-table-column-has-sorters[align="right"] {
      .ant-table-column-sorters {
        justify-content: flex-end;
      }
    }
  }

  .ant-table {
    background: transparent;
    .ant-table-cell {
      font-size: 12px;
      padding-left: 5px;
      padding-right: 5px;
    }
  }

  td {
    border-bottom: unset !important;
    font-weight: 400;
    font-size: 12px;
    word-wrap: break-word;
    line-height: 20px;
    color: #000042;
  }

  .nz-table-hide-scrollbar {
    overflow: hidden !important;
  }

  .ant-table-tbody > tr.ant-table-row:hover > td {
    background: #eaf7fa;
  }

  .ant-table-tbody > tr > td,
  .ant-table tfoot > tr > th,
  .ant-table tfoot > tr > td {
    padding: 12px 24px;
    transition: none;
  }

  .ant-table-thead > tr > th {
    padding: 4px 24px 12px 24px;
  }

  .ant-table-thead
    > tr
    > th:not(:last-child):not(.ant-table-selection-column):not(
      .ant-table-row-expand-icon-cell
    ):not([colspan])::before {
    width: 0;
  }

  .ant-table-thead > tr > th {
    border-bottom: 1px solid #e3e5e8;
    color: #5b5b83;
    background: #ffffff !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
  }
  .ant-table-tbody > tr {
    vertical-align: top;
  }
  .ant-table-column-sorters {
    justify-content: flex-start;
    .ant-table-column-title {
      flex: initial;
    }
  }

  .ant-table-column-has-sorters[align="right"] {
    .ant-table-column-sorters {
      justify-content: flex-end;
    }
  }
}

.rd-default-no-check {
  nz-table {
    .ant-table {
      .ant-table-thead {
        .ant-table-cell {
          line-height: 14px;
          &:first-child {
            padding-left: 20px;
          }
          &:last-child {
            padding-right: 20px;
          }
        }
      }

      .ant-table-tbody {
        .ant-table-cell {
          line-height: 14px;
          &:first-child {
            padding-left: 20px;
          }
          &:last-child {
            padding-right: 20px;
          }
        }
      }
    }
  }
}

.rd-common-tabs {
  margin-bottom: 32px;
  border-bottom: 1px solid #000042;
  &-item {
    display: inline-block;
    margin-right: 22px;
    padding: 4px 24px;
    font-weight: 500;
    color: #c1c2c5;
    cursor: pointer;
    font-size: 12px;
    line-height: 14px;
    &.active {
      color: #fff;
      border-radius: 8px 8px 0px 0px;
    }

    &.active:nth-of-type(n) {
      background: #5b5b83;
    }
  }
}
