:root {
  --ant-primary-color: #1492ff;
  --ant-primary-rgb: 20, 146, 255;
  // 增加样式变量，用于页面设置器
  --rs-simulator-background: #edeff3;
  --rs-lifecircle-setter-button-width: 100%;
  --rs-lifecircle-setter-button-height: 32px;
  --rs-lifecircle-setter-button-line-height: 32px;
  --rs-lifecircle-setter-button-margin-bottom: 10px;
  --rs-base-border-color: rgba(228, 228, 228, 1);
  --rs-background-color: rgba(242, 242, 242, 1);
  --rs-basic-background-color: rgba(255, 255, 255, 1);
  --rs-border-bottom-disabled: #e4e4e4
}

.ant-form-item {
  $underlined-components: '.ant-input-underlined, .ant-input-number-underlined, .ant-picker-underlined, .ant-select-selector';
  $components-disabled: '.ant-input-disabled, .ant-input-number-disabled, .ant-picker-disabled';

  .form-item-readonly {
    cursor: not-allowed;
  }

  #{$underlined-components} {

    &:focus,
    &:hover {
      border-bottom-color: var(--ant-primary-color) !important;
    }
  }

  #{$components-disabled} {
    border-bottom-color: var(--rs-border-bottom-disabled) !important;
  }

  .ant-select-disabled {
    .ant-select-selector {
      border-bottom-color: var(--rs-border-bottom-disabled) !important;

      &:focus,
      &:hover {
        border-bottom-color: var(--ant-primary-color) !important;
      }
    }
  }

  .ant-checkbox-checked.ant-checkbox-disabled .ant-checkbox-inner {
    opacity: var(--ant-opacity-loading);
    background-color: var(--ant-color-primary);
    border-color: var(--ant-color-primary);

    &::after {
      border-color: var(--rs-basic-background-color) !important;
    }
  }
}

// Page 容器需要用的样式
body,
html {
  background-color: var(--rs-simulator-background) !important;
}

// Page 容器需要用的样式
.lc-simulator {
  background-color: var(--rs-simulator-background) !important;
}

.lc-field.lc-inline-field>.lc-field-head {
  width: 80px !important;
}

.rs-page-desk,
.rs-form-desk,
.rs-modal-desk,
.rs-drawer-desk {
  .ant-btn {
    padding-top: 19px;
    padding-bottom: 19px;
  }

  .action-bar-btns-right,
  .action-bar {
    gap: 16px !important
  }

  .rs-query-filter-item-operation {
    .buttons-wrapper {
      margin-top: 0 !important;
    }
  }

  .ant-table-cell {
    height: 40px !important;
  }
}

.ant-modal-content {
  padding: 0 !important;
}

.ant-modal-body {
  padding: 8px 12px 16px !important;
}

.ant-modal-footer {
  margin-top: 0 !important;
  padding: 12px 24px !important;
  border-top: 1px solid var(--rs-base-border-color) !important;
}

.ant-modal-close {
  top: 4px !important;
}

.ant-modal-title {
  line-height: 40px !important;
  padding: 0 20px;
  font-weight: normal !important;
  background-color: var(--rs-background-color);
}

.ant-message-notice-warning .ant-message-notice-content {
  background-color: var(--ant-color-warning-bg, rgba(255, 237, 181, 1)) !important;
  color: var(--ant-color-warning, #fbac4d);
}

.ant-message-notice-success .ant-message-notice-content {
  background-color: var(--ant-color-success-bg, rgba(214, 245, 204, 1)) !important;
  color: var(--ant-color-success, #31ab41);
}

.ant-message-notice-error .ant-message-notice-content {
  background-color: var(--ant-color-error-bg, rgba(255, 213, 213, 1)) !important;
  color: var(--ant-color-error, #fb2323);
}