#analytics {
  .page-header.analytics {
    margin: 0;
    padding-bottom: 3.05em;
    /* border-bottom: 1px solid var(--border-main-color); */
  }

  button.deselection {
    margin-right: 1em;
  }

  #container-header-analytics {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  /*tempory, only for analytics mockup*/
  img.mockup {
    width: 100%;
  }

  .info-block-section {
    width: 100%;
    margin-bottom: 30px;
    display: block;
  }

  div.info-block {
    display: inline-block;
    height: 100%;
    text-align: center;
    vertical-align: top;
  }

  div.info-square {
    display: inline-block;
    vertical-align: top;
  }

  div.container {
    display: inline-block;
  }

  div.title {
    display: inline-block;
    width: 100%;
    font-size: 1.5em;
    font-weight: 700;
    font-style: italic;
    vertical-align: top;
    color: light-dark(#5d5d5d, #949494);
  }

  div.info-square.title {
    text-align: center;
    height: 2.4em;
  }
  div.tops {
    display: flex;
  }
  div.top-items:first-child:last-child {
    width: 100%;
  }
  /* When there's two tops, the first one is the second-from-last */
  div.top-items:first-child:nth-last-child(2) {
    width: 50%;
    padding-right: 1em;
  }
  /* When there's two tops, this will apply to the second */
  div.top-items:first-child:nth-last-child(2) ~ .top-items {
    width: 50%;
    padding-left: 1em;
  }
  div.top.title {
    text-align: left;
    padding-left: 0.5em;
  }
  div.top-object.block {
    margin: 0.8em 0;
    display: grid;
    grid-template-columns: 5em 1fr 0.5fr;
    cursor: pointer;
    transition:
      background-color var(--spd-insp) ease,
      color var(--spd-insp) ease;
  }
  div.top-object.block:hover {
    background-color: var(--power-primary-color);
    color: var(--text-on-dark);
  }
  div.top-object.index {
    padding: 0.5em;
    margin: auto;
    min-width: 1.2em;
    font-size: 2.8em;
    font-weight: 600;
    color: var(--grey);
  }
  div.top-object.name {
    padding: 0.3em;
    margin: auto;
    flex: 1;
    /* height:100%; */
    font-weight: 700;
    font-size: 1.125em;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
  }
  div.top-object.stats {
    list-style-type: none;
    margin: auto;
    padding: var(--panel-padding);
    min-width: 8em;
  }
  li.top-item-stats {
    padding: 0.1em;
  }

  div.inner {
    width: 96%;
    height: 96%;
    margin: 2%;
    padding: 0.5em;
  }

  div.quarter {
    width: 25%;
  }
  .third {
    width: 32%;
  }
  /* On the middle element */
  .third:nth-last-child(2) {
    margin: 0 2%;
  }
  div.half {
    width: 50%;
  }
  div.full {
    width: 100%;
  }

  .info-block.left {
    margin-right: 2%;
    float: left;
  }
  .center {
    float: middle;
  }
  .with-background {
    background-color: var(--c-dark-bg);
    color: var(--text-on-dark);
    border-radius: var(--grid-corners-radius);
  }
  .info-block.right {
    float: right;
    margin-left: 2%;
  }

  .info-block.pink {
    background: linear-gradient(#ff80d455, #ff80d400);
  }
  .info-block.baby-blue {
    background: linear-gradient(#72a1fd55, #72a1fd00);
  }
  .info-block.purple {
    background: linear-gradient(#8360e255, #8360e200);
  }

  img.info-block {
    display: block;
    margin: auto;
    margin-top: 1.5em;
    width: 3em;
  }

  span.info-block.number {
    height: 1.4em;
    font-size: 2em;
    font-weight: 600;
    display: block;
  }
  span.info-block.number.header {
    margin-top: 0.5em;
    margin-bottom: 0.2em;
    font-size: 2.25em;
    font-weight: 700;
    font-style: italic;
    /* text-shadow: var(--power-secondary-color) 0.05em 0.05em; */
  }
  div.header.pie-chart-block {
    min-height: 6em;
    font-size: 0.8em;
    text-align: center;
  }

  span.info-block.name {
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    display: block;
  }

  div.container {
    position: relative;
    width: 100%;
    height: 100%;
  }

  div.analytics.side-charts {
    display: inline-block;
  }

  div.analytics.side-charts.left {
    float: left;
  }

  div.analytics.side-charts.right {
    float: right;
  }

  div.analytics.side-charts.forty {
    width: 40%;
  }

  div.analytics.side-charts.fifty {
    width: 50%;
  }

  div.analytics.side-charts.sixty {
    width: 60%;
  }

  .timeframe-selector {
    display: flex;
    justify-content: flex-end;
    align-self: right;
    flex-direction: row;
    align-items: center;
    margin-top: 0.18em;
  }

  span.timeframe-selector {
    margin-right: 1em;
  }

  .overlay-wrapper {
    position: relative;
  }

  .overlay-top-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
  }

  .recharts-tooltip-wrapper {
    z-index: 100;
  }
}
