.data-page {
  color:gray;

  .data-page-list {
    border-top: solid 1px $grey-300;
    overflow: hidden;
  }

  .data-page-content {
    height: 100%;
    padding: $desktop-gutter;
    //max-width: ($desktop-keyline-increment * 14);

    .data-page-tool{
      height: 45px;
      border-bottom: solid 1px $grey-300;
    }
  }

  @media #{$device-medium} {
    $subNavWidth: ($desktop-keyline-increment * 4.5);

    position: relative;

    .data-page-list {
      top:0px;
      border-top: none;
      position: absolute;
      width: $subNavWidth;
    }

    .data-page-content {
      height: 100%;
      margin-left: $subNavWidth;
      border-left: solid 1px $grey-300;
      display: flex;
      flex-direction: column;
      padding: 20px;

      .data-page-tool{
        float: left;
        height: 45px;
        border-bottom: solid 1px $grey-300;
        .data-page-tool-left{
          display: flex;
          align-items: center;
          .text-title{
            font-weight: bold;
          }
          .text-main{
            margin-right: 20px;
          }
        }
        .data-page-tool-right{
          float: right;
          margin: -25px 10px;
        }
      }

      .flex-container {
        display: flex;
        flex-direction: column;
      }

      .data-page-chart{
        height: 220px;
          .chart-container{
            height: 100%;
          }
      }

      .data-page-selector{
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
      }
      
      .data-page-bottom {
        margin-top: 10px;
        .data-page-table{
          //width: 660px;
          border-right: solid 1px $grey-300;
          .data-page-table-selector{
            height: 40px;
            border-bottom: solid 1px $grey-300;
            .text-sort{
              font-weight: bold;
              color:$primary-1-color;
              float:left;
              margin-top: 7px;
            }
            .sort-right{
              .dropdown{
                margin-right: 10px;
              }
              margin-right: 20px;
              float: right;
              display: flex;
              align-items: center;
            }
          }
        }

        .data-page-date{
          padding-left: 20px;

          .date-title{
            float: left;
            .date-title-num{
              font-size: 20px;
              color: black;
              font-weight: 400;
              &.red{
                color: red;
              }
            }
          }

          .date-border-min{
            background-color: $teal-500;
            border-radius: 2px;
            height: 50px;
            .date-border-text{
              margin-left: 10px;
              color: white;
            }
          }

          .date-border-normal{
            background-color: $grey-400;
            border-radius: 2px;
            height: 25px;
            margin-top: 5px;
            margin-bottom: 5px;
            .date-border-text{
              margin-left: 10px;
              color: white;
            }
          }

          .date-border-large{
            border-radius: 2px;
            height: 60px;
            margin-top: 5px;
            margin-bottom: 5px;
            .large-text{
              float: left;
            }
            .date-border-text{
              margin-left: 10px;
              color: white;
            }

            &.red{
              background-color: $red-400;
              .dig-avatar{
                float: right;
                margin-right: 15px;
                margin-top: 10px;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                box-sizing: content-box;
              }
            }

            &.green {
              background-color: $teal-400;
            }
          }

          .week-title {
            margin-left: 52px;
          }

          .divider{
            height: 1px;
            border-bottom: solid 1px $grey-300;
            &.margin{
              margin: 8px 0px;
            }

            &.red {
              margin-left: -13px;
              border-color: red;
              height: 5px;
            }

            .round{
              background-color: red;
              border-radius: 50%;
              width: 10px;
              height: 10px;
            }
          }
        }
      }
    }
  }
}