.course-header {
  margin-top: 100px;
  margin-bottom: 100px;
}

.course-status-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;

  @media only screen and (max-width: $breakpoint_small) {
    justify-content: flex-start;
  }
}

.course-status {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;

  &.green {
    background-color: #00a467 !important;
  }

  &.orange {
    background-color: #ff9800 !important;
  }

  &.red {
    background-color: #d40000 !important;
  }
}

.controls button.outlined.active {
  border: none !important;
}

#course-filters {
  margin-top: 32px;
  min-height: 80px;
  padding: 20px;

  #apply-course-filters {
    max-width: 100%;
    margin-top: 5px;
    padding: 0 8px;
    float: left;
  }

  #reset-course-filters {
    color: $text_inverse;
    float: left;
    padding: 8px 16px;
  }

  .input-field {
    margin-top: 0;
    margin-bottom: 0;

    > input {
      color: $text_inverse;
      border-bottom: 1px $text_inverse solid;
      height: 2rem;

      &:focus {
        box-shadow: 0 1px 0 0 $text_inverse;
      }
    }

    label {
      color: $text_inverse;
    }
  }

  .course-language-filter {
    padding: 8px;
    color: $text_inverse;

    span {
      padding-left: 28px;
    }
  }

  .row:last-child {
    margin-bottom: 10px;
  }
}

#course-container {
  margin-bottom: 100px;

  #course-list {
    overflow-x: auto;
    white-space: nowrap;

    .disabled {
      opacity: 0.3;
      pointer-events: none;
    }

    tr {
      border-color: $zim_yellow;

      &.fully-booked {
        color: $text_secondary;
      }
    }

    td {
      vertical-align: top;

      &.course-list-title {
        white-space: normal;
      }

      .course-block {
        white-space: initial;
      }
    }

    a {
      text-decoration: underline;
      color: $zim_yellow;
    }
  }
}

.base-course-list-title {
  width: 50%;

  @media (max-width: 600px) {
      width: 100%;
    }
}

.base-course-address-title {
  width: 20%;
}

.infinite-course {
  border-top: 1px solid #ffaf0f;
  display: flex;
  padding: 15px 0 45px;

  @media (max-width: 600px) {
    padding: 15px 0;
  }
}

.break-spaces {
    white-space: break-spaces;
}

.margin-left-15 {
    margin-left: 15px;
}

.course-blocks-container {
    width: 90%;
//     min-width: 680px;
}

.registration-link-contianer {
    width: 85%;

  i.material-icons.inline {
    vertical-align: text-top !important;
  }
}

.status-registration-header {
    margin-bottom: 20px;
    display: flex;
    width: 27%;
}

.status-registration-link-container {
    margin-bottom: 20px;
    display: flex;
    width: 27%;
    justify-content: flex-end;
}

.course-blocks-container-header {
  padding-left: 0.75rem;
  width: 90%;
}


@media (max-width: 600px) {
    .base-course-list-title {
        margin-bottom: 30px;
    }

    .base-course-address-title {
      display: none;
    }

    .course-blocks-container-header {
        display: none;
    }

    .course-list-title{
        margin-top: 15px;
    }

    .infinite-course {
        flex-direction: column;
    }

    .course-blocks-container {
        margin: 0px;
    }

    .row .col.s12.course-block {
        padding: 0px;
        width: 45%;
    }

    .status-registration-link-container {
        margin-bottom: 20px;
        display: flex;
        width: 100%;
    }

    .status-registration-header {
      display: none;
    }

    .registration-link-contianer {
        width: 75%;
    }
}

i, div {
  @media only screen and (max-width: $breakpoint_medium) {
    font-size: 0.8rem;
    line-height: 1.63;
  }
}

.catchup-rebook-list-title {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  .catchup-rebook-list-text {
    width: 75%;
    h2 {
      margin-bottom: 0;
    }
  }

  .catchup-rebook-list-button {
    display: flex;
    justify-content: flex-end;
    width: 25%;
  }
  
  @media only screen and (max-width: 1330px) {
    .catchup-rebook-list-text {
      width: 100%;
    }
    .catchup-rebook-list-button{
      width: 100%;
    }
  }
}

@media only screen and (max-width: 1258px) {
  #id_street_additional {
    margin-top: 15px;
  }
}

.course-disabled {
  opacity: 0.3;
}

#course-list {
  position: relative;

  .catchup-list {

    .catchup-rebook-list-title {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;

      .catchup-rebook-list-text {
        width: 75%;
        h2 {
          margin-bottom: 0;
        }
      }

      .catchup-rebook-list-button {
        display: flex;
        justify-content: flex-end;
        width: 25%;
      }

      @media only screen and (max-width: 1330px) {
        .catchup-rebook-list-text {
          width: 100%;
        }
        .catchup-rebook-list-button{
          width: 100%;
        }
      }

      //@media only screen and (max-width: $breakpoint_medium) {
      //  .catchup-rebook-list-button{
      //    display: none;
      //  }
      //}
    }

    .catchup-title {
      display: flex;
      flex-direction: row;
      gap: 25px;
      padding: 25px 0;

      span {
        font-size: 20px;
        flex: 50%;
      }
    }

    .catchup-course-list {
      display: flex;
      flex-direction: row;
      gap: 25px;
      padding: 25px 0;
      border-bottom: 1px solid $zim_yellow;
      border-top: 1px solid $zim_yellow;

      &:hover {
        background-color: #f7f7f9;
      }


      .course-list-title {
        flex: 50%;

        .course-list-title-title{
          span{
            word-break: break-word;
            white-space: normal;
          }
        }

        .course-list-title-description{
          p {
            word-break: break-word;
            white-space: normal;
          }
        }
      }

      .catchup-course-blocks {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        flex: 50%;
      }
    }

  }


  .catchup-list > .catchup-course-list ~ .catchup-course-list {
    border-top: none;
  }
}

#instructor-modal {
  width: 90vw;
  height: 90vh;
  max-height: 90vh;
  margin: 5vh auto;
  top: 0 !important;

  .modal-container {
    padding: 50px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 50px;

    #modal-left {
      display: flex;
      flex-direction: column;
      align-items: center;

      img {
        max-width: none;
        height: auto;
        width: 200px;
        border-radius: 100px;
      }

      @media only screen and (max-width: $breakpoint_medium) {
        align-items: flex-start;
      }
    }

    .modal-main {
      display: flex;
      flex-direction: column;

      #instructor-modal-description {
        margin-bottom: 75px;
        white-space: pre-wrap;

        #instructor-name {
          margin: 0;
          padding-bottom: 25px;
        }
      }

      #instructor-modal-course-list {

      }

    }

    @media only screen and (max-width: $breakpoint_medium) {
      flex-direction: column;
    }
  }
}

.catchup-rebook-form {
  #id_payment_method {
    padding-left: 15px !important;

    div {
      float: left;
      list-style: none !important;

      input {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        // outline: 1px solid #f00;
      }

      label {
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 5px;
      }
    }
  }
}
