/*

  Copyright 2025 Battelle Energy Alliance, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/

/*
  This stylesheet will eventually be the 'base' that all skins use, overridden by their
  particular skin stylesheets.
*/


@charset "UTF-8";
@use "sass:map";
@use "../../sass/mixins";
@use "../../sass/sal";
@use "@angular/material/prebuilt-themes/indigo-pink.css";
@use "../../sass/cset-font-styles.css";
@use "../../sass/cset2-font-styles.css";
@use "../../styles.css";

$white: #ffffff;
$black: #000000;

/* --- Blues --- */
$primary: (
  50: #e8eff2,
  100: #d2dfe6,
  150: #bccfda,
  200: #a5c0cd,
  250: #8fb0c1,
  300: #79a0b5,
  350: #6390a9,
  400: #4c819c,
  450: #367190,
  500: #206184,
  550: #0a5278,
  600: #0a4b6e,
  650: #094463,
  700: #2c5c6d,
  750: #083c58,
  800: #07354d,
  850: #062d42,
  900: #052637,
  950: #041e2c,
);

$primary-50: map.get($primary, 50);
$primary-100: map.get($primary, 100);
$primary-150: map.get($primary, 150);
$primary-200: map.get($primary, 200);
$primary-250: map.get($primary, 250);
$primary-300: map.get($primary, 300);
$primary-350: map.get($primary, 350);
$primary-400: map.get($primary, 400);
$primary-450: map.get($primary, 450); // Secondary
$primary-500: map.get($primary, 500);
$primary-550: map.get($primary, 550);
$primary-600: map.get($primary, 600);
$primary-650: map.get($primary, 650);
$primary-700: map.get($primary, 700);
$primary-750: map.get($primary, 750);
$primary-800: map.get($primary, 800);
$primary-850: map.get($primary, 850);
$primary-900: map.get($primary, 900); // Main Dark Primary

$primary-color: $primary-900;
$secondary-color: map.get($primary, 450);


$link-color-dark: #1a53ff; //$primary-350;
$link-color-light: $primary-350;

// Grays
$grayscale: (
  50: #fafafa,
  100: #f2f2f2,
  150: #e6e6e6,
  200: #d9d9d9,
  250: #cccccc,
  300: #bfbfbf,
  350: #b3b3b3,
  400: #a6a6a6,
  450: #999999,
  500: #8c8c8c,
  550: #808080,
  600: #737373,
  650: #666666,
  700: #595959,
  750: #4d4d4d,
  800: #404040,
  850: #333333,
  900: #262626,
  950: #1a1a1a,
);
$gray-50: map.get($grayscale, 50);
$gray-100: map.get($grayscale, 100);
$gray-150: map.get($grayscale, 150);
$gray-200: map.get($grayscale, 200);
$gray-250: map.get($grayscale, 250);
$gray-300: map.get($grayscale, 300);
$gray-350: map.get($grayscale, 350);
$gray-400: map.get($grayscale, 400);
$gray-450: map.get($grayscale, 450);
$gray-500: map.get($grayscale, 500);
$gray-550: map.get($grayscale, 550);
$gray-600: map.get($grayscale, 600);
$gray-650: map.get($grayscale, 650);
$gray-700: map.get($grayscale, 700);
$gray-750: map.get($grayscale, 750);
$gray-800: map.get($grayscale, 800);
$gray-850: map.get($grayscale, 850);
$gray-900: map.get($grayscale, 900);

/* --- button styles --- */
$active-text-color: $white;

// Greens
$warn-color: #eae894;

// Reds
$validation-color: red;

// Oranges
$local-install-background-color: #ffc107;
$bg-debug-highlight: #fbe1c2;
$bc-filters-engaged: #f9ce15;

// Answer Options
$yes-color: #006000;
$yes-hover-color: #004d00;
$no-color: #990000;
$no-hover-color: #660000;
$na-color: #367190;
$na-hover-color: #0a4b6e;
$alt-color: #b17300;
$alt-hover-color: #805300;
$iss-color: #242424;
$iss-hover-color: #000000;

$c2m2-fi-color: #265B94;
$c2m2-fi-hover-color: #1e4976;
$c2m2-li-color: #90A5C7;
$c2m2-li-hover-color: #6280b0;
$c2m2-pi-color: #F5DA8C;
$c2m2-pi-hover-color: #efc345;
$c2m2-ni-color: #DCA237;
$c2m2-ni-hover-color: #bb8521;

$spacer: 18px;

*:not(font) {
  font-family: "Roboto", sans-serif;
}

body {
  background-color: $gray-50;
  outline: none;
}

:focus {
  outline: none;
}

*:focus {
  outline: none !important;
}

.nav-link:focus,
.navbar-menu-header:focus {
  border: 1px solid #3b68aa !important;
  border-radius: 4px !important;
  text-decoration: none !important;
}

a:focus {
  text-decoration: underline !important;
}

a {
  padding: 2px;
}

input[type="checkbox"]:focus {
  border: 1px solid #8bb4f8 !important;
  -webkit-box-shadow: 0px 0px 1px 2px #8bb4f8 !important;
  box-shadow: 0px 0px 1px 2px #8bb4f8 !important;
  border-radius: 4px;
}

.btn:focus {
  outline: dashed 2px lightgrey;
  outline-offset: 5px;
}

.gutter-background {
  background-image: url("../../assets/images/bgGradient1.png");
  background-repeat: repeat-x;
  background-position: top left;
  background-size: auto 100%;
}

a,
a:not([href]) {
  color: $link-color-dark;
  cursor: pointer;
}

a:not([href]).btn-link-dark:hover {
  color: #0056b3;
}

.btn-link,
a:not([href]).btn-link,
.btn-link-dark,
a:not([href]).btn-link-dark {
  color: $link-color-dark;
  font-weight: 500;
  border: none;
}

.btn-link-dark:hover,
a:not([href]).btn-link-dark:hover,
.icon-link-button-text-dark:hover {
  text-decoration: underline;
}

.icon-link-button-dark {
  color: $primary-color;
}

.icon-link-button-dark:hover {
  color: $black;
}

.btn-link-subtle {
  font-weight: 400;
  color: $primary-color;
  background-color: transparent;
}

.btn-link-subtle:hover {
  color: $primary-color;
  text-decoration: underline dotted;
  background-color: transparent;
  border-color: transparent;
}

.btn-link-subtle:focus,
.btn-link-subtle.focus {
  text-decoration: underline dotted;
  border-color: transparent;
  box-shadow: none;
}

.btn-link-subtle:disabled,
.btn-link-subtle.disabled {
  color: #6c757c;
  pointer-events: none;
}

.no-underline {
  text-decoration: none !important;
}

h2,
h3,
h4 {
  color: $primary-color;
  margin-top: 0;
}


.heading-color {
  color: $primary-color;
}

label[required]::after {
  content: " *";
  font-weight: bold;
  color: $validation-color;
}

.bg-semi-trans {
  background-color: rgba(255, 255, 255, 0.6);
}

.z-10 {
  z-index: 10;
}

// .left-shadow-3 {
//   box-shadow: -2px 1px 3px #0002;
// }

/* --- header --- */
.cset-header {
  background-color: $primary-color;
}

/* --- footer --- */
// .footer {
//   flex-shrink: 0;
// }

/* -- footer styling -- */
// .footer a {
//   cursor: pointer;
// }

// Accordion / Footer
///////////////////////////////////////////////////////////////////////

.footer .card {
  border: none;
  flex: 1 1 auto;
}

.footer .card-header {
  padding: 0rem;
}

.footer .card-body {
  padding: 0rem;
}

.footer .btn-link,
.footer-section-1 a {
  color: $gray-150;
}

.footer-section-1 a:hover {
  color: $white;
}

.footer-section-1 {
  background-color: $primary-color;
  color: $gray-150;
}

.footer-section-2 {
  color: $gray-50;
  background-color: $primary-color;
  line-height: 2em;
}

.footer-section-2 a {
  color: $gray-50;
}

.footer .card .card-header h5 {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  cursor: pointer;
}

.footer .card .card-header h5 button:first-child {
  width: 100%;
  cursor: inherit;
}

.cset-footer-expand-button {
  color: $gray-150;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.cset-footer-expand-button:hover,
.cset-footer-expand-button:focus,
.footer .btn-link:hover,
.footer .btn-link:focus {
  text-decoration: none;
  color: $white;
}

.footer .bg-primary {
  background-color: $primary-900 !important;
}

.footer .card-header:first-child {
  border-radius: 0rem;
  text-align: center;
}

.f1-head {
  margin: 0.5rem 0;
  font-size: 1.3em;
}

.white-panel {
  background-color: $gray-50;
  margin: 1rem;
  padding: 2em;
  overflow-y:scroll;
  border-radius: 8px;
  max-height: calc(100cqh - 20rem);
  min-height: calc(100cqh - 20rem);
  color: $gray-800;
}

.white-dialog {
  background-color: $white;
  color: $gray-800;
}

.quick-info-container {
  border-radius: 4px;
  background-color: $primary-800;
  color: $gray-100;
  //min-width: 130px;
}

.quick-info-stats-container,
.standards-stats {
  padding-top: 2px;
  padding-bottom: 2px;
  border-radius: 4px;
  text-align: center;
  background-color: $gray-50;
  color: $gray-900;
}

// .content-height {
//   height: calc(100vh - 131px);
// }

.no-padding {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  background-color: $gray-50;
  border: 2px solid $primary-250;
}

// suppress the 'spinner' arrows
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

///////////////////////////////////////////
//       Basic table layout
table.cset-table {
  width: 100%;
  color: $primary-color;
}

table.cset-table tr:nth-child(even) {
  background: $gray-100;
}

table.cset-table tr:nth-child(odd) {
  background: $gray-50;
}

table.cset-table td,
table.cset-table th {
  padding: 0.5rem 0.75rem;
}

table.cset-table th {
  background-color: $secondary-color;
  color: $gray-50;
  font-weight: 500;
}

table.cset-table tr.total-row {
  border-top: 1px solid rgb(200, 200, 200);
  border-bottom: 1px solid rgb(200, 200, 200);
  background-color: inherit !important;
}

///////////////////////////////////////////

table.assessment-summary {
  width: 100%;
  color: $primary-color;
}

// hide some columns in phone mode
table.assessment-summary tr:nth-child(even) {
  background: $gray-100;
}

table.assessment-summary tr:nth-child(odd) {
  background: $gray-50;
}

table.assessment-summary th:nth-child(1) {
  padding-left: 12px;
}

table.assessment-summary td {
  padding: 0.2rem 0.5rem;
}

table.assessment-summary th {
  background-color: $secondary-color;
  color: $gray-50;
  font-weight: 500;
  padding: .5rem;
}

.table.table-td-p1 th,
.table.table-td-p1 td {
  padding: .25rem !important;
}

.table.table-td-p2 th,
.table.table-td-p2 td {
  padding: .5rem !important;
}

.table.table-td-small th,
.table.table-td-small td {
  font-size: .875em;
}

// force transparent
.table>:not(caption)>*>* {
  background-color: transparent !important;
}


table.paddingBetweenCols td,
table.paddingBetweenCols th {
  padding: 0 15px 10px;
}

table.td-align-top td {
  vertical-align: top;
}

.reference-table {
  width: 100%;
  margin-bottom: 10px;
}

.reference-table td,
.reference-table th {
  padding-right: 10px;
}

.reference-table ul li {
  margin-bottom: .5rem;
}

.irp-table th,
.irp-table td {
  vertical-align: top;
  padding: 0.5rem 0.3rem;
}

.login-logo {
  margin: 3em 0 3em 3em;
}

@media only screen and (max-width: 992px) {
  .login-logo {
    padding-top: 1em;
  }
}

// .contact-list-item {
//   display: flex;
//   border: none;
//   padding: 2px 0;
// }

// .contact-list-item div {
//   width: 32%;
//   flex: 1;
//   word-wrap: break-word;
//   margin: 3px;
// }

/* override a few bootstrap classes */
.form-control {
  color: $gray-800;
}

.btn-primary {
  color: $gray-100;
  background-color: $secondary-color;
  border-color: $secondary-color;
  height: fit-content;
}

.btn-primary:hover {
  background-color: $primary-color;
  border-color: $secondary-color;
  color: $active-text-color;
}

.btn.disabled.btn-primary,
.btn:disabled.btn-primary {
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
  background-color: $gray-500 !important;
  color: $gray-300 !important;
  border-color: $gray-500 !important;
}

.btn-secondary {
  background-color: $gray-200;
  color: $gray-900;
  height: fit-content;
}

.btn-secondary:hover {
  background-color: $secondary-color;
  border-color: $secondary-color;
  color: $white;
  fill: $white;
}

.btn-secondary>Label {
  font-weight: 500;
}

.btn-secondary:hover>Label {
  color: $white;
  fill: $white;
}

.btn-secondary:disabled {
  fill: $white;
}

.btn-primary,
.btn-success {
  margin: 2px;
}

/* Answer option button styles */
.btn-yes {
  background-color: $white;
  border-color: $yes-color;
  color: $yes-color;
}

.btn-yes.answer-selected,
.btn-yes:hover {
  background-color: $yes-color;
  color: $active-text-color;
}

.btn-yes.answer-selected:hover {
  background-color: $yes-hover-color;
}

.btn-no {
  background-color: $white;
  border-color: $no-color;
  color: $no-color;
}

.btn-no.answer-selected:hover {
  background-color: $no-hover-color;
}

.btn-no.answer-selected,
.btn-no:hover {
  background-color: $no-color;
  color: $active-text-color;
}

.btn-na {
  background-color: $white;
  border-color: $na-color;
  color: $na-color;
}

.btn-na.answer-selected:hover {
  background-color: $na-hover-color;
}

.btn-na.answer-selected,
.btn-na:hover {
  background-color: $na-color;
  color: $active-text-color;
}

.btn-alt {
  background-color: $white;
  border-color: $alt-color;
  color: $alt-color;
}

.btn-alt.answer-selected:hover {
  background-color: $alt-hover-color;
}

.btn-alt.answer-selected,
.btn-alt:hover {
  background-color: $alt-color;
  color: $active-text-color;
}

.btn-iss {
  background-color: $white;
  border-color: $iss-color;
  color: $iss-color;
}

.btn-iss.answer-selected:hover {
  background-color: $iss-hover-color;
}

.btn-iss.answer-selected,
.btn-iss:hover {
  background-color: $iss-color;
  color: $active-text-color;
}

.btn-inc {
  background-color: $white;
  border-color: $alt-color;
  color: $alt-color;
}

.btn-inc.answer-selected:hover {
  background-color: $alt-hover-color;
}

.btn-inc.answer-selected,
.btn-inc:hover {
  background-color: $alt-color;
  color: $active-text-color;
}


/* C2M2 custom styles */
.btn-c2m2-fi {
  background-color: $white;
  border-color: $c2m2-fi-color;
  color: $c2m2-fi-color;
}

.btn-c2m2-fi.answer-selected,
.btn-c2m2-fi:hover {
  background-color: $c2m2-fi-color;
  color: $active-text-color;
}

.btn-c2m2-fi.answer-selected:hover {
  background-color: $c2m2-fi-hover-color;
}

.btn-c2m2-li {
  background-color: $white;
  border-color: $c2m2-li-color;
  color: #5977AB;
}

.btn-c2m2-li.answer-selected,
.btn-c2m2-li:hover {
  background-color: $c2m2-li-color;
  color: $black;
}

.btn-c2m2-li.answer-selected:hover {
  background-color: $c2m2-li-hover-color;
}

.btn-c2m2-pi {
  background-color: $white;
  border-color: $c2m2-pi-color;
  color: #986C1B;
}

.btn-c2m2-pi.answer-selected,
.btn-c2m2-pi:hover {
  background-color: $c2m2-pi-color;
  color: $black;
}

.btn-c2m2-pi.answer-selected:hover {
  background-color: $c2m2-pi-hover-color;
}

.btn-c2m2-ni {
  background-color: $white;
  border-color: $c2m2-ni-color;
  color: #986C1B;
}

.btn-c2m2-ni.answer-selected,
.btn-c2m2-ni:hover {
  background-color: $c2m2-ni-color;
  color: $black;
}

.btn-c2m2-ni.answer-selected:hover {
  background-color: $c2m2-ni-hover-color;
}



.btn-mfr {
  background-color: $primary-50;
  border-color: $gray-800;
  color: $primary-color;
}

.btn-mfr:hover,
.btn-mfr.answer-selected:hover {
  background-color: $primary-700;
  color: $white;
}

.btn-mfr.answer-selected {
  background-color: $warn-color;
  color: $gray-900;
}

.alt-text-required {
  border: 2px solid $validation-color;
}

.alt-text-required-msg {
  color: $validation-color;
}

.btn-sal-select {
  background-color: transparent;
  margin: 0 2px;
}

.btn-sal-select.active {
  color: $white;
  background-color: $primary-450;
}

.sal-checkboxes input {
  margin-right: 2px;
}

.sal-checkboxes label {
  margin-right: 1rem;
}

/* round the inside corners of the 'inside' buttons of the group */
.answer-group.btn-group>.btn {
  border-radius: 4px !important;
}

.btn-group {
  margin-bottom: 5px;
}

/* define a button style for a pill-style radio button */
.btn-app-mode.active:hover {
  background-color: $black;
  color: $active-text-color;
}

.btn-app-mode {
  background-color: $white;
  border-color: $secondary-color;
  color: $secondary-color;
}

.btn-app-mode.active {
  background-color: $secondary-color;
  border-color: $secondary-color;
  color: $gray-100;
}

.btn-app-mode:hover {
  background-color: $primary-color;
  color: $active-text-color;
}

.btn-pc-only {
  display: inline-block;
}

.btn-mobile-only {
  display: none;
}

@media only screen and (max-device-width: 667px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  .btn-mobile-only {
    display: inline-block;
  }

  .btn-pc-only {
    display: none;
  }
}

/* -- gauge styles -- */
.lmhvh-display {
  display: flex;
  align-items: flex-end;
  margin-bottom: 2em;
}

/* -- radio button styles -- */
.btn-level {
  background-color: $gray-150;
  color: $primary-color;
}

.btn-level:hover {
  background-color: $gray-400;
  color: $primary-color;
}

.btn-level:not(.disabled).active,
.btn-level:not(.disabled).activeLevel,
.show>.btn-level.dropdown-toggle {
  background-color: $secondary-color;
  color: $white;
}

.btn-level.primary.active {
  background-color: $primary-800;
  color: $white;
}

.btn-geo {
  background-color: $gray-150;
  color: $primary-850;
}

.btn-geo:hover {
  background-color: $gray-400;
  color: $primary-850;
}

.btn-geo:not(.disabled).active,
.btn-geo:not(.disabled).activeLevel,
.show>.btn-geo.dropdown-toggle {
  background-color: $primary-850;
  color: $white;
}

.gauge {
  background-color: $white;
  fill: $primary-color;
}

.gaugesmall {
  transform: scale(0.75);
}

/* slider bar styles */
.irs-bar,
.irs-bar-edge,
.irs-single {
  background: $primary-400;
}

.ngx-slider {
  margin-bottom: 4rem !important;
}

.ngx-slider .ngx-slider-pointer,
.ngx-slider .ngx-slider-selection {
  background-color: $primary-450 !important;
}

.ngx-slider .ngx-slider-tick.ngx-slider-selected {
  background: $primary-450 !important;
}

.ngx-slider .ngx-slider-active::after {
  background: $primary-250 !important;
}

.ngx-slider .ngx-slider-tick-legend {
  font-size: 0.7rem;
}

.ngx-slider .ngx-slider-bubble {
  visibility: hidden !important;
}

.gen-sal-slider-group {
  border: 1px solid $primary-200;
  border-radius: 0.5rem;
}

.sal-slider-label {
  display: inline-block;
  font-size: 0.6em;
  background: $primary-400;
  color: white;
  border-radius: 5px;
  padding: 2px 8px;
}

.sal-slider-label+.sal-slider-label {
  float: right;
  color: black;
  background: $primary-100;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

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

/* --- materials overrides --- */

.mat-calendar-body-selected {
  background-color: $primary-color;
}

.mdc-tooltip__surface {
  font-size: 1em;
  background-color: $gray-200 !important;
  color: $gray-900 !important;
  border-radius: 1em;
  border: 1px solid $gray-100;
}

.mat-mdc-tab-label-container {
  margin-bottom: 1rem;
}

ul.mat-tree-node {
  display: block;
}

.side-nav-container .mat-tree-node {
  min-height: 0;
}

.side-nav-container .mat-nested-tree-node>button>span,
.side-nav-container .mat-tree-node>button>span {
  display: block;
}

.side-nav-container .phase-node {
  margin-top: 1rem;
}

.side-nav-container .phase-node>button>span {
  font-size: 1.3rem;
}

.side-nav-container .current-node>button {
  border: none;
  border-radius: .3rem !important;
  background-color: #ffffff;
  color: $primary-600;
}

.side-nav-container .btn-home {
  color: #fff;
  font-size: 1.3rem;
  margin-left: 20px;
}

/* Allow autocomplete to be wider than its companion field */
.cdk-overlay-pane {
  width: auto !important;
}

////////////////////////////////////////////////////////////////////

.display-none {
  display: none !important;
}

.display-hidden {
  visibility: hidden !important;
}

.debug-highlight {
  background-color: $bg-debug-highlight;
  padding: 3px 4px;
  border-radius: 0.3rem;
}

/* --- spinner styles -- */
.spinner-container {
  padding: 8px;
}

.spinner-container>.spinner,
.spinner-container>div {
  border: 4px solid $gray-100;
  border-radius: 50%;
  border-top: 4px solid $primary-color;
  width: 100px;
  height: 100px;
  -webkit-animation: spin-wait 1.3s linear infinite;
  /* Safari */
  animation: spin-wait 1.3s linear infinite;
  margin-left: auto;
  margin-right: auto;
}

.spinner-container.toc>.spinner,
.spinner-container.toc>div {
  border-top: 4px solid $primary-350;
}

div.spinner-size-50 {
  max-width: 50px;
  max-height: 50px;
}

div.spinner-size-20 {
  max-width: 20px;
  max-height: 20px;
}

/* Safari */
@-webkit-keyframes spin-wait {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin-wait {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* spinner fade animation */
.spinner-fade-in {
  opacity: 0 !important;
  transition: 0.2s ease-in-out all;
}

.spinner-show {
  opacity: 1 !important;
}

.spinner-hide {
  display: none;
}

ul.mat-tree-node {
  display: block;
}

ul.mat-tree-node mat-tree-node {
  min-height: 0;
}

.in-page-message {
  margin: 2em 0;
  border: 1px solid $gray-250;
  border-radius: 0.5em;
  padding: 1em;
}

.question-filters input[type="checkbox"] {
  margin-right: 0.5em;
}

.question-filters>div>label {
  font-weight: normal;
  white-space: normal;
}

.question-filters>div {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  align-items: flex-start;
}

.filters-engaged {
  background-color: $bc-filters-engaged;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  padding: 0.6em;
  width: 100%;
  border-radius: 0.5em;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  color: $primary-color;
}

.default-mat-filter {
  font-weight: 700 !important;
  font-style: italic !important;
  font-size: 1.1rem;
}

.parameter-orig-value {
  font-size: 1.1em;
  color: $primary-color;
  font-style: italic;
  margin: 10px 10px;
}

// .parameter-editor-default-message {
//   border: 1px solid $gray-300;
// }

.data-table {
  border: 1px solid $white;
}

table.data-table {
  width: 100%;
  border: 2px solid $black !important;
}

tr.data-table:nth-child(even) {
  background-color: $gray-200;
}

td.data-table {
  padding: 5px;
  text-align: left;
}

th.data-table {
  background: $primary-color;
  color: $white;
  text-align: center;
  padding: 10px;
}

.chart {
  padding-bottom: 45px;
  text-align: center;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.report-links button {
  display: block;
}

.router-flex {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.wrap-text {
  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  // -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  // word-break: break-all;
  /* Instead use this non-standard one: */
  // word-break: break-word;
  word-break: normal;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
  white-space: normal;
}

// Header / Navbar
/////////////////////////////////////////////
.header-help {
  color: $gray-100;
}

.logo-fill {
  fill: $gray-50;
}

.nav-pills>li.active>a,
.nav-pills>li.active>a:focus {
  background-color: $primary-450;
}

.nav-pills>li.active>a:hover {
  background-color: $primary-350;
}

.nav .open>a {
  background-color: transparent;
}

.local-install {
  background-color: $local-install-background-color;
  color: #052637;
  font-size: .8rem !important;
  padding-left: 6px !important;
  font-weight: 600;
}

.nav>li>a:focus,
.nav>li>a:hover {
  background-color: transparent;
  color: $white;
}

.nav-tab {
  background-color: $secondary-color;
  color: $gray-100;
  width: 300px;
  text-align: justify;
}

.nav-tab-collapsed {
  background-color: $secondary-color;
  color: $gray-100;
  text-align: center;
}

.nav-tabs {
  height: 50px;
  border: none;
  background-color: $secondary-color;
}

ul.nav-tabs li.active {
  background: $gray-50;
}

ul.nav-tabs li.active button {
  color: $secondary-color;
  fill: $secondary-color;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: auto;
}

ul.nav-tabs li.active button span:hover,
ul.nav-tabs li.active button:focus,
ul.nav-tabs li.active button:hover {
  color: $primary-color;
  text-decoration: none;
}

ul.nav-tabs li button {
  color: $gray-100;
  font-weight: 500;
  font-size: 1rem;
}

ul.nav-tabs li button:focus,
ul.nav-tabs li button:hover {
  color: $white;
}

ul.nav-tabs li.active button .tab-icon {
  font-size: 1.6rem;
}


.fs-head-lock {
  font-size: 2rem;
}

.fs-head-logo {
  font-size: 4rem;
}

/* --- Navbar --- */
.navbar {
  margin-bottom: 0;
  border-radius: 0;
  min-height: auto;
}

.navbar-toggler-icon {
  font-family: "Material Icons";
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px;
}

.navbar-toggler-icon:before {
  content: "\e5d2";
}

.navbar .navbar-nav .dropdown-menu {
  background-color: $primary-color;
}

.navbar-brand-override-bandaid {
  display: flex;
  padding: 3px 3px 6px 2px
}

.navbar-brand {
  padding: 0rem;
  margin-top: -4px;
  padding-top: 3px;
  padding-bottom: 6px;
  padding-left: 2px;
  padding-right: 3px;
}

.dropdown-menu>li>a {
  color: $gray-100;
}

.navbar .navbar-brand:hover {
  background-color: $secondary-color;
  color: $white;
  padding-top: 3px;
  padding-bottom: 6px;
  padding-left: 2px;
  padding-right: 3px;
}



.navbar .rll:hover,
.navbar .rll:focus,
.navbar a:focus,
.navbar a:hover,
.navbar [mat-button]:focus,
.navbar [mat-button]:hover {
  color: $white;
  background-color: transparent;
  text-decoration: none !important;
}



// Menus
.mat-mdc-menu-panel.menu-panel {
  background-color: $primary-color;
  min-height: 20px;
}

.menu-divider {
  background-color: $gray-150;
  color: $gray-150;
  margin: 8px 0;
  opacity: .8;
}

.navbar-menu-header,
.menu-panel [mat-menu-item].mat-mdc-menu-item {
  color: $gray-150 !important;
  background-color: transparent;
  border: 1px solid transparent;
  text-decoration: none !important;
  height: 2.2rem;
  line-height: 2.2rem;
}

.menu-panel [mat-menu-item].mat-mdc-menu-item:hover:not([disabled]),
.menu-panel [mat-menu-item].mat-menu-item.cdk-program-focused:not([disabled]),
.menu-panel [mat-menu-item].mat-menu-item.cdk-keyboard-focused:not([disabled]),
.menu-panel [mat-menu-item].mat-menu-item-highlighted:not([disabled]) {
  color: $primary-color !important;
  background-color: $white;
}

.menu-panel [mat-menu-item].mat-mdc-menu-item.disabled-menu-item,
.menu-panel [mat-menu-item].mat-menu-item.disabled-menu-item:focus,
.menu-panel [mat-menu-item].mat-menu-item.disabled-menu-item:hover {
  color: $primary-250;
  background-color: transparent;
  cursor: not-allowed !important;
}

.menu-panel [mat-menu-item] .mat-menu-submenu-icon {
  color: $gray-150;
}

.menu-panel [mat-menu-item]:focus .mat-menu-submenu-icon,
.menu-panel [mat-menu-item]:hover .mat-menu-submenu-icon {
  color: $primary-color;
}

.mat-mdc-menu-item:not(:hover):not([disabled]) .mdc-list-item__primary-text {
  color: $gray-150;
}

.mat-mdc-menu-item[disabled] .mdc-list-item__primary-text {
  color: $primary-250;
}

.mat-mdc-button-base,
.mdc-list-item__primary-text {
  letter-spacing: normal !important;
}

// Results Nav indentation. Default is 40px
ul.mat-tree-node {
  padding-left: 20px;
}


// Resource Library
/////////////////////////////////////////////
.rl .search-btn {
  line-height: 14px;
}

.rl input.form-control {
  height: 40px;
}

.rl-title {
  font-size: 2.4rem;
}

.rl .navbar-brand-override-bandaid:hover {
  background-color: transparent;
}

// Previous app.component Styles moved to here
//////////////////////////////////////////////////////////////////////////////////////////

.cset-user {
  float: right;
}

#accordion {
  // position: fixed;
  // bottom: 0;
  width: 100%;
}

.panel-default>.panel-heading {
  background: $primary-color;
}

.panel-heading {
  padding: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.panel-group {
  margin-bottom: 0;
}

.panel-group .panel {
  border-radius: 0;
}

.panel-title {
  margin: 0;
  text-align: center;
}

.panel-title a {
  width: 100%;
  display: block;
  outline: none;
  margin: 0;
  padding: 5px 10px;
  color: $white;
}

.panel-title a:active,
.panel-title a:focus,
.panel-title a:hover {
  text-decoration: none;
  outline: none;
}

// Keyboard Shorcuts
///////////////////////////////////////////////////////////////////////
.keyboard-shortcuts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.keyboard-shortcuts dl {
  margin-bottom: 10px;
}

.keyboard-shortcuts dl>dt {
  display: table-cell;
  font-weight: normal;
  text-align: right;
  vertical-align: top;
  width: 140px;
}

.keyboard-shortcuts dl>dd {
  display: table-cell;
  padding-left: 10px;
}

.keyboard-shortcuts kbd,
.keyboard kbd {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  background-color: $gray-100;
  border: 1px solid $gray-250;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px $white inset;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px $white inset;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px $white inset;
  color: $gray-850;
  display: inline-block;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  margin: 0 0.1em;
  min-width: 2em;
  padding: 0.1em 0.6em;
  text-align: center;
  text-shadow: 0 1px 0 $white;
  vertical-align: bottom;
}

// Landing Page
////////////////////////////////////////////////////////////////////////
.mat-sort-header-arrow {
  color: $gray-100;
}

// Contact Item
///////////////////////////////////////////////////////////////////////
.contact-item-hr {
  margin-top: 2px;
  margin-bottom: 2px;
}

// Framework
///////////////////////////////////////////////////////////////////////
.cyber-framework {
  border-radius: 0.4em;
  border: 1px solid $secondary-color;
  margin: 0.6em 0;
  padding: 0.5em 1em;
}

.cyber-tier-section {
  margin-bottom: 1em;
}

.cyber-tier-section>div>label {
  margin: 0 0.5em 0.5em;
  font-weight: normal;
}

// SAL NIST
///////////////////////////////////////////////////////////////////////
.fips-reference {
  padding: 1em;
}

.fips-reference a {
  margin: 0 0.5em;
}

.fips-reference .vmiddle {
  vertical-align: middle;
}

.icon-openbookicon {
  transform: scale(1);
  background-image: icon(openbookicon, $secondary-color);
}

.icon-openbookicon:hover {
  background-image: icon(openbookicon, $primary-color);
}

a.special-factors-link,
a:not([href]):not([tabindex]).special-factors-link {
  text-decoration: underline dotted;
  color: $link-color-dark;
}

.nist-sal-info-types td {
  vertical-align: top;
  padding: 0.4em 0.5em 0.4em 0;
}

.nist-sal-info-types label {
  font-weight: normal;
  color: $gray-800;
}

.special-factors textarea {
  height: 6.5em;
  margin-bottom: 1em;
}

.yes-no-answers {
  width: 20%;
}

@media only screen and (max-width: 700px) {
  .yes-no-answers {
    width: 45%;
  }
}

@media only screen and (max-width: 500px) {
  .nav-tab-text {
    display: none;
  }
}

// Standards
///////////////////////////////////////////////////////////////////////

.standard-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.standard-item>div {
  display: flex;
  align-items: flex-start;
}

.standard-item>div>label,
input[type="checkbox"]+label {
  margin: 0 0.5em;
  font-weight: normal;
  color: $gray-800;
}

.standard-item>div>label.recommended-standard {
  font-weight: bold;
}

.expand {
  cursor: pointer;
  -moz-transition: transform 0.3s;
  -webkit-transition: transform 0.3s;
  transition: transform 0.3s;
}

.expand.expand-flip {
  -moz-transform: scaleY(-1);
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
  margin-top: -5px;
}

.open-desc {
  height: "*";
  opacity: 1;
  -moz-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.closed-desc {
  opacity: 0;
  visibility: hidden;
  height: 0;
  padding: 0;
  margin-bottom: 0;
}

.recommended-badge {
  background-color: $primary-600;
  color: $white;
  border-radius: 0.6em;
  padding: 2px 8px;
  margin-left: 0.5em;
}

// Observations
///////////////////////////////////////////////////////////////////////
.bigitem {
  /* This will be twice as */
  /* big as the small item. */
  flex: 2 0 0;
  display: flex;
  flex-direction: column;
  padding-right: 2em;
}

.form-label {
  padding-top: 10px;
}

.indiv-responsible {
  display: flex;
  align-items: flex-start;
}

.indiv-responsible label {
  margin: 0 0.5em;
  padding-top: 0;
  font-weight: normal;
  color: $gray-850;
}

.mat-drawer-content.mat-sidenav-content {
  overflow: hidden;
}

// Import Modules
///////////////////////////////////////////////////////////////////////

.import-module-error-item {
  list-style-type: none;
  font-size: 0.9rem;
}

.import-module-error-warn {
  color: #b18500f5 !important;
}

// Module Builder
///////////////////////////////////////////////////////////////////////
.mat-pseudo-checkbox::after {
  color: $white;
}

.mat-pseudo-checkbox-checked {
  background: $primary-900 !important;
}

// Questions Block
///////////////////////////////////////////////////////////////////////
@media screen and (max-width: 990px) {
  .number-and-text {
    flex-direction: column;
  }
}

@media screen and (max-width: 990px) {
  .answer-group {
    margin-left: 1.6em;
  }
}

.questions-header-collapse-button-radius {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.questions-header-filter-button-radius {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.question-group {
  border: $primary-750;
  border-radius: 1em;
}

.subcat-header {
  padding: 1em;
  border-radius: 1em;
  background-color: $primary-50;
  border-bottom: 1px solid $gray-250;
  cursor: pointer;
}

.sub-head-1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
}

.sub-head-2 {
  font-size: 18px;
  color: $primary-color;
}

.q-expand {
  cursor: pointer;
  -moz-transition: transform 0.3s;
  -webkit-transition: transform 0.3s;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
}

.q-expand.expand-flip {
  -moz-transform: scaleY(-1);
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
  margin-top: -5px;
}

.header-question {
  margin: 0.6em 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flat-bottom {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.question-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid $gray-250;
  padding: 3px 0;
}

.no-bottom-border {
  border-bottom: none;
}

@media screen and (max-width: 990px) {
  .header-question {
    flex-direction: column;
  }

  .question-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.question-group .question-row:last-child {
  border-bottom: none;
}

.number-and-text {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.question-mat-level-name {
  font-weight: normal;
  font-size: 0.8rem;
  color: $white;
  background-color: $primary-600;
  border: 1px solid $primary-600;
  border-radius: 1rem;
  padding: 0.1rem 0.5rem;
}

.answer-group {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 0.6em;
}

.answer-block>label,
.answer-group>label {
  margin: 3px;
}

.alt-answer textarea {
  width: 80%;
}

.questions-tab-border {
  border-bottom: 1px solid $gray-50;
}

// Glossary
///////////////////////////////////////////////////////////////////////
.glossary-term {
  text-decoration: underline dotted;
  cursor: pointer;
  font-weight: bold;
}

$glossary-background: $primary-800;

tooltip.glossary-definition {
  padding: 0.5rem 1rem;
  text-align: left;
  color: $white;
  background-color: $glossary-background;
  max-width: 60%;
}

tooltip.glossary-definition.tooltip-top::after {
  border-color: $glossary-background transparent transparent transparent !important;
}

tooltip.glossary-definition.tooltip-right::after {
  border-color: transparent $glossary-background transparent transparent !important;
}

tooltip.glossary-definition.tooltip-bottom::after {
  border-color: transparent transparent $glossary-background transparent !important;
}

tooltip.glossary-definition.tooltip-left::after {
  border-color: transparent transparent transparent $glossary-background !important;
}

// Question Extras
///////////////////////////////////////////////////////////////////////
.extras-block {
  margin: 0.5em 0 0 0;
  width: 100%;
}

@media screen and (max-width: 990px) {
  .extras-block {
    margin: 1em 0 0 0;
  }
}

.question-extras {
  display: none;
}

.question-extras.extras-open {
  display: block;
  width: 100%;
  border-top: 1px solid $primary-550;
  border-inline-start: 1px solid $gray-200;
  padding: 10px;
  padding-left: 15px;
}

.extras-button {
  border: 1px solid transparent;
  border-radius: 0.5em;
  background-color: transparent;
  height: 40px;
  width: 40px;
  margin-right: 2px;
  margin-bottom: 2px;
}

.extras-button.active {
  background-color: $gray-50;
  border: 3px solid $primary-450;
}

.extras-button:focus {
  background-color: $gray-50;
  border: 3px solid $primary-250;
}

.extras-button.empty {
  display: none;
}

.reqlabel {
  font-weight: bold;
}

.delete_trashcan_icon {
  background-color: transparent;
  fill: $primary-color;
  transform: scale(0.5);
  cursor: pointer;
}

ul.related-questions {
  padding-inline-start: 20px;
}

ul.related-questions li {
  margin-bottom: 0.5em;
}

.related-question-1 {
  margin-left: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.related-question-1:first-child {
  margin-top: 1rem;
}

.related-question-1:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

// .pencil {
//   background-color: transparent;
//   fill: $primary-color;
//   transform: scale(.5);
//   cursor: pointer;
// }

// Questions Component
///////////////////////////////////////////////////////////////////////

.group-heading {
  font-size: 25px;
  margin: 1.7em 0 0.4em 0;
  color: $primary-color;
}

.domain-group-heading {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.capability-group-heading {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.assessment-factor-group-heading {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

// Dashboard
///////////////////////////////////////////////////////////////////////
.score-container {
  background-color: $secondary-color;
  color: $white;
  border-radius: 4px;
  padding: 0.3em;
  margin: 4px 0;
  text-align: center;
}

.score-container div:nth-child(1) {
  white-space: nowrap;
  padding: 0 1em;
}

.score-container div:nth-child(2) {
  margin-top: 0.2em;
  background-color: $white;
  color: $primary-color;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  padding: 0.2em;
}

.score-container .has-score {
  font-size: 2rem;
}

// Assessment Cpmponent
///////////////////////////////////////////////////////////////////////

.mat-drawer,
.mat-drawer-container {
  background-color: $secondary-color;
}

mat-sidenav.mat-sidenav {
  background-color: $secondary-color;
  color: $white;
  width: 300px;
}

.assess-component mat-nested-tree-node,
.assess-component mat-tree,
.assess-component mat-tree-node {
  display: block;
  list-style-type: none;
  background: transparent;
}

.mat-drawer .btn-link,
.mat-drawer .btn-link:focus {
  color: $white;
}

/* Something like this? */
.content::-webkit-scrollbar {
  display: none;
}

.assess-component .mat-icon,
.assess-component img {
  margin: 1px;
}

.about .icon2 {
  display: inline-block;
  font-size: 0;
  width: 100px;
  height: 25px;
  margin: 0 auto;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.component-override .icon2 {
  display: inline-block;
  font-size: 0;
  width: 100px;
  height: 25px;
  margin: 0 auto;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

// Email
///////////////////////////////////////////////////////////////////////
.email-to-box {
  border: 1px solid $gray-300;
}

// Progress
///////////////////////////////////////////////////////////////////////
.progress-svg {
  transform: rotate(-90deg);
}

.progress-meter,
.progress-value {
  fill: none;
}

.progress-meter {
  stroke: $gray-250;
}

.progress-value {
  stroke: $primary-750;
  transition: all;
}

.progress-complete {
  fill: $primary-750;
}

// Upload Export
///////////////////////////////////////////////////////////////////////
.add-files-btn {
  float: right;
}

// :host {
//   height: 100%;
//   display: flex;
//   flex: 1;
//   flex-direction: column;
// }

.upload-export-actions {
  justify-content: flex-end;
}

.upload-export {
  min-width: 600px;
}

// Detail
///////////////////////////////////////////////////////////////////////
.detail-standard-or-question-set-label {
  border: 2px solid $black;
  background-color: $primary-550;
  color: $white;
  box-shadow: 5px 0 5px $black;
  border-top-left-radius: 1.2em;
  border-top-right-radius: 1.2em;
  padding: 1em;
}

.detail-standard-or-question-set {
  border: 2px solid $black;
  border-top: none;
  border-bottom: none;
  padding: 1em;
  box-shadow: 5px 0 5px $black;
}

.detail-selected-standards {
  border: 2px solid $black;
  padding: 1em;
  border-radius: 1.2em;
  border-top-left-radius: 0;
  box-shadow: 5px 5px 5px $black;
}

// Eval Against
///////////////////////////////////////////////////////////////////////
.eval-against-standard-label {
  text-align: center;
  border: 2px solid $black;
  border-top-left-radius: 1.2em;
  border-top-right-radius: 1.2em;
  background-color: $primary-color;
  padding: 1em;
  color: $white;
  box-shadow: 5px 0 5px $black;
}

.eval-against-standard {
  border: 2px solid $black;
  border-top: none;
  border-bottom: none;
  padding: 1em;
  box-shadow: 5px 0 5px $black;
}

.eval-against-graph-text {
  border: 2px solid $black;
  border-radius: 1.2em;
  border-top-left-radius: 0;
  padding: 1em;
  box-shadow: 5px 5px 5px $black;
}

// Question/Parameters
///////////////////////////////////////////////////////////////////////
.sub-me {
  text-decoration: underline;
  color: $link-color-dark !important;
  cursor: pointer;
}

// Results
///////////////////////////////////////////////////////////////////////
.overview-textarea-height {
  height: 200px;
}

.warning-text>div {
  margin-bottom: 1rem;
}

.warning-text>div:last-child {
  margin-bottom: 0;
}

// Dialogs
///////////////////////////////////////////////////////////////////////

// About
.about article {
  //width: 33.33%;
  margin-right: $spacer * 3;
}

.about article:nth-child(3) {
  margin-right: 0rem;
}

@media only screen and (max-width: 360px) {
  .about article {
    margin-right: 0rem;
  }
}

.about hr {
  border-top: 1px solid $gray-200;
  width: 100%;
  background-color: $gray-200;
  margin-left: 0;
}

.about .homeland-security {
  font-family: Joanna, "Times New Roman", Times, serif;
  font-size: 36px;
}

.about .nccic {
  font-family: "ITC Franklin Gothic", Arial, Times, serif;
  font-size: 30px;
}

.about article {
  max-width: 300px;
}

// Component Override
.component-override article {
  //width: 75%;
  margin-right: $spacer * 3;
}

.component-override article:nth-child(3) {
  margin-right: 0rem;
}

@media only screen and (max-width: 360px) {
  .component-override article {
    margin-right: 0rem;
  }
}

.component-override hr {
  border-top: 1px solid $gray-200;
  width: 100%;
  background-color: $gray-200;
  margin-left: 0;
}

.component-override .homeland-security {
  font-family: Joanna, "Times New Roman", Times, serif;
  font-size: 36px;
}

.component-override .nccic {
  font-family: "ITC Franklin Gothic", Arial, Times, serif;
  font-size: 30px;
}

.component-override article {
  max-width: 600px;
}

.component-override-dialog {
  max-width: 600px;

  @media screen and (max-width: 800px) {
    max-width: 90vw;
  }
}

// Terms
.terms-dialog {
  //max-height: 300px;
  max-width: 600px;
  min-width: 100%;
}

.advisory-dialog {
  //max-height: 600px;
  max-width: 800px;
  min-width: 100%;
}

.alert-dialog,
.confirm-dialog {
  //max-height: 80vh;
  min-height: 100px;
  min-width: 100%;
}

.global-parameters-dialog {
  max-width: 800px;
}

.edit-user-dialog {
  max-width: 800px;
}

.license-dialog,
.ok-dialog {
  max-width: 500px;
}

.keyboard-shortcut-dialog {
  min-width: 100%;
}

/*

  TODO(mdc-migration): The following rule targets internal classes of dialog that may no longer apply for the MDC version.

*/
.mat-dialog-header {
  color: $gray-100;
  background-color: $primary-color;
  font-weight: 600;
}

/*

  TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version.

*/
.upload-export .mat-mdc-list .mat-mdc-list-item .mat-list-item-content {
  padding: 0;
}

.mat-mdc-dialog-content {
  margin: 0 !important;
}

.mat-mdc-dialog-container {
  display: flex !important;
  flex: 1 1 auto;
  padding: 0 !important;
  max-width: 100% !important;
  border-radius: 0.25em;
}

.mat-mdc-dialog-container .mdc-dialog__content {
  color: black !important;
  letter-spacing: normal !important;
}

.mdc-dialog__surface {
  overflow-y: hidden !important;
}

table.assessment-documents {
  width: 500px;
  max-height: 500px;
}

table.assessment-documents tr {
  box-sizing: content-box;
  height: 20px;
}

table.assessment-documents tr:nth-child(even) {
  background: $gray-100;
}

table.assessment-documents tr:nth-child(odd) {
  background: $gray-50;
}

// table.assessment-documents th:nth-child(1) {
//   padding-left: 12px;
// }

table.assessment-documents td,
table.assessment-documents th {
  padding: 0.5rem 0.4rem 0.5rem 0.4rem;
}

table.assessment-documents th {
  background-color: $secondary-color;
  color: $gray-50;
  font-weight: 500;
}

.assess-doc-icon {
  width: 40px;
  height: 40px;
}

.contact-add-fields input::-webkit-input-placeholder {
  padding-left: 4px;
}

.contact-add-fields input:-moz-placeholder {
  /* Firefox 18- */
  padding-left: 4px;
}

.contact-add-fields input::-moz-placeholder {
  /* Firefox 19+ */
  padding-left: 4px;
}

.contact-add-fields input:-ms-input-placeholder {
  padding-left: 4px;
}

///////////////////////////////////////////////////////////////////////

.icon-button {
  background-color: transparent;
  color: $secondary-color;
  border: none;
}

.icon-button:hover,
.icon-button:focus {
  color: $primary-color;
}

.icon-button-light {
  background-color: transparent;
  color: $gray-150;
  border: none;
}

.icon-button-light:hover,
.icon-button-light:focus {
  color: $white;
}

.sticky-sal {
  position: -webkit-sticky;
  /* Safari */
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: $gray-50;
  padding-top: 0.5rem;
}

.fips-instructions {
  margin-top: 2em;
  border: 1px solid $secondary-color;
  border-radius: 0.4em;
  padding: 1em;
}

.alert-danger {
  border-radius: 0.4rem;
}

// Status Create
///////////////////////////////////////////////////////////////////////
.status-create-upload-progress {
  width: 50%;
  background-color: $secondary-color;
}

// Horizontal Rules
///////////////////////////////////////////////////////////////////////
.rl hr {
  border: none;
  height: 1px;
  width: 100%;
  background-color: $gray-400;
}

hr.landing {
  border: none;
  height: 2px;
  width: 100%;
  background-color: $gray-200;
}

.hr-sal {
  border: none;
  border-top: 1px solid $secondary-color;
}

.about hr.hr-logo {
  border: none;
  width: 100%;
  margin-top: 10px;
  border-top: 3px solid $primary-color;
  margin-left: 0;
}

hr.ranked-questions {
  border: none;
  height: 2px;
  width: 100%;
  background-color: $primary-100;
}

// Ranked Questions
///////////////////////////////////////////////////////////////////////
.rq-label-min-width {
  min-width: 96px;
}

// Aggregation
///////////////////////////////////////////////////////////////////////
.analytics-wrapper {
  // width: 100%;
  margin-left: 3rem;
  margin-right: 3rem;
}

@media (max-width: 500px) {
  .analytics-wrapper {
    margin-left: 0;
    margin-right: 0;
  }
}

.cat-selected {
  font-weight: bold;
  color: $primary-900;
  background-color: #eeeeee;
  border-radius: 0.5rem;
}

.sal-inactive {
  color: $gray-450;
  width: 2%;
}

.sal-active {
  color: $white;
  font-weight: bold;
  background-color: $primary-750;
}

.merge-source-answer {
  min-width: 2rem;
  text-align: center;
  margin: 3px 1px;
  border-radius: 3px;
  color: #a0a0a0;
  border: 1px solid #c0c0c0;
  background-color: #f0f0f0;
}

.merge-source-answer.Y {
  color: #006000;
  color: #457845;
  border-color: #006000;
}

.merge-source-answer.N {
  color: #990000;
  color: #905555;
  border-color: #990000;
  border-color: #905555;
}

.merge-source-answer.NA {
  color: #367190;
  border-color: #367190;
}

.merge-source-answer.A {
  color: #b17300;
  border-color: #b17300;
}

///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////

// Bootstrap Overrides
///////////////////////////////////////////////////////////////////////

.no-gutters {
  padding-left: 0rem;
  padding-right: 0rem;
}

// Atomic Styles
//////////////////////////////////////////////////////////////////////////////////////////

.h-0 {
  height: 0;
}

.w-0 {
  width: 0;
}

.w-5rem {
  width: 5rem !important;
}

.w-20pct {
  width: 20% !important;
}

.w-fit {
  width: fit-content !important;
}

.va-neg-17rem {
  vertical-align: -0.17rem !important;
}

.cursor-default {
  cursor: default !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

.cursor-auto {
  cursor: auto !important;
}

.o-hidden {
  overflow: hidden !important;
}

.oy-auto {
  overflow-y: auto !important;
}

.ox-auto {
  overflow-x: auto !important;
}

.ox-hidden {
  overflow-x: hidden !important;
}

.text-start {
  text-align: left !important;
}

.ws-normal,
.text-wrap {
  white-space: normal !important;
}

.ws-no-wrap {
  white-space: nowrap !important;
}

.ta-left {
  text-align: left !important;
}

.ta-center {
  text-align: center !important;
}

.bb-1-ddd {
  border-bottom: 1px solid #ddd !important;
}

.br-0 {
  border-radius: 0;
}

.br-standard {
  border-radius: 0.4rem;
}

.o45 {
  opacity: 0.45;
}

.o65 {
  opacity: 0.65;
}

.mb-2r {
  margin-bottom: 2rem;
}

table.td-p-1 td {
  padding: 0.25rem !important;
}

table.td-p-2 td {
  padding: 0.5rem !important;
}

table.td-text-start th,
table.td-text-start td {
  text-align: left !important;
}

// Material Icons
//////////////////////////////////////////////////////
.m-chevron-down::before {
  content: "\e5cf";
}

.m-chevron-up::before {
  content: "\e5ce";
}

.m-build::before {
  content: "\e869";
}

.b-none {
  border: none !important;
}

.b-primary {
  border: 2px solid $primary-color;
}

.b-secondary {
  border: 2px solid $secondary-color;
}

.w-a {
  width: auto !important;
}

.b-primary-200 {
  border: 2px solid $primary-200;
}

.h-1r {
  height: 1rem !important;
}

.h-a {
  height: auto !important;
}

.b-light {
  border: 2px solid $gray-200;
}

.b-validate {
  border: 2px solid $validation-color;
}

// Flex
.flex-11a {
  flex: 1 1 auto !important;
}

.flex-10a {
  flex: 1 0 auto !important;
}

.flex-01a {
  flex: 0 1 auto !important;
}

.flex-110 {
  flex: 1 1 0 !important;
}

.flex-00a {
  flex: 0 0 auto !important;
}

.flex-000 {
  flex: 0 0 0 !important;
}

.flex-11100 {
  flex: 1 1 100% !important;
}

.flex-1150 {
  flex: 1 1 50% !important;
}

.flex-1125 {
  flex: 1 1 25% !important;
}

// Colors
/////////////////////////////////////////////

.bgc-white {
  background-color: #ffffff;
}

.bgc-page {
  background-color: $primary-750;
}

.c-trans {
  color: transparent;
}

.bgc-trans {
  background-color: transparent;
}

.fill-trans {
  fill: transparent;
}

.fill-white {
  fill: $white;
}

.c-white {
  color: $white;
}

.bgc-white {
  background-color: $white;
}

.c-black {
  color: $black;
}

.bgc-black {
  background-color: $black;
}

.c-primary {
  color: $primary-color;
}

.bgc-primary {
  background-color: $primary-color;
}

.bgc-primary-50 {
  background-color: $primary-50;
}

.bgc-primary-100 {
  background-color: $primary-100;
}

.bgc-primary-200 {
  background-color: $primary-200;
}

.bgc-primary-300 {
  background-color: $primary-300;
}

.c-warning {
  color: $warn-color;
}

.fill-primary {
  fill: $primary-color;
}

.c-secondary {
  color: $secondary-color;
}

.bgc-secondary {
  background-color: $secondary-color;
}

.fill-secondary {
  fill: $secondary-color;
}

.c-validation {
  color: $validation-color;
}

.bgc-validation {
  background-color: $validation-color;
}

.c-gray-50 {
  color: $gray-50;
}

.bgc-gray-50 {
  background-color: $gray-50;
}

.c-gray-100 {
  color: $gray-100;
}

.bgc-gray-100 {
  background-color: $gray-100;
}

.c-gray-150 {
  color: $gray-150;
}

.bgc-gray-150 {
  background-color: $gray-150;
}

.c-gray-200 {
  color: $gray-200;
}

.bgc-gray-200 {
  background-color: $gray-200;
}

.c-gray-300 {
  color: $gray-300;
}

.bgc-gray-300 {
  background-color: $gray-300;
}

.c-gray-400 {
  color: $gray-400;
}

.bgc-gray-400 {
  background-color: $gray-400;
}

.c-gray-500 {
  color: $gray-500;
}

.bgc-gray-500 {
  background-color: $gray-500;
}

.c-gray-600 {
  color: $gray-600;
}

.bgc-gray-600 {
  background-color: $gray-600;
}

.c-gray-700 {
  color: $gray-700;
}

.bgc-gray-700 {
  background-color: $gray-700;
}

.c-gray-800 {
  color: $gray-800;
}

.bgc-gray-800 {
  background-color: $gray-800;
}

.c-gray-900 {
  color: $gray-900;
}

.bgc-gray-900 {
  background-color: $gray-900;
}

// Fonts
/////////////////////////////////////////////
.fs-small {
  font-size: 0.9rem !important;
  line-height: 1rem;
}

.fs-smaller {
  font-size: 0.8rem !important;
  line-height: 0.9rem;
}

.fs-base {
  font-size: 1rem !important;
  line-height: 1.1rem;
}

.fs-base-1 {
  font-size: 1.1rem !important;
  line-height: 1.2rem;
}

.fs-base-2 {
  font-size: 1.2rem !important;
  line-height: 1.3rem;
}

.fs-base-3 {
  font-size: 1.3rem !important;
  line-height: 1.4rem;
}

.fs-base-4 {
  font-size: 1.4rem !important;
  line-height: 1.5rem;
}

.fs-base-5 {
  font-size: 1.5rem !important;
  line-height: 1.6rem;
}

.fs-base-6 {
  font-size: 1.6rem !important;
  line-height: 1.7rem;
}

.fs-base-7 {
  font-size: 1.7rem !important;
  line-height: 1.8rem;
}

.fs-base-8 {
  font-size: 1.8rem !important;
  line-height: 1.9rem;
}

.fs-medium {
  font-size: 2rem !important;
}

.fs-medium-1 {
  font-size: 2.8rem !important;
}

.fs-large {
  font-size: 3rem !important;
}

.fs-larger {
  font-size: 3.5rem !important;
}

.fs-50px {
  font-size: 50px !important;
}

.landing-icon {
  font-size: 25px;
}

// @media (max-width: 576px) {
//   .landing-icon-sm {
//     font-size: 25px;
//   }
// }
.landing-button-text {
  font-size: 1rem !important;
  line-height: 1.1rem;
}

.angular-editor-textarea {
  background-color: #fff !important;
}

// @media (max-width: 576px) {
//   .landing-button-text-sm {
//     font-size: 1rem !important;
//     line-height: 1.1rem;;
//   }
// }

@media (min-width: 992px) {
  .lp-btn-mw-lg {
    max-width: 350px;
  }
}

.fst-italic {
  font-style: italic;
}

.fw-400 {
  font-weight: 400 !important;
}

.fw-500 {
  font-weight: 500 !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.editorContainer {
  flex: 1 1 auto;
  height: auto !important;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px 6px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #cccccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
  border-left-color: #555;
}

.dropdown-submenu.pull-left {
  float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}

//////////////////  AGGREGATION CLASSES  //////////////////////
.trend-graph-layout {
  display: flex;
  flex-direction: row;
}

.trend-table-width {
  max-width: 100%;
}

@media only screen and (max-width: 767px) {
  .trend-graph-layout {
    flex-direction: column;
  }
}

/////////////////// ACET DASHBOARD CLASSES ///////////////////
.alert-incomplete {
  color: #fff;
  background-color: #5b565c;
  border-color: #787878;
  padding: 0.5rem 0.75rem !important;
}

.alert-baseline {
  color: #fff;
  background-color: #3498db;
  border-color: #2e86c1;
  padding: 0.5rem 0.75rem !important;
}

.alert-evolving {
  color: #fff;
  background-color: #2e86c1;
  border-color: #2874a6;
  padding: 0.5rem 0.75rem !important;
}

.alert-intermediate {
  background-color: #2874a6;
  border-color: #21618c;
  color: #fff !important;
  padding: 0.5rem 0.75rem !important;
}

.alert-advanced {
  background-color: #21618c;
  border-color: #1b4f72;
  color: #fff !important;
  padding: 0.5rem 0.75rem !important;
}

.alert-innovative {
  background-color: #1b4f72;
  border-color: #154360;
  color: #fff !important;
  padding: 0.5rem 0.75rem !important;
}

.alert-domain {
  background-color: #fff;
  border-color: #ccc;
  color: #000 !important;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem !important;
  text-align: left !important;
}

.alert {
  text-align: center !important;
}

.domain-pad {
  margin-left: 20px;
}

.label-cell {
  color: #0a5278;
  font-weight: bold;
  max-width: 50%;
}

//// Maturity Models ////

.maturity-model-card {
  border-radius: 0.3rem;
  margin-bottom: 1rem;
  padding: 1rem;
  cursor: pointer;
}

/////////////////// Tutorial pages ///////////////
div.tutorial h5,
.tutorial h6 {
  color: $primary-600 !important;
}

div.tutorial h6 {
  font-size: 1rem;
  font-weight: bold !important;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.image-center {
  display: flex !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.image-outline {
  border: 1px solid #333;
}

.image-caption {
  font-weight: bold;
  text-align: center;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.tutorial .img-frame {
  border: 1px solid #ddd;
  margin-bottom: 1rem;
  width: fit-content;
}

.tutorial .img-frame .img-title {
  font-style: italic;
  text-align: center;
}

.max-1000 {
  max-width: 1000px;
}

.max-1200 {
  max-width: 1200px;
}

.docTitle {
  font-size: large;
  color: $primary-450;
}

.categTitle {
  color: $primary-450;
}

.matbtn,
.singletree {
  color: $primary-450;
}

.nodesubcategory:hover {
  background-color: $gray-150;
}

.expand-collapseBtn:hover {
  background-color: $gray-150;
  color: $primary-450;
  border: 1px solid $primary-450;
}

.btn.btn-primary.expand-collapseBtn:focus {
  background-color: $gray-150;
  color: $primary-450;
  border: 1px solid $primary-450;
}

.example-tree-invisible {
  // display: none;
}

.example-tree ul,
.example-tree li {
  margin-top: 0;
  margin-bottom: 0;
  list-style-type: none;
}

h6.dropdown-header {
  font-size: 1rem;
  color: $gray-250;
}



//////// CMMC
.cmmc2-level-1 {
  color: #fff;
  background-color: #862180;
}

.cmmc2-level-2 {
  color: #000;
  background-color: #98c355;
}

.cmmc2-level-3 {
  color: #fff;
  background-color: #254a5e;
}