div#charts
{
    margin-right: 0.5em;
}

div#charts > div
{
    border: 1px solid #ababab;
    float: left;
    margin: 0 1em 1em 0;
    padding: .5em;
}

div.chart img,
div.chart#chart-location
{
    /* If chart image widths and heights aren't explicitly specified, the
     * browser doesn't constrain the width of high-resolution charts. */
    width: 640px;
    max-width: 100%;
}

div.chart#chart-location
{
    height: 400px;
}

div.plotly-chart
{
    height: 500px;
    width: 640px; /* To make it the same width as static charts */
    max-width: 100%;
    /* width: 100%; */ /* Proper width for dynamic graphs */
}

div#charts ul
{
    list-style: none;
    overflow: auto;
    margin: 0;
    padding: 0;
}

div#charts ul li a
{
    border: solid #ababab;
    border-width: 1px 1px 0;
    color: inherit;
    float: left;
    margin: .5em 0 0 .5em;
    padding: .5em 1em;
    text-decoration: none;
}

div#charts ul li.ui-tabs-active a
{
    margin-top: 0;
    padding: .75em 1em;
}

div#charts ul li a:hover
{
    background-color: #f0f0f0;
}

div#charts ul li a:active
{
    background-color: #e0e0e0;
}

div#charts div.ui-tabs-hide
{
    display: none;
}

@media screen and (max-width: 800px)
{
    div#charts > div
    {
        padding: 0;
    }
}
