@import url("https://code.highcharts.com/css/highcharts.css");
@import url("https://code.highcharts.com/dashboards/css/datagrid.css");
@import url("https://code.highcharts.com/dashboards/css/dashboards.css");

.highcharts-description {
    padding: 0 20px;
}

.cloud-monitoring-data-controls {
    background-color: var(--dashboard-bck-gray);
    border-bottom: 1px solid #a5abb1;
    padding: 20px 15px;
}

:root,
.highcharts-light {
    /* Colors for data series and points */
    --highcharts-color-0: #33a29d;
    --highcharts-color-2: #fe9d00;

    /* Extra colors */
    --bck-gray: #f1f5f9;
    --dashboard-bck-gray: #e4eaf1;
}

body {
    background-color: var(--bck-gray);
}

.highcharts-dashboards-wrapper {
    background-color: var(--dashboard-bck-gray);
    min-height: 1000px;
}

.highcharts-dashboards-cell > .highcharts-dashboards-component {
    border-radius: 15px;
    padding: 10px;
    text-align: left;
}

.highcharts-dashboards-component-title {
    font-size: 1.2em;
    text-align: left;
}

#instance-details .highcharts-dashboards-component-content p {
    display: inline-block;
    font-size: 1em;
    font-weight: 600;
    margin-top: 20px;
}

#instance-details .highcharts-dashboards-component-content span {
    width: 40px;
    height: 40px;
    background-size: 32px 32px;
    border-radius: 5px;
    margin: 10px 15px 10px 10px;
    float: left;
}

@media (prefers-color-scheme: dark) {
    .highcharts-dashboards-wrapper,
    .cloud-monitoring-data-controls {
        background-color: var(--highcharts-neutral-color-10);
    }

    .cloud-monitoring-data-controls {
        color: #fff;
    }
}

#instance-details .highcharts-dashboards-component-html-content img {
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 10px;
    border-radius: 3px;
}

#instance-details .highcharts-dashboards-component-html-content p {
    display: inline-block;
    vertical-align: middle;
}

#instances-table .highcharts-datagrid-row {
    cursor: pointer;
}

#instances-table .highcharts-datagrid-row.current {
    background-color: var(--highcharts-neutral-color-10);
    pointer-events: none;
}

#instances-table .highcharts-datagrid-hovered-row {
    background-color: var(--highcharts-neutral-color-10);
}

#instances-table .highcharts-datagrid-row td[data-column-id="HealthIndicator"] {
    text-align: center;
}

#instances-table .highcharts-datagrid-row {
    height: 50px;
}

#instances-table .highcharts-datagrid-row img {
    margin-top: 5px;
    width: 30px;
    height: 30px;
}

#instances-table .highcharts-datagrid-table th {
    height: 35px;
}

#instances-table .highcharts-datagrid-hovered-column {
    background: none;
}

#instances-table .highcharts-datagrid-table {
    border-width: 1px 0 0;
}

#instances-table .highcharts-datagrid-column[data-column-id="InstanceId"] {
    width: 31%;
}

#instances-table .highcharts-datagrid-column[data-column-id="InstanceType"] {
    width: 19%;
}

#instances-table .highcharts-datagrid-column[data-column-id="PublicIpAddress"] {
    width: 24%;
}

#instances-table .highcharts-datagrid-column[data-column-id="State"] {
    width: 16%;
}

.health-title {
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    padding-top: 15px;
}

.health-wrapper {
    margin: auto;
    width: 100px;
    height: 100px;
    margin-top: 15px;
}

.highcharts-Warning-icon {
    background: url("https://www.highcharts.com/samples/graphics/dashboards/cloud-monitoring/warning-ico.svg") 50% 50% no-repeat;
    background-size: 64px 64px;
}

.highcharts-Critical-icon {
    background: url("https://www.highcharts.com/samples/graphics/dashboards/cloud-monitoring/critical-ico.png") 50% 50% no-repeat;
    background-size: 64px 64px;
}

.highcharts-OK-icon {
    background: url("https://www.highcharts.com/samples/graphics/dashboards/cloud-monitoring/ok-ico.svg") 50% 50% no-repeat;
    background-size: 64px 64px;
}

.highcharts-dashboards-component-kpi-value {
    display: none;
}

#instances-table {
    height: 400px;
}

#cpu,
#memory {
    height: 200px;
}

#health,
#disk {
    height: 195px;
}

#disk-opt,
#network-opt {
    height: 300px;
}

#cpu-utilization,
#disk-usage {
    height: 400px;
}

/* MEDIUM */
@media (max-width: 992px) {
    #instance,
    #zone,
    #ami,
    #os,
    #cpu,
    #memory,
    #health,
    #disk {
        flex: 1 1 50%;
    }

    #instances-table,
    #disk-usage,
    #cpu-utilization,
    #kpi-wrapper {
        flex: 1 1 100%;
    }

    #instances-table,
    #cpu-utilization {
        height: 300px;
    }
}

/* SMALL */
@media (max-width: 576px) {
    #instance,
    #zone,
    #ami,
    #os,
    #disk-opt,
    #network-opt,
    #cpu,
    #memory,
    #health,
    #disk {
        flex: 1 1 100%;
    }
}
