/* =========================================================
   DASHBOARD BOX
   ========================================================= */

.dashboard-box {
    width:100%;
    background:#fff;
    border:0px solid #e6e8eb;
    border-radius:8px;
    padding:20px;
    box-sizing:border-box;
    box-shadow:0 2px 8px rgba(0,0,0,.035);
    transition:all .2s ease;
}

.dashboard-box:hover {
    border-color:#d9dce0;
    box-shadow:0 5px 18px rgba(0,0,0,.06);
}


/* =========================================================
   DASHBOARD HEADER
   ========================================================= */

.dashboard-header {
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 0 15px 0;
    margin:0 0 15px 0;

    border-bottom:1px solid #f0f1f3;
}

.dashboard-header strong {
    color:#202124;
    font-size:16px;
    font-weight:600;
}

.dashboard-header span {
    color:#9aa0a6;
    font-size:10px;
    font-weight:500;
    letter-spacing:.5px;
    text-transform:uppercase;
}


/* =========================================================
   DASHBOARD STATS
   ========================================================= */

.dashboard-stats {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    width:100%;
}

.dashboard-stat {
    position:relative;

    background:#f8f9fa;
    border:1px solid #f0f1f3;
    border-radius:9px;

    padding:13px 14px;

    box-sizing:border-box;
    min-width:0;

    transition:all .2s ease;
}

.dashboard-stat:hover {
    background:#f5f6f7;
    border-color:#e4e6e9;
    'transform:translateY(-1px);
}

.dashboard-stat span {
    display:block;

    margin:0 0 5px 0;

    color:#7a7f85;
    font-size:11px;
    font-weight:500;
    line-height:16px;
}

.dashboard-stat strong {
    display:block;

    color:#202124;
    font-size:18px;
    font-weight:600;
    line-height:23px;

    word-break:break-word;
}


/* =========================================================
   STATUS
   ========================================================= */

.dashboard-stat .success {
    color:#16803c;
}

.dashboard-stat .warning {
    color:#b7791f;
}

.dashboard-stat .danger {
    color:#d93025;
}

.dashboard-stat .info {
    color:#1976d2;
}

.dashboard-stat .highlight {
    background:#f5f8f6;
    border-color:#e1ebe4;
}

.dashboard-stat .problem {
    background:#fff7f7;
    border-color:#f3dddd;
}

.dashboard-stat.problem strong {
    color:#d93025;
}


/* =========================================================
   GRAF HEADER
   ========================================================= */

.dashboard-chart-header {
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:18px;
}

.dashboard-chart-title {
    color:#202124;
    font-size:14px;
    font-weight:600;
}

.dashboard-chart-value {
    color:#202124;
    font-size:20px;
    font-weight:600;
}

.dashboard-chart-subtitle {
    display:block;

    margin-top:3px;

    color:#8a8f94;
    font-size:11px;
}


/* =========================================================
   PERFORMANCE SØJLEGRAF
   ========================================================= */

.chart-bars {
    width:100%;
    height:180px;

    display:flex;
    align-items:flex-end;

    gap:20px;

    padding:15px 10px 30px 10px;

    box-sizing:border-box;

    border-bottom:1px solid #e8eaed;
}

.chart-bar-column {
    flex:1;
    height:100%;

    position:relative;
	color:#fff;

    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-direction:column;
}

.chart-bar {
    width:100%;
    max-width:45px;

    min-height:3px;

    background:#555;
	color:#fff;

    border-radius:6px 6px 6px 6px;

    transition:height .4s ease;
}

.chart-bar:hover {
    opacity:.55;
	color:#292929;
}

.chart-bar-label {
    position:absolute;

    bottom:-25px;

    color:#858a90;
    font-size:11px;
	font-weight: 700;

    white-space:nowrap;
}

.chart-bar-value {
    position:absolute;

    font-size:10px;
	color:#fff;

    white-space:nowrap;

    margin-bottom:2px;
}


/* =========================================================
   HORISONTAL GRAF
   ========================================================= */

.chart-horizontal {
    width:100%;
}

.chart-horizontal-row {
    display:grid;
    grid-template-columns:110px minmax(0,1fr) 70px;

    align-items:center;

    gap:10px;

    margin-bottom:14px;
}

.chart-horizontal-row:last-child {
    margin-bottom:0;
}

.chart-horizontal-name {
    overflow:hidden;

    color:#686d72;
    font-size:11px;

    text-overflow:ellipsis;
    white-space:nowrap;
}

.chart-horizontal-track {
    width:100%;
    height:8px;

    overflow:hidden;

    background:#edf0f2;

    border-radius:20px;
}

.chart-horizontal-bar {
    height:100%;

    background:#555;

    border-radius:20px;

    transition:width .4s ease;
}

.chart-horizontal-value {
    color:#444;

    font-size:11px;
    font-weight:600;

    text-align:right;
}


/* =========================================================
   DONUT
   ========================================================= */

.chart-donut-wrapper {
    width:100%;

    display:grid;
    grid-template-columns:140px minmax(0,1fr);
    align-items:center;

    column-gap:30px;

    min-height:160px;

    box-sizing:border-box;
}


/* Donut */

.chart-donut {
    width:125px;
    height:125px;

    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:50%;
}

.chart-donut:after {
    content:"";

    width:87px;
    height:87px;

    position:absolute;

    background:#fff;

    border-radius:50%;
}


/* Information */

.chart-donut-info {
    width:100%;
    min-width:0;

    display:flex;
    flex-direction:column;

    gap:12px;

    box-sizing:border-box;
}


/* Individuel linje */

.chart-donut-item {
    width:100%;

    display:flex;
    align-items:center;

    gap:8px;

    color:#777;
    font-size:13px;

    white-space:nowrap;
}

.chart-donut-item strong {
    margin-left:auto;

    color:#202124;

    font-size:15px;
    font-weight:600;

    white-space:nowrap;
}


/* Prik */

.chart-donut-dot {
    width:8px;
    height:8px;

    flex-shrink:0;

    background:#555;

    border-radius:50%;
}

.chart-donut-dot.empty {
    background:#edf0f2;
}


/* Hitrate */

.chart-trend {
    display:flex;
    align-items:center;

    gap:6px;

    margin-top:3px;

    color:#16803c;

    font-size:12px;

    white-space:nowrap;
}

.chart-trend-arrow {
    font-size:14px;
    font-weight:600;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width:500px) {

    .chart-donut-wrapper {
        grid-template-columns:120px minmax(0,1fr);
        column-gap:20px;
    }

    .chart-donut {
        width:110px;
        height:110px;
    }

    .chart-donut:after {
        width:76px;
        height:76px;
    }

    .chart-donut-item {
        font-size:11px;
    }

    .chart-donut-item strong {
        font-size:13px;
    }

    .chart-trend {
        font-size:11px;
    }

}


@media only screen and (max-width:380px) {

    .chart-donut-wrapper {
        grid-template-columns:1fr;
        justify-items:center;

        row-gap:20px;
    }

    .chart-donut-info {
        width:100%;
        max-width:220px;
    }

}


/* =========================================================
   TREND
   ========================================================= */

.chart-trend {
    display:flex;
    align-items:center;

    gap:7px;

    margin-top:4px;

    font-size:11px;
}

.chart-trend.up {
    color:#16803c;
}

.chart-trend.down {
    color:#d93025;
}

.chart-trend-arrow {
    font-size:13px;
    font-weight:600;
}


/* =========================================================
   MINI GRAF
   ========================================================= */

.chart-sparkline {
    width:100%;
    height:60px;

    display:flex;
    align-items:flex-end;

    gap:4px;

    margin-top:15px;
}

.chart-sparkline-bar {
    flex:1;

    min-height:2px;

    background:#555;

    border-radius:3px 3px 0 0;
}

.chart-sparkline-bar:hover {
    opacity:.7;
}


/* =========================================================
   GRAF GRID
   ========================================================= */

.chart-grid {
    position:relative;

    width:100%;
    height:180px;

    border-bottom:1px solid #e5e7e9;
}

.chart-grid-line {
    position:absolute;

    left:0;
    right:0;

    border-top:1px dashed #eceef0;
}

.chart-grid-line:nth-child(1) {
    top:0;
}

.chart-grid-line:nth-child(2) {
    top:25%;
}

.chart-grid-line:nth-child(3) {
    top:50%;
}

.chart-grid-line:nth-child(4) {
    top:75%;
}

.chart-grid-line:nth-child(5) {
    top:100%;
}


/* =========================================================
   LEGEND
   ========================================================= */

.chart-legend {
    display:flex;
    align-items:center;

    gap:15px;

    margin-top:12px;
}

.chart-legend-item {
    display:flex;
    align-items:center;

    gap:6px;

    color:#777;
    font-size:10px;
}

.chart-legend-dot {
    width:7px;
    height:7px;

    background:#555;

    border-radius:50%;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media only screen and (max-width:700px) {

    .dashboard-box {
        padding:16px;
    }

    .chart-donut-wrapper {
        gap:15px;
    }

    .chart-donut {
        width:105px;
        height:105px;
    }

    .chart-donut:after {
        width:73px;
        height:73px;
    }

    .chart-horizontal-row {
        grid-template-columns:90px minmax(0,1fr) 60px;
    }

}


@media only screen and (max-width:450px) {

    .dashboard-box {
        padding:14px;
    }

    .dashboard-stats {
        grid-template-columns:1fr 1fr;
    }

    .chart-bars {
        height:150px;
        gap:12px;
    }

    .chart-donut-wrapper {
        flex-direction:column;
    }

}


@media only screen and (max-width:360px) {

    .dashboard-stats {
        grid-template-columns:1fr;
    }

}


/* =========================================================
   DATABASE
   ========================================================= */

.dashboard-database {
    width:100%;
    margin-top:16px;
}


/* =========================================================
   DATABASE TOTAL
   ========================================================= */

.dashboard-database .database-total {
    display:flex;
    align-items:center;
    justify-content:space-between;

    width:100%;

    margin:0;
    padding:13px 14px;

    box-sizing:border-box;

    background:#f8f9fa;

    border:1px solid #e8eaed;
    border-radius:9px;
}

/* =========================================================
   SERVER STATUS
   ========================================================= */

.server-status-row {
    width:100%;
    margin-bottom:18px;
}

.server-status-row:last-of-type {
    margin-bottom:20px;
}


/* Header */

.server-status-header {
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:7px;
}

.server-status-header span {
    color:#686d72;
    font-size:11px;
}

.server-status-header strong {
    color:#202124;
    font-size:13px;
    font-weight:600;
}


/* Progress */

.server-progress {
    width:100%;
    height:7px;

    background:#edf0f2;

    border-radius:20px;

    overflow:hidden;
}

.server-progress-bar {
    height:100%;

    min-width:2px;

    background:#555;

    border-radius:20px;

    transition:width .4s ease;
}


/* Information under progress */

.server-status-info {
    margin-top:5px;

    color:#9aa0a6;

    font-size:10px;
}


/* =========================================================
   LOAD
   ========================================================= */

.server-load {
    display:grid;
    grid-template-columns:repeat(3,1fr);

    gap:8px;

    margin-top:5px;
    padding-top:15px;

    border-top:1px solid #f0f1f3;
}

.server-load > div {
    background:#f8f9fa;

    border:1px solid #f0f1f3;
    border-radius:8px;

    padding:10px;

    text-align:center;
}

.server-load span {
    display:block;

    margin-bottom:4px;

    color:#7a7f85;

    font-size:10px;
}

.server-load strong {
    color:#202124;

    font-size:16px;
    font-weight:600;
}


/* =========================================================
   UPTIME
   ========================================================= */

.server-uptime {
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-top:10px;
    padding-top:13px;

    border-top:1px solid #f0f1f3;
}

.server-uptime span {
    color:#7a7f85;

    font-size:11px;
}

.server-uptime strong {
    color:#202124;

    font-size:12px;
    font-weight:600;

    text-align:right;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width:450px) {

    .server-load {
        gap:5px;
    }

    .server-load > div {
        padding:8px 5px;
    }

    .server-uptime {
        display:block;
    }

    .server-uptime strong {
        display:block;
        margin-top:4px;
        text-align:left;
    }

}


/* Label */

.dashboard-database .database-total span {
    color:#202124;

    font-size:14px;
    font-weight:600;
}


/* Value */

.dashboard-database .database-total strong {
    color:#202124;

    font-size:16px;
    font-weight:600;

    white-space:nowrap;
}