@font-face {
  font-family: "OswaldRegular";
  src: url("../assets/fonts/Oswald-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "OswaldLight";
  src: url("../assets/fonts/Oswald-Light.woff2") format("woff2");
}
table,
body,
.p-title,
.p-theme {
  font-family: "OswaldLight", Arial, Helvetica, sans-serif;
}

span,
.p-unit,
.p-range,
.p-source,
.div-footer {
  font-family: "OswaldLight", Arial, Helvetica, sans-serif;
}

body {
  font-size: 13px;
}

.p-title,
.p-theme {
  font-size: 1.15em;
  font-weight: bold;
}

.p-unit,
.p-range,
.p-source,
.div-footer {
  font-size: 0.8rem;
}

.btn-span-tooltip {
  font-family: "OswaldRegular", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
}

.bold {
  font-weight: bold;
}

body {
  box-sizing: border-box;
  width: 99.9svw;
  height: 99.9svh;
  padding: 5px 8px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
}
body p {
  padding: 0;
  margin: 0;
}
body .div-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}
body .div-header .div-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  height: 100%;
  gap: 5px;
}
body .div-header .div-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  gap: 2px;
}
body .div-header .div-actions .btn-actions {
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
body .div-header .div-actions .btn-actions img {
  width: 18px;
  height: 18px;
}
body .div-header .div-actions .btn-actions img.databank-icon {
  width: 19px;
  height: 19px;
}
body .div-header .div-actions .btn-actions .btn-span-tooltip {
  position: absolute;
  right: 35px;
  background-color: rgba(20, 170, 225, 0.8352941176);
  color: #f1f1f1;
  height: -moz-fit-content;
  height: fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px;
  border-radius: 3px;
  display: none;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
body .div-header .div-actions .btn-actions:hover {
  cursor: pointer;
}
body .div-header .div-actions .btn-actions:hover img {
  opacity: 0.5;
}
body .div-header .div-actions .btn-actions:hover .btn-span-tooltip {
  display: initial;
}
body .div-header .div-actions .btn-actions:active img {
  transform: scale(0.8);
}
body .div-chart {
  width: 100%;
  height: 100%;
  min-width: 300px;
  min-height: 180px;
  flex-grow: 1;
  display: flex;
  place-items: center;
}
body .div-chart .p-error {
  color: rgb(173, 44, 44);
  text-align: center;
  margin: auto;
}
body .div-chart table {
  font-size: 12px;
  width: 100%;
}
body .div-chart th {
  font-weight: bold;
  background-color: #f4f4f4;
}
body .div-chart table,
body .div-chart th,
body .div-chart td {
  border: 1px solid #1a1a1a;
  border-collapse: collapse;
  padding: 5px;
  text-align: left;
}
body .div-chart table.center,
body .div-chart th.center,
body .div-chart td.center {
  text-align: center;
}
body .div-chart tr:hover {
  background-color: rgba(154, 154, 154, 0.0705882353);
  transition: background-color 0.3s ease;
}
body .div-chart td.fit-content {
  width: 100px;
  min-width: -moz-fit-content;
  min-width: fit-content;
}
body .div-chart td:hover {
  background-color: rgba(154, 154, 154, 0.168627451);
  transition: background-color 0.3s ease;
  cursor: pointer;
}
body .div-chart span.zone-dot {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: 1px black solid;
  border-radius: 50%;
  text-align: center;
  margin: 0 auto;
}
body .div-chart span.zone-dot#green {
  background-color: #4caf50;
}
body .div-chart span.zone-dot#red {
  background-color: #f44336;
}
body .div-chart span.zone-dot#blue {
  background-color: #369ef4;
}
body .div-chart span.zone-dot#yellow {
  background-color: #f4e43a;
}
body .div-chart tr.zone-dot-inactive span.zone-dot {
  opacity: 0.3;
}
body .div-chart tr.row-inactive {
  opacity: 0.3;
}
body .div-chart tr.row-inactive:hover {
  background-color: transparent;
  cursor: auto;
  pointer-events: none;
}
body .div-chart tr.row-inactive:hover td:hover {
  cursor: auto;
  background-color: transparent;
  pointer-events: none;
}
body .div-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 5px;
}
body .div-footer .p-source {
  padding-left: 5px;
}
body .div-footer .p-source .span-source-lbl {
  font-weight: normal;
}
body .div-footer .a-source {
  text-decoration: none;
  color: #00008b;
}
body .div-footer .a-source:hover {
  cursor: pointer;
  color: #135b89;
  text-decoration: underline;
}

.loader {
  --loader-size: 2.8rem;
  --loader-speed: 0.9s;
  --loader-color: #0096cd;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--loader-size);
  width: var(--loader-size);
  margin: -40px auto 40px auto;
}

.dot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}
.dot::before {
  content: "";
  height: 20%;
  width: 20%;
  border-radius: 50%;
  background-color: var(--loader-color);
  transform: scale(0);
  opacity: 0.5;
  animation: pulse calc(var(--loader-speed) * 1.111) ease-in-out infinite;
}

.dot:nth-child(2) {
  transform: rotate(45deg);
}
.dot:nth-child(2)::before {
  animation-delay: calc(var(--loader-speed) * -0.875);
}

.dot:nth-child(3) {
  transform: rotate(90deg);
}
.dot:nth-child(3)::before {
  animation-delay: calc(var(--loader-speed) * -0.75);
}

.dot:nth-child(4) {
  transform: rotate(135deg);
}
.dot:nth-child(4)::before {
  animation-delay: calc(var(--loader-speed) * -0.625);
}

.dot:nth-child(5) {
  transform: rotate(180deg);
}
.dot:nth-child(5)::before {
  animation-delay: calc(var(--loader-speed) * -0.5);
}

.dot:nth-child(6) {
  transform: rotate(225deg);
}
.dot:nth-child(6)::before {
  animation-delay: calc(var(--loader-speed) * -0.375);
}

.dot:nth-child(7) {
  transform: rotate(270deg);
}
.dot:nth-child(7)::before {
  animation-delay: calc(var(--loader-speed) * -0.25);
}

.dot:nth-child(8) {
  transform: rotate(315deg);
}
.dot:nth-child(8)::before {
  animation-delay: calc(var(--loader-speed) * -0.125);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}