:root {
  --dashboardBaseColor: var(--uiBaseColor);
}

.dashboard-container {
  display: contents;
  gap: 1vw;
}

.dashboard {
  font-size: .9em;
  overflow: visible;
  flex-basis: 100%;
}

.dashboard.core-specs {
  flex-basis: 30%;
}

.dashboard.loading>.content:before {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .3);
  z-index: 1000;
  background-image: url('../img/loading-rings.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.dashboard>.header,
.dashboard>.header:before {
  border-top-left-radius: .5em;
  border-top-right-radius: .5em;
}

.dashboard>.header>h3:before {
  content: ' ';
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 1.2em;
  height: 1.4em;
  margin: 0 .2em 0 -.1em;

  background-image: url('../img/icon-animated.apng');
  background-size: auto 90%;
  background-repeat: no-repeat;
  background-position: center center;

  /*   filter: hue-rotate(-90deg); */
}

/* 
.dashboard-container:first-of-type>.dashboard>.header>h3:before {
  filter: hue-rotate(0deg);
} */

.dashboard>.content {
  border-bottom-left-radius: .5em;
  border-bottom-right-radius: .5em;
}

.dashboard>div>.info-panel {
  flex-basis: 24%;
}

small {
  font-size: .8em;
  opacity: .8;
}

.emphasizeL,
.emphasizeM {
  position: relative;
  display: inline-block;
  font-weight: normal;
  padding: .3em .1em .2em .1em;
  font-size: 2em;
  color: var(--dashboardBaseColor);
}

.emphasizeM {
  padding: .1em;
  font-size: 1.6em;
}

.updated {
  position: relative;
  float: right;
  color: rgba(255, 255, 255, .7);
  font-size: .7em;
  line-height: 1;
  text-align: right;
}

.updated a {
  color: #09e;
}

div[data-name='pool-id'],
div[data-name='pool-daedalus-id'] {
  position: relative;
  display: inline-block;
  font-size: 1.3em;
  text-align: left;
  font-family: monospace;
  white-space: pre;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 0 auto .5em auto;
  color: var(--dashboardBaseColor);
}

.delegators {
  color: var(--dashboardBaseColor);
  padding: .3em;
}

.fees {
  width: 90%;
  min-width: 100px;
  margin: .8em auto;
  font-size: 1em;
}

.fees td {
  text-align: left;
  padding: .2em;
}

.fees td:last-child {
  width: 50%;
  text-align: right;
}

.fees td[data-name='pool-fees-real'] {
  font-size: 1.6em;
  border-top: 2px solid var(--dashboardBaseColor);
  color: var(--dashboardBaseColor);
}

/* core/full dashboard */

@keyframes show-spec {
  from {
    transform: scale(0.1);
  }

  to {
    transform: scale(1);
  }
}

.dashboard div.extended-spec {
  animation: show-spec;
  animation-duration: .5s;
}

.dashboard.core-specs .info-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /*   min-height: 180px; */
  min-width: 170px !important;
  padding: 1em .5em .5em .5em;
  font-size: .9em;
  flex-basis: 10%;
  flex-shrink: 3;
}

.dashboard.core-specs .info-panel>h2,
.dashboard.core-specs .info-panel>h3 {
  font-size: 1.3em;
  padding: .3em;
  margin: 0;
}

.dashboard.core-specs .info-panel>h2:first-of-type,
.dashboard.core-specs .info-panel>h3:first-of-type {
  padding-top: 0;
  padding-bottom: .1em;
  color: #888;
}

.dashboard.core-specs .extended-spec {
  display: none;
}

.dashboard.core-specs .extended-container {
  display: contents;
}

.dashboard.core-specs .extended-container>h2 {
  display: none;
}

.dashboard.core-specs .extended-container>.content {
  display: contents;
}

.dashboard.core-specs .stake-chart {
  height: 120px;
  margin: 0 -2em -1em -2em;
}

.dashboard.core-specs .delegators {
  margin: 1em 0 -1em 0;
}


.dashboard.core-specs .epoch-blocks {
  height: 200px;
  /*   width: 50%; */
}

.dashboard.core-specs .epoch-blocks .block-chart {
  width: 35%;
  min-width: 100px;
  margin-top: -.3em;
}

.dashboard.core-specs .epoch-blocks .chart-title {
  display: none;
}

.dashboard .foldable.folded {
  padding-top: .3em;
  margin: .1em;
  border-radius: .3em;
  background-color: #f9f9f9;
}

.darkmode .dashboard .foldable.folded {
  background-color: #333;
}

/*
.dashboard .foldable .fold-content {
  padding: .3em;
} */

/* responsive */
@media all and (max-width: 780px) {


  .dashboard {
    font-size: .7em;
  }

  .dashboard>.header>h3:before {
    background-image: url('../img/icon.png');
  }

  .dashboard .info-panel {
    flex-basis: 32%;
    min-width: 100px !important;
  }

  .dashboard.core-specs .info-panel {
    min-width: 120px !important;
    padding: .5em .1em .1em .1em;
    font-size: .8em;
    flex-basis: 10%;
    flex-shrink: 5;
  }

  .dashboard>.content>.info-panel {
    min-width: 160px;
    flex-basis: 48%;
  }

  .stake-legend {
    min-width: 120px;
    font-size: .6em;
  }

}