/*-------------------------------------------------
  Dashboard common file for Analytics & eCommmerce
--------------------------------------------------*/
#chart-dashboard .card-current .unit
{
    font-size: .74em;
}

#chart-dashboard .card-current .card-sparkline-area
{
    position: absolute;
    bottom: 0;

    width: 100%;
    height: 80px;
    padding: 10px;

    -webkit-align-content: center;
    -ms-flex-line-pack: center;
            align-content: center;
}

#chart-dashboard .card-current .card-sparkline-area .card-sparkline
{
    position: relative;

    width: 169px;
    height: 60px;
    margin: 0 auto;
}

#chart-dashboard .card-current .card-sparkline-area .card-sparkline .sparkline-svg
{
    stroke: white;
    fill: rgba(255, 255, 255, .2);
}

#chart-dashboard .card-current .card-sparkline-area .card-sparkline .sparkline-tooltip
{
    font-size: 12px;

    position: absolute;
    z-index: 9999;

    padding: 2px 5px;

    -webkit-transform: translateX(-50%) translateY(-3em) translateY(-40px);
        -ms-transform: translateX(-50%) translateY(-3em) translateY(-40px);
            transform: translateX(-50%) translateY(-3em) translateY(-40px);
    white-space: nowrap;

    color: white;
    background: rgba(0, 0, 0, .6);
}

#chart-dashboard .chart-card
{
    position: relative;
}

#chart-dashboard .chart-card .card-timer
{
    position: relative;
    top: -5px;
    left: 10px;

    display: inline-block;

    height: 40px;

    border-radius: 20px;
}

#chart-dashboard .chart-card .card-timer span
{
    margin-right: 14px;
    margin-left: 4px;
}

#chart-dashboard .chart-card .card-chart-area
{
    position: absolute;

    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:         flex;
            flex-direction: column;

    padding: 10px 14px;

    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
}

#chart-dashboard .chart-card .card-chart-area .card-title
{
    position: relative;

    height: 30px;
}

#chart-dashboard .chart-card .card-chart-area .card-title .switch
{
    padding-top: 3px;
}

#chart-dashboard .chart-card .card-chart-area .card-chart
{
    position: relative;

    margin-top: 10px;

    -webkit-box-flex: 1;
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

#chart-dashboard .chart-card .card-current
{
    position: absolute;

    text-align: center;
}

#chart-dashboard .chart-card .card-current .card-quality
{
    position: absolute;
    bottom: 0;

    width: 100%;
}

#chart-dashboard .grouped-card
{
    overflow: visible;
}

@media only screen and (max-width: 600px)
{
    #chart-dashboard .grouped-card .details-card
    {
        height: 300px;
    }
}

@media only screen and (min-width: 601px)
{
    #chart-dashboard .grouped-card .details-card
    {
        height: 200px;
    }
}

#chart-dashboard .grouped-card .state-card.card
{
    overflow: visible;

    cursor: pointer;
}

@media only screen and (max-width: 600px)
{
    #chart-dashboard .chart-card
    {
        height: 400px;
    }
    #chart-dashboard .chart-card .card-chart-area
    {
        top: 0;

        width: 100%;
        height: 200px;
    }
    #chart-dashboard .chart-card .card-current
    {
        bottom: 0;

        width: 100%;
        height: 200px;
    }
    #chart-dashboard .chart-card.tall
    {
        height: 600px;
    }
    #chart-dashboard .chart-card.tall .card-chart-area
    {
        height: 400px;
    }
}

@media only screen and (min-width: 601px)
{
    #chart-dashboard .chart-card
    {
        height: 200px;
    }
    #chart-dashboard .chart-card .card-chart-area
    {
        right: 200px;
        left: 0;

        height: 100%;
    }
    #chart-dashboard .chart-card .card-current
    {
        right: 0;

        width: 200px;
        height: 100%;
    }
    #chart-dashboard .chart-card.tall
    {
        height: 400px;
    }
}

#chart-dashboard .emergency-card
{
    height: calc(200px + 1rem);
}

#chart-dashboard .state-card
{
    position: relative;

    height: 200px;
}

#chart-dashboard .state-card .card-current
{
    position: absolute;

    width: 100%;
    height: 100%;

    text-align: center;
}

#chart-dashboard .state-card .card-current .card-title
{
    text-align: start;
}

#chart-dashboard .state-card .card-action
{
    position: absolute;
    bottom: 0;

    width: 100%;
}
