﻿.checkInput {
  position: absolute;
  opacity: 0;
}
.checkInput + label {
  position: relative;
  cursor: pointer;
  padding: 0;
}
.checkInput + label:before {
  content: "";
  margin-right: 0.3rem;
  display: inline-block;
  vertical-align: text-top;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #D5D5D5;
}
.checkInput:checked + label:before {
  background: #d3e8fc;
  box-shadow: none;
}
.checkInput:disabled + label {
  color: #b8b8b8;
  cursor: auto;
}
.checkInput:disabled + label:before {
  box-shadow: none;
  background: #ddd;
}
.checkInput:checked + label:after {
  content: "";
  width: 22px;
  height: 22px;
  top: 0;
  left: 0;
  position: absolute;
  background-image: url(../../assets/icon/check.svg);
  background-repeat: no-repeat;
  background-position: center center;
  transform: translateY(1px);
}
.checkInput:focus + label:before {
  box-shadow: 0 0 0 2px rgba(36, 140, 238, 0.3);
}

.switchInput {
  position: absolute;
  opacity: 0;
}
.switchInput + label {
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}
.switchInput + label:before {
  content: "";
  margin-right: 0.3rem;
  display: inline-block;
  vertical-align: text-top;
  width: 2.5rem;
  height: 20px;
  background-color: #D3E8FC;
  border-radius: 50px;
}
.switchInput + label:after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 50%;
  left: 2px;
  position: absolute;
  background-color: #248dee;
  background-repeat: no-repeat;
  background-position: center center;
  transform: translateY(-50%) scale(0.9);
  border: 2px solid #248dee;
  transition: all 0.3s;
}
.switchInput:focus + label:before {
  box-shadow: inset 0 0 0 2px rgba(36, 140, 238, 0.3);
}
.switchInput:disabled + label {
  color: #b8b8b8;
  cursor: auto;
}
.switchInput:disabled + label:before {
  box-shadow: none;
  background: #ddd;
}
.switchInput:checked + label:before {
  background-color: #248DEE;
}
.switchInput:checked + label:after {
  left: calc(2.5rem - 16px - 2px);
  background-color: #D3E8FC;
  border-color: #D3E8FC;
}

.classify-container .classify-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.classify-container .classify-head .btn {
  color: #FF3A1E;
  padding: 0.5rem 1rem;
  font-size: 16px;
  box-shadow: none;
  font-weight: bold;
  border-radius: 0;
}
.classify-container .classify-head .btn:focus {
  box-shadow: inset 0 0 0 3px rgba(255, 56, 30, 0.3);
}
.classify-container .classify-head .btn i {
  margin-left: 0.5rem;
  font-size: 18px;
}
.classify-container .classify-body {
  border: 1px solid #ddd;
  display: flex;
  padding: 1.25rem 0;
}
.classify-container .classify-body .item {
  width: 100%;
  padding: 0 1.25rem;
}
.classify-container .classify-body .item:not(:last-child) {
  border-right: 1px solid #ddd;
}
.classify-container .classify-body .item .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-weight: bold;
}
.classify-container .classify-body .item .title .btn {
  color: #248DEE;
  padding: 0;
  border-radius: 0;
  line-height: 1;
}
.classify-container .classify-body .item .title .btn:focus {
  box-shadow: 0 0 0 3px rgba(36, 140, 238, 0.3);
}
.classify-container .classify-body .item .check-list {
  display: flex;
  flex-wrap: wrap;
}
.classify-container .classify-body .item .check-list .check-item {
  margin-right: 1rem;
}
.classify-container .classify-body .item .range-item .slider-range {
  background-color: #C4C4C4;
  margin-bottom: 1.5rem;
}
.classify-container .classify-body .item .range-item .slider-range .ui-slider-range {
  background-color: #ff9c8f;
}
.classify-container .classify-body .item .range-item .slider-range .ui-state-focus {
  box-shadow: 0 0 0 2px #ff9c8f;
}
.classify-container .classify-body .item .range-item .slider-range.ui-slider-disabled .ui-slider-range {
  background-color: #b9b9b9;
}
.classify-container .classify-body .item .range-item .slider-range.ui-slider-disabled .ui-slider-handle {
  background-color: #757575 !important;
  border-color: #757575 !important;
}
.classify-container .classify-body .item .range-item .rangeInput {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.classify-container .classify-body .item .range-item .rangeInput input[type=number] {
  width: 43%;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: 3px;
  border: 1px solid #ddd;
}
.classify-container .classify-body .item .range-item .rangeInput input[type=number]:focus {
  outline: none;
  border-color: #FF3A1E;
}
.classify-container .classify-body .item .range-item .rangeInput input[type=number]:disabled {
  color: #ddd;
}
.classify-container .classify-body .item .range-item .rangeInput span {
  display: block;
  background-color: #212529;
  height: 2px;
  width: 4%;
}

.Tags__overflow .TagsContainer button:first-of-type {
  margin-left: 0;
}

.sp-teacher-intro {
  overflow-wrap: break-word;
}

.editorContent img {
  width: auto !important;
  max-width: 100%;
}

.row > * {
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .row > * {
    margin-top: 1.5rem;
  }
}
@media (max-width: 900px) {
  .classify-container .classify-body {
    flex-direction: column;
    border-right: 1px solid #ddd;
    padding: 0;
  }
  .classify-container .classify-body .item:not(:last-child) {
    padding: 1.25rem;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  .classify-container .classify-body .item:last-child {
    padding: 1.25rem;
  }
}
