:root {
  --maincolor: #082640;
  --textcolor: #333;
  --main-font: "Noto Sans", sans-serif;
  --mono-font: "Google Sans Code", monospace;
  --lightbg: rgba(237, 242, 250, 0.93);
  --maxwidth: 1024px;
}
/* main body */
body {
  font-family: var(--main-font);
  background-color: #f2f2f2;
  color: var(--textcolor);
  font-weight: 300;
  margin: 0;
  font-size: 12px;
  min-width: var(--maxwidth);
}
strong {
  font-weight: 600 !important;
}
b {
  font-weight: 900 !important;
}
a {
  font-weight: 600;
  color: var(--maincolor);
  text-decoration: none;
}

.ide-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid #e0e0e0;
  border-top-color: #082640;
  border-radius: 50%;
  animation: ide-spin 0.8s linear infinite;
  inset: 10rem;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@keyframes ide-spin {
  to {
    transform: rotate(360deg);
  }
}

/* IDE scroll bar */
/* width */
::-webkit-scrollbar {
  width: 1ch;
  height: 1ch;
}
/* Track */
::-webkit-scrollbar-track {
  background: #ffffff;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: #08264033;
  cursor: default;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #08264066;
  cursor: default;
}

/*///////////OLD//CSS//////////*/

.form-check-input:checked {
  background-color: var(--maincolor);
  border-color: var(--maincolor);
}

button,
.btn {
  border-radius: 0px;
}
/* navbar */
.navbar-brand {
  font-weight: 900;
  color: var(--maincolor);
}

.breadcrumb {
  margin-bottom: 0.25rem;
  a {
    text-decoration: none;
    color: var(--textcolor);
    font-style: italic;
    font-weight: 400;
  }
  a:hover {
    text-decoration: underline;
  }
  .active {
    color: var(--maincolor);
    font-weight: 600;
  }
}

/* secondary nav */
#secNav {
  display: none;
}
.secSearchElement {
  width: -webkit-fill-available;
  /* max-width: var(--maxwidth); */
  margin: 0ch 2ch 0.5ch 2ch;
  font-size: small;
}
.selectize-dropdown .optgroup-header {
  color: var(--maincolor);
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
}
#idxSearch {
  display: none;
}

/* search results  */
#resultsName {
  position: relative;
  padding-top: 1rem;
}
#searchResults {
  position: relative;
  display: flex;
  flex-flow: wrap;
  justify-content: flex-start;
  margin: 1rem 0 50vh 1rem;
  width: -webkit-fill-available;
  /* container-type: inline-size; */
}
.card {
  box-shadow: 0 5px 5px 0 rgba(221, 221, 221, 0.75);
  padding: 1rem;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
  border-radius: 0px;
  border-width: 0px;
  overflow-x: hidden;
  background: white;
  width: 100%;
  min-width: unset;
  box-sizing: border-box;
  min-height: 200px;
  scroll-margin-top: 10rem;
}
/* Side-by-side above th — each card ~half width */
/* @container (min-width: 500px) {
  .card {
    width: calc(48%);
  }
  .card.compact {
    width: calc(32%);
  }
} */
/* Fullscreen overlay */
.card-fullscreen {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90vw !important;
  height: 80vh !important;
  z-index: 99999 !important;
  border: solid 1px #333;
  /* margin: 0 !important; */
  /* border-radius: 4px !important; */
  /* overflow: auto; */
  /* background: white; */
}
.card-fullscreen svg {
  width: 100% !important;
  height: 100% !important;
}
/* Fullscreen button */
.btn-fullscreen {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 10;
  padding: 0 0.3rem;
  line-height: 1.4;
  font-size: 0.85rem;
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}
.btn-fullscreen:hover {
  color: #333;
}

/* card headers */

.pdftitle {
  position: absolute;
  top: 0.5rem;
  padding: 0 0.5rem;
  margin: 0 0.5rem;
  border-radius: 0.1rem;
  font-size: 0.85rem;
  font-weight: 400;
  width: -webkit-fill-available;

  /* glass-like background */
  background: #ffffff33; /* aliceblue with transparency */
  backdrop-filter: blur(10px) saturate(200%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.no-data {
  font-size: 2rem;
}
.card-body {
  padding: 0.25rem 0.25rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: hidden;
}
.card-body.pdf {
  align-content: end;
  min-height: 150px;
  min-width: 200px;
}
.watchlist-badge {
  margin: 0;
  position: absolute;
  right: 0;
  padding: 0ch 0.5ch 0.5ch 0.5ch;
  line-height: 1;
  font-size: 11px;
}

[id^="goTo-"] {
  position: absolute;
  bottom: 0;
  right: 0;
  line-height: 1;
  border: 0px;
  font-style: italic;
  transition: opacity 0.4s ease;
}
[id^="goTo-"].btn-invite {
  opacity: 1;
  pointer-events: auto;
  animation: flash-invite 1s ease-in-out 1;
}
@keyframes flash-invite {
  0%,
  100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(108, 117, 125, 0.2);
  }
}

[id^="thumb-"] {
  text-align: center;
  width: 100%;
  min-width: unset;
  box-sizing: border-box;

  li {
    padding: 0.5rem 0;
  }
  i {
    color: #ccc;
  }
}
#download {
  position: absolute;
  bottom: 0;
  right: 0;
  line-height: 1;
  border: 0px;
}
#savepng {
  position: absolute;
  bottom: 0;
  right: 2rem;
  line-height: 1;
  border: 0px;
}
/* charts */
svg {
  color: #aaaaaa;
}
rect:hover {
  stroke: var(--textcolor);
  stroke-width: 1px;
}
g {
  font-family: var(--mono-font);
  font-size: 2rem;
}
.domain,
.tick line {
  stroke: #000000;
  stroke-width: 2;
  pointer-events: none;
}
#vertical-hover {
  stroke: #666;
  stroke-dasharray: 4;
  stroke-width: 2px;
}
.chart-summary {
  font-weight: 600;
  cursor: default;
}
.chart-label {
  fill: #666;
  font-weight: 400;
  /* stroke: white; */
  stroke-linejoin: round;
  /* stroke-width: 4; */
}
.data-label {
  font-size: 1rem;
  text-anchor: start;
  border: 2px solid black;
  width: 100%;
  position: absolute;
}
.line-labels {
  font-weight: 400;
}
.gauge-label {
  position: absolute;
  left: 50px;
  bottom: 40px;
  font-size: 2rem;
  font-weight: bold;
}
.gauge-source {
  position: absolute;
  bottom: 1rem;
  left: 0.5rem;
}
.gauge-title {
  position: absolute;
  left: 150px;
  top: 75px;
  line-height: 1;
  width: 150px;
  cursor: default;
}
#switchLineArea {
  width: 5ch;
  height: 2ch;
  cursor: pointer;
}
.pie-chart {
  stroke: var(--textcolor);
}
.pie-label {
  fill: var(--textcolor);
  font-size: 2rem;
  font-weight: bold;
}

@keyframes flashPoint {
  0% {
    r: 2;
  }
  50% {
    stroke: black;
    stroke-width: 2px;
    fill-opacity: 0.3;
    r: 15;
  }
  100% {
    r: 2;
  }
}

#navbarNav {
  position: absolute;
  left: 0;
  max-width: 150px;
  background: transparent;
  box-shadow: 0 5px 5px 0 rgba(221, 221, 221, 0.75);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 0.7rem;
  line-height: 1.1;
  .sidegroup {
    font-size: 0.8rem;
  }
}
.newtab {
  font-style: normal;
  color: #000000;
  right: 1rem;
  z-index: 99;
  position: absolute;
  background: white;
  margin: 1rem;
  border: solid 1px #fff;
  cursor: pointer;
  text-decoration: none;
}
.newtab:hover {
  background: #ffffffff;
  border: solid 1px #000;
}

.sidegroup {
  font-weight: 600;
}
.sidebar,
.sidegroup {
  cursor: pointer;
  font-style: normal;
  text-decoration: none;
  color: var(--textcolor);
}
.sidebar:hover,
.sideparent:hover .sidegroup:hover {
  background-color: #66ccffaa;
  border-radius: 1px;
  text-decoration: none;
  color: #000000;
  border-bottom: 1px solid black;
}
.sideparent .sidebar.active,
.sideparent .sidegroup.active {
  font-weight: bold;
  font-style: normal;
  color: #000;
  border-radius: 0px;
}
.sideparent .sidebar.active {
  background-color: #66ccff66;
}
#navbarNav ul,
#navbarNav li {
  list-style: none;
  padding: 0px;
}
/* footer */
#searchFooter {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: 9999;
  background: #edf2fa;
  box-shadow: 0 -5px 5px 0 rgba(221, 221, 221, 0.75);
  font-size: 0.7rem !important;
  text-align: left;
  align-content: center;
  min-height: 50px;
  padding: 0.2rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.source-text {
  max-width: var(--maxwidth);
}
#source-info {
  border: none;
  box-shadow: none;
  .card-body {
    padding: 0;
    font-size: 0.85rem !important;
  }
}

/* mapping */
#map,
#mapdesc {
  width: 50%;
  height: 50vh;
}

.tblnum {
  text-align: right;
}

/* scrollbar */
#mapdesc::-webkit-scrollbar {
  width: 10px;
}
#mapdesc::-webkit-scrollbar-track {
  background: transparent;
}
#mapdesc::-webkit-scrollbar-thumb {
  background: #179ae355;
  height: 20px;
}
#mapdesc::-webkit-scrollbar-thumb:hover {
  background: #179ae3aa;
}

#mapdesc {
  overflow-y: scroll;
  font-size: 0.8rem;
  padding: 0 0.5rem;
  p {
    margin-bottom: 0.5rem;
  }
  table {
    width: -webkit-fill-available;
  }
  table,
  th,
  td {
    border: 2px solid white;
    border-collapse: collapse;
    padding: 0 0.25rem;
  }
  th {
    background-color: #179ae366;
  }
  td {
    background-color: #179ae333;
    word-break: break-word;
  }
}

#years-button {
  display: block;
}
#years-button button {
  padding: 0.1rem 0.2rem;
  margin: 0.2rem 0.1rem;
  font-size: 0.75rem;
}

.accordion-item {
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0 !important;
  .accordion-button {
    padding: 0.25rem 0.5rem;
    border-radius: 0 !important;
    font-size: 0.8rem;
  }
  .accordion-button:focus {
    box-shadow: none;
  }
}

.maplibregl-popup {
  table,
  th,
  td {
    border: 2px solid white;
    border-collapse: collapse;
  }
  th,
  td {
    background-color: #179ae333;
    text-align: center;
  }
}

/* on phone */
@media (max-width: 600px) {
  /* body {
    font-size: 3vw;
  }
  text,
  #resetButton {
    font-size: 2vw;
  } */
  .geoElement,
  .yearElement {
    width: -webkit-fill-available;
  }
  .geoElement {
    margin: 0 1ch;
  }
  .yearElement {
    margin: 0 0ch 0 3ch;
  }
  #resetButton {
    margin-top: 0.25rem;
  }
  #searchFooter {
    padding: 0.2rem 0.5rem;
  }
}

/* overwrite */
.text-bg-success {
  background-color: #017339 !important;
}
.text-success {
  color: #017339 !important;
}
.text-bg-danger {
  background-color: #dc2828 !important;
}
.text-danger {
  color: #dc2828 !important;
}

#COPYRIGHT {
  display: none;
}
.download-pdf {
  position: fixed;
  top: 5vh;
  right: 1rem;
  z-index: 999999;
  display: block;
}
.download-pdf .badge-secondary {
  background-color: #212121;
}
#download-pdf {
  border-radius: 0px;
}
#download-pdf:hover {
  background-color: #fff;
  font-style: normal;
  border: solid 1px #000;
  box-shadow: 1px 1px 2px 2px #ddd;
  color: #000;
}
#download-pdf:hover a {
  cursor: default;
}
.save-txt {
  color: #fff;
  text-decoration: none;
}
#download-pdf:hover .save-txt {
  color: #000;
  font-style: normal;
  text-decoration: none;
}

.hidden,
#searchResults.hidden,
#page-title.hidden,
.tb-row.hidden {
  display: none;
}

@page {
  size: A4;
  margin: 10mm;
}

/* print setting */
@media print {
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #searchParams,
  #searchFooter,
  [id^="goTo"],
  #IDXPL,
  #CTYDOC,
  #TOOLSPLT,
  #FAOLEX,
  .download-pdf,
  .tb-row,
  .benchmark-form,
  foreignObject {
    display: none !important;
  }
  #COPYRIGHT {
    display: flex;
  }

  article {
    /* transform: scale(0.1);
    transform-origin: top left; */
    break-inside: avoid;
    page-break-inside: avoid;
    /* max-height: 100mm; */
  }
  #ide-scroll-nav {
    display: none;
  }

  /* .card {
    box-sizing: border-box;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #eee;
  } */

  /* #searchResults {
    position: static;
    display: flex;
    flex-flow: row wrap;
    container-type: inline-size;
    margin: 0.5in;
    padding: 0;
  } */
}
