/*
 * Copyright (C) 2018 - 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) 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) 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/>.
 */
.ic-unread-badge {
  background: var(--ic-brand-primary);
  border-radius: 100px;
  overflow: hidden;
  display: inline-block;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: -6px;
  margin-left: 5px;
}

.ic-unread-badge__count {
  min-width: 5px;
  padding: 1px 10px;
  display: inline-block;
}

.ic-unread-badge__unread-count {
  color: #fff;
}

.ic-unread-badge__total-count {
  background: #E0EBF5;
}

.ic-item-row__select-col + .ic-item-row__author-col {
  margin-right: 11px;
}

.ic-item-row__icon-col-student {
  display: flex;
  align-items: center;
  margin-right: 11px;
}

.ic-item-row__icon-col-teacher {
  margin-left: -11px;
}

.ic-item-row {
  box-shadow: 0 -1px #E8EAEC, inset 0 -1px #E8EAEC;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.ic-button-line-left,
.ic-button-line-right {
  align-content: center;
}

.ic-button-line-left.mobile > span:not(:last-child) {
  margin-right: 16px;
}

.ic-button-line-right.mobile > span > button {
  padding: 0;
}

.mobile .discussions-index-manage-menu {
  margin-left: -9px;
}

.ic-button-line-right.mobile > span {
  padding: 0 8px;
}

.ic-button-line-right.mobile > span:last-child {
  padding-right: 0;
}

.ic-item-row__content-link {
  display: block;
  outline-width: 0.125rem;
  outline-color: transparent;
  outline-style: solid;
}
.ic-item-row__content-link:focus {
  outline-offset: 0;
  outline-color: var(--ic-link-color);
}

.ic-item-row__peer_review {
  margin-left: 2px;
  margin-bottom: -4px;
}

.ic-item-row__content-col {
  min-width: 0;
  flex-grow: 1;
  margin: 0 22px;
}
.ic-item-row__content-col:first-child {
  margin-right: 0;
}
.ic-item-row__content-col > .ic-item-row__content-link, .ic-item-row__content-col > .ic-item-row__content-link:link {
  color: inherit;
}
.ic-item-row__content-col > .ic-item-row__content-link:hover {
  text-decoration: none;
}
.ic-item-row__content-col .ic-item-row__content-link-container {
  width: auto;
}
.ic-item-row__content-col .ic-item-row__content-container {
  width: auto;
}
.ic-item-row__content-col h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  overflow: hidden;
}
.ic-item-row__content-col p {
  margin: 0;
}
.ic-item-row__content-col p,
.ic-item-row__content-col h4,
.ic-item-row__content-col .ic-announcement-row__content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ic-item-row__content-col .ic-discussion-row__content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-item-row__meta-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}
@media (min-width: 768px) {
  .ic-item-row__meta-col {
    min-width: 230px;
    max-width: 230px;
  }
}
.ic-item-row__meta-col .ic-item-row__meta-actions {
  height: 23px;
}
.ic-item-row__meta-col .ic-item-row__meta-content p {
  margin: 3px 0 0;
}
.ic-item-row__meta-col .ic-item-row__meta-content .ic-item-row__meta-content-heading {
  font-weight: 600;
}

.icon-blueprint {
  margin-bottom: 3px;
  padding: 8px 8px 7px 8px;
}

.ic-drag-handle-container {
  padding: 0.375rem;
  flex-shrink: 1;
}

.ic-discussion-content-container {
  flex-grow: 1;
  flex-shrink: 1;
  box-sizing: border-box;
  min-width: 0.0625rem;
}

.icon-blueprint-lock {
  margin-bottom: 3px;
  padding: 8px 8px 7px 8px;
}

.ic-discussion-row .ic-item-row__meta-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.ic-discussion-row .ic-item-row__meta-actions .ic-item-row__master-course-lock:focus {
  outline-offset: 0;
  outline-color: var(--ic-link-color);
}
.ic-discussion-row .ic-item-row__meta-actions .ic-item-row__master-course-lock {
  margin-right: 2px;
  margin-left: 2px;
}

.ic-discussion-row-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.mobile .discussions-index-manage-menu span button span {
  border: none;
  background: none;
}

.ic-discussion-row .ic-discussion-row__content p:not(:first-of-type) {
  display: none;
}

.ic-announcement-row .ic-announcement-row__content p:not(:first-of-type) {
  display: none;
}
.ic-announcement-row .ic-item-row__meta-actions .ic-item-row__master-course-lock:focus {
  outline-offset: 0;
  outline-color: var(--ic-link-color);
}
.ic-announcement-row .ic-item-row__meta-actions .ic-item-row__master-course-lock {
  vertical-align: text-bottom;
  margin-right: 10px;
  margin-left: 2px;
}
.ic-announcement-row .ic-item-row__meta-content svg {
  transform: translateY(3px);
  font-size: 1.2rem;
}

.discussion-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discussion-title:hover {
  text-decoration: none;
}
.discussion-title {
  outline-width: 0.125rem;
  outline-color: transparent;
  outline-style: solid;
}
.discussion-title:focus {
  outline-offset: 0;
  outline-color: var(--ic-link-color);
}

.userMessage.mobile p:first-child {
  margin-top: 0px;
}

.discussion-row-mastery-paths-pill {
  margin-right: 6px;
  margin-left: 6px;
  margin-top: -4px;
}

.ic-discussion-row {
  box-shadow: -1px -1px #E8EAEC, inset -1px -1px #E8EAEC;
  padding-left: 10px;
  padding-right: 10px;
}

.ic-discussion-row.mobile {
  box-shadow: none;
  padding: 16px;
  border-radius: 5px;
  border: #E8EAEC 1px solid;
}

.pinned-discussions-v2__wrapper,
.unpinned-discussions-v2__wrapper {
  padding: 10px;
  border: 1px solid #E8EAEC;
  border-bottom: 0px;
  background-color: #FFFFFF;
}

div.author_post a span.user_content {
  font-weight: bold;
}

.toggle-button {
  outline-width: 0.125rem;
  outline-color: transparent;
  outline-style: solid;
}
.toggle-button:focus-within {
  outline-offset: 0;
  outline-color: var(--ic-link-color);
}
.toggle-button {
  border: none;
  background: transparent;
}

.disabled-toggle-button {
  background: transparent;
  border: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.discussion-settings-v2-spinner-container {
  z-index: 9999;
  position: absolute;
  background: rgba(255, 255, 255, 0.65098);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  outline-width: 0.125rem;
  outline-color: transparent;
  outline-style: solid;
}
.discussion-settings-v2-spinner-container:focus {
  outline-offset: 0;
  outline-color: var(--ic-link-color);
}

.discussion-settings-v2-modal-body-container {
  position: relative;
  height: 300px;
}

.closed-for-comments-discussions-v2__wrapper {
  padding: 10px;
  border: 1px solid #E8EAEC;
  background-color: #FFFFFF;
}

.discussions-v2__spinnerWrapper {
  align-items: center;
  justify-content: center;
  height: 800px;
  display: flex;
}

.discussions-container__wrapper {
  position: relative;
}

.discussions-v2__container-image {
  padding: 12px;
  margin: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  border: 0.125rem dashed #E8EAEC;
  border-radius: 0.5rem;
}
.discussions-v2__container-image img {
  transform: scaleX(-1);
}

.discussions-v2__placeholder {
  padding: 12px;
  margin: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px dashed #ccc;
}

.ic-discussion-row {
  background-color: #FFFFFF;
}

span .mention {
  background: rgba(102, 24, 157, 0.1);
  color: #5C1C78;
  border-radius: 0.25rem;
  height: 1.5rem;
  padding: 0.125rem;
}

ul[data-cid=InlineList] > li[data-cid=InlineListItem] > span::after {
  color: #E8EAEC;
}

.highlight-fadeout {
  background-color: rgba(0, 142, 226, 0.1);
  animation: fadeout 2s forwards;
  animation-delay: 4s;
}

.highlight-discussion {
  background-color: rgba(0, 142, 226, 0.1);
}

@keyframes fadeout {
  to {
    background-color: rgba(0, 0, 0, 0);
  }
}
.no-margin p {
  margin: 0;
}

.discussion-post-content {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  color: var(--ic-brand-font-color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}