@import './theme.less';
@import './component/index.less';

.user-select-none {
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.user-select-text {
  -moz-user-select: text !important;
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

.user-select-all {
  -moz-user-select: all !important;
  -webkit-user-select: all !important;
  -ms-user-select: all !important;
  user-select: all !important;
}

// 卡片
.card-header {
  .card-header-title {
    color: #222;
    font-size: 16px;
  }
}

.card-header::after {
  border: none;
}

.card-footer {
  color: #888;
  text-align: center;
  font-size: 12px;
  padding: 10px;
}

// 网格
.grid {
  background-color: #fff;
  padding: 7.5px 0;
}

.grid a {
  text-align: center;
  padding: 7.5px 10px;
}

.grid::before,
.grid a::after {
  border: none;
}

// 悬浮按钮
.fab-main-container {
  .fab-item {
    box-shadow: rgb(102, 102, 102) 0px 2px 8px;
    width: 56px !important;
    height: 56px !important;
    margin-left: 0px !important;
  }

  .fab-item-title {
    right: 5em !important;
  }

  .icons {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .fab .icons.fab-active {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .fab-cantainer.fab.fab-size-normal {
    box-shadow: #abc1d9 0px 3px 9px 0px !important;
  }
}

.rt-content {
  // 弹出框
  .rt-popup-content {
    position: absolute;
    max-height: calc(~'50% - 22px');
    background-color: #fff;
    width: 100%;
    line-height: 14px;
    overflow-y: auto;
    font-size: 14px;
    z-index: 100;
  }

  .rt-popup-list {
    position: absolute;
    max-height: calc(~'50% - 22px');
    background-color: #fff;
    line-height: 14px;
    overflow-y: auto;
    font-size: 14px;
    z-index: 100;
    width: 100%;
  }

  .rt-popup-item {
    padding: 15px 15px;
    position: relative;
    display: flex;
    color: #555;

    span {
      flex: 1;
    }

    i {
      color: @theme-color;
      line-height: 14px;
      font-size: 14px;
    }
  }

  .rt-popup-item ~ .rt-popup-item:before {
    content: ' ';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid #d9d9d9;
    color: #d9d9d9;
    transform-origin: 0 0;
    transform: scaleY(0.5);
    left: 15px;
  }

  .rt-popup-mask {
    position: absolute;
    left: 0px;
    top: 44px;
    z-index: 90;
    width: 100%;
    height: calc(~'100% - 44px');
    background: rgba(0, 0, 0, 0.5);
  }
}

// 标题带背景  /deprecated/
.rt-header.has-background {
  box-shadow: none;

  .rt-header-title,
  .rt-navbar .rt-navbar-right .rt-btn {
    color: #fff;
  }

  .rt-navbar .rt-navbar-left svg {
    fill: #fff;
  }
}

.rt-header.with-background {
  box-shadow: none;
  .rt-navbar {
    background: #70aef7;
    .rt-header-title,
    .rt-navbar-right .rt-btn {
      color: #fff;
    }
    .rt-navbar-left svg {
      fill: #fff;
    }
  }
}

.rt-navbar .rt-navbar-right .rt-btn {
  font-size: 16px !important;
}

// 导航栏的背景
.rt-navbar.navbar-background {
  background-image: url('../imgs/banner.png');
  background-size: 100%;
}

// 页面内容下显示的底部背景
.rt-content > .banner-background {
  background-image: url('../imgs/bottom.png');
  background-size: 100%;
  height: 96px;
  color: #fff;
  text-align: center;

  div {
    display: flex;
    justify-content: center;
    align-items: center;

    &:first-child {
      font-size: 20px;
      line-height: 56px;
    }

    &:nth-child(2) {
      font-size: 16px;
      line-height: 20px;
    }
  }
}

//长串英文换行
.rt-text-readonly {
  word-break: break-all;
}

.rt-input-area input {
  height: 48px !important;
}

.rt-input-area {
  padding: 0 !important;
}

.rt-panel-wrapper > .panel-header {
  padding: 0 !important;

  & > .panel-header-icon {
    background-color: #53a4fc !important;
  }

  & > .panel-header-title > p {
    color: #222 !important;
    font-size: 16px;
    font-weight: 500;
  }
}

.rt-btn span {
  margin: 0 auto;
}

// .rt-form-wrapper .rt-card .rt-textarea.is-top .input-wrapper .rt-input-area textarea {
//   background-color: white;
// }

.rt-form-wrapper,
.rt-content {
  .rt-card .rt-card-content {
    .rt-section {
      margin-bottom: 8px;
      .rt-section-content :first-child {
        .input-label,
        .rt-text-area,
        .input-readonly-wrapper {
          color: #222;
          font-size: 15px;
          font-weight: 500;
        }
      }
      .input-area .input-label {
        color: #888;
        font-weight: 400;
      }
      .input-readonly-wrapper {
        font-size: 13px;
      }
    }
  }
}

.rt-content .rt-card .rt-card-content .input-area {
  border-bottom: none;
}

//拍照组件添加圆角
.rt-thumbnail-img img {
  border-radius: 5px;
}

// .rt-content .rt-card .rt-card-content .rt-textarea.is-top .input-wrapper .rt-input-area textarea {
//   background-color: white;
// }

//字体格式
.rt-first-text {
  font-size: 16px;
  font-weight: 500;
  color: #222222;
}

.rt-second-text {
  font-size: 14px;
  color: #888888;
  font-weight: 400;
}

.rt-second-text2 {
  font-size: 14px;
  color: #222222;
  font-weight: 400;
}

.rt-third-text {
  color: #888888;
  font-weight: 400;
  font-size: 13px;
}

.rt-fouth-text {
  color: #222222;
  font-weight: 400;
  font-size: 13px;
}

.rt-fifth-text {
  color: #555555;
  font-size: 11px;
}

.datetitle {
  font-size: 17px;
  color: #222222;
  font-weight: 600;
}

.rt-selecteditem {
  color: #53a4fc;
}

//rt-card-title字体加粗
.rt-card-title {
  font-weight: bold;
}

//发送按钮

.submitbox {
  width: 94.6%;
  margin-left: 2.7%;
  margin-bottom: 15px;

  .submitbutton {
    border-radius: 5px;
    box-shadow: -2px 6px 16px 4px #c7e2ff;

    .buttoncenter {
      display: flex;

      .rt-icon {
        align-items: center;
      }
    }

    .submittext {
      font-size: 17px;
      margin-left: 5px;
    }
  }
}

//fab按钮背景阴影修改
.fab-main-container .fab-item {
  box-shadow: -4px 5px 17px 0px rgba(165, 210, 255, 0.8);
}

.rt-input-area {
  width: 100%;
}

//弹出框提示字体居中
.rt-toast .rt-toast_cancel .rt-toast-text {
  text-align: center;
}

//修改rttextreadonly改为上对齐
.rt-content .rt-card .rt-card-content .input-area {
  min-height: 20px;
}

.rt-content .rt-card .rt-card-content .input-area .rt-text-area {
  padding: 0;
}

.rt-content .rt-card .rt-card-content .input-area.is-top::after {
  border-bottom: 0px;
}

.input-area.is-switch-top {
  min-height: 50px !important;
  .input-label {
    width: 100%;
  }
}

.rt-advance-filter-item + .rt-form-lookup-area.no-title.input-area.is-top {
  min-height: 30px;
}

.rt-header-title2 {
  color: #222;
}

// 页面底部的rtButtonFooterArea(固定)
.button-footer-area {
  .rt-btn > span {
    display: flex;
    align-items: center;
    line-height: 14px;
    font-size: 14px;
    font-weight: 400;
    color: #1286fd;
    .rt-icon {
      margin-right: 5px;
    }
  }
}

// 修改input后图标颜色
.input-wrapper .inner-icon .rt-icon {
  svg use {
    fill: #b4bdcf;
  }
}
