import { css } from 'lit-element';
import { iconFont } from '@ppci/styles';

export default css`
  :host {
    display: block;
    height: 100%;
  }

  .flex-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .loader-wrapper {
    display: flex;
    flex: 1 0 auto;
    justify-content: center;
    align-items: center;
    min-height: 250px;
  }

  .tools {
    height: 50px;
    background-color: #eaeaeb;
    display: flex;
    align-items: center;
  }

  .view {
    display: flex;
    list-style-type: none;
    padding: 0;
  }

  .view li {
    width: 90px;
    height: 32px;
    border: 1px solid #dfdfe0;
    background: white;
    text-align: center;
    line-height: 30px;
    position: relative;
    z-index: 1;
    margin: 0;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s ease-out;
  }

  .view li:first-child {
    margin-right: -1px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
  }

  .view li:last-child {
    margin-left: -1px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
  }

  .view li:hover {
    color: white;
    background-color: #037cc2;
    border-color: #037cc2;
  }

  .view li.active {
    color: white;
    background-color: #1e99e1;
    border-color: #1e99e1;
  }

  .calendar {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin-left: auto;
  }

  .calendar li {
    width: 34px;
    height: 32px;
    border: 1px solid #dfdfe0;
    background: white;
    text-align: center;
    font-weight: 700;
    line-height: 32px;
    position: relative;
    z-index: 1;
    margin: 0;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s ease-out;
  }

  .calendar li:hover {
    color: white;
    background-color: #037cc2;
    border-color: #037cc2;
  }

  .calendar li:first-child {
    font-size: 14px;
    margin-right: -1px;
    line-height: 34px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
  }

  .calendar li:first-child:after {
    ${iconFont}
    content: "\\EA40";
  }

  .calendar li:nth-child(2) {
    flex-grow: 1;
    width: 200px;
    cursor: default;
  }

  .calendar li:nth-child(2):hover {
    color: inherit;
    background: white;
    border-color: #dfdfe0;
  }

  .calendar li:last-of-type {
    font-size: 14px;
    margin-left: -1px;
    line-height: 34px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
  }

  .calendar li:last-child:after {
    ${iconFont}
    content: "\\EA3C";
  }

  .total {
    height: 50px;
    line-height: 50px;
  }

  stacked-column-chart {
    flex-grow: 1;
  }
`;
