/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* Legacy variables. Discontinue to use these: */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * Convert font-size from px to rem with px fallback
 * @param $size - the value in pixel you want to convert
 * e.g. p {@include fontSize(12px);}
 * courtesy of https://github.com/stubbornella/oocss/blob/master/oocss/src/components/utils/_fontSize.scss
 */
/*
 * Copyright (C) 2017 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* Legacy variables. Discontinue to use these: */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2012 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * Convert font-size from px to rem with px fallback
 * @param $size - the value in pixel you want to convert
 * e.g. p {@include fontSize(12px);}
 * courtesy of https://github.com/stubbornella/oocss/blob/master/oocss/src/components/utils/_fontSize.scss
 */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* header */
.assignment-edit-header {
  margin-bottom: 24px;
}

.assignment-edit-header-group-left {
  padding-top: 2px;
}

.assignment-edit-header-title {
  font-weight: 700;
  font-size: 38px;
  line-height: 40px;
  margin: 0;
}

#edit_assignment_header {
  padding-bottom: 0px;
}

#edit-assignment-header-cr-tab-nav {
  display: flex;
  align-items: flex-end;
}

#assignment-draft-state-cr {
  padding: 0 0 12px 12px;
}

#assignment-gear-button-cr {
  padding-bottom: 6px;
}

#assignment_description {
  width: 100%;
  min-height: 300px;
}

/* for labels */
div.form-column-left {
  width: 145px;
  text-align: right;
  margin-top: 20px;
  display: inline-block;
  vertical-align: top;
  padding: 5px 0px;
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 20px;
}
div.form-column-left label {
  margin-bottom: 0px;
}
div.form-column-left.no-group {
  /* for labels that correspond to an un-grouped form el */
  margin-top: 0px;
}
@media only screen and (min-width: 500px) {
  div.form-column-left {
    text-align: left;
    padding: 5px 10px;
  }
  div.form-column-left label {
    margin-bottom: 5px;
  }
}

#discussion_point_change_warning {
  margin-top: 15px;
  margin-bottom: 0px;
  margin-right: 180px;
  display: inline-block;
  display: none;
}

/* for grouped and un-grouped form els */
div.form-column-right, div.overrides-column-right {
  display: inline-block;
  width: 100%;
}
@media only screen and (min-width: 500px) {
  div.form-column-right, div.overrides-column-right {
    width: 392px;
  }
}
div.form-column-right, div.overrides-column-right {
  /* for groups of form els ONLY */
}
div.form-column-right .border, div.overrides-column-right .border {
  /* parent form-column-right div should have a child */
  /* div that applies border styles and hold content */
  /* using bootstrap or other canvas borders */
  border-color: #ccc;
  padding: 15px;
  margin-top: 20px;
}
div.form-column-right .border select, div.form-column-right .border input[type=text], div.form-column-right .border .subtitle, div.overrides-column-right .border select, div.overrides-column-right .border input[type=text], div.overrides-column-right .border .subtitle {
  margin-right: 15px;
}
div.form-column-right .allocation-grading-container, div.overrides-column-right .allocation-grading-container {
  padding: 0 !important;
}
div.form-column-right .allocation-grading-container label, div.overrides-column-right .allocation-grading-container label {
  margin: 0 !important;
  padding: 0 !important;
}
div.form-column-right #assignment_online_submission_types label.checkbox, div.overrides-column-right #assignment_online_submission_types label.checkbox {
  display: block;
}
div.form-column-right label:hover, div.overrides-column-right label:hover {
  background: #E7F4FF;
}
div.form-column-right #assignment_peer_reviews_checkbox ~ label:hover,
div.form-column-right #peer_reviews_across_sections_checkbox ~ label:hover,
div.form-column-right #peer_reviews_within_groups_checkbox ~ label:hover,
div.form-column-right #peer_reviews_pass_fail_grading_checkbox ~ label:hover,
div.form-column-right #peer_reviews_anonymity_checkbox ~ label:hover,
div.form-column-right #peer_reviews_submission_required_checkbox ~ label:hover, div.overrides-column-right #assignment_peer_reviews_checkbox ~ label:hover,
div.overrides-column-right #peer_reviews_across_sections_checkbox ~ label:hover,
div.overrides-column-right #peer_reviews_within_groups_checkbox ~ label:hover,
div.overrides-column-right #peer_reviews_pass_fail_grading_checkbox ~ label:hover,
div.overrides-column-right #peer_reviews_anonymity_checkbox ~ label:hover,
div.overrides-column-right #peer_reviews_submission_required_checkbox ~ label:hover {
  background: none !important;
}
div.form-column-right, div.overrides-column-right {
  /* if form field is first item in box */
}
div.form-column-right label.flush, div.overrides-column-right label.flush {
  margin: 0px;
}
div.form-column-right label:not(.ic-Label), div.form-column-right label.date_field, div.overrides-column-right label:not(.ic-Label), div.overrides-column-right label.date_field {
  margin: 0px;
  padding: 10px 20px 10px 0px;
}
div.form-column-right #assignment_group_id, div.form-column-right #assignment_grading_type, div.overrides-column-right #assignment_group_id, div.overrides-column-right #assignment_grading_type {
  width: 100%;
}
div.form-column-right .subtitle, div.overrides-column-right .subtitle {
  margin-top: 20px;
  padding-bottom: 5px;
  font-size: 15px;
  font-size: 0.9375rem;
  font-weight: bold;
}
div.form-column-right, div.overrides-column-right {
  /* nested form els within a group */
}
div.form-column-right .nested label.checkbox, div.form-column-right .nested label.radio, div.overrides-column-right .nested label.checkbox, div.overrides-column-right .nested label.radio {
  padding-right: 60px;
}
div.form-column-right .nested select, div.form-column-right .nested a, div.form-column-right .nested .explanation, div.overrides-column-right .nested select, div.overrides-column-right .nested a, div.overrides-column-right .nested .explanation {
  margin-right: 40px;
}
div.form-column-right .nested input[type=text], div.overrides-column-right .nested input[type=text] {
  margin-right: 60px;
}
div.form-column-right .nested button.Button, div.overrides-column-right .nested button.Button {
  margin: 16px 0px 0px 0px;
}
div.form-column-right .nested .nest, div.overrides-column-right .nested .nest {
  padding-right: 20px;
}
div.form-column-right .nested .datetime_suggest, div.overrides-column-right .nested .datetime_suggest {
  padding-right: 70px;
}

#similarity_detection_tools .form-column-right #report_visibility_picker_label {
  padding: 0px 17px 10px 0px !important;
}
#similarity_detection_tools .form-column-right {
  padding-right: 4px;
}
#similarity_detection_tools .form-column-right iframe.tool_launch {
  margin: 15px 0px 0px;
  width: 100%;
}

.assignment-edit-external-tool-alert, .assignment-edit-plagiarism-alert {
  margin: 15px 20px 0;
}

.assignment-edit-group-alert {
  margin-top: 16px;
}

#discussion-edit-view input[readonly] {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  font-weight: bold;
  cursor: default;
}
#discussion-edit-view input[readonly]:focus {
  border-color: transparent;
  outline-style: none;
}
#discussion-edit-view input[data-component=anonymous_post_selector] {
  font-weight: 400;
}

#grading-schemes-selector-dropdown {
  font-weight: normal !important;
}

/* support for master class locked input fields */
#edit_assignment_form h1.title, #discussion-edit-view h1.title {
  clear: both;
}
#edit_assignment_form .to .ic-Form-control.readonly,
#edit_assignment_form .from .ic-Form-control.readonly, #discussion-edit-view .to .ic-Form-control.readonly,
#discussion-edit-view .from .ic-Form-control.readonly {
  margin-bottom: 0;
}
#edit_assignment_form .ContainerDueDate .Available-from-to, #discussion-edit-view .ContainerDueDate .Available-from-to {
  flex-direction: column;
}
#edit_assignment_form .ContainerDueDate .Available-from-to .from, #discussion-edit-view .ContainerDueDate .Available-from-to .from {
  margin-bottom: 18px;
}
@media only screen and (min-width: 500px) {
  #edit_assignment_form .ContainerDueDate .Available-from-to, #discussion-edit-view .ContainerDueDate .Available-from-to {
    flex-direction: row;
  }
  #edit_assignment_form .ContainerDueDate .Available-from-to .from, #discussion-edit-view .ContainerDueDate .Available-from-to .from {
    margin-bottom: 0;
  }
}
#edit_assignment_form .ContainerDueDate .input-append, #discussion-edit-view .ContainerDueDate .input-append {
  display: flex;
}
@media only screen and (min-width: 500px) {
  #edit_assignment_form .ContainerDueDate .input-append, #discussion-edit-view .ContainerDueDate .input-append {
    display: inline-block;
  }
}
#edit_assignment_form .ContainerDueDate .ic-Form-control.readonly input[type=text].ic-Input[readonly], #discussion-edit-view .ContainerDueDate .ic-Form-control.readonly input[type=text].ic-Input[readonly] {
  height: 1.4em;
  padding: 0;
}
#edit_assignment_form .ContainerDueDate .ic-Form-control.readonly label, #discussion-edit-view .ContainerDueDate .ic-Form-control.readonly label {
  margin-bottom: 0;
}

#edit_assignment_form .assignment_description {
  background-color: #FFFFFF;
}
#edit_assignment_form #assignment_points_possible[readonly] {
  margin-top: -3px;
}
#edit_assignment_form #assignment_annotated_document_info {
  color: #4A5B68;
  margin-inline-start: 42px;
  margin-inline-end: 8px;
  margin-block-end: 8px;
  font-size: 14px;
  font-size: 0.875rem;
}

#discussion-edit-view .discussion-description {
  background-color: #FFFFFF;
}
#discussion-edit-view #discussion_topic_assignment_points_possible[readonly] {
  margin-top: -3px;
}
@media (max-width: 400px) {
  #discussion-edit-view input[type=file] {
    width: 100%;
  }
}

.GradeAnonymously__Checkbox {
  margin-top: 5px;
}

.ModeratedGrading__Container {
  display: inline-block;
  margin-right: 4px;
  margin-top: 20px;
  width: 380px;
}
.ModeratedGrading__Container input[type=text] {
  height: auto;
  line-height: 1;
  margin: 0;
  padding: auto;
  box-shadow: none;
  border: none;
}
.ModeratedGrading__Container .ModeratedGrading__GraderCountInputContainer label {
  width: initial !important;
}
.ModeratedGrading__Container .ModeratedGrading__Checkbox {
  margin-right: 20px;
}
.ModeratedGrading__Container .Assignment__Checkbox {
  margin-top: 5px;
  margin-left: 7px;
  margin-bottom: 7px;
}
.ModeratedGrading__Container .ModeratedGrading__CheckboxDescription {
  margin-right: 40px;
  margin-left: 5px;
  display: block;
  font-weight: initial;
}
.ModeratedGrading__Container .ModeratedGrading__CheckboxLabel {
  display: block;
  padding: 25px 0;
}
.ModeratedGrading__Container .GraderCommentVisibility__CheckboxLabel, .ModeratedGrading__Container .GraderNamesVisibleToFinalGrader__CheckboxLabel {
  padding: 0 0 10px;
}
.ModeratedGrading__Container .ModeratedGrading__CheckboxLabelText {
  font-size: 15px;
}
.ModeratedGrading__Container .ModeratedGrading__Content {
  margin-right: 40px;
}
.ModeratedGrading__Container .ModeratedGrading__FinalGraderSelectMenu {
  margin: 10px 0;
}
.ModeratedGrading__Container .ModeratedGrading__FinalGraderSelectMenuLabelText {
  font-size: 15px;
}
.ModeratedGrading__Container .ModeratedGrading__GraderCountInputContainer {
  height: 98px;
}
.ModeratedGrading__Container .ModeratedGrading__GraderCountInputLabelText {
  font-size: 15px;
  width: initial;
}

#allowed-attempts-target select {
  margin: 0;
}
#allowed-attempts-target label {
  padding: 0;
}
#allowed-attempts-target label:hover {
  background: none;
}

#grading_scheme_selector-target label {
  padding: 0;
  margin: 0 0 0 0;
}
#grading_scheme_selector-target label:hover {
  background: none;
}

#edit_assignment_form .form-actions {
  padding-right: 10px;
  margin-bottom: 0;
}
#edit_assignment_form .form-actions .pull-left {
  min-width: 300px;
}
#edit_assignment_form .form-actions .assignment__action-buttons {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}
#edit_assignment_form .form-actions .assignment__action-buttons button {
  margin-top: 10px;
}
@media only screen and (min-width: 500px) {
  #edit_assignment_form .form-actions .assignment__action-buttons {
    display: inline-block;
    width: unset;
  }
  #edit_assignment_form .form-actions .assignment__action-buttons button {
    margin-top: 0px;
  }
}

#assignment_submission_type_selection_tool_launch_container h2 {
  font-size: 1.3rem;
}
#assignment_submission_type_selection_tool_launch_container h3 {
  font-size: 1.1rem;
}

.UsageRightsSelectBox__container.edit-view .control-group {
  margin-bottom: 0;
}
.UsageRightsSelectBox__container.edit-view .control-group .controls {
  margin-right: auto;
}
.UsageRightsSelectBox__container.edit-view .control-group label.control-label {
  padding: 10px 0px 10px 0px;
  margin-right: 15px;
  text-align: right;
  margin-bottom: 0;
  font-weight: bold;
  width: auto;
  float: initial;
}
.UsageRightsSelectBox__container.edit-view .control-group label.control-label:hover {
  background: none;
}

fieldset legend {
  border-bottom: none;
}