/* Reset Styles */
/* Global Settings */
html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 10px;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

body {
  padding: 0;
  margin: 0;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.05em;
}

#root {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh;
}
#root > header,
#root > footer {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
#root > #body {
  -webkit-box-flex: 1;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
}

/* Global Mixins */
/* Fluid Typography Mixin - Resizes text based on screen size */
/* Example of Fluid Type Mixin:
 @include fluid-type(
    $text-screen-min-width, <- leave the first two values as-is
    $text-screen-max-width,
    $fluid-type-large-size--min, <- choose the variable that corresponds to the type of text being sized
    $fluid-type-large-size--max
  );
*/
/* Media Queries */
/* Example of Media Query Mixin:
 @include respond-at($bp-small) {
    width: 250px;
}
*/
/* Global SCSS Variables */
/* Colors */
/* Typography */
/* Breakpoints */
/* Global CSS Variables */
/* Colors */
:root {
  --color-primary: #ef3e33;
  --color-primary-text-opposite: white;
  --color-primary-lighter: #fcdbd9;
  --color-primary-lighter-text-opposite: $color-primary;
  --color-secondary: #3d3d3d;
  --color-secondary-text-opposite: white;
  --color-secondary-lighter: #dadada;
  --color-secondary-lighter-text-opposite: #3d3d3d;
  --color-terciary: #4d4d4d;
  --color-alert: #ef3e33;
  --color-alert-text-opposite: white;
  --color-alert-lighter: #fcdbd9;
  --color-alert-lighter-text-opposite: $color-alert;
  --color-success: rgb(0, 173, 0);
  --color-success-text-opposite: white;
  --color-success-lighter: lighten($color-success, 45%);
  --color-success-lighter-text-opposite: $color-success;
  --color-warning: rgb(156, 156, 0);
  --color-warning-text-opposite: white;
  --color-warning-lighter: rgb(255, 255, 184);
  --color-warning-lighter-text-opposite: $color-warning;
}

/* Imports for all sub files */
.noList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* a {
  color: inherit;
  text-decoration: none; }
  a:visited {
    color: inherit; }
  a:hover {
    text-decoration: none; } */

.text-large {
  font-size: 14px;
}
@media screen and (min-width: 1000px) {
  .text-large {
    font-size: calc(14px + 4 * ((100vw - 1000px) / 400));
  }
}
@media screen and (min-width: 1400px) {
  .text-large {
    font-size: 18px;
  }
}

.text-medium {
  font-size: 12px;
}
@media screen and (min-width: 1000px) {
  .text-medium {
    font-size: calc(12px + 4 * ((100vw - 1000px) / 400));
  }
}
@media screen and (min-width: 1400px) {
  .text-medium {
    font-size: 16px;
  }
}

.text-small {
  font-size: 10px;
}
@media screen and (min-width: 1000px) {
  .text-small {
    font-size: calc(10px + 2 * ((100vw - 1000px) / 400));
  }
}
@media screen and (min-width: 1400px) {
  .text-small {
    font-size: 12px;
  }
}

header {
  width: 100%;
  background-color: var(--color-secondary, #3d3d3d);
  padding: 0 10px;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  /* Everything in me knows not to use !important, but it's needed to counteract bootstrap */
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}
@media only screen and (min-width: 1100px) {
  header {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
}

.nav__primary-nav-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}
@media only screen and (min-width: 1100px) {
  .nav__primary-nav-container {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
}

.nav__primary-nav-logo-menu-container {
  height: 65px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav__primary-nav-logo {
  height: 50px;
  width: auto;
}

.nav__primary-nav-list {
  padding: 0;
  /* this is to counter a browser style that's corrected in the reset*/
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-height: 0;
  height: auto;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-left: 40px;
  margin-bottom: 0;
  /*counteracts bootstrap */
  overflow: hidden;
  -webkit-transition-property: max-height;
  transition-property: max-height;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
}
@media only screen and (min-width: 1100px) {
  .nav__primary-nav-list {
    height: 65px;
    margin-left: 0;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    max-height: 65px;
    -webkit-transition-duration: 0s;
    transition-duration: 0s;
  }
}

/* This makes the checkbox hack work for php version until we can use the React local state version*/
input[type="checkbox"]:checked ~ .nav__primary-nav-list {
  max-height: 400px;
  -webkit-transition-property: max-height;
  transition-property: max-height;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.nav__primary-nav-list--expanded > .nav__primary-nav-list {
  max-height: 400px;
  -webkit-transition-property: max-height;
  transition-property: max-height;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.nav__primary-nav-list__item {
  color: var(--color-secondary-text-opposite, white);
  height: 100%;
  min-height: 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  margin: 0 5px;
  padding-left: 10px;
  border-left: 6px solid var(--color-secondary, #3d3d3d);
  border-right: 6px solid var(--color-secondary, #3d3d3d);
  -webkit-transition: border-left 0.75s;
  transition: border-left 0.75s;
  -webkit-transition: border-right 0.75s;
  transition: border-right 0.75s;
  white-space: nowrap;
}
.nav__primary-nav-list__item a {
  text-decoration: none;
}
.nav__primary-nav-list__item--active {
  color: #ef3e33;
  border-left: 6px solid var(--color-primary, #ef3e33);
  border-right: 6px solid var(--color-secondary, #3d3d3d);
}
.nav__primary-nav-list__item:hover {
  border-left: 6px solid var(--color-primary, #ef3e33);
  border-right: 6px solid var(--color-secondary, #3d3d3d);
  -webkit-transition: border 0.5s;
  transition: border 0.5s;
}
@media only screen and (min-width: 1100px) {
  .nav__primary-nav-list__item {
    padding-left: 0;
    margin: 0 10px;
    border-left: 0 solid var(--color-secondary, #3d3d3d);
    border-right: 0 solid var(--color-secondary, #3d3d3d);
    border-bottom: 0px;
    border-top: 0px solid var(--color-secondary, #3d3d3d);
    -webkit-transition: border-bottom 0.25s;
    transition: border-bottom 0.25s;
  }
  .nav__primary-nav-list__item--active {
    color: #ef3e33;
    border-left: 0 solid var(--color-secondary, #3d3d3d);
    border-right: 0 solid var(--color-secondary, #3d3d3d);
    border-bottom: 6px solid var(--color-primary, #3d3d3d);
    border-top: 6px solid var(--color-secondary, #3d3d3d);
  }
  .nav__primary-nav-list__item:hover {
    border-left: 0 solid var(--color-secondary, #3d3d3d);
    border-right: 0 solid var(--color-secondary, #3d3d3d);
    border-bottom: 6px solid var(--color-primary, #ef3e33);
    border-top: 6px solid var(--color-secondary, #3d3d3d);
    -webkit-transition: border 0.25s;
    transition: border 0.25s;
  }
}
@media only screen and (min-width: 1400px) {
  .nav__primary-nav-list__item {
    margin: 0 9px;
  }
}

/* the next two styles are to counteract bootstrap*/
.nav__primary-nav-list__item a {
  color: inherit !important;
}

.nav__primary-nav-list__item a:hover {
  color: inherit;
  background: none;
  text-decoration: none;
}

.nav__logo-logout-block {
  color: var(--color-secondary-text-opposite, white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-size: 1.25rem;
}
.nav__logo-logout-block a:hover {
  color: var(--color-primary, #ef3e33);
}

/* the next two styles are to counteract bootstrap*/
.nav__logo-logout-block a {
  color: #59574b;
}

.nav__logo-logout-block a:hover {
  color: white !important;
  background: none;
  text-decoration: none;
}

.nav__logo-logout-logo {
  height: 40px;
}

.nav__primary-nav-menu-button {
  background: none;
  color: var(--color-secondary-text-opposite, white);
  border: none;
}
.nav__primary-nav-menu-button svg {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  stroke-width: 2px;
  -webkit-transition-duration: 0.25s;
  transition-duration: 0.25s;
}
.nav__primary-nav-menu-button:hover {
  color: var(--color-primary, #ef3e33);
}
.nav__primary-nav-menu-button:hover svg {
  stroke: var(--color-primary, #ef3e33);
}
@media only screen and (min-width: 1100px) {
  .nav__primary-nav-menu-button {
    display: none;
    width: 0;
    height: 0;
    overflow: hidden;
  }
}

/* This is to make the checkbox hack work on the arrow icon until we can use the react version */
input[type="checkbox"]:checked
  ~ .nav__primary-nav-logo-menu-container
  svg#menu_arrow {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

input[type="checkbox"]#toggle-1 {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

.nav__primary-nav-list--expanded .menu-arrow-icon {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

.nav__logo-logout-block {
  font-size: 15px;
  margin-top: 10px;
}
@media only screen and (min-width: 1100px) {
  .nav__logo-logout-block {
    margin: 0;
  }
}

.nav__logo-logout-block hr {
  margin: 7.5px 0;
}

/* SVG Logo Styles */
.nav__sara-logo-1 {
  fill: #231f20;
  stroke: #c00;
  stroke-miterlimit: 3.86;
  stroke-width: 3px;
}

.nav__sara-logo-2 {
  fill: #fcfdff;
}

.nav__sara-logo-3 {
  fill: #fff;
}

.nav__sara-logo-4 {
  fill: #c00;
}

.nav__status-logo-1 {
  fill: #ee3e33;
}

.nav__status-logo-1,
.nav__status-logo-2 {
  fill-rule: evenodd;
}

.nav__status-logo-2 {
  fill: #ef3e33;
}

footer {
  line-height: 2;
  width: 100%;
  background-color: var(--color-secondary, #3d3d3d);
  padding: 0 10px;
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr;
  grid-column-gap: 20px;
  text-align: center;
  justify-items: center;
}
@media only screen and (min-width: 800px) {
  footer {
    grid-template-columns: 150px 1fr 150px;
  }
}
footer a:hover {
  background: none;
}

.footer-image {
  height: 40px;
  width: auto;
}

.footer-box {
  color: var(--color-secondary-text-opposite, white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 5px;
}
.footer-box a {
  color: white;
}
.footer-box a:hover {
  color: var(--color-primary, #ef3e33);
}

.footer-box__info-box {
  max-width: 800px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
@media only screen and (min-width: 800px) {
  .footer-box__info-box {
    grid-column: 2/3;
  }
}
.footer-box__info-box a {
  margin: 0 25px;
}

.footer-box__logo-box {
  grid-column: 1/-1;
  grid-row: 2/3;
}
@media only screen and (min-width: 800px) {
  .footer-box__logo-box {
    grid-column: 3/4;
    grid-row: 1/3;
  }
}

.messaging__container {
  display: grid;
  grid-template-columns: 33vw 1fr;
  padding: 10px 10px;
  grid-gap: 10px;
  width: calc(100vw-20px);
  height: calc(100vh - 148px);

  width: 100%;
}

.messaging__message-list {
  overflow-y: scroll;
  border-bottom: 1px solid #efefef;
  border-top: 1px solid #efefef;
}

.messaging__message-detail {
  width: 100%;
  min-width: 100%;
  overflow-y: scroll;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}

.messaging__filter-sort {
  grid-column: 1/-1;
  justify-self: start;
  width: 33vw;
}

label {
  margin: 5px;
  font-weight: normal;
  padding: 0 8px;
}

.dropdown-menu__reset summary {
  list-style: none;
}

.dropdown-menu__container {
  position: relative;
  display: block;
}

.dropdown-menu__menu-container {
  background-color: white;
  border: solid 1px #3d3d3d;
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.08),
    0 2px 4px 1px rgba(9, 30, 66, 0.08);
  position: absolute;
  padding: 0;
  z-index: 150;
  margin: 10px 0 0;
  right: 0;
  left: auto;
  min-width: 200px;
}
.dropdown-menu__menu-container::before {
  top: -16px;
  right: 10px;
  left: auto;
  border: 8px solid transparent;
  border-bottom-color: #3d3d3d;
  position: absolute;
  display: inline-block;
  content: "";
}

.dropdown-menu__menu-item {
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  font-size: 0.8em;
}
.dropdown-menu__menu-item:hover {
  background-color: #3d3d3d;
  color: white;
}

.dropdown-menu__menu-item:hover a:visited {
  background-color: #3d3d3d;
  color: white !important;
}
.dropdown-menu__menu-item:active {
  background-color: #e0e0e0;
  color: #3d3d3d;
}
.dropdown-menu__menu-item--inactive {
  padding: 5px;
  pointer-events: none;
}
.dropdown-menu__menu-item--inactive:hover {
  background-color: #e0e0e0;
}

.dropdown-menu__menu-button {
  cursor: pointer;
  padding: 0 5px;
  border: 1px solid #3d3d3d;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dropdown-menu__menu-button:hover {
  background-color: #3d3d3d;
  color: white;
}
.dropdown-menu__menu-button:hover .button__text {
  color: white;
}
.dropdown-menu__menu-button:active {
  background-color: #dadada;
  color: white;
}
.dropdown-menu__menu-button:active .button__text {
  color: white;
}
.dropdown-menu__menu-button--reversed {
  background-color: #3d3d3d;
  color: white;
  border: 1px solid white;
}
.dropdown-menu__menu-button--reversed:hover {
  color: #3d3d3d;
  background-color: white;
}
.dropdown-menu__menu-button--reversed:hover .button__text {
  color: #3d3d3d;
}
.dropdown-menu__menu-button--reversed:active {
  color: #dadada;
  background-color: white;
}
.dropdown-menu__menu-button--reversed:active .button__text {
  color: #dadada;
}

.dropdown-menu__menu-content-item {
  flex: 1 1 auto;
}
.dropdown-menu__menu-content-item--inactive {
  pointer-events: none;
  color: #afafaf;
}

.margin-left-5 {
  margin-left: 5px;
}
.margin-left-10 {
  margin-left: 10px;
}

.margin-right-5 {
  margin-right: 5px;
}
.margin-right-10 {
  margin-right: 10px;
}
.margin-5 {
  margin: 5px;
}
.margin-bottom-5 {
  margin-bottom: 5px;
}
.margin-bottom-10 {
  margin-bottom: 10px;
}

.secondary-nav__info-container {
  line-height: 2;
  color: var(--color-secondary, #3d3d3d);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.secondary-nav__user-image {
  border: solid 1px #3d3d3d;
  height: 100%;
  width: 100%;
  max-width: 60px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

hr {
  border: 0;
  height: 1px;
  background-color: #1568bd;
  color: #1568bd;
  width: 100%;
}

hr.dashboard {
  background-color: #ffffff;
}

details summary::-webkit-details-marker {
  display: none;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-item {
  display: flex;
  flex: 1 1 auto;
}

.flex-50 {
  width: 45%;
}

.flex-button {
  cursor: pointer;
  /* padding:5px; */
  margin: 0px;
  display: flex;
  font-size: 14px;
  line-height: 14px;
}

.flex-button a {
  padding: 10px;
  text-align: center;
  display: block;
  background-color: #dddddd;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  box-shadow: 2px 2px 2px #888888;
}

.flex-button a:hover {
  background-color: transparent;
  text-decoration: none;
}
