html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
html{
  font-size: 3vw; // 小屏1080*1920 大屏幕深圳1280×720 大屏东莞1920*1080
  &.big{
    font-size: 1.26vw;
  }
}
.adm-selector {
  max-height: 8rem;
  overflow: auto;
}
#root,
#root > div,
.page-body {
  width: 100%;
  background: #1e50a1;
  color: #333;
  height: 100%;
  box-sizing: border-box;

}
.bottom-set{
  position: fixed;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.4rem;
  font-size: 1.2rem;
}
.page-body {
  margin: 0;
  padding: 0.6rem;

  font-family: PingFang SC;
  display: flex;
  flex-direction: column;
  .mt {
    margin-top: 0.6rem;
  }
  .center {
    text-align: center;
  }

  .header {
    position: relative;
    display: flex;
    min-height: 2.6rem;
    align-items: center;
    .logo {
      width: 10rem;
      border-radius: 0.5rem;
      display: inline-block;
      padding: 0.1em 1.5rem;
      background: #FFF;
    }
    .logodefault {
      width: 10rem;
      border-radius: 0.5rem;
      display: inline-block;
      padding: 0.1em 1.5rem;
      background: #FFF;
    }
    .room-name {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border-radius: 0 0 0.5rem 0.5rem;
      box-sizing: border-box;
      display: inline-block;
      padding: 0.8rem 2rem;
      font-size: 2rem;
      font-weight: 500;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .heaer-btn {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translate(0, -50%);
      border-radius: 0.5rem;
      display: inline-block;
      padding: 0.4em 1.5rem;
      background: #6fba2c;
      line-height: 1.2rem;
      font-size: 0.8rem;
      color: #fff;
      .date {
        font-size: 1rem;
      }
    }
  }
  .section {
    background: #f8f8f8;
    padding: 0.6rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
    &.section-inner {
      background-color: #f0f0f0;
    }
    .chinese-name {
      font-weight: bold;
      font-size: 2.2rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      &.big {
        font-size: 2.4rem;
      }
    }
  }
  .user-header {
    // width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    overflow: hidden;
  }
  .qrccode-img {
    width: 7rem;
    height: 7rem;
    background-color: #fff;
  }
  .qrccode-text {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 0.5rem;
  }
  .doctor-profile {
    font-weight: bold;
    font-size: 1.2rem;
    height: 9.8rem;
    overflow: hidden;
  }
  .table {
    flex: 1;
    overflow: hidden;
    .mt{
      margin-top: 0.5rem;
    }
    .table-content,
    .table-header {
      box-sizing: border-box;
      background: #21469b;
      border-radius: 0.5rem;
      border: 0.14rem solid #21469b;
      padding: 0 0.8rem;
      font-size: 1.6rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      height: 2.55rem;
      line-height: 2.2rem;
      text-align: center;
      color: #fff;
      div{
        display: inline-block;
        position: relative;
      }
    }
    .table-content {
      background-color: #f0f0f0;
      border-color: #f0f0f0;
      text-align: left;
      color: #333;
      &.wait-list{
        text-align: left;
      }
      &.docname{
        background: #21469b;
        border-radius: 0.5rem;
        border: 0.14rem solid #21469b;
        color: #fff;
      }
      &.patname{
        color: red;
      }
      &.patOpeName {
        color: #f39a06;
        padding: 0 0.4rem;
        font-size: 1.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        white-space: normal;
      }
      &.waiting {
        background-color: #f39a06;
        border-color: #f39a06;
        text-align: center;
      }
      &.sussess {
        background-color: #6fba2c;
        border-color: #6fba2c;
        text-align: center;
      }
    }
    .swaper-wrap{
      height: 100%;
    }
    .border{
      position: relative;
      &::before{
        content: '';
        display: block;
        width: 1px;
        height: 98%;
        position: absolute;
        left: 0;
        top: 2%;
        background-color: #333;
        opacity: 0.3;
      }
    }
    .swaper-header{
      font-size: 1.4rem;
      text-align: center;
      padding: 0.58rem 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      &.bg{
        background-color: #21469b;
        color: #fff;
      }
      &.red{
        color: #F22039;
        font-size: 1.6rem;
      }
    }
    .swaper-text-wrap{
      display: flex;
    }
    .swaper-text{
      flex: 1;
      height: 2.4rem;
      line-height: 2.4rem;;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 1.3rem;
      box-sizing: border-box;
      padding: 0 4px;
      &.green{
        flex: 0 0 3.3rem;
        color: #64B77C;
      }
      &.yellow{
        flex: 0 0 3.3rem;
        color: #E0A11B;
      }
      &.icon{
       flex: 0 0 1.2rem;
       text-align: center;
      }
      &.state{
        // font-size: 1.3rem;
        flex: 0 0 3.4rem;
      }
    }
  }
  .footer {
    font-size: 1.2rem;
    padding: 0.8rem 3.5rem 0.4rem 0;
    box-sizing: border-box;
    color: #fff;
    &.big{
      font-size: 1.5rem;
      font-weight: 700;
      display: flex;
      padding: 0.6rem  3.5rem 0.4rem 0;
      .scroll-big{
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        div{
          position: relative;
          display: inline-block;
        }
      }
    }
  }
}
.white-bg {
  .page-body {
    color: #333;
    background: #fff;
  }
  .header {
    .room-name {
      color: #333;
    }
    .heaer-btn {
      background: rgba(111, 186, 44, 0.3);
      color: #333;
    }
  }
  .section {
    background: #f8f8f8;
    &.section-inner {
      background-color: #f0f0f0;
    }
  }
  .table {
    .table-header,
    .table-content {
      background-color: #f0f0f0;
      border-color: #f0f0f0;
      color: #333;
    }
  }
  .footer {
    color: #333;
  }
}
.dark-bg {
  .page-body {
    background: #0d1943;
    color: #fff;
  }
  .header {
    .room-name {
      color: #fff;
    }
    .heaer-btn {
      background-color: #6fba2c;
      color: #fff;
    }
  }
  .section {
    background: #0d2764;
    &.section-inner {
      background-color: #1a387f;
    }
  }
  .table {
    .table-header,
    .table-content {
      background-color: #4474c3;
      border-color: #f0f0f0;
      color: #fff;
    }
  }
  .footer {
    color: #fff;
  }
}

.marquee {
  animation: marquee 10s linear infinite;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}
.marquee.fast {
  animation: marquee 5s linear infinite;
}
@keyframes marquee {
  0% { left: 0; }
  100% { left: -50%; }
}
.scroll-wrap{
  display: flex;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  flex-direction: column;
}
.scroll-content{
  flex: 1;
  overflow: hidden;
}
.marqueeTop-parent{
  position: relative;
  z-index: 1;
  overflow: visible;
}
.marqueeTop {
  animation: marqueeTop 40s linear infinite;
  width: 100%;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}
.marqueeTop.fast {
  animation: marqueeTop 10s linear infinite;
}
@keyframes marqueeTop {
  0% { top: 0; }
  100% { top: -100%; }
}