/*
|--------------------------------------------------------------------------
| JOB STATUS CARD
|--------------------------------------------------------------------------
*/

.job-status-card {
    width: 100%;
    height: 100%;
}


/*
|--------------------------------------------------------------------------
| BODY
|--------------------------------------------------------------------------
*/

.job-status-body {
    min-height: 310px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;

    padding: 24px 30px;
}


/*
|--------------------------------------------------------------------------
| CHART SECTION
|--------------------------------------------------------------------------
*/

.job-status-chart-section {
    flex: 0 0 190px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/*
|--------------------------------------------------------------------------
| CHART WRAPPER
|--------------------------------------------------------------------------
*/

.job-status-chart-wrapper {
    position: relative;

    width: 180px;
    height: 180px;

    flex-shrink: 0;
}


.job-status-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}


/*
|--------------------------------------------------------------------------
| CENTER
|--------------------------------------------------------------------------
*/

.job-status-center {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    pointer-events: none;

    width: 105px;
}


/*
|--------------------------------------------------------------------------
| TOTAL
|--------------------------------------------------------------------------
*/

.job-status-center strong {
    display: block;

    margin: 0;

    color: #ffffff;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.1;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| TOTAL LABEL
|--------------------------------------------------------------------------
*/

.job-status-center span {
    display: block;

    margin-top: 5px;

    color: #91a7d3;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.2;
}


/*
|--------------------------------------------------------------------------
| LEGEND
|--------------------------------------------------------------------------
*/

.job-status-legend {
    flex: 1;

    max-width: 260px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 18px;
}


/*
|--------------------------------------------------------------------------
| LEGEND ITEM
|--------------------------------------------------------------------------
*/

.job-status-legend-item {
    width: 100%;

    display: grid;

    grid-template-columns:
        14px
        minmax(100px, 1fr)
        auto;

    align-items: center;

    column-gap: 12px;
}


/*
|--------------------------------------------------------------------------
| DOT
|--------------------------------------------------------------------------
*/

.status-dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    display: block;
}


.status-dot.completed {
    background: #43c478;
}


.status-dot.progress {
    background: #ffb000;
}


/*
|--------------------------------------------------------------------------
| LEGEND NAME
|--------------------------------------------------------------------------
*/

.status-name {
    color: #ffffff;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| LEGEND VALUE
|--------------------------------------------------------------------------
*/

.job-status-legend-item strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-align: right;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {

    .job-status-body {
        gap: 25px;

        padding-left: 20px;
        padding-right: 20px;
    }


    .job-status-chart-section {
        flex-basis: 160px;
    }


    .job-status-chart-wrapper {
        width: 155px;
        height: 155px;
    }


    .job-status-center strong {
        font-size: 18px;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .job-status-body {
        flex-direction: column;

        min-height: auto;

        gap: 25px;

        padding: 25px 20px;
    }


    .job-status-chart-section {
        flex-basis: auto;
    }


    .job-status-chart-wrapper {
        width: 170px;
        height: 170px;
    }


    .job-status-legend {
        width: 100%;
        max-width: 300px;
    }

}