/* Hides the History link on the global nav by default */
#global_nav_history_link {
  display: none !important;
}

/* Hide option to send notifications directly to users */
div#tab-announcements
  form[id="add_notification_form"]
  input[name="account_notification[send_message]"],
div#tab-announcements
  form[id="add_notification_form"]
  label[for="account_notification_send_message"],
div#tab-announcements
  form[id^="edit_notification_form"]
  input[name="account_notification[send_message]"],
div#tab-announcements
  form[id^="edit_notification_form"]
  label[for^="account_notification_send_message_"] {
  display: none !important;
}

/* Hide option to change default email address */
tr.channel:not(.default) td.email_meta a {
  display: none !important;
}

/* Determine size of profile pictures */
.wu-avatar-adjusted {
  height: 128px;
  width: 128px;
  border-radius: 20px;
}

@media (min-width: 767px) {
  .wu-avatar-adjusted {
    height: 256px;
    width: 256px;
  }
}

/* Style for the message button icon that gets added on the People page of a course */
.wu-message-btn {
  font-size: 1.25rem;
  height: 1.75rem;
  width: 1.75rem;
  border-color: transparent;
  line-height: 1;
  text-decoration: none;
  margin: 0px;
  cursor: pointer;
}

.wu-message-btn svg {
  fill: #2d3b45;
}

.wu-message-btn:hover svg {
  fill: #00843d;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Styles for Mobile View Global Nav */
.custom-mobile-nav-list-item {
  padding: 0px;
  max-width: 100%;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.custom-mobile-nav-link {
  margin: 0px;
  cursor: pointer;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.625rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  color: #1d6adb;
  background: transparent;
  border-color: transparent;
  text-decoration: none;
  display: block;
  width: 100%;
  border-style: solid;
  border-width: 0.0625rem;
  appearance: none;
  height: auto;
  overflow: visible;
  max-width: 100%;
  position: relative;
}

.custom-mobile-nav-svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentcolor;
  font-size: 2rem;
  line-height: 1;
  overflow: hidden;
}

.custom-mobile-nav-row-wrapper {
  padding-bottom: 0.3125rem;
  padding-top: 0.375rem;
  display: block;
  hyphens: auto;
  line-height: 1.125;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.custom-mobile-nav-row {
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  display: flex;
}

.custom-mobile-nav-text-wrapper {
  box-sizing: border-box;
  flex-shrink: 0;
  min-width: 0.0625rem;
  max-width: 100%;
  overflow: visible;
}

.custom-mobile-nav-text {
  font-size: 1rem;
}

/* The Modal (background) */
.wu-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000000; /* Sit on top */
  padding-top: 10vh; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  max-height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.wu-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-height: 80vh;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.wu-close {
  padding: 8px 16px;
  float: right;
}

.wu-close:hover,
.wu-close:focus {
  cursor: pointer;
}

.wu-modal-header {
  padding: 2px 16px;
  background-color: #00843d;
  color: white;
  border-bottom: 3px solid rgb(249, 194, 43);
}

.wu-modal-body {
  padding: 2px 16px;
  max-height: 50vh;
  overflow: auto;
}

.wu-modal-footer {
  padding: 2px 16px;
  background-color: #f5f5f5;
  border-top: 1px solid #888;
}

.wu-alert {
  padding: 1em;
  color: white;
  opacity: 1;
  transition: opacity 0.6s;
}

.wu-alert.wu-danger {
  background-color: #f44336;
}
.wu-alert.wu-success {
  background-color: #04aa6d;
}
.wu-alert.wu-info {
  background-color: #2196f3;
}
.wu-alert.wu-warning {
  background-color: #ff9800;
}

.progress-bar__bar-container {
  height: 10px;
  margin: 12px 0;
  border: solid var(--ic-brand-primary) 1px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.progress-bar__bar {
  transition: width 0.1s;
  background: var(--ic-brand-primary);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
}

.wu-spinning-loader {
  border: 0.5rem solid #c7cdd1;
  border-top: 0.5rem solid #00843d;
  border-bottom: 0.5rem solid #00843d;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin: 1rem auto;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

button.wu-sort-column {
  color: blue;
  color: var(--ic-link-color);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
}

button.wu-sort-column[data-sort-dir="asc"],
button.wu-sort-column[data-sort-dir="dsc"] {
  border: 1px solid;
  border-radius: 5px;
}

button.wu-sort-column[data-sort-dir="asc"]::after {
  content: " \2191";
}

button.wu-sort-column[data-sort-dir="dsc"]::after {
  content: " \2193";
}

td.wu-teaching-expectations-column-rating[data-sort-value="100"] {
  background-color: rgb(136, 245, 136);
}

td.wu-teaching-expectations-column-rating[data-sort-value="50"] {
  background-color: rgb(241, 241, 113);
}

td.wu-teaching-expectations-column-rating[data-sort-value="0"] {
  background-color: rgb(239, 124, 124);
}

div.wu-scrolling-table-wrapper {
  width: 100%;
  max-height: 650px;
  overflow-y: auto;
}

div.wu-scrolling-table-wrapper thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 90;
  box-shadow: inset 0 1px 0 #000000, inset 0 -1px 0 #000000;
}

/* High Contrast Styles */
body.wu-high-contrast
  #context_external_tool_27_menu_item:not(
    .ic-app-header__menu-list-item--active
  )
  img {
  filter: invert(100%);
}

/* Hide Anonymous Discussion Options */
div#discussion-edit-view
  div#discussion-details-tab
  div.controls
  h4#anonymous_section_header {
  display: none;
}

div#discussion-edit-view
  div#discussion-details-tab
  div.controls
  h4#anonymous_section_header
  + div {
  display: none;
}

/* Details Elements */
details.wu-ui {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
  margin: 0.5em;
}

details.wu-ui > summary {
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
}

details.wu-ui[open] {
  padding: 0.5em;
}

details.wu-ui[open] > summary {
  border-bottom: 1px solid #aaa;
  margin-bottom: 0.5em;
}
