/**
* 通用css样式布局处理
* Copyright (c) 2019 ruoyi
*/

/** 基础通用 **/
.pt5 {
  padding-top: 5px;
}

.pr5 {
  padding-right: 5px;
}

.pb5 {
  padding-bottom: 5px;
}

.mt5 {
  margin-top: 5px;
}

.mr5 {
  margin-right: 5px;
}

.mb5 {
  margin-bottom: 5px;
}

.mb8 {
  margin-bottom: 8px;
}

.ml5 {
  margin-left: 5px;
}

.mt10 {
  margin-top: 10px;
}

.mr10 {
  margin-right: 10px;
}

.mb10 {
  margin-bottom: 10px;
}
.ml10 {
	margin-left: 10px;
}

.mt20 {
  margin-top: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mb20 {
  margin-bottom: 20px;
}
.ml20 {
	margin-left: 20px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 900;
  line-height: 1.1;
  color: inherit;
}

.el-message-box__status + .el-message-box__message{
  word-break: break-word;
}

.el-dialog:not(.is-fullscreen) {
  margin-top: 6vh !important;
}

.el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body {
  overflow: auto;
  overflow-x: hidden;
  max-height: 70vh;
  padding: 10px 20px 0;
}

.el-table {
  color: #071025;
  background: transparent;
  border: 1px solid rgba(64, 146, 255, 0.95);
  border-bottom: none;
  font-size: 14px;

  &::before,
  &::after {
    background-color: rgba(64, 146, 255, 0.95);
  }

  .el-table__header-wrapper, .el-table__fixed-header-wrapper {
    flex: 0 0 auto;

    th {
      word-break: break-word;
      background-color: #06347f;
      color: #ffffff;
      height: 38px;
      font-size: 14px;
      font-weight: 700;
      border-color: rgba(64, 146, 255, 0.95);
    }
  }

  th.el-table__cell,
  td.el-table__cell {
    padding: 7px 0;
    border-color: #c7d7f4;
  }

  .el-table__body-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: #dbe7fb;

    tr {
      background-color: #e4edfc;
    }

    tr:nth-child(even) {
      background-color: #d7e4f8;
    }

    tr:hover > td.el-table__cell {
      background-color: #c5d9f6 !important;
    }

    td.el-table__cell {
      color: #071025;
      background-color: transparent;
    }

    .el-button [class*="el-icon-"] + span {
      margin-left: 1px;
    }
  }

  .el-table__fixed,
  .el-table__fixed-right {
    background: #dbe7fb;
  }

  .el-checkbox__inner {
    border-color: #2f7cff;
    background-color: transparent;
  }

  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #2f7cff;
    border-color: #2f7cff;
  }

  .el-switch__core {
    border-color: #2f7cff;
    background-color: #2f7cff;
  }

  .el-button--text,
  .svg-icon,
  [class^="el-icon-"],
  [class*=" el-icon-"] {
    color: #0057d8;
  }
}

.el-table--border,
.el-table--group {
  border-color: rgba(64, 146, 255, 0.95);
}

.el-table--border .el-table__cell {
  border-color: #c7d7f4;
}

.el-table .caret-wrapper .sort-caret.ascending {
  border-bottom-color: #ffffff;
}

.el-table .caret-wrapper .sort-caret.descending {
  border-top-color: #ffffff;
}

.app-container {
  .el-form {
    color: #ffffff;
  }

  .el-form-item__label {
    color: #ffffff;
    font-weight: 500;
  }

  .el-input__inner,
  .el-range-input {
    color: #dcecff;
    background-color: rgba(5, 27, 91, 0.72);
    border-color: #6384d8;
  }

  .el-input__inner::placeholder,
  .el-range-input::placeholder {
    color: rgba(220, 236, 255, 0.5);
  }

  .el-input__prefix,
  .el-input__suffix,
  .el-range-separator,
  .el-date-editor .el-range__icon,
  .el-date-editor .el-range__close-icon {
    color: #4ddfff;
  }

  .el-button {
    border-radius: 2px;
  }

  .el-button--primary {
    color: #ffffff;
    background: linear-gradient(180deg, #2d73ff 0%, #0b42c4 100%);
    border-color: #2f80ff;
    box-shadow: 0 0 8px rgba(47, 128, 255, 0.35) inset;
  }

  .el-button--default {
    color: #54ffff;
    background: rgba(5, 27, 91, 0.55);
    border-color: #1b7fff;
  }
}

/** 表单布局 **/
.form-header {
  font-size: 15px;
  color: #6379bb;
  border-bottom: 1px solid #ddd;
  margin: 8px 10px 25px 10px;
  padding-bottom: 5px
}

/** 表格布局 **/
.pagination-container {
  position: relative;
  min-height: 32px;
  margin-bottom: 0;
  margin-top: 12px;
  padding: 8px 4px !important;
  color: #dcecff;
  background: transparent !important;
}

/* tree border */
.tree-border {
  margin-top: 5px;
  border: 1px solid #0B2567;
  background: #0F124A none;
  border-radius: 2px;
}

.pagination-container .el-pagination {
  right: 0;
  position: absolute;
  color: #dcecff;
}

.pagination-container .el-pagination__total,
.pagination-container .el-pagination__jump {
  color: #dcecff;
}

.pagination-container .el-pagination.is-background .btn-prev,
.pagination-container .el-pagination.is-background .btn-next,
.pagination-container .el-pagination.is-background .el-pager li,
.pagination-container .el-pagination .el-select .el-input .el-input__inner {
  color: #dcecff;
  background: rgba(5, 27, 91, 0.7);
  border: 1px solid #2f80ff;
}

.pagination-container .el-pagination.is-background .el-pager li:not(.disabled).active {
  color: #ffffff;
  background: #1f6fff;
  border-color: #4ddfff;
}

@media (max-width: 768px) {
  .pagination-container .el-pagination > .el-pagination__jump {
    display: none !important;
  }
  .pagination-container .el-pagination > .el-pagination__sizes {
    display: none !important;
  }
}

.el-table .fixed-width .el-button--mini {
  padding-left: 0;
  padding-right: 0;
  width: inherit;
}

/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link,.el-table .el-dropdown-selfdefine {
	cursor: pointer;
	margin-left: 5px;
}

.el-table .el-dropdown, .el-icon-arrow-down {
  font-size: 12px;
}

.el-tree-node__content > .el-checkbox {
  margin-right: 8px;
}

.list-group-striped > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.list-group {
  padding-left: 0px;
  list-style: none;
}

.list-group-item {
  border-bottom: 1px solid #e7eaec;
  border-top: 1px solid #e7eaec;
  margin-bottom: -1px;
  padding: 11px 0px;
  font-size: 13px;
}

.pull-right {
  float: right !important;
}

.el-card__header {
  padding: 14px 15px 7px;
  min-height: 40px;
}

.el-card__body {
  padding: 15px 20px 20px 20px;
}

.card-box {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
  background: #48D1CC;
  border-color: #48D1CC;
  color: #FFFFFF;
}

.el-button--cyan {
  background-color: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}

/* text color */
.text-navy {
  color: #1ab394;
}

.text-primary {
  color: inherit;
}

.text-success {
  color: #1c84c6;
}

.text-info {
  color: #23c6c8;
}

.text-warning {
  color: #f8ac59;
}

.text-danger {
  color: #ed5565;
}

.text-muted {
  color: #888888;
}

/* image */
.img-circle {
  border-radius: 50%;
}

.img-lg {
  width: 120px;
  height: 120px;
}

.avatar-upload-preview {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 4px #ccc;
  overflow: hidden;
}

/* 拖拽列样式 */
.sortable-ghost {
  opacity: .8;
  color: #fff !important;
  background: #42b983 !important;
}

.top-right-btn {
  position: relative;
  float: right;
}

/* 分割面板样式 */
.splitpanes.default-theme .splitpanes__pane {
  background-color: #0F124A!important;
}

/* 深色业务面板统一主题 */
.app-container,
.card-page,
.sec-left,
.sec-right,
.box,
.el-card,
.el-tabs,
.el-collapse,
.el-descriptions,
.tree-border,
.splitpanes.default-theme .splitpanes__pane {
  color: #dcecff;
  background-color: #0F124A !important;
  border-color: #0B2567 !important;
}

.card-page,
.sec-left,
.sec-right,
.box,
.el-card {
  border: 1px solid #0B2567;
  border-radius: 2px;
}

.el-card {
  box-shadow: none;
}

.el-card__header,
.el-card__body,
.el-collapse-item__header,
.el-collapse-item__wrap,
.el-descriptions__header,
.el-descriptions__body {
  color: #dcecff;
  background-color: #0F124A !important;
  border-color: #0B2567 !important;
}

.el-descriptions-item__label,
.el-descriptions-item__content {
  color: #dcecff;
  background-color: #0F124A !important;
  border-color: #0B2567 !important;
}

.el-tabs__nav-wrap::after,
.el-tabs__active-bar {
  background-color: #0B2567;
}

.el-tabs__item {
  color: #a9c6ff;
}

.el-tabs__item.is-active,
.el-tabs__item:hover {
  color: #54ffff;
}

.el-tree {
  color: #dcecff;
  background-color: #0F124A !important;
}

.el-tree-node__content {
  color: #dcecff;
  background-color: transparent !important;
}

.el-tree-node__content:hover,
.el-tree-node:focus > .el-tree-node__content,
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  color: #54ffff;
  background-color: rgba(11, 37, 103, 0.85) !important;
}

.el-tree-node__label {
  color: inherit;
}

.el-dialog {
  overflow: hidden;
  color: #dcecff;
  background-color: #0F124A !important;
  border: 1px solid #0B2567;
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.el-dialog__header,
.el-dialog__body,
.el-dialog__footer {
  color: #dcecff;
  background-color: #0F124A !important;
}

.el-dialog__header {
  border-bottom: 1px solid #0B2567;
}

.el-dialog__footer {
  border-top: 1px solid #0B2567;
}

.el-dialog__title,
.el-dialog__headerbtn .el-dialog__close {
  color: #ffffff;
}

.v-modal {
  background: #101654;
  opacity: 0.72;
}

.el-message-box,
.el-popover,
.el-dropdown-menu,
.el-select-dropdown,
.el-picker-panel,
.el-cascader__dropdown,
.el-autocomplete-suggestion,
.el-tooltip__popper.is-dark {
  color: #dcecff;
  background-color: #0F124A !important;
  border-color: #0B2567 !important;
}

.el-message-box__title,
.el-message-box__content,
.el-popover__title,
.el-dropdown-menu__item,
.el-select-dropdown__item,
.el-cascader-node,
.el-picker-panel__body,
.el-date-table td,
.el-date-table th {
  color: #dcecff;
}

.el-dropdown-menu__item:hover,
.el-dropdown-menu__item:focus,
.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover,
.el-cascader-node:not(.is-disabled):focus,
.el-cascader-node:not(.is-disabled):hover {
  color: #54ffff;
  background-color: rgba(11, 37, 103, 0.85) !important;
}

.el-select-dropdown__item.selected,
.el-date-table td.current:not(.disabled) span,
.el-date-table td.today span {
  color: #54ffff;
}

.el-drawer,
.el-drawer__header,
.el-drawer__body {
  color: #dcecff;
  background-color: #0F124A !important;
}

.el-drawer {
  border-left: 1px solid #0B2567;
}

.el-dialog,
.el-drawer,
.el-popover,
.el-message-box {
  .el-form-item__label {
    color: #ffffff;
    font-weight: 500;
  }

  .el-input__inner,
  .el-textarea__inner,
  .el-range-input {
    color: #dcecff;
    background-color: rgba(5, 27, 91, 0.72);
    border-color: #6384d8;
  }

  .el-input__inner::placeholder,
  .el-textarea__inner::placeholder,
  .el-range-input::placeholder {
    color: rgba(220, 236, 255, 0.5);
  }

  .el-input__prefix,
  .el-input__suffix,
  .el-range-separator,
  .el-date-editor .el-range__icon,
  .el-date-editor .el-range__close-icon {
    color: #4ddfff;
  }

  .el-button--primary {
    color: #ffffff;
    background: linear-gradient(180deg, #2d73ff 0%, #0b42c4 100%);
    border-color: #2f80ff;
  }

  .el-button--default {
    color: #54ffff;
    background: rgba(5, 27, 91, 0.55);
    border-color: #1b7fff;
  }
}

.splitpanes.default-theme .splitpanes__splitter {
  background-color: #0B2567 !important;
  border-color: #0B2567 !important;
}

.el-divider {
  background-color: #0B2567;
}

.el-upload-dragger,
.el-textarea__inner {
  color: #dcecff;
  background-color: rgba(5, 27, 91, 0.72);
  border-color: #0B2567;
}

.el-textarea__inner::placeholder {
  color: rgba(220, 236, 255, 0.5);
}
