.dashboard {
  border: 0px;
  .filter {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f6f6f6;

    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d9d9d9;
    padding: 20px 0;
    margin-bottom: 40px;

    &__header {
      font-weight: bold;
      font-size: $font-size-large;
      button {
        padding: 12px;
        font-size: $font-size-small;
      }
      .dropdown-menu {
        top: 35px;
				right: 0;
				left: unset;
				min-width: 100%;
				
				li {

					a {
						padding: 12px 20px;
						font-size: $font-size-small;
					}
				}
      }
    }
    &__menu{
      display: flex;
      align-items: center;
    }
    &__campaign{
      display: flex;
      align-items: center;
      .chart_container__title{
        margin: 0;
      }
    }
  }
  .menu {
    display: flex;
    &__item {
      cursor: pointer;
      margin: 0 10px;
      &:last-child{
        margin-right: 30px;
      }
    }
  }
  .active {
    font-weight: 500;
    border-bottom: 2px solid #004f9c;
    padding-bottom: 3px;
  }
  .content {
    background: transparent;
    overflow-y: unset;

    &__title {
      margin: 20px 0;
      display: flex;
      align-items: center;
      line-height: 1.2em;
			font-size: $font-size-mid-large;

			&--date {
        font-weight: 300;
        color: #808080;
        font-size: 13px;
        margin-left: 20px;
			}

      &--export {
        padding: 0.5em 1.5em;
        border: 1px solid #04c3c4;
        border-radius: 3px;
        color: #04c3c4;
        cursor: pointer;
      }
    }
  }
  // .dropdown {
  //   display: none;
  // }
  .btn-default {
    background: transparent;
  }
  input[type="filter-date"] {
    box-sizing: unset;
    border-width: 0px;
    border-radius: 5px;
    padding: 10px 20px;
    padding-right: 40px;
    background: url("../../imgs/icon_calendar.svg") no-repeat;
    background-size: 15px;
    background-position: center right 12px;
    background-color: #fff;
    cursor: pointer;

    font-weight: normal;
    font-size: $font-size-small;
  }
  input[type="filter-date"]:focus {
    outline: unset;
  }

  .chart {
    position: relative;
    padding: 10px;
  }

  .summary,
  .status__report {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    border-width: 0 1px 0 0;

    &__item {
      width: 20%;
      border: 1px solid #ddd;
      background: #fff;
      padding: 15px;
      border-width: 1px 0 1px 1px;
    }
    &__title {
      font-weight: 500;
      margin-bottom: 5px;
    }
    &__subtitle {
      color: #888;
      font-size: $font-size-small;
      line-height: 1.3;
      height: 4em;
      overflow: hidden;
      margin-bottom: 10px;
    }
    &__num {
      text-align: right;
      font-size: 30px;
      font-weight: 500;
    }
  }
  .status__report {
    flex-wrap: inherit;
    .summary__item {
      border-bottom: 5px solid;
    }
  }

  .chart_container {
    &__title {
			font-size: $font-size-mid-large;
      font-weight: 500;
      margin: 40px 0 15px 0;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      line-height: 1.2em;
    }
    &__box {
      display: flex;
      flex-wrap: wrap;
      background: #fff;
      border: 1px solid #ddd;
      &--big {
        width: 100%;
      }
      &--small {
        width: 50%;
      }
    }
    &__box.empty {
      background: transparent;
      color: #888;
      height: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    &__table {
      width: 50%;
      border-left: 1px solid #ddd;

      table {
        thead {
          border-bottom: 2px solid #17c0b9;
        }
        tr {
          border-bottom: 1px solid #ddd;
          cursor: pointer;
        }
        th {
          padding: 12px 15px;
          font-weight: 500;
        }
        td {
          padding: 12px 15px;
        }
        .val {
          text-align: right;
          font-weight: 500;
        }
      }
      .legend-circle {
        height: 12px;
        width: 12px;
        border-radius: 50%;
        display: inline-block;
      }
    }
    .date-range {
      font-weight: 300;
      color: #808080;
      font-size: 13px;
      margin-left: 20px;
    }
  }

  .utm_chart{
    &__header{
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .toolbar{
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .dataTables_filter{
      display: flex;
      margin: 40px 0 15px;
      label{
        font-weight: 300;
        margin: 0 20px 0 0;
        input{
          border: 1px solid #ddd;
          padding: 5px;
          border-radius: 5px;
        }
      }
      .dropdown.bootstrap-select{
        background: #fff;
        margin-left: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
      }
      .glyphicon-ok:before{
        content: "" !important;
        display: inline-block;
        width: 12px;
        height: 12px;
        background: url(../../imgs/icon_correct.svg);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
      }
    }
    table{
      border-collapse: collapse;
      thead{
        font-weight: 500;
        background-color: #ebebeb;
        font-size: 15px;
      }
      td{
        border: 1px solid #ddd;
        &:first-child{
          text-align: center;
          width: 3%;
        }
        &:nth-child(5){
          text-align: center;
          font-weight: 700;
        }
      }
    }
    .statusColor {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 10px;
      display: inline-block;
    }
    .bottom{
      padding: 20px 0;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 13px;
    }
    .dataTables_length{
      label{
        font-weight: 300;
      }
    }
    .paginate_button{
      text-decoration: underline !important;
      font-weight: 300;
      border: 0 !important;
      &.disabled{
        color: #bfbfbf !important;
      }
      &:hover{
        background: transparent;
        color: #000 !important;
      }
      &.disabled:hover{
        color: #bfbfbf !important;
      }
    }
    span .paginate_button{
      text-decoration: none !important;
      &.current{
        font-weight: 700;
        background: #d9d9d9;
        line-height: 1em;
        padding: 7px 12px;
      }
    }
  }

  .table {
    min-height: 80px;
    background: #fff;
    table {
      border: 0;
      tbody th, tbody td {
        padding: 8px 18px;
      }
      thead {
        background: #ebebeb;
        td {
          border: #ddd;
        }
      }
      .right {
        text-align: right;
      }
    }
  }
  .chart {
    min-height: 300px;
    height: 300px;
    background: #fff;
  }

  .empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;

    &Table {
      margin: 30px 0;
    }
    &__box {
      text-align: center;
    }
    &__icon {
      width: 96px;
      img {
        width: 100%;
      }
    }
    &__text {
      color: #888;
      font-size: 12px;
    }
  }
  

  @media only screen and (max-width: 992px) {
    .dropdown {
      display: block;
    }
    .filter {
      display: block;
      padding: 5% 20px;
      border: 0;
      margin-bottom: 0;

      &__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
      }
      &__menu {
        input {
          width: 100%;
        }
      }
    }
    .content {
      &__title {
        padding: 0 5%;
        margin-top: 0;
        justify-content: space-between;
      }
    }
    .summary,
    .status__report {
      margin: 0 5%;
      border-width: 0 1px 1px 0;

      &__item {
        width: 50%;
        border-width: 1px 0 0 1px;
      }
    }
    .status__report {
      flex-wrap: wrap;
    }
    .dashboard--container {
      margin: 0 5%;
    }
    .chart_container {
      justify-content: space-between;
      padding: 0 5%;
      &__title {
        justify-content: space-between;
        font-size: 14px;
        width: 100%;
      }
      &__box {
        &--small {
          width: 100%;
        }
      }
      &__table {
        width: 100%;
        padding-bottom: 30px;
        border: 0px;
        font-size: 13px;
      }
      .date-range{
        margin-left: 0;
      }
    }
    .utm_chart{
      .dataTables_filter{
        overflow: hidden;
        margin: 0 0 15px 0;
        label{
          width: 60%;
          margin-right: 10px;
          text-align: left;
          font-size: 13px;
          input{
            width: 100%;
            margin: 0;
          }
        }
        .filter__campaign{
          width: 40%;
          display: inline-block;
          font-size: 13px;
          text-align: left;
          .dropdown.bootstrap-select{
            margin: 0;
            width: 100%;
          }
          .btn-default{
            font-size: 13px;
            padding-top: 5px;
            padding-bottom: 5px;
          }
        }
      }
      .toolbar{
        display: block;
      }
      table{
        td{
          font-size: 13px;
          &:nth-child(3){
            text-align: center;
            font-weight: 700;
          }
        }
      }
      .bottom{
        flex-wrap: wrap;
        justify-content: center;
        .dataTables_length,.dataTables_paginate{
          width: 100%;
        }
        select[name='table_utm_length']{
          background-color: #fff;
        }
      }
    }





    
  }

  @media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
      .menu {
        &__item {
          display: table;
        }
      }
    }
  }

  @-moz-document url-prefix() {
    .menu {
      &__item {
        display: table;
      }
    }
  }
}
#dashboard.bodysection{
  display: block;
}
#dashboard_survey{
  flex-wrap: wrap;
  .charts{
    width: 100%;
    display: flex;
    justify-content: space-between;

    .dashboard--container{
      width: 49.5%;
    }
  }
  .dashboard--container{
    width: 100%;
  }

  table.dataTable.no-footer{
    border: 0;
  }

  @media only screen and (max-width: 992px) {
    .charts{
      flex-wrap: wrap;
      .dashboard--container{
        width: 100%;
      }
    }
  }
}

#dashboard_ga {
  &.bodysection {
    display: block;
  }
  .dashboard_ga--container {
    width: 100%;
  }

  .chart_container__subtitle {
    font-size: 11px;
  }

  .chart--small {
    width: 50%;
  }

  .dashboard__chart--container {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    background: #fff;
    padding: 10px;
  }

  .dashboard--container-title {
    font-size: 18px;
    font-weight: lighter;
    text-align: center;
  }

  .chart {
    height: unset;
    width: 100%;
  }
  .chart.no-min-height {
    min-height: unset;
  }

  .chart_container__title {
    margin-bottom: 5px;
  }

  .chart_container__subtitle {
    margin-bottom: 15px;
  }

  .summary {
    border-width: 0;
  }
  
  .summary__item:last-child {
    border-width: 1px;
  }

  .chart__table--row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .chart__table--col {
    width: 30%;
  }

}
