@import "~styles/mixins";

.ScheduleInput {
  color: $color_font;
  font-size: 14px;
  // padding: 5px 0px;
  margin-top: $form_spacing;

  &.no-margin {
    margin-top: 0;
  }

  .label {
    display: block;
    color: #8c96a3;
    text-transform: uppercase;
    font-size: 10px;
    margin-bottom: 5px;
    font-weight: 600;
    pointer-events: none;
  }

  .day {
    font-weight: 600;
    flex-shrink: 0;
    width: 85px;

    &.responsive {
      margin-bottom: 5px;
      text-align: center;
    }

    &.date-displayed {
      text-transform: capitalize;
      padding: 0 7px;

      &.responsive {
        width: 100%;
      }
    }

  }

  .days-wrapper {
    max-width: 100%;
    overflow: auto;
  }

  .day-wrapper {
    padding: 10px 0;
    border-bottom: 1px solid $color_border;
    display: flex;
    // justify-content: space-between;

    &.responsive {
      display: block;
    }

    .left {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;

      &.responsive {
        flex-direction: column;
        margin: 10px 0;
      }
    }
  }

  .quick-add {
    .title {
      font-weight: bold;
      margin-bottom: 4px;

      &.responsive {
        text-align: center;
      }
    }

    .hours {
      margin: 0;

      &.responsive {
        flex-direction: column;

        .inputs,
        .buttons {
          display: flex;

          input,
          button {
            margin: 5px;
          }
        }
      }

    }

    padding-bottom: 10px;
    border-bottom: 1px solid $color_border;
  }

  button {
    flex-shrink: 0;
  }

  .hours {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    &.responsive {
      margin: 5px 0;

      input {
        width: auto;
      }
    }

    >* {
      margin-right: 5px;
    }

    .remove {
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      padding: 0px 4px;
      margin: 0;
      margin-right: 5px;
    }

    input {
      text-align: center;
      width: 90px;
      height: 30px;
      background-color: rgb(240, 240, 240);
      padding: 3px;
      border-radius: $border_radius;
    }

    &.error {
      input {
        border: 1px solid $color_error;
        color: $color_error;
        border-radius: 2px;
      }
    }
  }

  .error-message {
    margin-top: $form_element_vertical_spacing;
    font-size: $font_size_field_message;
    color: $color_error;
  }
}