:root {
  --side-nav-width: 275px;
}

body {
  padding-top: 4em;
  padding-bottom: 1.5em;
  min-height: 100vh;
}

@media print {
  .flex {
    display: block;

  }

  body {
    padding-top: 2em;
  }

  .break-after {
    page-break-after: always !important;
    break-after: always !important;
    display: block !important;
  }

  .break-before {
    page-break-before: always !important;
    break-before: always !important;
    display: block !important;
    margin-top: 2em;
  }

  body.classification-banner:before, body.classification-banner:after {
    color: black !important;
    background-color: transparent !important;
  }
}

body.classification-banner:before, body.classification-banner:after {
  display: block;
  background-color: #5e5e5e;
  color: white;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  content: "classification banner";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
}

body.classification-banner:before {
  top: 0;
}

body.classification-banner:after {
  bottom: 0;
}

.classification-banner.unclassified:before, .classification-banner.unclassified:after {
  background-color: #008000;
  content: "unclassified"
}

.classification-banner.controlled:before, .classification-banner.controlled:after {
  background-color: #502b85;
  content: "controlled"
}

.classification-banner.confidential:before, .classification-banner.confidential:after {
  background-color: #0000ff;
  content: "confidential"
}

.classification-banner.secret:before, .classification-banner.secret:after {
  background-color: #ff0000;
  content: "secret"
}

.classification-banner.top-secret:before, .classification-banner.top-secret:after {
  background-color: #ff6600;
  content: "top secret"
}

.classification-banner.top-secret-sci:before, .classification-banner.top-secret-sci:after {
  background-color: #ffff00;
  color: black;
  content: "top secret // sci"
}

@media not print {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding-top: 4em;
    padding-bottom: 1.5em;
    padding-left: 0;
    padding-right: 0;
    width: var(--side-nav-width);
    z-index: 1000;
  }

  .sidebar.collapsed {
    width: 20px;
  }

  .main-dashboard {
    margin-left: var(--side-nav-width);
  }

  .main-dashboard.expanded {
    margin-left: 20px;
  }
}

.sidebar-scroll {
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  color: #333;
  padding-top: 0.25em;
  padding-bottom: 0.25em
}

.sidebar .nav-link-icon {
  color: #727272;
  font-size: 1.25rem;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar .nav-link:hover .nav-link-icon,
.sidebar .nav-link.active .nav-link-icon {
  color: inherit;
}

.card.definition {
  width: 18rem;
}

a.anchor {
  display: block;
  position: relative;
  top: -4.75em;
  visibility: hidden;
}

.fs-small {
  font-size: small;
}

.fs-x-small {
  font-size: x-small;
}

table.risk-matrix tbody tr {
  height: 75px;
  min-height: 64px;
}

table.risk-matrix tbody tr td {
  width: 75px;
  min-width: 64px;
}

div.card.card-body.usdi-hx-fiscal-year {
  max-width: 15em;
  width: 15em;
}
div.card.card-body.usdi-hx-fiscal-year:hover {
  background-color: #cfe2ff;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

/* Fix for select2 placeholder display */
.select2-search--inline {
  display: contents; /*this will make the container disappear, making the child the one who sets the width of the element*/
}

/* Fix for select2 placeholder display */
.select2-search__field:placeholder-shown {
  width: 100% !important; /*makes the placeholder to be 100% of the width while there are no options selected*/
}

.htmx-indicator {
  opacity: 0;
}

.htmx-request.htmx-indicator ~ .btn {
  display: none;
}

[x-cloak] { display: none !important; }

.bg-orange-subtle {
  background-color: #ffe1cf !important;
}

.hx-edit {
  cursor: pointer;
}

.cursor-pointer {
  cursor: pointer;
}

.hx-title-with-button .htmx-button {
  visibility: hidden;
}

.hx-title-with-button:hover .htmx-button {
  visibility: visible;
}

#messages-container:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 75px;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 75%;
  background: url("/static/img/seals/vectors/odni.5ecc1491670b.svg") center center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .03;
  flex-shrink: 0;
}

.form-row-horizontal {
  display: inline-block;
  width: 30px;
  margin-top: 10px;
  margin-bottom: 10px; /* Adjust spacing between rows */
}

.form-row-horizontal label {
  display: block;
  width: 50px;
  text-align: right;
  padding-right: 10px;
}

.form-row-horizontal input,
.form-row-horizontal select,
.form-row-horizontal textarea {
  min-width: 30px;
}
