.div-header {
  .logo-div {
    margin: 15px;
    width: 150px;
  }
}

.custom-schedule {
  padding-top: 20px;

  .message {
    background: #131836;
    padding: 20px;
    border-radius: 7px;
    width: 96%;
    margin-top: 30px;

    .invalidDate {
      color: #a5a5af;
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 0px;

      span {
        color: #d7779b;
      }
    }

    .first {
      color: #a5a5af;
      font-size: 18px;
      font-weight: 600;

      span {
        color: #d7779b;
      }
    }

    .second {
      color: #a5a5af;
      font-size: 14px;
      margin: 0;
    }
  }

  .exam-date {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-bottom: 37px;
    box-sizing: border-box;
    flex-wrap: wrap;

    .title {
      width: 290px;

      span {
        color: #cccccc;
        font-size: 18px;
        font-weight: 600;
      }
    }

    .select-Edate {
      display: flex;
      align-items: center;

      .name-input {
        mat-form-field {
          width: 425px;
        }

        height: 52px;
        padding: 0;
        color: #cec5ff;
        background: #0b0f30;
        border: 1px solid #cccccc;
        border-radius: 10px 0px 10px 0px;
        width: 425px;

        img {
          position: absolute;
          width: 20px;
          right: 16px;
          top: 15px;
        }
      }

      .tooltip {
        margin-left: 10px;
        position: relative;

        .tooltip-detail {
          position: absolute;
          padding: 20px;
          border-radius: 10px 0px 10px 0px;
          background: #311f54;
          left: 40px;
          top: -15px;
          width: 300px;
          border: 1px solid #563c84;
          box-shadow: 1px 15px 15px -10px #2a1951;
          display: none;
          z-index: 9;

          &::after {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            border-top: 13px solid transparent;
            border-right: 20px solid #311f54;
            border-bottom: 13px solid transparent;
            top: 12px;
            left: -15px;
          }

          p {
            color: #bdb7c8;
            font-size: 13px;
            letter-spacing: 0.5px;

            &:last-child {
              margin: 0;
            }
          }
        }

        span {
          color: #cccccc;
          cursor: pointer;
          display: block;
        }

        &:hover {
          span {
            color: #E91E63;
          }

          .tooltip-detail {
            display: block;
          }
        }
      }
    }

    .select-week-name {
      display: flex;
      align-items: center;
      width: calc(100% - 290px);
      flex-wrap: wrap;

      .week-box {
        width: 111px;
        height: 80px;
        padding: 10px;
        box-sizing: border-box;
        border: 1px solid #cccccc;
        border-radius: 10px 0px 10px 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        background: #00011f;
        cursor: pointer;
        transition: all 0.3;
        min-width: 111px;
        margin: 5px 18px 5px 0;

        &:last-child {
          margin-right: 0;
        }

        .true {
          display: none;
        }

        .none {
          font-size: 20px;
        }

        span {
          display: block;
          width: 100%;
          text-align: center;
          color: #cccccc;
          font-size: 15px;
          font-weight: 600;
          letter-spacing: 0.5px;

          &:nth-child(2) {
            font-size: 21px;
            font-weight: 100;
          }
        }

        .hours-hrs {
          display: none;
        }

        &:hover {
          // background: #1b1642;
          border: 1px solid #E91E63;

          span {
            color: #f35a81;
          }
        }
      }

      .activeWeekName {
        // background: #1b1642;
        border: 1px solid #E91E63;

        .true {
          display: block;
        }

        .none {
          display: none;
        }

        span {
          color: #f35a81;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }

    .select-hours {
      .week-box {
        height: 50px;

        input {
          width: 100%;
          height: 100%;
          box-sizing: border-box;
          font-size: 15px;
          background: none;
          border: none;
          color: #cccccc;
          text-align: center;
        }

        /* Chrome, Safari, Edge, Opera */
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
          -webkit-appearance: none;
          margin: 0;
        }

        /* Firefox */
        input[type="number"] {
          -moz-appearance: textfield;
        }

        &:hover {
          background: #0e1237;
          border: 1px solid #E91E63;
        }
      }

      .activeHours {
        background: #0e1237;
        border: 1px solid #E91E63;

        input {
          color: #cdc4ff;
        }
      }
    }
  }
}

.tabs {
  border-radius: 10px 0px 10px 0px;
  overflow: hidden;

  .tab {
    width: 100%;
    overflow: hidden;

    .tab-label {
      border-radius: 10px 0px 10px 0px;
      background-color: #00011f;
      border: 1px solid #cccccc;

      .true {
        display: none;
      }

      &:hover {
        // background: #1b1642;
        border: 1px solid #E91E63;
      }
    }

    .CustomeOption {
      border: 1px solid #cccccc;
      display: none;
    }

    &-label {
      display: flex;
      justify-content: center;
      cursor: pointer;
      color: #cccccc;
      font-weight: 600;
      font-size: 20px;
      letter-spacing: 0.2px;
      padding: 20px 38px;
      align-items: center;

      img {
        width: 26px;
        padding-right: 10px;
      }

      .tab-arrow {
        border-radius: 100%;
        min-height: 30px;
        min-width: 30px;
        max-height: 30px;
        max-width: 30px;
        padding: 0;
        text-align: center;
        transition: all 0.3s;
        background: transparent;
        border: 1px solid #ea49a9;
        color: #ea49a9;
        background-color: #2a203f;

        span {
          text-align: center;
          transition: all 0.3s;
          padding: 4px 0;
          font-size: 23px;
          transform: rotate(90deg);
        }
      }
    }

    .fnt_size {
      font-size: 15px;
      letter-spacing: 0.3px;
      font-weight: 600;
    }

    &-content {
      display: none;
      transition: all 0.35s;
    }

    &-close {
      display: flex;
      justify-content: flex-end;
      padding: 1em;
      font-size: 0.75em;
      cursor: pointer;
    }

    #weekchck1 {
      position: absolute;
      opacity: 0;
      z-index: -1;
    }

    .tab_chk {
      position: absolute;
      opacity: 0;
      z-index: -1;
    }
  }

  input:checked {
    +.tab-label {
      color: #f35a81;
      background-color: #1b1642;

      .none {
        width: 26px;
        padding-right: 10px;
        display: none;
      }

      .true {
        display: block;
      }

      .tab-arrow {
        background: #ea49a9;
        border: 1px solid #ea49a9;

        span {
          transform: rotate(-90deg);
          color: #fff;
        }
      }

      +.tab-content {
        display: block;
      }
    }
  }
}

.tab {
  overflow: hidden;

  .heading {
    letter-spacing: 0.3px;
    font-weight: 500;
    text-align: center;
    padding: 0px 20px;
    font-size: 26px;
    color: #cccccc;
  }

  .heading2 {
    letter-spacing: 0.3px;
    color: #cccccc;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    font-family: "muli";
    padding: 0px 20px;
    margin: 40px 0px 8px 0px;
  }

  .indicatore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;

    .busy {
      color: #f35a81;
      font-size: 16px;
      font-weight: 600;
      display: block;
      font-family: "muli";
      text-align: center;
      flex-shrink: 1;
      margin-right: 10px;
    }

    .line {
      width: 82%;
    }

    .time {
      color: #f35a81;
      font-size: 16px;
      font-weight: 600;
      display: block;
      font-family: "muli";
      text-align: center;
      flex-shrink: 1;
      margin-left: 10px;
    }
  }

  .container {
    display: flex;
    align-items: center;
    margin: 20px 0px;

    .box {
      width: 377px;
      height: 232px;
      padding: 21px;
      box-sizing: border-box;
      border: 1px solid #cccccc;
      border-radius: 10px 0px 10px 0px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      background: #00011f;
      cursor: pointer;
      transition: all 0.3s;
      margin: 5px 27px 5px 0;

      .none {
        width: 26px;
        padding: 12px;
      }

      .true {
        display: none;
      }

      span {
        display: block;
        width: 100%;
        text-align: center;
        color: #cccccc;
        font-size: 16px;

        &:nth-child(1) {
          font-size: 31px;
          font-weight: 100;
          padding-bottom: 10px;
        }

        &:nth-child(2) {
          font-size: 31px;
          font-weight: 100;
          padding-bottom: 10px;
        }

        &:nth-child(3) {
          font-size: 31px;
          font-weight: 100;
        }

        b {
          color: #cccccc;
        }
      }

      .dot {
        color: #f35a81;
      }

      &:hover {
        // background: #1b1642;
        border: 1px solid #E91E63;
      }
    }

    :last-child {
      margin: 0px;
    }

    .activeOption {
      // background: #1b1642;
      border: 1px solid #E91E63;

      .true {
        display: block;
        width: 26px;
        padding: 12px;
      }

      .none {
        display: none;
      }

      span {
        &:nth-child(1) {
          color: #f35a81;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        b {
          color: #f35a81;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
      }

      .md-dayon {
        display: none;
      }
    }
  }

  #weekchck1 {
    position: absolute;
    opacity: 0;
    z-index: -1;
  }

  .tab-label {
    .true {
      display: none;
    }
  }

  &-label {
    display: block;
    cursor: pointer;
    color: #cccccc;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.2px;
    padding: 20px 0px;
    text-align: center;
    line-height: 1.2;

    span {
      color: #d379a1;
    }

    .tab-arrow {
      color: #4d517b;
      border: 1px solid #4d517b;
      border-radius: 100%;
      height: 30px;
      width: 30px;
      padding: 0;
      text-align: center;
      transition: all 0.3s;
      background: transparent;
      background: #111538;

      span {
        text-align: center;
        transition: all 0.3s;
        padding: 4px 0;
        font-size: 23px;
        transform: rotate(90deg);
      }
    }
  }

  &-content {
    transition: all 0.35s;
  }

  &-close {
    display: flex;
    justify-content: flex-end;
    padding: 1em;
    font-size: 0.75em;
    cursor: pointer;
  }

  #chck1 {
    position: absolute;
    opacity: 0;
    z-index: -1;
  }
}

input:checked {
  +.tab-label {
    .tab-arrow {
      background: #3c4167;

      span {
        transform: rotate(-90deg);
        color: #fff;
      }
    }
  }
}

.exam-footer {
  display: flex;
  padding: 0 10px;
  justify-content: flex-end;
  margin-bottom: 10px;

  button {
    width: 125px;
    height: 44px;
    border-radius: 30px;
    border: 0;
    box-shadow: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 0px;
    cursor: pointer;
    margin-left: 20px;

    &:hover {
      opacity: 0.8;
    }
  }

  .cancelBtn {
    border: 1px solid #373463;
    color: #7972b3;
    background: #111336;
    width: 144px;
  }

  .submitBtn {
    color: #ee007a;
    background: #fff;
  }
}

.div-body {
  justify-content: center;
  display: flex;
  min-height: 80vh;
  justify-content: center;
  align-items: center;
  padding: 0 50px;
}

// darked calendar start
::ng-deep .mat-datepicker-content .mat-calendar {
  padding-bottom: 8px !important;
  box-shadow: 0px 10px 41px -14px #411f63;
}

::ng-deep .mat-datepicker-content {
  background: #121639 !important;
  border: 2px solid #1e2356 !important;
  color: #837bc4 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

::ng-deep .mat-calendar-body-selected {
  background-color: #f558b5;
  color: white !important;
}

::ng-deep .mat-calendar-body-cell {
  border: 1px solid #1c2041;
}

::ng-deep .mat-calendar-table-header th {
  padding: 8px 0 8px 0 !important;
  color: #635d9b !important;
  font-size: 15px !important;
}

::ng-deep .mat-calendar-table-header-divider::after {
  background: #1e2356 !important;
}

::ng-deep .mat-calendar-body-today.mat-calendar-body-selected {
  box-shadow: none !important;
  background-color: #f558b5;
  color: white !important;
}

::ng-deep .mat-calendar-body-today:not(.mat-calendar-body-selected) {
  border: solid 1px #f558b5 !important;
}

::ng-deep .mat-calendar-body-label {
  color: #837bc4;
  border: 1px solid #1c2041;
}

::ng-deep .mat-calendar-previous-button::after {
  color: #837bc4 !important;
}

::ng-deep .mat-calendar-next-button::after {
  color: #837bc4 !important;
}

::ng-deep .mat-calendar-arrow {
  border-top-color: #837bc4 !important;
}

::ng-deep .mat-calendar-header {
  color: #837bc4 !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
  background-color: #151940;
}

::ng-deep .mat-calendar-body-cell-content {
  color: #837bc4;
}

::ng-deep .mat-calendar-controls {
  display: flex;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 0 5px 0;
}

::ng-deep .mat-calendar-spacer {
  flex: 0 !important;
}

::ng-deep .name-input .mat-form-field-suffix {
  top: 5px !important;
}

::ng-deep.mat-form-field-appearance-fill .mat-form-field-underline::before {
  display: none !important;
}

::ng-deep .mat-calendar-body {
  border: 1px solid #1c2041;
}

::ng-deep .mat-form-field-appearance-fill .mat-form-field-flex {
  padding: 5px !important;
}

::ng-deep .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex {
  background-color: #00011f;
  border-radius: 10px 0px 10px 0px;
  height: 52px;
}

::ng-deep .name-input .mat-button-wrapper svg {
  fill: #595690;
}

::ng-deep .mat-form-field-appearance-fill .mat-form-field-infix {
  padding: 0.1em 0 0.75em 0 !important;

  input::-webkit-input-placeholder {
    color: #cccccc;
  }
}

@media screen and (min-width: 767px) and (max-width: 1440px) {
  .main-div {
    .schedule {
      .container {
        .box {
          width: calc(100% / 3);
          box-sizing: border-box;
          padding: 21px;
          display: flex;

          &:last-child {
            margin-right: 0;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 655px) {
  .tab {
    .container {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin: 20px 0px;
    }
  }
}

@media screen and (max-width: 768px) {
  .tab {
    .heading2 {
      font-size: 15px;
    }

    .indicatore {
      margin: 0 15px;

      .busy,
      .time {
        font-size: 12px;
        margin: 3px;
      }

      .line {
        max-width: 77%;
      }
    }

    .container {
      .box {
        margin: 10px 15px;
        width: 349px;
      }
    }
  }

  .main-div {
    .schedule {
      .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin: 20px 0px;
        justify-content: center;

        .box {
          margin: 10px 0px;
          width: 349px;
        }
      }
    }
  }

  .box {
    flex: 100%;
  }

  .div-footer {
    margin-top: 20px;
  }

  .exam-footer {
    position: relative;

    .submitBtn {
      line-height: 0;
    }
  }

  .tabs {
    .heading {
      font-size: 20px;
      margin-bottom: -10px;
    }

    .tab-label {
      padding: 20px 10px;
      font-weight: 600;
      font-size: 14px;
      margin: 0 15px;
    }
  }

  .custom-schedule {
    padding-left: 15px;

    .exam-date {
      flex-direction: column;
      align-items: inherit;

      .select-Edate {
        .name-input {
          width: 100%;
          margin-left: 10px;
          margin-top: 10px;
          height: auto;

          ::ng-deep mat-form-field {
            width: 100% !important;
          }
        }

        .tooltip {
          .tooltip-detail {
            left: -270px;
            top: -10px;
            width: 210px;

            &::after {
              top: 12px;
              left: unset;
              right: -18px;
              transform: rotate(180deg);
            }
          }
        }
      }

      .select-week-name {
        width: 150px;

        .week-box {
          width: 145px;
          height: auto;
          padding: 15px;
          box-sizing: border-box;
          border: 1px solid #cccccc;
          border-radius: 10px 0px 10px 0px;
          display: flex;
          align-items: center;
          justify-content: end;
          flex-wrap: nowrap;
          background: #00011f;
          cursor: pointer;
          transition: all 0.3s;
          min-width: 107px;
          margin: 5px 10px 5px 0;
          direction: rtl;

          span {
            width: auto;
            margin-left: 0px;
          }

          .hours-hrs {
            display: block;
            font-size: 13px;
            padding: 0 0 0 20px;
            position: relative;

            &::before {
              content: "";
              width: 1px;
              height: 50px;
              background-color: rgba(135, 131, 178, 0.21);
              display: block;
              position: absolute;
              left: 0;
              top: -15px;
            }
          }
        }
      }

      .title {
        width: 100%;

        span {
          font-size: 13px;
        }
      }
    }
  }

  .div-body {
    padding: 0 5px;
  }

  .date-hours {
    display: flex;
    justify-content: center;

    .exam-date {
      .title {
        width: 70%;
      }
    }
  }

  ::ng-deep .mat-form-field-wrapper {
    padding: 0px;
  }

  .placeholder-date::placeholder {
    color: #cccccc;
  }

  .calendar-image {
    .calendar-icon {
      top: 26px !important;
    }
  }

  .tab {
    .container {
      .box {
        margin: 10px 15px;
        width: 349px;
      }
    }
  }
}

::ng-deep .mat-input-element:disabled {
  color: #cccccc;
}

::ng-deep button.mat-focus-indicator.mat-icon-button.mat-button-base {
  z-index: 9;
  top: -9px;
  right: 3px;
}

.calendar-image {
  position: relative;

  .calendar-icon {
    height: 20px;
    width: 19px !important;
    position: absolute;
    top: 16px !important;
    right: 16px !important;
    z-index: 0;
  }
}

::ng-deep span.mat-button-wrapper:first-child {
  svg {
    display: none !important;
  }
}