/* =========================================================
   JOB STATUS BREAKDOWN
========================================================= */

.job-status-breakdown-card {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;

    background: #1d355d;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;

    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.jsb-header {
    min-height: 106px;

    padding: 22px 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}


.jsb-header-left {
    min-width: 0;
}


.jsb-title {
    margin: 0;

    color: #ffffff;

    font-size: 24px;
    font-weight: 700;

    line-height: 1.2;
}


.jsb-subtitle {
    margin: 7px 0 0;

    color: #93acd2;

    font-size: 15px;
    font-weight: 400;
}


/* =========================================================
   MODE SWITCH
========================================================= */

.jsb-mode-switch {
    flex-shrink: 0;

    display: flex;

    padding: 5px;

    background: #132544;
    border-radius: 14px;
}


.jsb-mode-btn {
    min-width: 100px;
    height: 44px;

    padding: 0 20px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #9fb1cd;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.jsb-mode-btn:hover {
    color: #ffffff;
}


.jsb-mode-btn.active {
    background: #08162f;
    color: #ffffff;
}


/* =========================================================
   SUMMARY
========================================================= */

.jsb-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}


.jsb-summary-item {
    min-height: 105px;

    padding: 22px 36px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right: 1px solid rgba(148, 163, 184, 0.13);
}


.jsb-summary-item:last-child {
    border-right: 0;
}


.jsb-summary-label {
    margin-bottom: 7px;

    color: #91a8ca;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
}


.jsb-summary-value {
    color: #ffffff;

    font-size: 27px;
    font-weight: 700;

    line-height: 1.1;
}


/* =========================================================
   CONTENT
========================================================= */

.jsb-content {
    padding: 24px 36px 32px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.jsb-breadcrumb {
    min-height: 38px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;

    gap: 8px;
}


.jsb-breadcrumb-item {
    padding: 0;

    border: 0;
    background: transparent;

    color: #8fa9ce;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


.jsb-breadcrumb-item:hover,
.jsb-breadcrumb-item.active {
    color: #ffffff;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.jsb-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
}


/* =========================================================
   TABLE
========================================================= */

.jsb-table {
    width: 100%;

    border-collapse: collapse;
    border-spacing: 0;

    color: #ffffff;
}


.jsb-table thead {
    background: rgba(8, 22, 47, 0.42);
}


.jsb-table th {
    padding: 15px 20px;

    color: #91a8ca;

    font-size: 12px;
    font-weight: 700;

    text-align: left;
    text-transform: uppercase;

    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}


.jsb-table td {
    padding: 18px 20px;

    font-size: 14px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.10);

    vertical-align: middle;
}


.jsb-table tbody tr:last-child td {
    border-bottom: 0;
}


.jsb-table tbody tr {
    transition: background 0.2s ease;
}


.jsb-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}


/* =========================================================
   COLUMN WIDTH
========================================================= */

.jsb-table th:first-child {
    width: 38%;
}


.jsb-col-number {
    width: 12%;
}


.jsb-col-sales {
    width: 18%;
}


.jsb-col-share {
    width: 18%;
}


.jsb-col-action {
    width: 14%;
}


/* =========================================================
   STATUS
========================================================= */

.jsb-status-cell {
    width: 100%;
}


.jsb-status-top {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 11px;
}


.jsb-status-top strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   DOT
========================================================= */

.jsb-status-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;
}


.jsb-status-dot.receive {
    background: #4f8df7;
}


.jsb-status-dot.progress {
    background: #ffb000;
}


.jsb-status-dot.delivery {
    background: #38bdf8;
}


.jsb-status-dot.pod {
    background: #a78bfa;
}


.jsb-status-dot.completed {
    background: #42c77a;
}


.jsb-status-dot.cancelled {
    background: #f55252;
}


/* =========================================================
   PROGRESS
========================================================= */

.jsb-progress {
    width: 100%;
    max-width: 420px;

    height: 6px;

    overflow: hidden;

    background: rgba(148, 163, 184, 0.14);

    border-radius: 999px;
}


.jsb-progress-bar {
    height: 100%;

    min-width: 4px;

    border-radius: inherit;
}


.jsb-progress-bar.receive {
    background: #4f8df7;
}


.jsb-progress-bar.progress {
    background: #ffb000;
}


.jsb-progress-bar.delivery {
    background: #38bdf8;
}


.jsb-progress-bar.pod {
    background: #a78bfa;
}


.jsb-progress-bar.completed {
    background: #42c77a;
}


.jsb-progress-bar.cancelled {
    background: #f55252;
}


/* =========================================================
   NUMBER
========================================================= */

.jsb-number {
    color: #ffffff;

    font-size: 16px !important;
    font-weight: 700;
}


.jsb-sales {
    color: #dbe8fb;

    font-weight: 600;
}


/* =========================================================
   SHARE
========================================================= */

.jsb-share {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.jsb-share strong {
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
}


.jsb-share span {
    color: #8199bd;

    font-size: 11px;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.jsb-view-btn {
    min-width: 82px;
    height: 36px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid rgba(79, 141, 247, 0.35);
    border-radius: 9px;

    background: rgba(79, 141, 247, 0.10);

    color: #8eb9ff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.jsb-view-btn span {
    font-size: 18px;

    line-height: 1;
}


.jsb-view-btn:hover {
    background: #2f6fed;
    border-color: #2f6fed;

    color: #ffffff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .jsb-header {
        padding: 20px 24px;
    }


    .jsb-summary-item {
        padding: 20px 24px;
    }


    .jsb-content {
        padding: 20px 24px 28px;
    }


    .jsb-title {
        font-size: 21px;
    }

}


@media (max-width: 768px) {

    .jsb-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .jsb-mode-switch {
        width: 100%;
    }


    .jsb-mode-btn {
        flex: 1;
    }


    .jsb-summary {
        grid-template-columns: 1fr;
    }


    .jsb-summary-item {
        min-height: 82px;

        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.13);
    }


    .jsb-summary-item:last-child {
        border-bottom: 0;
    }


    .jsb-table {
        min-width: 850px;
    }

}

/* =========================================================
   JOB STATUS BREAKDOWN - COMPACT FONT
========================================================= */

/* Header */
.jsb-title {
    font-size: 20px;
    font-weight: 700;
}

.jsb-subtitle {
    margin-top: 5px;
    font-size: 13px;
}

/* Toggle Jobs / Sales */
.jsb-mode-btn {
    min-width: 88px;
    height: 38px;

    padding: 0 16px;

    font-size: 13px;
}

/* Summary */
.jsb-summary-label {
    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 700;
}

.jsb-summary-value {
    font-size: 23px;
    font-weight: 700;
}

/* Breadcrumb */
.jsb-breadcrumb-item {
    font-size: 12px;
}

/* Table header */
.jsb-table th {
    padding: 13px 18px;

    font-size: 11px;
}

/* Table body */
.jsb-table td {
    padding: 15px 18px;

    font-size: 12px;
}

/* Status */
.jsb-status-top strong {
    font-size: 12px;
}

/* Job number */
.jsb-number {
    font-size: 13px !important;
}

/* Sales */
.jsb-sales {
    font-size: 12px;
}

/* Share */
.jsb-share strong {
    font-size: 13px;
}

.jsb-share span {
    font-size: 10px;
}

/* View */
.jsb-view-btn {
    min-width: 72px;
    height: 32px;

    padding: 0 12px;

    font-size: 11px;
}

.jsb-view-btn span {
    font-size: 15px;
}

/* =========================================================
   TOOLBAR / BREADCRUMB
========================================================= */

.jsb-toolbar {
    width: 100%;

    min-height: 42px;
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.jsb-breadcrumb {
    min-width: 0;
    min-height: 0;

    margin: 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Breadcrumb Button
|--------------------------------------------------------------------------
*/

.jsb-breadcrumb-item {
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #8fa9ce;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.jsb-breadcrumb-item:hover {
    color: #ffffff;
}


.jsb-breadcrumb-item.active {
    color: #ffffff;

    cursor: default;
}


/*
|--------------------------------------------------------------------------
| Breadcrumb Separator
|--------------------------------------------------------------------------
*/

.jsb-breadcrumb-separator {
    color: #627da6;

    font-size: 15px;
    font-weight: 400;

    line-height: 1;

    user-select: none;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.jsb-back-btn {
    flex-shrink: 0;

    height: 32px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 8px;

    background: rgba(8, 22, 47, 0.30);

    color: #9fb4d3;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.jsb-back-btn span {
    position: relative;
    top: -1px;

    font-size: 17px;
    font-weight: 400;

    line-height: 1;
}


.jsb-back-btn:hover {
    background: rgba(79, 141, 247, 0.12);

    border-color: rgba(79, 141, 247, 0.35);

    color: #ffffff;
}


.jsb-back-btn:active {
    transform: translateY(1px);
}


/* =========================================================
   RESPONSIVE TOOLBAR
========================================================= */

@media (max-width: 768px) {

    .jsb-toolbar {
        align-items: flex-start;
    }


    .jsb-breadcrumb {
        font-size: 12px;
    }


    .jsb-breadcrumb-item {
        font-size: 12px;
    }


    .jsb-back-btn {
        height: 30px;

        padding: 0 10px;

        font-size: 11px;
    }

}