﻿
.auth-header-custom {
    background-color: #FE2DB7;
}

.btn-custom-pink {
    background-color: #FE2DB7;
    border-color: #FE2DB7;
    color: #fff;
}

    .btn-custom-pink:hover {
        background-color: #e026a5;
        border-color: #e026a5;
    }

.switch-custom.form-check-input:checked {
    background-color: #FE2DB7;
    border-color: #FE2DB7;
}

.switch-custom.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(254, 45, 183, 0.25);
}

.modal-header.modal-header-custom {
    background-color: #FE2DB7 !important;
    color: #fff !important;
}

.modal-header-custom .btn-close {
    filter: invert(1) brightness(100);
    opacity: 1;
}

.select2-container .select2-selection--single {
    height: 38px;
    padding: 6px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.is-invalid + .select2 .select2-selection {
    border-color: #dc3545;
}

#dynamicTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    overflow: visible;
    margin-bottom: 14px;
    padding: 0 2px 6px;
    border-bottom: 1px solid #e7e8ef;
}

    #dynamicTabs .nav-item {
        margin: 0;
        flex: 0 0 auto;
    }

    #dynamicTabs .nav-link {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 8px;
        border: 0 !important;
        border-radius: 8px;
        background: transparent;
        color: #626978;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        transition: color .18s ease,background-color .18s ease,box-shadow .18s ease;
    }

        #dynamicTabs .nav-link:hover {
            color: #5e5ad3;
            background: #f7f6ff;
        }

        #dynamicTabs .nav-link.active {
            color: #4f4abf !important;
            background: #f1f0ff;
            box-shadow: inset 0 -3px 0 #5e5ad3;
        }

    #dynamicTabs .tab-menu-icon {
        flex: 0 0 auto;
        margin-left: 2px;
        color: var(--bs-primary) !important;
        font-size: 16px;
        line-height: 1;
    }

    #dynamicTabs .nav-link:hover .tab-menu-icon,
    #dynamicTabs .nav-link.active .tab-menu-icon {
        color: var(--bs-primary) !important;
    }

    #dynamicTabs .tab-title {
        display: inline-block;
        padding: 0 12px;
        margin: 0;
        line-height: 1;
    }

    #dynamicTabs .tab-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-left: 0 !important;
        margin-right: 2px;
        border-radius: 50%;
        color: #dc3545 !important;
        font-size: 17px;
        font-weight: 600 !important;
        line-height: 1;
        cursor: pointer;
    }

        #dynamicTabs .tab-close-btn:hover {
            color: #b02a37 !important;
            background: #ffe9ee;
        }

@media(max-width:767.98px) {
    #dynamicTabs {
        gap: 3px;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

        #dynamicTabs .nav-link {
            min-height: 40px;
            padding: 8px;
            font-size: 11px;
        }

        #dynamicTabs .tab-menu-icon {
            font-size: 16px;
        }

        #dynamicTabs .tab-title {
            padding: 0 10px;
        }
}

#tabContent .nav-item {
    margin-top: 3px;
    padding: 3px 5px;
}

#tabContent .nav-link {
    padding: 3px 5px;
}

    #tabContent .nav-link.active {
        color: #0162e8;
    }

#tabContent .nav-item {
    margin-top: 3px;
    padding: 3px 5px;
}

#tabContent .nav-link {
    padding: 3px 5px;
}

    #tabContent .nav-link.active {
        color: #0162e8;
    }


.main-content-label {
    color: #242f48;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: .2px;
}


@media (max-width: 991.98px) {

    .page-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
    }

    .page-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 991px) {
    .card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .card-body,
    .card-header {
        padding: 12px !important;
    }
}


html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}







.app-toast-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 420px;
    max-width: calc(100vw - 30px);
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    border-left: 5px solid #999;
    animation: toastSlideIn .25s ease-out;
    position: relative;
    overflow: hidden;
}

.app-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.app-toast-content {
    flex: 1;
}

.app-toast-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
    color: #222;
}

.app-toast-message {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.app-toast-close {
    border: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}

.app-toast-error {
    border-left-color: #dc3545;
}

    .app-toast-error .app-toast-icon {
        background: #dc3545;
    }

.app-toast-success {
    border-left-color: #198754;
}

    .app-toast-success .app-toast-icon {
        background: #198754;
    }

.app-toast-warning {
    border-left-color: #ffc107;
}

    .app-toast-warning .app-toast-icon {
        background: #ffc107;
        color: #222;
    }

.app-toast-info {
    border-left-color: #0d6efd;
}

    .app-toast-info .app-toast-icon {
        background: #0d6efd;
    }

.app-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,.15);
    animation: toastProgress 4s linear forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}




@media (max-width: 768px) {
    .mobile-pin-table-wrapper {
        width: 100%;
        overflow-x: auto;
        position: relative;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-pin-table {
        width: max-content;
        min-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

        .mobile-pin-table th,
        .mobile-pin-table td {
            white-space: nowrap;
        }

        .mobile-pin-table .mobile-pin-column {
            position: sticky;
            left: 0;
            z-index: 5;
            background-color: #fff !important;
            width: 160px;
            white-space: nowrap;
            /*            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.12);*/
        }

        .mobile-pin-table th.mobile-pin-column {
            z-index: 6;
            background-color: #f8f9fa !important;
        }
}

.toast-success {
    background-color: #22B783 !important;
}



.dashboard-card {
    height: 438px; /* same height for all cards */
    display: flex;
    flex-direction: column;
}

    .dashboard-card .card-body {
        overflow-y: auto; /* scroll if content exceeds */
        flex: 1;
    }

.summary-card-primary {
    border-radius: 14px;
    overflow: hidden;
    border-top: 3px solid #5E5AD3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-card-success {
    border-radius: 14px;
    overflow: hidden;
    border-top: 3px solid #22B783;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-card-warning {
    border-radius: 14px;
    overflow: hidden;
    border-top: 3px solid #FFB822;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-card-danger {
    border-radius: 14px;
    overflow: hidden;
    border-top: 3px solid #D02B4E;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-filter-wrapper {
    position: relative;
    cursor: pointer;
}

.summary-filter-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px;
}

.summary-filter-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #6c757d;
}

#RegionSummaryWrapper {
    position: relative;
}

.summary-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.dashboard-card {
    position: relative;
    min-height: 438px;
    display: flex;
    flex-direction: column;
}

    .dashboard-card .card-body {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .dashboard-card .card-text {
        overflow-y: auto;
        flex: 1;
    }

.dashboard-card-loader.htmx-indicator {
    display: none;
}

.dashboard-card-loader.htmx-request,
.htmx-request .dashboard-card-loader {
    display: flex;
}

.dashboard-card-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.75);
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

#RegionSummaryWrapper {
    position: relative;
}

.summary-loader.htmx-indicator {
    display: none;
}

.summary-loader.htmx-request,
.htmx-request .summary-loader {
    display: flex;
}

.summary-loader {
    position: absolute;
    inset: 0;
    z-index: 999;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.75);
    align-items: center;
    justify-content: center;
}

    .summary-loader i {
        font-size: 40px;
    }

.summary-top-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.summary-top-card-number {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-top-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

    .summary-top-card-badges .badge {
        white-space: nowrap;
        max-width: 100%;
    }

.summary-sales-card-content {
    align-items: flex-start;
}

.summary-sales-number {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.summary-sales-badges {
    align-items: flex-start;
}

@media (max-width: 767.98px) {
    .summary-top-card-content {
        align-items: flex-start;
    }

    .summary-top-card-number {
        font-size: 32px;
    }

    .summary-top-card-badges {
        width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 400px) {
    .summary-top-card-number {
        font-size: 28px;
    }
}

@media (max-width: 575.98px) {
    .summary-main-number {
        padding-right: 0 !important;
    }
}

.btn-filter {
    position: relative;
    width: 42px;
    height: 38px;
    border: 1px solid;
    background: #fff;
    color: #6366f1;
    padding: 0;
}

    .btn-filter:hover {
        background: #6366f1;
        color: #fff;
    }

.filter-add-icon {
    position: absolute;
    right: 5px;
    bottom: 3px;
    font-size: 18px;
    font-weight: 800;
}

.summary-filter-zindex {
    position: relative;
}

@media (min-width: 768px) {
    .summary-filter-zindex {
        z-index: 99999;
    }
}
/* ===========================
   Generic Detail Pages
   =========================== */

.detail-table {
    margin-bottom: 0;
}

    .detail-table th,
    .detail-table td {
        padding: .25rem .5rem;
        vertical-align: middle;
    }

    .detail-table th {
        width: 30%;
        font-weight: 600;
        white-space: nowrap;
    }

    .detail-table td {
        width: 70%;
        word-break: break-word;
    }

    .detail-table .badge {
        margin: 2px 2px 2px 0;
    }

    .detail-table img {
        max-width: 80px;
        height: auto;
        border-radius: 4px;
    }

@media (max-width: 767.98px) {

    .detail-table th,
    .detail-table td {
        padding: .35rem .5rem;
        font-size: .875rem;
    }

    .detail-table th {
        width: 38%;
    }

    .detail-table td {
        width: 62%;
    }

    .detail-table img {
        max-width: 60px;
    }

    .detail-table .badge {
        display: inline-block;
        margin-bottom: 3px;
        white-space: normal;
    }
}

.list-loader {
    display: none;
    text-align: center;
    padding: 1rem;
}

    .list-loader.htmx-request {
        display: block;
    }

        .list-loader.htmx-request + .htmx-content {
            display: none;
        }


.venue-list-box {
    height: 550px;
    overflow-y: auto;
}

    .venue-list-box .venue-form-check {
        margin-bottom: 8px;
    }

@media(max-width:991px) {

    .venue-list-box {
        height: auto;
        margin-bottom: 20px;
    }
}
/*.response-message {
    max-width: 300px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {

    .response-message {
        min-width: 220px;
        max-width: 220px;
        white-space: pre-wrap !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

        .response-message * {
            white-space: pre-wrap !important;
            word-break: break-word;
            overflow-wrap: anywhere;
        }
}*/

.add-button {
    margin-left: 2px !important;
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.refresh-button {
    margin-left: 2px !important;
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}


/* Reduce Airship table row height */
.airship-table > thead > tr > th,
.airship-table > tbody > tr > td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}

/* Terminal name was causing three-line rows */
.airship-table .terminal-name-cell {
    min-width: 210px;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Response message column */
.airship-table .response-message {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    vertical-align: middle;
}

/* Remove default details marker */
.airship-table .response-details > summary {
    cursor: pointer;
    list-style: none;
}

    .airship-table .response-details > summary::-webkit-details-marker {
        display: none;
    }

/* Compact message while closed */
.airship-table .response-message-summary {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Complete message after clicking */
.airship-table .response-message-full {
    margin-top: 8px;
    padding: 8px;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .airship-table .terminal-name-cell {
        min-width: 180px;
        max-width: 180px;
    }

    .airship-table .response-message {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

.table-report {
    width: 100% !important;
}

    .table-report th {
        color: #ffffff !important;
        background-color: #6F6AF8 !important;
    }

    .table-report th, .table-report td {
        padding: 10px !important;
    }

.row-install > td {
    background-color: #b7e1a1 !important;
}

.row-maintenance > td {
    background-color: #a7d0e8 !important;
}

.row-removal > td {
    background-color: #f46a4e !important;
    color: #fff !important;
}

    .row-removal > td * {
        color: #fff;
    }

.row-install:hover > td {
    background-color: #a9d991 !important;
}

.row-maintenance:hover > td {
    background-color: #97c6e1 !important;
}

.row-removal:hover > td {
    background-color: #e75d42 !important;
}
/*------------------------------------------------------
DASHBOARD DESIGN START
------------------------------------------------------*/




/* =====================================================
       TYPOGRAPHY — no dashboard text below 10px
       ===================================================== */
.vd-dashboard,
.vd-dashboard * {
    font-size: max(10px, 1em);
}

    .vd-dashboard .vd-card-title,
    .vd-dashboard .vd-kpi-title,
    .vd-dashboard .vd-job-mini-title,
    .vd-dashboard .vd-status-title {
        font-size: 12px !important;
    }

    .vd-dashboard .vd-kpi-value,
    .vd-dashboard .vd-status-value,
    .vd-dashboard .vd-job-mini-total {
        font-size: 20px !important;
    }

    .vd-dashboard .vd-kpi-footer,
    .vd-dashboard .vd-job-mini-total-label,
    .vd-dashboard .vd-job-mini-stat-label,
    .vd-dashboard .vd-job-mini-stat-value,
    .vd-dashboard .vd-jobs-period,
    .vd-dashboard .vd-region-row,
    .vd-dashboard .vd-live-row,
    .vd-dashboard .vd-mover-row,
    .vd-dashboard .vd-alert-placeholder-row,
    .vd-dashboard .vd-hour-summary,
    .vd-dashboard .vd-hour-legend {
        font-size: 10px !important;
    }

    .vd-dashboard .highcharts-axis-labels text,
    .vd-dashboard .highcharts-legend-item text,
    .vd-dashboard .highcharts-data-label text {
        font-size: 10px !important;
    }


    /* Dashboard typography contract: no dashboard text below 10px. */
    .vd-dashboard,
    .vd-dashboard button,
    .vd-dashboard input,
    .vd-dashboard select,
    .vd-dashboard textarea,
    #dashboardStatusModal {
        font-size: 10px;
    }

        .vd-card-title,
        .vd-kpi-title,
        .vd-job-mini-title,
        .vd-status-title,
        #dashboardStatusModal .modal-title {
            font-size: 12px !important;
        }

.vd-kpi-value,
.vd-status-value,
.vd-job-mini-total {
    font-size: 20px !important;
}

.vd-job-mini-stat-value,
.vd-region-value,
.vd-map-label-value,
.vd-mover-value,
.vd-comparison-amount {
    font-size: 14px !important;
}

.vd-kpi-footer,
.vd-kpi-footer-muted,
.vd-job-mini-total-label,
.vd-job-mini-stat-label,
.vd-region-meta,
.vd-live-meta,
.vd-alert-placeholder-row,
.vd-empty-mini,
.vd-see-all,
.vd-link-button,
.vd-period-btn,
.vd-hour-stat,
.vd-hour-legend,
.vd-machine-type-legend-name,
.vd-machine-type-legend-value {
    font-size: 10px !important;
}

.vd-region-name,
.vd-live-name,
.vd-mover-heading,
.vd-comparison-name,
.vd-map-label-name {
    font-size: 12px !important;
}


/* Final count/label sizing requested for compact job cards. */
.vd-dashboard .vd-job-mini-stat-value {
    font-size: 20px !important;
}

.vd-dashboard {
    font-size: 12px !important;
}


#dashboardAlertsCard .vd-alert-list-placeholder {
    max-height: 190px;
    overflow-y: auto;
    padding: 0 10px 7px !important;
}

#dashboardAlertsCard .vd-alert-placeholder-row {
    width: 100%;
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 2px 0 !important;
    border: 0;
    border-bottom: 1px solid #f0f2f6;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 10px;
    line-height: 1.08;
    text-align: left;
}

#dashboardAlertsCard .vd-alert-detail-link {
    cursor: pointer;
}

    #dashboardAlertsCard .vd-alert-detail-link:hover,
    #dashboardAlertsCard .vd-alert-detail-link:focus-visible {
        background: #f7faff;
        color: #1767cf;
    }

    #dashboardAlertsCard .vd-alert-detail-link:focus-visible {
        outline: 1px solid rgba(47, 127, 232, .35);
        outline-offset: -1px;
    }

#dashboardAlertsCard .vd-alert-placeholder-row > span:last-child {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardAlertsCard .vd-alert-bullet {
    width: 14px;
    height: 14px;
    font-size: 10px;
}

#dashboardAlertsCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardAlertsCard .vd-see-all {
    font-size: 10px !important;
}

#dashboardBiggestMoversCard .vd-card-header {
    align-items: flex-start;
}

#dashboardBiggestMoversCard .vd-mover-title-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#dashboardBiggestMoversCard .vd-mover-period {
    max-width: 185px;
    overflow: hidden;
    color: #8a94a8;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardBiggestMoversCard .vd-comparison-movers {
    max-height: 183px;
    overflow-y: auto;
    padding-top: 1px;
}

#dashboardBiggestMoversCard .vd-comparison-mover-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 45px 66px;
    align-items: center;
    gap: 5px;
    min-height: 21px;
    padding: 2px 0;
    font-size: 10px;
    line-height: 1.05;
}

#dashboardBiggestMoversCard .vd-comparison-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardBiggestMoversCard .vd-comparison-percent,
#dashboardBiggestMoversCard .vd-comparison-amount {
    overflow: hidden;
    text-align: right;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}


#dashboardBiggestMoversCard .vd-device-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    margin-right: 3px;
    border-radius: 50%;
    background: #edf4ff;
    color: #2f7fe8;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.vd-status-details {
    color: #2f3952;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.vd-status-details-summary {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f5;
    background: #f8faff;
}

.vd-status-details-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .vd-status-details-copy strong {
        color: #26314c;
        font-size: 11px;
        line-height: 1.1;
    }

    .vd-status-details-copy span {
        overflow: hidden;
        color: #7c879d;
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.vd-status-details-search-wrap {
    position: relative;
    width: 230px;
    flex: 0 0 230px;
}

.vd-status-details-search {
    height: 30px;
    padding-right: 30px;
    border-color: #dfe5ef;
    border-radius: 7px;
    font-size: 10px;
}

.vd-status-details-loading {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
}

    .vd-status-details-loading .spinner-border {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

.vd-status-detail-list {
    min-height: 120px;
    padding: 4px 14px 8px;
}

.vd-status-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 0;
    border-bottom: 1px solid #eff2f6;
}

    .vd-status-detail-row:last-child {
        border-bottom: 0;
    }

.vd-status-detail-main {
    min-width: 0;
}

.vd-status-detail-name,
.vd-status-detail-secondary {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-status-detail-name {
    color: #26314c;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 750;
}

.vd-status-detail-secondary {
    margin-top: 3px;
    color: #7b869b;
    font-size: 10px;
    line-height: 1.15;
}

.vd-job-details-table-wrap {
    min-height: 150px;
    overflow-x: auto;
    padding: 0 10px 8px;
}

.vd-job-details-table {
    min-width: 850px;
    table-layout: fixed;
    color: #35405a;
    font-size: 10px;
}

    .vd-job-details-table th {
        padding: 8px 6px;
        border-bottom: 1px solid #dde4ef;
        color: #7d879b;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        white-space: nowrap;
    }

        .vd-job-details-table th:nth-child(1) {
            width: 21%;
        }

        .vd-job-details-table th:nth-child(2) {
            width: 20%;
        }

        .vd-job-details-table th:nth-child(3) {
            width: 12%;
        }

        .vd-job-details-table th:nth-child(4) {
            width: 19%;
        }

        .vd-job-details-table th:nth-child(5) {
            width: 19%;
        }

        .vd-job-details-table th:nth-child(6) {
            width: 9%;
        }

    .vd-job-details-table td {
        padding: 7px 6px;
        border-bottom: 1px solid #edf0f5;
        vertical-align: top;
    }

    .vd-job-details-table tbody tr:hover {
        background: #f8faff;
    }

    .vd-job-details-table td strong,
    .vd-job-details-table td span,
    .vd-job-details-table td small {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .vd-job-details-table td strong {
        color: #2e3952;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 750;
    }

    .vd-job-details-table td span,
    .vd-job-details-table td small {
        margin-top: 3px;
        color: #7b869b;
        font-size: 10px;
        line-height: 1.2;
    }

.vd-status-detail-badge {
    display: inline-block !important;
    min-width: 62px;
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 10px !important;
    line-height: 1;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
}

.vd-status-detail-badge-success {
    background: #e8f8ef;
    color: #198754 !important;
}

.vd-status-detail-badge-warning {
    background: #fff5dc;
    color: #a36a00 !important;
}

.vd-status-detail-badge-danger {
    background: #ffebee;
    color: #d23d4f !important;
}

.vd-status-detail-badge-secondary {
    background: #eef1f6;
    color: #667187 !important;
}

.vd-status-detail-empty {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #7c879b;
    text-align: center;
}

.vd-status-detail-empty-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f8ef;
    color: #198754;
    font-size: 17px;
    font-weight: 800;
}

.vd-status-detail-empty strong {
    color: #33405b;
    font-size: 11px;
}

.vd-status-detail-empty span {
    font-size: 10px;
}

.vd-status-details-pagination {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 14px;
    border-top: 1px solid #edf0f5;
    background: #fff;
}

    .vd-status-details-pagination > span:not(.vd-status-details-loading) {
        color: #6f7a91;
        font-size: 10px;
        text-align: center;
    }

    .vd-status-details-pagination .vd-status-details-loading {
        position: static;
        transform: none;
    }

@media (max-width: 575px) {
    .vd-status-details-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .vd-status-details-search-wrap {
        width: 100%;
        flex-basis: auto;
    }
}

.vd-status-details,
.vd-status-details * {
    font-size: max(10px, 1em);
}

#dashboardStatusModalLabel {
    color: #fff !important;
    font-size: 14px !important;
}

.vd-job-details-table th,
.vd-status-detail-name {
    font-size: 12px !important;
}

.vd-job-details-table td strong,
.vd-job-details-table td span,
.vd-job-details-table td small,
.vd-status-detail-secondary,
.vd-status-detail-badge,
.vd-status-details-pagination,
.vd-status-details-summary {
    font-size: 10px !important;
}

/* Status popup typography contract. */
.vd-status-details,
.vd-status-details * {
    font-size: 10px;
}

.vd-status-details-summary strong,
.vd-job-details-table thead th,
.vd-status-detail-name {
    font-size: 12px !important;
}

.vd-job-details-table tbody strong,
.vd-status-detail-badge {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardLiveTransactionsCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardLiveTransactionsCard small,
#dashboardLiveTransactionsCard .small,
#dashboardLiveTransactionsCard .vd-see-all,
#dashboardLiveTransactionsCard .vd-mover-heading,
#dashboardLiveTransactionsCard .vd-performance-row,
#dashboardLiveTransactionsCard .vd-live-row,
#dashboardLiveTransactionsCard .vd-commission-row,
#dashboardLiveTransactionsCard .vd-commission-table-head,
#dashboardLiveTransactionsCard .vd-venue-row {
    font-size: 10px !important;
}


/* Shared dashboard typography contract. */
#dashboardLiveTransactionsCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardLiveTransactionsCard small,
#dashboardLiveTransactionsCard .small,
#dashboardLiveTransactionsCard .vd-see-all,
#dashboardLiveTransactionsCard .vd-mover-heading,
#dashboardLiveTransactionsCard .vd-performance-row,
#dashboardLiveTransactionsCard .vd-live-row,
#dashboardLiveTransactionsCard .vd-commission-row,
#dashboardLiveTransactionsCard .vd-commission-table-head,
#dashboardLiveTransactionsCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardPendingCommissionsCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardPendingCommissionsCard small,
#dashboardPendingCommissionsCard .small,
#dashboardPendingCommissionsCard .vd-see-all,
#dashboardPendingCommissionsCard .vd-mover-heading,
#dashboardPendingCommissionsCard .vd-performance-row,
#dashboardPendingCommissionsCard .vd-live-row,
#dashboardPendingCommissionsCard .vd-commission-row,
#dashboardPendingCommissionsCard .vd-commission-table-head,
#dashboardPendingCommissionsCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardPendingCommissionsCard .vd-card-title {
    font-size: 12px !important;
}
#dashboardJobsOverviewCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardPendingCommissionsCard small,
#dashboardPendingCommissionsCard .small,
#dashboardPendingCommissionsCard .vd-see-all,
#dashboardPendingCommissionsCard .vd-mover-heading,
#dashboardPendingCommissionsCard .vd-performance-row,
#dashboardPendingCommissionsCard .vd-live-row,
#dashboardPendingCommissionsCard .vd-commission-row,
#dashboardPendingCommissionsCard .vd-commission-table-head,
#dashboardPendingCommissionsCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardRevenueTrendCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardRevenueTrendCard small,
#dashboardRevenueTrendCard .small,
#dashboardRevenueTrendCard .vd-see-all,
#dashboardRevenueTrendCard .vd-mover-heading,
#dashboardRevenueTrendCard .vd-performance-row,
#dashboardRevenueTrendCard .vd-live-row,
#dashboardRevenueTrendCard .vd-commission-row,
#dashboardRevenueTrendCard .vd-commission-table-head,
#dashboardRevenueTrendCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardRevenueTrendCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardRevenueTrendCard small,
#dashboardRevenueTrendCard .small,
#dashboardRevenueTrendCard .vd-see-all,
#dashboardRevenueTrendCard .vd-mover-heading,
#dashboardRevenueTrendCard .vd-performance-row,
#dashboardRevenueTrendCard .vd-live-row,
#dashboardRevenueTrendCard .vd-commission-row,
#dashboardRevenueTrendCard .vd-commission-table-head,
#dashboardRevenueTrendCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardTopVenuesCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardTopVenuesCard small,
#dashboardTopVenuesCard .small,
#dashboardTopVenuesCard .vd-see-all,
#dashboardTopVenuesCard .vd-mover-heading,
#dashboardTopVenuesCard .vd-performance-row,
#dashboardTopVenuesCard .vd-live-row,
#dashboardTopVenuesCard .vd-commission-row,
#dashboardTopVenuesCard .vd-commission-table-head,
#dashboardTopVenuesCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardTopVenuesCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardTopVenuesCard small,
#dashboardTopVenuesCard .small,
#dashboardTopVenuesCard .vd-see-all,
#dashboardTopVenuesCard .vd-mover-heading,
#dashboardTopVenuesCard .vd-performance-row,
#dashboardTopVenuesCard .vd-live-row,
#dashboardTopVenuesCard .vd-commission-row,
#dashboardTopVenuesCard .vd-commission-table-head,
#dashboardTopVenuesCard .vd-venue-row {
    font-size: 10px !important;
}

#dashboardMachinePerformanceCard .vd-performance-list {
    max-height: 190px;
    overflow-y: auto;
    padding-top: 2px;
}

#dashboardMachinePerformanceCard .vd-performance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    padding: 3px 0;
    font-size: 10px;
    line-height: 1.1;
}

#dashboardMachinePerformanceCard .vd-performance-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardMachinePerformanceCard .vd-performance-value {
    font-weight: 750;
    white-space: nowrap;
}

/* Shared dashboard typography contract. */
#dashboardMachinePerformanceCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardMachinePerformanceCard small,
#dashboardMachinePerformanceCard .small,
#dashboardMachinePerformanceCard .vd-see-all,
#dashboardMachinePerformanceCard .vd-mover-heading,
#dashboardMachinePerformanceCard .vd-performance-row,
#dashboardMachinePerformanceCard .vd-live-row,
#dashboardMachinePerformanceCard .vd-commission-row,
#dashboardMachinePerformanceCard .vd-commission-table-head,
#dashboardMachinePerformanceCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardMachinePerformanceCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardMachinePerformanceCard small,
#dashboardMachinePerformanceCard .small,
#dashboardMachinePerformanceCard .vd-see-all,
#dashboardMachinePerformanceCard .vd-mover-heading,
#dashboardMachinePerformanceCard .vd-performance-row,
#dashboardMachinePerformanceCard .vd-live-row,
#dashboardMachinePerformanceCard .vd-commission-row,
#dashboardMachinePerformanceCard .vd-commission-table-head,
#dashboardMachinePerformanceCard .vd-venue-row {
    font-size: 10px !important;
}

#dashboardTerminalPerformanceCard .vd-performance-list {
    max-height: 190px;
    overflow-y: auto;
    padding-top: 2px;
}

#dashboardTerminalPerformanceCard .vd-performance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    padding: 3px 0;
    font-size: 10px;
    line-height: 1.1;
}

#dashboardTerminalPerformanceCard .vd-performance-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardTerminalPerformanceCard .vd-performance-value {
    font-weight: 750;
    white-space: nowrap;
}

/* Shared dashboard typography contract. */
#dashboardTerminalPerformanceCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardTerminalPerformanceCard small,
#dashboardTerminalPerformanceCard .small,
#dashboardTerminalPerformanceCard .vd-see-all,
#dashboardTerminalPerformanceCard .vd-mover-heading,
#dashboardTerminalPerformanceCard .vd-performance-row,
#dashboardTerminalPerformanceCard .vd-live-row,
#dashboardTerminalPerformanceCard .vd-commission-row,
#dashboardTerminalPerformanceCard .vd-commission-table-head,
#dashboardTerminalPerformanceCard .vd-venue-row {
    font-size: 10px !important;
}

/* Shared dashboard typography contract. */
#dashboardTerminalPerformanceCard .vd-card-title {
    font-size: 12px !important;
}

#dashboardTerminalPerformanceCard small,
#dashboardTerminalPerformanceCard .small,
#dashboardTerminalPerformanceCard .vd-see-all,
#dashboardTerminalPerformanceCard .vd-mover-heading,
#dashboardTerminalPerformanceCard .vd-performance-row,
#dashboardTerminalPerformanceCard .vd-live-row,
#dashboardTerminalPerformanceCard .vd-commission-row,
#dashboardTerminalPerformanceCard .vd-commission-table-head,
#dashboardTerminalPerformanceCard .vd-venue-row {
    font-size: 10px !important;
}


/* Jobs Overview: keep the three job-type headings compact. */
.vd-dashboard .vd-jobs-overview-card .vd-job-mini-title {
    font-size: 10px !important;
    line-height: 1.05;
    letter-spacing: -0.1px;
}



/* Jobs Overview: Done and Pending must remain vertical rows. */
.vd-dashboard .vd-jobs-overview-card .vd-job-mini-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.vd-dashboard .vd-jobs-overview-card .vd-job-mini-stat {
    min-height: 25px;
    padding: 5px 3px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    text-align: left;
}

    .vd-dashboard .vd-jobs-overview-card .vd-job-mini-stat + .vd-job-mini-stat {
        border-top: 1px solid #edf0f5 !important;
        border-left: 0 !important;
    }

.vd-dashboard .vd-jobs-overview-card .vd-job-mini-stat-value {
    margin-top: 0 !important;
    text-align: right;
}

/* Revenue by Hour: show only the numeric amount. */
.vd-dashboard .vd-hour-amount-only {
    color: #24304b;
    font-size: 12px !important;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}
/* Jobs Overview: Done and Pending must remain vertical rows. */
.vd-dashboard .vd-jobs-overview-card .vd-job-mini-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.vd-dashboard .vd-jobs-overview-card .vd-job-mini-stat {
    min-height: 25px;
    padding: 5px 3px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    text-align: left;
}

    .vd-dashboard .vd-jobs-overview-card .vd-job-mini-stat + .vd-job-mini-stat {
        border-top: 1px solid #edf0f5 !important;
        border-left: 0 !important;
    }

.vd-dashboard .vd-jobs-overview-card .vd-job-mini-stat-value {
    margin-top: 0 !important;
    text-align: right;
}

/* Revenue by Hour: show only the numeric amount. */
.vd-dashboard .vd-hour-amount-only {
    color: #24304b;
    font-size: 12px !important;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}


.vd-dashboard {
    --vd-blue: #2f7fe8;
    --vd-green: #27ae68;
    --vd-purple: #7557df;
    --vd-orange: #ed8b2b;
    --vd-red: #e65b69;
    --vd-navy: #17213d;
    --vd-text: #2b3651;
    --vd-muted: #7f889c;
    --vd-border: #e8ecf3;
    --vd-grid: #edf1f6;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    overflow-x: clip;
    background: #f7f9fc;
    color: var(--vd-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 12px;
}

    .vd-dashboard,
    .vd-dashboard * {
        box-sizing: border-box;
    }

        .vd-dashboard .row {
            --bs-gutter-x: 10px;
            --bs-gutter-y: 10px;
        }

.vd-card {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--vd-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 48, 79, .045);
}

/* ==========================
       KPI ROW
       ========================== */

.vd-kpi-small-col,
.vd-kpi-stack-col {
    position: relative;
    width: 100%;
    padding-right: 5px;
    padding-left: 5px;
}

.vd-kpi-small-col {
    flex: 0 0 15%;
    max-width: 15%;
}

/* Two paired KPI cards complete the first row. */
.vd-kpi-stack-col {
    flex: 0 0 20%;
    max-width: 20%;
}

.vd-kpi-card {
    height: 112px;
    min-height: 112px;
}

    .vd-kpi-card .card-body {
        width: 100%;
        height: 100%;
        padding: 11px 10px;
    }

.vd-kpi-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
}

.vd-kpi-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .vd-kpi-icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

.vd-icon-blue {
    color: var(--vd-blue);
    background: #eaf2ff;
}

.vd-icon-green {
    color: var(--vd-green);
    background: #e7f8ef;
}

.vd-icon-purple {
    color: var(--vd-purple);
    background: #f0ecff;
}

.vd-icon-orange {
    color: var(--vd-orange);
    background: #fff0df;
}

.vd-icon-red {
    color: var(--vd-red);
    background: #ffedf0;
}

.vd-kpi-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.vd-kpi-title {
    width: 100%;
    margin: 0 0 7px;
    overflow: hidden;
    color: #202a44;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-kpi-value {
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--vd-navy);
    font-size: 18px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -.35px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-kpi-footer {
    width: 100%;
    margin-top: 9px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-kpi-footer-muted {
    margin-left: 3px;
    color: #737c90;
    font-weight: 600;
}

.vd-positive {
    color: #22a35f;
}

.vd-negative {
    color: #df5060;
}

.vd-primary-text {
    color: #3479db;
}

/* Side-by-side paired KPI cards. */
.vd-stack-card .card-body {
    padding: 4px 7px;
}

.vd-stack-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
}

.vd-stack-kpi {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 5px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

    .vd-stack-kpi + .vd-stack-kpi {
        border-top: 0;
        border-left: 1px solid #edf0f5;
    }

    .vd-stack-kpi .vd-kpi-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        flex-basis: 28px;
    }

        .vd-stack-kpi .vd-kpi-icon svg {
            width: 15px;
            height: 15px;
        }

    .vd-stack-kpi .vd-kpi-title {
        margin-bottom: 3px;
        font-size: 10px;
    }

    .vd-stack-kpi .vd-kpi-value {
        font-size: 14px;
        letter-spacing: -.15px;
    }

    .vd-stack-kpi .vd-kpi-footer {
        margin-top: 4px;
        font-size: 10px;
    }

/* ==========================
       CHART CARDS
       ========================== */

.vd-main-card {
    min-height: 290px;
}

.vd-bottom-card {
    min-height: 232px;
}

.vd-card-header {
    min-height: 42px;
    padding: 12px 14px 7px;
    border: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vd-card-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #263149;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-info-icon {
    width: 13px;
    height: 13px;
    margin-left: 4px;
    border: 1px solid #98a1b2;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7d8799;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.vd-card-body {
    padding: 3px 14px 12px;
}

.vd-main-chart {
    width: 100%;
    height: 232px;
}

.vd-donut-chart {
    width: 100%;
    height: 178px;
}

/* ==========================
       PERIOD BUTTONS
       ========================== */

.vd-period-buttons {
    flex: 0 0 auto;
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

.vd-period-btn {
    min-width: 43px;
    padding: 5px 8px;
    border: 1px solid #e2e6ed;
    border-radius: 5px;
    background: #fff;
    color: #34405b;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

    .vd-period-btn:hover {
        border-color: var(--vd-blue);
        color: var(--vd-blue);
        text-decoration: none;
    }

    .vd-period-btn.active {
        border-color: var(--vd-blue);
        background: var(--vd-blue);
        color: #fff;
    }

/* ==========================
       REVENUE BY REGION
       ========================== */

.vd-region-list {
    padding-top: 7px;
}

.vd-region-row {
    display: grid;
    grid-template-columns: 55px minmax(70px, 1fr) 75px 40px;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #35405a;
    font-size: 10px;
    line-height: 1;
}

.vd-region-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    font-weight: 650;
    white-space: nowrap;
}

.vd-region-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-region-offline-badge {
    display: inline-flex;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff0f1;
    color: #ef535d;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.vd-region-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf1f7;
}

.vd-region-bar-value {
    height: 100%;
    border-radius: 10px;
    background: var(--vd-blue);
}

.vd-region-amount,
.vd-region-percent {
    overflow: hidden;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-region-total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #edf0f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #202a43;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
}

/* ==========================
       VENUES / MOVERS
       ========================== */

.vd-list-body {
    padding: 3px 14px 12px;
}

.vd-venue-row {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr) 56px 44px;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    color: #35405a;
    font-size: 10px;
    line-height: 1;
}

    .vd-venue-row > span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.vd-venue-position,
.vd-venue-value {
    font-weight: 750;
}

.vd-venue-value,
.vd-venue-percent {
    text-align: right;
}

.vd-view-link,
.vd-see-all {
    color: var(--vd-blue);
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.vd-view-link {
    display: inline-block;
    margin-top: 8px;
}

.vd-mover-heading {
    margin: 3px 0 4px;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
}

.vd-mover-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    color: #35405a;
    font-size: 10px;
    line-height: 1;
}

    .vd-mover-row > span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.vd-mover-value {
    text-align: right;
    font-weight: 700;
}

.vd-mover-source {
    margin-left: 4px;
    color: #99a2b4;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.vd-dashboard .highcharts-axis-labels text,
.vd-dashboard .highcharts-legend-item text {
    font-size: 10px !important;
}

/* ==========================
       REGION MAP + LIVE TRANSACTIONS
       ========================== */

.vd-live-overview-card {
    min-height: 378px;
    height: 378px;
}

    .vd-live-overview-card .vd-card-header {
        min-height: 52px;
        padding: 17px 20px 9px;
    }

    .vd-live-overview-card .vd-card-title {
        color: #17213d;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: -.15px;
    }

    .vd-live-overview-card .vd-see-all {
        color: #267bea;
        font-size: 11px;
        font-weight: 800;
    }

.vd-region-map-body {
    width: 100%;
    min-width: 0;
    height: 324px;
    padding: 0 12px 12px;
    overflow: hidden;
}

.vd-region-map-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 7px;
    background: radial-gradient(circle at 52% 46%, rgba(255,255,255,.78), transparent 38%), linear-gradient(180deg, #fafbfd 0%, #f6f8fb 100%);
}

    .vd-region-map-stage::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(255,255,255,.22), transparent 25%, transparent 75%, rgba(255,255,255,.18));
    }

.vd-europe-map {
    position: absolute;
    inset: 6px 8px 4px;
    z-index: 0;
    width: calc(100% - 16px);
    height: calc(100% - 10px);
    opacity: .94;
}

    .vd-europe-map path,
    .vd-europe-map polygon,
    .vd-europe-map ellipse {
        fill: #e9edf4;
        stroke: #f7f9fc;
        stroke-width: 3;
        stroke-linejoin: round;
    }

.vd-map-point {
    --vd-point-color: #2f8de5;
    position: absolute;
    z-index: 4;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--vd-point-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--vd-point-color) 38%, transparent), 0 4px 12px rgba(31, 47, 77, .20);
}

    .vd-map-point::before {
        content: "";
        position: absolute;
        inset: -8px;
        border: 2px solid color-mix(in srgb, var(--vd-point-color) 26%, transparent);
        border-radius: 50%;
    }

.vd-map-label {
    position: absolute;
    top: 50%;
    width: max-content;
    min-width: 82px;
    max-width: 132px;
    padding: 8px 11px 7px;
    transform: translateY(-50%);
    border: 1px solid color-mix(in srgb, var(--vd-point-color) 30%, #e7ebf1);
    border-radius: 7px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 13px rgba(37, 52, 82, .10);
    color: #19233c;
    line-height: 1.15;
    pointer-events: none;
}

.vd-map-label-right {
    left: 18px;
}

.vd-map-label-left {
    right: 18px;
}

.vd-map-label-name {
    display: block;
    overflow: hidden;
    color: var(--vd-point-color);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-map-label-value {
    display: block;
    margin-top: 4px;
    color: #1b243c;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.vd-map-empty {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8590a4;
    font-size: 11px;
    font-weight: 650;
}

.vd-live-list {
    height: 318px;
    padding: 2px 20px 12px;
    overflow: hidden;
}

.vd-live-row {
    display: grid;
    grid-template-columns: 50px 76px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 12px;
    min-height: 30px;
    border-bottom: 1px solid #f0f2f6;
    color: #1f2941;
    font-size: 10px;
    line-height: 1;
}

    .vd-live-row:last-child {
        border-bottom: 0;
    }

.vd-live-time,
.vd-live-amount {
    font-weight: 800;
    white-space: nowrap;
}

.vd-live-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .vd-live-name small {
        margin-left: 4px;
        color: #9aa2b0;
        font-size: 10px;
        font-weight: 700;
    }

.vd-payment-cell {
    display: flex;
    justify-content: flex-end;
}

.vd-payment-logo {
    width: 46px;
    height: 24px;
    border: 1px solid #ebedf2;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 31, 51, .04);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -.2px;
    text-transform: uppercase;
}

    .vd-payment-logo.visa {
        color: #1b4ea3;
        font-size: 10px;
        font-style: italic;
        letter-spacing: -.7px;
    }

    .vd-payment-logo.amex {
        background: #2a9fd6;
        color: #fff;
        font-size: 10px;
        letter-spacing: -.3px;
    }

    .vd-payment-logo.cash {
        background: #edf9f1;
        color: #23915a;
    }

    .vd-payment-logo.card {
        color: #56627a;
    }

.vd-mastercard-mark {
    position: relative;
    width: 30px;
    height: 17px;
    display: inline-block;
}

    .vd-mastercard-mark::before,
    .vd-mastercard-mark::after {
        content: "";
        position: absolute;
        top: 1px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
    }

    .vd-mastercard-mark::before {
        left: 2px;
        background: #eb001b;
    }

    .vd-mastercard-mark::after {
        right: 2px;
        background: rgba(255, 153, 0, .92);
    }

.vd-secondary-analytics-card {
    min-height: 286px;
}

.vd-wide-list-card {
    min-height: 238px;
}


/* ==========================
       ALERTS + EMPTY SUMMARY CARDS
       ========================== */

.vd-alerts-card,
.vd-status-grid {
    height: 378px;
    min-height: 378px;
}

    .vd-alerts-card .vd-card-header {
        min-height: 52px;
        padding: 17px 18px 9px;
    }

    .vd-alerts-card .vd-card-title {
        color: #17213d;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: -.15px;
    }

    .vd-alerts-card .vd-see-all {
        color: #267bea;
        font-size: 11px;
        font-weight: 800;
    }

.vd-alerts-empty {
    height: 318px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b95a8;
    text-align: center;
}

.vd-alerts-empty-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f1;
    color: #ef4f58;
}

    .vd-alerts-empty-icon svg {
        width: 23px;
        height: 23px;
    }

.vd-alerts-empty-title {
    color: #35405a;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.vd-alerts-empty-text {
    margin-top: 5px;
    color: #98a1b2;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.vd-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.vd-status-card {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

    .vd-status-card .card-body {
        height: 100%;
        padding: 14px 12px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

.vd-status-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vd-status-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .vd-status-icon svg {
        width: 21px;
        height: 21px;
    }

.vd-status-icon-red {
    background: #ffedef;
    color: #ef535d;
}

.vd-status-icon-green {
    background: #eaf9f0;
    color: #28b468;
}

.vd-status-icon-orange {
    background: #fff1e5;
    color: #f39a39;
}

.vd-status-icon-blue {
    background: #eaf3ff;
    color: #2f80ed;
}

.vd-status-copy {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.vd-status-title {
    overflow: hidden;
    color: #45516a;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-status-value {
    margin-top: 7px;
    overflow: hidden;
    color: #17213d;
    font-size: 23px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-status-footer {
    margin-top: 12px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-status-footer-red {
    color: #ef535d;
}

.vd-status-footer-green {
    color: #24a963;
}

.vd-status-footer-orange {
    color: #ef9231;
}

.vd-status-footer-blue {
    color: #2f80ed;
}

@media (max-width: 1499px) {
    .vd-status-card .card-body {
        padding: 11px 9px 10px;
    }

    .vd-status-main {
        gap: 7px;
    }

    .vd-status-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

        .vd-status-icon svg {
            width: 18px;
            height: 18px;
        }

    .vd-status-title {
        font-size: 10px;
    }

    .vd-status-value {
        font-size: 19px;
    }

    .vd-status-footer {
        margin-top: 9px;
        font-size: 10px;
    }
}

@media (max-width: 1199px) {
    .vd-alerts-card,
    .vd-status-grid {
        margin-top: 0;
    }
}

@media (max-width: 575px) {
    .vd-status-grid {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .vd-status-card {
        min-height: 120px;
    }
}

/* ==========================
       RESPONSIVE
       ========================== */

@media (max-width: 1499px) {
    .vd-kpi-card {
        height: 96px;
        min-height: 96px;
    }

    .vd-kpi-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        flex-basis: 35px;
    }

        .vd-kpi-icon svg {
            width: 20px;
            height: 20px;
        }

    .vd-kpi-title {
        font-size: 10px;
    }

    .vd-kpi-value {
        font-size: 16px;
    }

    .vd-kpi-footer {
        font-size: 10px;
    }

    .vd-mini-kpi {
        padding: 0 5px;
        gap: 4px;
    }

        .vd-mini-kpi .vd-kpi-icon {
            width: 29px;
            height: 29px;
            min-width: 29px;
            flex-basis: 29px;
        }

        .vd-mini-kpi .vd-kpi-title {
            font-size: 10px;
        }

        .vd-mini-kpi .vd-kpi-value {
            font-size: 13px;
        }
}

@media (max-width: 1199px) {
    .vd-kpi-small-col {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .vd-kpi-wide-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .vd-kpi-title {
        font-size: 10px;
    }

    .vd-kpi-value {
        font-size: 18px;
    }

    .vd-kpi-footer {
        font-size: 10px;
    }

    .vd-mini-kpi .vd-kpi-title {
        font-size: 10px;
    }

    .vd-mini-kpi .vd-kpi-value {
        font-size: 16px;
    }

    .vd-mini-kpi .vd-kpi-footer {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .vd-dashboard {
        padding: 8px;
    }

        .vd-dashboard .row {
            --bs-gutter-x: 8px;
            --bs-gutter-y: 8px;
        }

    .vd-kpi-small-col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .vd-wide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vd-wide-card {
        height: auto;
        min-height: 186px;
    }

    .vd-mini-kpi {
        height: 82px;
    }

        .vd-mini-kpi:nth-child(3) {
            border-left: 0;
            border-top: 1px solid #edf0f5;
        }

        .vd-mini-kpi:nth-child(4) {
            border-top: 1px solid #edf0f5;
        }

    .vd-card-header {
        padding: 10px 11px 7px;
    }

    .vd-card-title {
        font-size: 10px;
    }

    .vd-period-btn {
        min-width: 37px;
        padding: 4px 5px;
        font-size: 10px;
    }

    .vd-region-row {
        grid-template-columns: 48px minmax(55px, 1fr) 65px;
    }

    .vd-region-percent {
        display: none;
    }
}

@media (max-width: 480px) {
    .vd-kpi-small-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .vd-kpi-card {
        height: 92px;
        min-height: 92px;
    }

    .vd-card-header {
        flex-wrap: wrap;
    }

    .vd-period-buttons {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .vd-live-overview-card {
        height: 390px;
        min-height: 390px;
    }
}

@media (max-width: 767px) {
    .vd-live-overview-card {
        height: auto;
        min-height: 360px;
    }

    .vd-region-map-body {
        height: 306px;
    }

    .vd-live-list {
        height: auto;
        min-height: 305px;
        overflow-x: auto;
    }

    .vd-live-row {
        grid-template-columns: 42px 68px minmax(145px, 1fr) 48px;
        gap: 7px;
    }

    .vd-map-label {
        min-width: 70px;
        max-width: 105px;
        padding: 6px 8px;
    }

    .vd-map-label-name {
        font-size: 10px;
    }

    .vd-map-label-value {
        font-size: 10px;
    }
}


/* =========================================================
       EXACT SCREENSHOT CARD ORDER AND PROPORTIONS
       ========================================================= */

.vd-exact-row > [class*="col-"],
.vd-exact-row > .vd-bottom-card-col {
    display: flex;
    min-width: 0;
    max-width: 100%;
}

.vd-exact-row .vd-card {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.vd-exact-row-2 .vd-screen-main-card {
    height: 292px;
    min-height: 292px;
}

.vd-exact-row-3 .vd-screen-middle-card {
    height: 242px;
    min-height: 242px;
}

.vd-exact-row-4 .vd-live-overview-card,
.vd-exact-row-4 .vd-pending-commissions-card,
.vd-exact-row-4 .vd-alerts-card,
.vd-exact-row-4 .vd-status-grid {
    height: 220px;
    min-height: 220px;
}

    .vd-exact-row-4 .vd-live-overview-card .vd-card-header,
    .vd-exact-row-4 .vd-pending-commissions-card .vd-card-header,
    .vd-exact-row-4 .vd-alerts-card .vd-card-header {
        min-height: 39px;
        padding: 11px 12px 6px;
    }

    .vd-exact-row-4 .vd-live-overview-card .vd-card-title,
    .vd-exact-row-4 .vd-pending-commissions-card .vd-card-title,
    .vd-exact-row-4 .vd-alerts-card .vd-card-title {
        font-size: 10.5px;
    }

    .vd-exact-row-4 .vd-live-overview-card .vd-see-all,
    .vd-exact-row-4 .vd-pending-commissions-card .vd-see-all,
    .vd-exact-row-4 .vd-alerts-card .vd-see-all {
        font-size: 10px;
    }

.vd-exact-row-4 .vd-region-map-body {
    height: 179px;
    padding: 0 8px 8px;
}

.vd-exact-row-4 .vd-region-map-stage {
    height: 171px;
    min-height: 171px;
}

.vd-exact-row-4 .vd-map-point {
    width: 12px;
    height: 12px;
    border-width: 3px;
}

    .vd-exact-row-4 .vd-map-point::before {
        inset: -6px;
        border-width: 1px;
    }

.vd-exact-row-4 .vd-map-label {
    min-width: 58px;
    max-width: 84px;
    padding: 5px 6px;
}

.vd-exact-row-4 .vd-map-label-right {
    left: 17px;
}

.vd-exact-row-4 .vd-map-label-left {
    right: 17px;
}

.vd-exact-row-4 .vd-map-label-name {
    font-size: 10px;
}

.vd-exact-row-4 .vd-map-label-value {
    margin-top: 2px;
    font-size: 10px;
}

.vd-exact-row-4 .vd-live-list {
    height: 179px;
    padding: 1px 12px 7px;
}

.vd-exact-row-4 .vd-live-row {
    grid-template-columns: 31px 48px minmax(0, 1fr) 35px;
    gap: 5px;
    min-height: 17px;
    font-size: 10px;
}

.vd-exact-row-4 .vd-payment-logo {
    width: 31px;
    height: 17px;
    font-size: 10px;
}

    .vd-exact-row-4 .vd-payment-logo.visa {
        font-size: 10px;
    }

.vd-exact-row-4 .vd-mastercard-mark {
    width: 22px;
    height: 12px;
}

    .vd-exact-row-4 .vd-mastercard-mark::before,
    .vd-exact-row-4 .vd-mastercard-mark::after {
        width: 12px;
        height: 12px;
    }

.vd-screen-main-card .vd-card-header,
.vd-screen-middle-card .vd-card-header {
    min-height: 41px;
    padding: 11px 13px 6px;
}

.vd-screen-main-card .vd-card-body {
    padding: 0 12px 9px;
}

.vd-screen-main-card .vd-main-chart {
    height: 215px;
}

.vd-screen-middle-card .vd-donut-chart {
    width: 100%;
    min-width: 0;
    height: 185px;
    overflow: visible;
}

.vd-screen-middle-card .vd-card-body {
    min-width: 0;
    padding: 0 16px 10px;
    overflow: visible;
}

.vd-screen-middle-card .highcharts-container,
.vd-screen-middle-card .highcharts-root {
    max-width: 100% !important;
    overflow: visible !important;
}

.vd-trend-legend {
    height: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #556079;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

    .vd-trend-legend span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.vd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.vd-dot-blue {
    background: #347eee;
}

.vd-dot-grey {
    background: #c8ced9;
}

.vd-hour-body {
    position: relative;
    height: 244px;
    padding: 0 12px 8px;
    display: grid;
    grid-template-rows: 27px minmax(0, 1fr) 18px;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}

.vd-hour-summary {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #eef1f6;
}

.vd-hour-summary-left,
.vd-hour-summary-right {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.vd-hour-mode-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid #dbe8fb;
    border-radius: 999px;
    background: #f2f7ff;
    color: #2775df;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
}

.vd-hour-dimension {
    min-width: 0;
    overflow: hidden;
    color: #77839a;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
}

.vd-hour-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: #8a94a8;
    font-size: 10px;
    font-weight: 650;
}

    .vd-hour-stat strong {
        color: #24304b;
        font-size: 10px;
        font-weight: 800;
    }

.vd-hour-amount-only {
    color: #24304b;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.vd-hour-chart-scroll {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd7e8 transparent;
}

.vd-hour-chart {
    --vd-hour-x-count: 12;
    --vd-hour-y-count: 8;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: 16px minmax(0, 1fr);
    gap: 4px 5px;
}

.vd-hour-corner {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 2px;
    color: #9aa3b4;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vd-hour-x-axis,
.vd-hour-cells {
    display: grid;
    grid-template-columns: repeat(var(--vd-hour-x-count), minmax(0, 1fr));
    column-gap: 3px;
    min-width: 0;
}

.vd-hour-y-axis,
.vd-hour-cells {
    grid-template-rows: repeat(var(--vd-hour-y-count), minmax(0, 1fr));
    row-gap: 3px;
    min-height: 0;
}

.vd-hour-x-axis {
    align-items: end;
}

.vd-hour-x-label {
    min-width: 0;
    overflow: hidden;
    color: #536078;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    text-overflow: clip;
}

.vd-hour-y-axis {
    display: grid;
}

.vd-hour-y-label {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    color: #536078;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.vd-hour-cells {
    display: grid;
    padding: 2px;
    border: 1px solid #edf1f6;
    border-radius: 6px;
    background: #fafbfd;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.vd-hour-cell {
    position: relative;
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 4px;
    background: #f1f4f9;
    cursor: default;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

    .vd-hour-cell[data-has-value="true"]:hover {
        z-index: 2;
        transform: scale(1.12);
        box-shadow: 0 2px 7px rgba(25, 78, 151, .30);
        filter: saturate(1.12);
    }

.vd-hour-legend {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(70px, 110px) auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #69758b;
    font-size: 10px;
    font-weight: 650;
}

.vd-hour-gradient {
    height: 6px;
    border: 1px solid rgba(44, 116, 220, .08);
    border-radius: 999px;
    background: linear-gradient(90deg, #f1f5fa 0%, #dceaff 20%, #a9cdfa 43%, #6aa6f2 66%, #2d7fe9 84%, #145bc2 100%);
}

.vd-hour-tooltip {
    position: fixed;
    z-index: 99999;
    min-width: 126px;
    max-width: 190px;
    padding: 7px 9px;
    border: 1px solid rgba(29, 91, 181, .14);
    border-radius: 7px;
    background: rgba(25, 36, 58, .96);
    box-shadow: 0 8px 24px rgba(20, 40, 70, .22);
    color: #fff;
    font-size: 10px;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 4px, 0);
    transition: opacity .1s ease, transform .1s ease;
}

    .vd-hour-tooltip.is-visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

.vd-hour-tooltip-title {
    margin-bottom: 3px;
    color: #cfe2ff;
    font-size: 10px;
    font-weight: 750;
}

.vd-hour-tooltip-value {
    font-size: 10px;
    font-weight: 850;
}

.vd-hour-chart[data-mode="month"] .vd-hour-x-label {
    font-size: 10px;
}

.vd-hour-chart[data-mode="year"] .vd-hour-y-label {
    font-size: 10px;
}

@media (max-width: 767.98px) {
    .vd-hour-chart-scroll {
        overflow-x: auto;
        overflow-y: hidden;
    }


    .vd-hour-summary-right {
        display: none;
    }
}

.vd-region-list-screen {
    height: 244px;
    padding: 10px 14px 9px;
}

    .vd-region-list-screen .vd-region-row {
        grid-template-columns: 66px minmax(60px, 1fr) 61px 35px;
        gap: 7px;
        margin-bottom: 13px;
        font-size: 10px;
    }

    .vd-region-list-screen .vd-region-total {
        margin-top: 5px;
        padding-top: 10px;
        font-size: 10px;
    }

.vd-top-venues-screen,
.vd-movers-screen {
    height: 194px;
    overflow: hidden;
}

    .vd-top-venues-screen .vd-venue-row {
        grid-template-columns: 14px minmax(0, 1fr) 50px 39px;
        padding: 5px 0;
        font-size: 10px;
    }

    .vd-movers-screen .vd-mover-heading {
        margin: 2px 0 3px;
        font-size: 10px;
    }

    .vd-movers-screen .vd-mover-row {
        grid-template-columns: minmax(0, 1fr) 56px;
        padding: 3px 0;
        font-size: 10px;
    }

.vd-empty-card-message {
    height: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9099aa;
    font-size: 10px;
    text-align: center;
}

.vd-empty-mini {
    padding: 6px 0;
    color: #9099aa;
    font-size: 10px;
}

.vd-alert-list-placeholder {
    height: 179px;
    padding: 1px 12px 7px;
    overflow: hidden;
}

.vd-alert-placeholder-row {
    min-height: 31px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #f1f3f7;
    color: #4c5770;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .vd-alert-placeholder-row:last-child {
        border-bottom: 0;
    }

.vd-alert-bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

    .vd-alert-bullet.red {
        background: #ef3c49;
    }

    .vd-alert-bullet.orange {
        background: #f39a24;
    }

    .vd-alert-bullet.yellow {
        background: #f5bd33;
    }

.vd-exact-row-4 .vd-status-grid {
    gap: 8px;
}

.vd-exact-row-4 .vd-status-card .card-body {
    padding: 9px 8px 7px;
}

.vd-exact-row-4 .vd-status-main {
    gap: 7px;
}

.vd-exact-row-4 .vd-status-icon {
    width: 31px;
    height: 31px;
    min-width: 31px;
}

    .vd-exact-row-4 .vd-status-icon svg {
        width: 16px;
        height: 16px;
    }

.vd-exact-row-4 .vd-status-title {
    font-size: 10px;
}

.vd-exact-row-4 .vd-status-value {
    margin-top: 4px;
    font-size: 18px;
}

.vd-exact-row-4 .vd-status-footer {
    margin-top: 7px;
    font-size: 10px;
}

@media (max-width: 1199px) {
    .vd-exact-row-2 .vd-screen-main-card,
    .vd-exact-row-3 .vd-screen-middle-card,
    .vd-exact-row-4 .vd-live-overview-card,
    .vd-exact-row-4 .vd-pending-commissions-card,
    .vd-exact-row-4 .vd-alerts-card,
    .vd-exact-row-4 .vd-status-grid {
        height: auto;
        min-height: 260px;
    }

    .vd-exact-row-4 .vd-status-grid {
        min-height: 260px;
    }
}




/* =========================================================
       FIVE-CARD BOTTOM ROW
       ========================================================= */

.vd-exact-row-4 > .vd-bottom-card-col {
    position: relative;
    display: flex;
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
    min-width: 0;
    padding-right: 4px;
    padding-left: 4px;
}

    .vd-exact-row-4 > .vd-bottom-card-col > .vd-card,
    .vd-exact-row-4 > .vd-bottom-card-col > [id] {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

@media (max-width: 1699px) {
    .vd-exact-row-4 > .vd-bottom-card-col {
        flex: 0 0 33.333333%;
        width: 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 1199px) {
    .vd-exact-row-4 > .vd-bottom-card-col {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .vd-exact-row-4 > .vd-bottom-card-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}


/* ==========================
       CARD-LEVEL HTMX PARTIALS
       ========================== */

.vd-card-partial {
    position: relative;
}

.vd-card-loader {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(1px);
    color: var(--vd-blue);
}

    .vd-card-loader.htmx-request,
    .htmx-request .vd-card-loader {
        display: flex !important;
        opacity: 1 !important;
    }

.vd-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.vd-card-list-expanded {
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

    .vd-card-list-expanded::-webkit-scrollbar {
        width: 5px;
    }

    .vd-card-list-expanded::-webkit-scrollbar-thumb {
        border-radius: 5px;
        background: #d7deea;
    }



.vd-screen-middle-card .vd-card-list-expanded {
    height: 195px;
    max-height: 195px;
}

.vd-live-overview-card .vd-card-list-expanded,
.vd-alerts-card .vd-card-list-expanded {
    height: 178px;
    max-height: 178px;
}



/* =====================================================
       READABILITY + STACKED KPI OVERRIDES
       ===================================================== */
.vd-dashboard {
    font-size: 13.5px;
}

.vd-kpi-title {
    font-size: 10px;
    line-height: 1.12;
}

.vd-kpi-value {
    font-size: 20px;
    line-height: 1.05;
}

.vd-kpi-footer {
    font-size: 10px;
    line-height: 1.05;
}

.vd-card-title {
    font-size: 12px;
    line-height: 1.15;
}

.vd-period-btn,
.vd-view-link,
.vd-see-all,
.vd-link-button {
    font-size: 10px;
}

.vd-region-row,
.vd-venue-row,
.vd-mover-row,
.vd-live-row,
.vd-alert-placeholder-row {
    font-size: 10px;
}

.vd-mover-heading,
.vd-status-title,
.vd-status-footer {
    font-size: 10px;
}

.vd-status-value {
    font-size: 24px;
}

.vd-dashboard .highcharts-axis-labels text,
.vd-dashboard .highcharts-legend-item text {
    font-size: 10px !important;
}

@media (max-width: 1499px) {
    .vd-kpi-card {
        height: 108px;
        min-height: 108px;
    }

    .vd-kpi-title {
        font-size: 10px;
    }

    .vd-kpi-value {
        font-size: 18px;
    }

    .vd-kpi-footer {
        font-size: 10px;
    }

    .vd-stack-kpi {
        gap: 6px;
        padding: 4px 1px;
    }

        .vd-stack-kpi .vd-kpi-icon {
            width: 28px;
            height: 28px;
            min-width: 28px;
            flex-basis: 28px;
        }

        .vd-stack-kpi .vd-kpi-title {
            font-size: 10px;
        }

        .vd-stack-kpi .vd-kpi-value {
            font-size: 14px;
        }

        .vd-stack-kpi .vd-kpi-footer {
            font-size: 10px;
        }
}

@media (max-width: 1199px) {
    .vd-kpi-stack-col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .vd-stack-kpi .vd-kpi-title {
        font-size: 10px;
    }

    .vd-stack-kpi .vd-kpi-value {
        font-size: 17px;
    }

    .vd-stack-kpi .vd-kpi-footer {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .vd-kpi-stack-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .vd-kpi-stack-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .vd-kpi-card {
        height: 108px;
        min-height: 108px;
    }
}


.vd-lazy-card-loading {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7c879b;
    font-size: 10px;
    font-weight: 650;
    text-align: center;
}

    .vd-lazy-card-loading .spinner-border {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

/* =========================================================
       REARRANGED SECOND-LAST AND LAST ROWS
       ========================================================= */

.vd-exact-row-3 > .vd-second-last-card-col,
.vd-exact-row-4 > .vd-last-card-col {
    position: relative;
    display: flex;
    min-width: 0;
    padding-right: 4px;
    padding-left: 4px;
}

.vd-exact-row-3 > .vd-second-last-card-col {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
}

.vd-exact-row-3.vd-exact-row-custom-4 > .vd-second-last-card-col {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
}

.vd-exact-row-4 > .vd-last-card-col {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
}

    .vd-exact-row-3 > .vd-second-last-card-col > .vd-card,
    .vd-exact-row-3 > .vd-second-last-card-col > [id],
    .vd-exact-row-4 > .vd-last-card-col > .vd-card,
    .vd-exact-row-4 > .vd-last-card-col > [id] {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

.vd-exact-row-3 .vd-screen-middle-card,
.vd-exact-row-3 .vd-live-overview-card {
    height: 242px;
    min-height: 242px;
}

.vd-exact-row-4 .vd-screen-middle-card,
.vd-exact-row-4 .vd-live-overview-card,
.vd-exact-row-4 .vd-pending-commissions-card,
.vd-exact-row-4 .vd-alerts-card,
.vd-exact-row-4 .vd-jobs-overview-card {
    height: 220px;
    min-height: 220px;
}

/* Compact region map now that it is one of five cards. */
.vd-exact-row-3 .vd-region-map-card .vd-card-header {
    min-height: 41px;
    padding: 11px 12px 6px;
}

.vd-exact-row-3 .vd-region-map-card .vd-card-title {
    font-size: 10.5px;
}

.vd-exact-row-3 .vd-region-map-body {
    height: 201px;
    padding: 0 7px 8px;
}

.vd-exact-row-3 .vd-region-map-stage {
    height: 193px;
    min-height: 193px;
}

.vd-exact-row-3 .vd-map-point {
    width: 12px;
    height: 12px;
    border-width: 3px;
}

    .vd-exact-row-3 .vd-map-point::before {
        inset: -6px;
        border-width: 1px;
    }

.vd-exact-row-3 .vd-map-label {
    min-width: 55px;
    max-width: 78px;
    padding: 4px 5px;
}

.vd-exact-row-3 .vd-map-label-right {
    left: 15px;
}

.vd-exact-row-3 .vd-map-label-left {
    right: 15px;
}

.vd-exact-row-3 .vd-map-label-name {
    font-size: 10px;
}

.vd-exact-row-3 .vd-map-label-value {
    margin-top: 2px;
    font-size: 10px;
}


/* =========================================================
       NARROW FIVE-CARD ROW: PREVENT DONUT / LEGEND OVERLAP
       ========================================================= */

.vd-exact-row-3 {
    overflow: visible;
}

    .vd-exact-row-3 .vd-second-last-card-col,
    .vd-exact-row-3 .vd-second-last-card-col > .vd-card,
    .vd-exact-row-3 .vd-second-last-card-col > [id] {
        min-width: 0;
        overflow: hidden;
    }

    .vd-exact-row-3 .vd-machine-type-card .vd-card-body {
        min-width: 0;
        padding: 0 8px 8px;
        overflow: hidden;
    }

.vd-machine-type-layout {
    display: grid;
    grid-template-columns: minmax(105px, 43%) minmax(0, 57%);
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    height: 193px;
    overflow: hidden;
}

.vd-machine-type-chart-pane {
    width: 100%;
    min-width: 0;
    height: 154px;
    overflow: hidden;
}

    .vd-machine-type-chart-pane .vd-donut-chart {
        width: 100%;
        min-width: 0;
        height: 154px;
    }

.vd-machine-type-legend {
    min-width: 0;
    max-height: 184px;
    padding: 2px 1px 2px 4px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cfd6e2 transparent;
}

.vd-machine-type-legend-item {
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 5px;
    align-items: start;
    min-width: 0;
    padding: 4px 0;
    border-bottom: 1px solid #f0f2f6;
}

    .vd-machine-type-legend-item:last-child {
        border-bottom: 0;
    }

.vd-machine-type-legend-dot {
    width: 7px;
    height: 7px;
    margin-top: 2px;
    border-radius: 50%;
}

.vd-machine-type-legend-copy {
    min-width: 0;
}

.vd-machine-type-legend-name,
.vd-machine-type-legend-value {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-machine-type-legend-name {
    color: #34405a;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 650;
}

.vd-machine-type-legend-value {
    margin-top: 2px;
    color: #17213d;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 800;
}

/* Keep map labels inside the narrow card and separated. */
.vd-exact-row-3 .vd-region-map-card,
.vd-exact-row-3 .vd-region-map-body,
.vd-exact-row-3 .vd-region-map-stage {
    min-width: 0;
    overflow: hidden;
}

.vd-exact-row-3 .vd-map-label {
    min-width: 50px;
    max-width: 70px;
    padding: 4px 5px;
    box-shadow: 0 2px 8px rgba(37, 52, 82, .10);
}

.vd-exact-row-3 .vd-map-label-right {
    left: 14px;
}

.vd-exact-row-3 .vd-map-label-left {
    right: 14px;
}

.vd-exact-row-3 .vd-map-label-name,
.vd-exact-row-3 .vd-map-label-value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Machine Health is now in the four-card last row. */
.vd-exact-row-4 .vd-screen-middle-card .vd-card-header {
    min-height: 39px;
    padding: 11px 12px 6px;
}

.vd-exact-row-4 .vd-screen-middle-card .vd-card-title {
    font-size: 10.5px;
}

.vd-exact-row-4 .vd-screen-middle-card .vd-card-body {
    padding: 0 10px 8px;
}

.vd-exact-row-4 .vd-screen-middle-card .vd-donut-chart {
    height: 170px;
}

/* =========================================================
       JOBS OVERVIEW — THREE SIDE-BY-SIDE MINI CARDS
       ========================================================= */

.vd-jobs-overview-card {
    overflow: hidden;
}

    .vd-jobs-overview-card .vd-card-header {
        min-height: 39px;
        padding: 10px 11px 6px;
    }

    .vd-jobs-overview-card .vd-card-title {
        font-size: 10.5px;
    }

.vd-jobs-period {
    max-width: 92px;
    overflow: hidden;
    color: #7b869b;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-jobs-overview-body {
    height: calc(100% - 39px);
    padding: 5px 7px 8px;
    overflow: hidden;
}

.vd-job-mini-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.vd-job-mini-card {
    min-width: 0;
    height: 100%;
    padding: 7px 5px 6px;
    overflow: hidden;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(31, 48, 79, .045);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

    .vd-job-mini-card:hover {
        border-color: #d9e3f2;
        box-shadow: 0 3px 10px rgba(31, 48, 79, .075);
    }

.vd-job-mini-main,
.vd-job-mini-stat {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.vd-job-mini-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .vd-job-mini-main:hover .vd-job-mini-title,
    .vd-job-mini-main:focus-visible .vd-job-mini-title,
    .vd-job-mini-stat:hover,
    .vd-job-mini-stat:focus-visible {
        color: #1767cf;
    }

    .vd-job-mini-main:focus-visible,
    .vd-job-mini-stat:focus-visible {
        outline: 2px solid rgba(47, 127, 232, .25);
        outline-offset: 1px;
        border-radius: 5px;
    }

.vd-job-mini-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin-bottom: 5px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .vd-job-mini-icon svg {
        width: 17px;
        height: 17px;
        display: block;
    }

.vd-job-mini-title {
    width: 100%;
    min-height: 18px;
    overflow: hidden;
    color: #303b55;
    font-size: 10px;
    line-height: 1.05;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vd-job-mini-total-label {
    margin-top: 7px;
    color: #8993a8;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.vd-job-mini-total {
    margin-top: 2px;
    color: #17213d;
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
}

.vd-job-mini-stats {
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vd-job-mini-stat {
    min-width: 0;
    min-height: 25px;
    padding: 5px 3px;
    color: #34405a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    text-align: left;
}

    .vd-job-mini-stat + .vd-job-mini-stat {
        border-top: 1px solid #edf0f5;
        border-left: 0;
    }

.vd-job-mini-stat-label {
    min-width: 0;
    display: block;
    overflow: hidden;
    color: #8993a8;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: clip;
}

.vd-job-mini-stat-value {
    flex: 0 0 auto;
    display: block;
    margin-top: 0;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-align: right;
}

.vd-job-mini-completed .vd-job-mini-stat-value {
    color: #1f9d5a;
}

.vd-job-mini-pending .vd-job-mini-stat-value {
    color: #df4e5e;
}

@media (max-width: 1499px) {
    .vd-jobs-overview-body {
        padding-right: 5px;
        padding-left: 5px;
    }

    .vd-job-mini-grid {
        gap: 4px;
    }

    .vd-job-mini-card {
        padding-right: 3px;
        padding-left: 3px;
    }

    .vd-job-mini-icon {
        width: 27px;
        height: 27px;
        min-width: 27px;
    }

        .vd-job-mini-icon svg {
            width: 15px;
            height: 15px;
        }

    .vd-job-mini-title {
        font-size: 10px;
    }

    .vd-job-mini-total {
        font-size: 17px;
    }

    .vd-job-mini-stat-label {
        font-size: 10px;
    }

    .vd-job-mini-stat-value {
        font-size: 10px;
    }
}

@media (max-width: 1199px) {
    .vd-exact-row-3 > .vd-second-last-card-col,
    .vd-exact-row-4 > .vd-last-card-col {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }

    .vd-exact-row-3 .vd-screen-middle-card,
    .vd-exact-row-3 .vd-live-overview-card,
    .vd-exact-row-4 .vd-screen-middle-card,
    .vd-exact-row-4 .vd-live-overview-card,
    .vd-exact-row-4 .vd-pending-commissions-card,
    .vd-exact-row-4 .vd-alerts-card,
    .vd-exact-row-4 .vd-jobs-overview-card {
        height: auto;
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .vd-exact-row-3 > .vd-second-last-card-col,
    .vd-exact-row-4 > .vd-last-card-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}


/* ==========================
       HTMX STATUS DETAIL LINKS
       ========================== */

.vd-status-kpi-link,
.vd-status-card-title-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.vd-status-kpi-link {
    display: block;
    width: 100%;
    min-width: 0;
}

    .vd-status-kpi-link .vd-kpi-title,
    .vd-status-kpi-link .vd-kpi-value {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .vd-status-kpi-link .vd-kpi-value {
        color: var(--vd-blue);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }

    .vd-status-kpi-link:hover .vd-kpi-value,
    .vd-status-kpi-link:focus-visible .vd-kpi-value,
    .vd-status-card-title-link:hover,
    .vd-status-card-title-link:focus-visible {
        color: #1767cf;
    }

    .vd-status-kpi-link:focus-visible,
    .vd-status-card-title-link:focus-visible {
        outline: 2px solid rgba(47, 127, 232, .28);
        outline-offset: 3px;
        border-radius: 4px;
    }

.vd-status-card-title-link {
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

#dashboardStatusModal .modal-dialog {
    max-width: 980px;
}

#dashboardStatusModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(25, 38, 65, .22);
}

#dashboardStatusModal .modal-header {
    padding: 12px 15px;
    border-bottom: 1px solid #edf0f5;
}

#dashboardStatusModal .modal-title {
    color: #26314c;
    font-size: 14px;
    font-weight: 800;
}

#dashboardStatusModal .modal-body {
    min-height: 160px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}

.vd-status-modal-loading {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #78839a;
    font-size: 11px;
}

.highcharts-point,
.highcharts-legend-item {
    cursor: pointer;
}

/*------------------------------------------------------
DASHBOARD DESIGN End
------------------------------------------------------*/
/* =====================================================
   REQUESTED FINAL CARD ALIGNMENT OVERRIDES
   Only affects Biggest Movers, Revenue by Region,
   and Machine Health legend labels.
   ===================================================== */

/* Biggest Movers: compact 10px text and stable numeric alignment. */
#dashboardBiggestMoversCard .vd-comparison-mover-row {
    grid-template-columns: minmax(0, 1fr) 48px 78px !important;
    column-gap: 5px !important;
    align-items: center !important;
    min-height: 21px;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

#dashboardBiggestMoversCard .vd-comparison-name,
#dashboardBiggestMoversCard .vd-comparison-percent,
#dashboardBiggestMoversCard .vd-comparison-amount {
    min-width: 0;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

#dashboardBiggestMoversCard .vd-comparison-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardBiggestMoversCard .vd-comparison-percent,
#dashboardBiggestMoversCard .vd-comparison-amount {
    overflow: visible !important;
    text-align: right !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

#dashboardBiggestMoversCard .vd-device-type {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin-right: 3px;
    font-size: 10px !important;
}

/* Revenue by Region: reserve enough width for complete amounts. */
.vd-region-list-screen .vd-region-row {
    grid-template-columns: 68px minmax(28px, 1fr) 92px 34px !important;
    column-gap: 5px !important;
    align-items: center !important;
    font-size: 10px !important;
}

.vd-region-list-screen .vd-region-name,
.vd-region-list-screen .vd-region-name-text,
.vd-region-list-screen .vd-region-amount,
.vd-region-list-screen .vd-region-percent {
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.vd-region-list-screen .vd-region-amount,
.vd-region-list-screen .vd-region-percent {
    overflow: visible !important;
    text-align: right !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

.vd-region-list-screen .vd-region-total {
    font-size: 10px !important;
}

    .vd-region-list-screen .vd-region-total > :last-child {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

/* Machine Health: use available space for clearer legend labels. */
#machineHealthChart .highcharts-legend-item text,
#machineHealthChart .highcharts-legend-item span {
    font-size: 11px !important;
    font-weight: 650 !important;
}

#machineHealthChart .highcharts-legend-item {
    cursor: pointer;
}


/* =====================================================
   REQUESTED FINAL CARD ALIGNMENT OVERRIDES
   Only affects Biggest Movers, Revenue by Region,
   and Machine Health legend labels.
   ===================================================== */

/* Biggest Movers: compact 10px text and stable numeric alignment. */
#dashboardBiggestMoversCard .vd-comparison-mover-row {
    grid-template-columns: minmax(0, 1fr) 48px 78px !important;
    column-gap: 5px !important;
    align-items: center !important;
    min-height: 21px;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

#dashboardBiggestMoversCard .vd-comparison-name,
#dashboardBiggestMoversCard .vd-comparison-percent,
#dashboardBiggestMoversCard .vd-comparison-amount {
    min-width: 0;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

#dashboardBiggestMoversCard .vd-comparison-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardBiggestMoversCard .vd-comparison-percent,
#dashboardBiggestMoversCard .vd-comparison-amount {
    overflow: visible !important;
    text-align: right !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

#dashboardBiggestMoversCard .vd-device-type {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin-right: 3px;
    font-size: 10px !important;
}

/* Revenue by Region: reserve enough width for complete amounts. */
.vd-region-list-screen .vd-region-row {
    grid-template-columns: 68px minmax(28px, 1fr) 92px 34px !important;
    column-gap: 5px !important;
    align-items: center !important;
    font-size: 10px !important;
}

.vd-region-list-screen .vd-region-name,
.vd-region-list-screen .vd-region-name-text,
.vd-region-list-screen .vd-region-amount,
.vd-region-list-screen .vd-region-percent {
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.vd-region-list-screen .vd-region-amount,
.vd-region-list-screen .vd-region-percent {
    overflow: visible !important;
    text-align: right !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

.vd-region-list-screen .vd-region-total {
    font-size: 10px !important;
}

    .vd-region-list-screen .vd-region-total > :last-child {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

/* Machine Health: use available space for clearer legend labels. */
#machineHealthChart .highcharts-legend-item text,
#machineHealthChart .highcharts-legend-item span {
    font-size: 11px !important;
    font-weight: 650 !important;
}

#machineHealthChart .highcharts-legend-item {
    cursor: pointer;
}
/*------------------------------------------------------
DASHBOARD DESIGN End
------------------------------------------------------*/ /* =====================================================
   Revenue by Region map — show the complete amount
   Keep dashboard minimum font size at 10px.
   ===================================================== */
.vd-dashboard .vd-region-map-card .vd-map-label {
    width: max-content !important;
    min-width: 84px !important;
    max-width: 108px !important;
    padding: 5px 7px !important;
}

.vd-dashboard .vd-region-map-card .vd-map-label-value {
    display: block;
    width: max-content;
    max-width: none !important;
    overflow: visible !important;
    color: #17213d;
    font-size: 10px !important;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.25px;
    white-space: nowrap !important;
    text-overflow: clip !important;
    font-variant-numeric: tabular-nums;
}
/* =====================================================
   Machine Health — larger legend labels
   ===================================================== */
.vd-dashboard #machineHealthChart .highcharts-legend-item text,
.vd-dashboard #machineHealthChart .highcharts-legend-item span {
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
}
/* =====================================================
   Machine Health — larger card title
   ===================================================== */
.vd-dashboard .vd-exact-row-4 > .vd-last-card-col:first-child .vd-card-title {
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}
/* =====================================================
   Live Transactions — match Pending Commissions typography
   Keeps all existing dashboard sizing/layout unchanged.
   ===================================================== */
#dashboardLiveTransactionsCard .vd-live-row,
#dashboardLiveTransactionsCard .vd-live-time,
#dashboardLiveTransactionsCard .vd-live-amount,
#dashboardLiveTransactionsCard .vd-live-name,
#dashboardLiveTransactionsCard .vd-live-name small {
    font-size: 10px !important;
    line-height: 1.1 !important;
}

#dashboardLiveTransactionsCard .vd-live-time,
#dashboardLiveTransactionsCard .vd-live-amount {
    font-weight: 800;
}

#dashboardLiveTransactionsCard .vd-live-name {
    font-weight: 650;
}
/* =========================================================
   DASHBOARD ALERT BUCKETS
   Append this file to the end of the existing dashboard CSS.
   Existing Machine Health, Live Transactions, Pending
   Commissions and Jobs Overview card styles are not changed.
   ========================================================= */

.vd-dashboard-alert-row .vd-alert-bucket-card {
    --vd-alert-accent: #64748b;
    --vd-alert-soft: #f1f5f9;
    position: relative;
    overflow: hidden;
}

    .vd-dashboard-alert-row .vd-alert-bucket-card::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--vd-alert-accent);
        content: "";
    }

.vd-dashboard-alert-row .vd-alert-bucket-yellow {
    --vd-alert-accent: #eab308;
    --vd-alert-soft: #fef9c3;
}

.vd-dashboard-alert-row .vd-alert-bucket-orange {
    --vd-alert-accent: #f97316;
    --vd-alert-soft: #ffedd5;
}

.vd-dashboard-alert-row .vd-alert-bucket-red {
    --vd-alert-accent: #ef4444;
    --vd-alert-soft: #fee2e2;
}

.vd-dashboard-alert-row .vd-alert-bucket-general {
    --vd-alert-accent: #3b82f6;
    --vd-alert-soft: #dbeafe;
}

.vd-dashboard-alert-row .vd-alert-bucket-header {
    gap: 6px;
    min-width: 0;
}

.vd-dashboard-alert-row .vd-alert-bucket-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.vd-dashboard-alert-row .vd-alert-bucket-icon {
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--vd-alert-soft);
    color: var(--vd-alert-accent);
}

    .vd-dashboard-alert-row .vd-alert-bucket-icon svg {
        width: 14px;
        height: 14px;
    }

.vd-dashboard-alert-row .vd-alert-bucket-title-wrap {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

    .vd-dashboard-alert-row .vd-alert-bucket-title-wrap .vd-card-title {
        overflow: visible;
        font-size: 12px !important;
        line-height: 1.15;
        text-overflow: clip;
        white-space: normal;
    }

.vd-dashboard-alert-row .vd-alert-bucket-subtitle {
    margin-top: 2px;
    overflow: visible;
    color: #7a8498;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
}

.vd-dashboard-alert-row .vd-alert-bucket-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border: 1px solid var(--vd-alert-accent);
    border-radius: 12px;
    background: var(--vd-alert-soft);
    color: var(--vd-alert-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.vd-dashboard-alert-row .vd-alert-bucket-list {
    max-height: 176px;
    padding: 0 10px 7px !important;
    overflow-x: hidden;
    overflow-y: auto;
}

    .vd-dashboard-alert-row .vd-alert-bucket-list .vd-alert-placeholder-row {
        display: grid;
        width: 100%;
        min-height: 31px;
        grid-template-columns: 16px minmax(0, 1fr);
        align-items: center;
        gap: 6px;
        padding: 5px 0 !important;
        border: 0;
        border-bottom: 1px solid #eef1f5;
        background: transparent;
        color: #3f4960;
        font-family: inherit;
        font-size: 10px !important;
        line-height: 1.25;
        text-align: left;
    }

        .vd-dashboard-alert-row .vd-alert-bucket-list .vd-alert-placeholder-row:last-child {
            border-bottom: 0;
        }

        .vd-dashboard-alert-row .vd-alert-bucket-list .vd-alert-placeholder-row > span:last-child {
            min-width: 0;
            overflow: visible;
            text-overflow: clip;
            white-space: normal;
            overflow-wrap: anywhere;
        }

    .vd-dashboard-alert-row .vd-alert-bucket-list .vd-alert-detail-link {
        cursor: pointer;
    }

        .vd-dashboard-alert-row .vd-alert-bucket-list .vd-alert-detail-link:hover {
            color: var(--vd-alert-accent);
        }

.vd-dashboard-alert-row .vd-alert-empty-row {
    color: #8a93a5 !important;
}

.vd-dashboard-row-5 {
    margin-top: 8px !important;
}

/* =========================================================
   EMPTY ALERT STATE + FIFTH ROW — ONE ROW / THREE COLUMNS
   ========================================================= */

.vd-dashboard-alert-row .vd-alert-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 138px;
    padding: 12px;
    color: #8a93a5;
    font-size: 10px !important;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
}

/* Live Transactions, Pending Commissions and Jobs Overview
   stay in one row as three equal columns. */
.vd-dashboard-row-5 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0;
    width: 100%;
    margin-top: 8px !important;
    overflow-x: auto;
}

    .vd-dashboard-row-5 > .vd-row-5-card-col {
        position: relative;
        display: flex !important;
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-bottom: 0 !important;
        padding-right: 4px;
        padding-left: 4px;
    }

        .vd-dashboard-row-5 > .vd-row-5-card-col > .vd-card,
        .vd-dashboard-row-5 > .vd-row-5-card-col > [id] {
            flex: 1 1 auto;
            width: 100% !important;
            min-width: 0;
            max-width: 100% !important;
        }

    /* Same height as the alert cards in the row above. */
    .vd-dashboard-row-5 .vd-screen-middle-card,
    .vd-dashboard-row-5 .vd-live-overview-card,
    .vd-dashboard-row-5 .vd-pending-commissions-card,
    .vd-dashboard-row-5 .vd-alerts-card,
    .vd-dashboard-row-5 .vd-jobs-overview-card {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }

/* Keep all three cards on the same row on narrow screens too.
   Horizontal scrolling is used instead of creating three rows. */
@media (max-width: 767.98px) {
    .vd-dashboard-row-5 > .vd-row-5-card-col {
        flex: 0 0 300px !important;
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }
}

#dashboardStatusModal .modal-dialog {
    width: 94vw !important;
    max-width: 1600px !important;
    /*    height: 90vh;*/
    margin: 5vh auto !important;
}

#dashboardStatusModal .modal-content {
    /*    height: 100%;*/
    max-height: 90vh;
    overflow: hidden;
    border-radius: 10px;
}

#dashboardStatusModal .modal-body {
    overflow: auto;
}

/* Fix badges inside expanded maintenance job details */
#dashboardStatusModal .JObs-details-page .badge,
#dashboardStatusModal .vd-job-expanded-content .badge {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    align-items: center;
    justify-content: center;
    margin: 2px 0 !important;
    padding: 4px 9px !important;
    color: #fff !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    vertical-align: middle;
}

/* =========================================================
   DASHBOARD - COMPLETE MOBILE RESPONSIVE FIX
   Put this at the VERY END of custom.css
   ========================================================= */

@media (max-width: 767.98px) {

    /* -----------------------------------------
       Dashboard outer container
       ----------------------------------------- */
    .vd-dashboard {
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px !important;
        overflow-x: hidden !important;
    }

        .vd-dashboard > .row,
        .vd-dashboard .vd-exact-row,
        .vd-dashboard .vd-dashboard-row-5 {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            display: flex !important;
            flex-wrap: wrap !important;
            overflow-x: visible !important;
            --bs-gutter-x: 0 !important;
            --bs-gutter-y: 8px !important;
        }


        /* =====================================================
       FIRST ROW - KPI CARDS
       ===================================================== */

        .vd-dashboard .vd-kpi-small-col,
        .vd-dashboard .vd-kpi-stack-col,
        .vd-dashboard .vd-kpi-wide-col {
            flex: 0 0 100% !important;
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-bottom: 8px !important;
        }

        .vd-dashboard .vd-kpi-card {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: 105px !important;
            max-height: none !important;
            overflow: hidden !important;
        }

        /* paired KPI card still shows 2 items side-by-side */
        .vd-dashboard .vd-stack-grid {
            width: 100% !important;
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }

        .vd-dashboard .vd-stack-kpi {
            width: 100% !important;
            min-width: 0 !important;
            padding: 7px 9px !important;
        }


        /* =====================================================
       ROW 2 / ROW 3 / ROW 4
       Every top-level card becomes full width
       ===================================================== */

        .vd-dashboard .vd-exact-row >
        [class*="col-"],
        .vd-dashboard .vd-exact-row >
        .vd-bottom-card-col,
        .vd-dashboard .vd-exact-row-3 >
        .vd-second-last-card-col,
        .vd-dashboard .vd-exact-row-4 >
        .vd-last-card-col {
            flex: 0 0 100% !important;
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-bottom: 8px !important;
        }


        /* -----------------------------------------
       Remove desktop fixed heights
       ----------------------------------------- */

        .vd-dashboard .vd-exact-row .vd-card,
        .vd-dashboard .vd-exact-row-2 .vd-screen-main-card,
        .vd-dashboard .vd-exact-row-3 .vd-screen-middle-card,
        .vd-dashboard .vd-exact-row-3 .vd-live-overview-card,
        .vd-dashboard .vd-exact-row-4 .vd-screen-middle-card,
        .vd-dashboard .vd-exact-row-4 .vd-live-overview-card,
        .vd-dashboard .vd-exact-row-4 .vd-pending-commissions-card,
        .vd-dashboard .vd-exact-row-4 .vd-alerts-card,
        .vd-dashboard .vd-exact-row-4 .vd-jobs-overview-card {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            max-height: none !important;
            min-width: 0 !important;
        }


        /* Keep normal dashboard cards readable */
        .vd-dashboard .vd-screen-main-card,
        .vd-dashboard .vd-screen-middle-card {
            min-height: 260px !important;
        }

        .vd-dashboard .vd-live-overview-card,
        .vd-dashboard .vd-pending-commissions-card,
        .vd-dashboard .vd-alerts-card,
        .vd-dashboard .vd-jobs-overview-card {
            min-height: 230px !important;
        }


        /* =====================================================
       LAST ROW
       REMOVE forced 300px horizontal scrolling
       ===================================================== */

        .vd-dashboard .vd-dashboard-row-5 {
            overflow-x: visible !important;
            overflow-y: visible !important;
        }

            .vd-dashboard .vd-dashboard-row-5 >
            .vd-row-5-card-col {
                flex: 0 0 100% !important;
                width: 100% !important;
                min-width: 0 !important;
                max-width: 100% !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                margin-bottom: 8px !important;
            }

            .vd-dashboard .vd-dashboard-row-5
            .vd-card,
            .vd-dashboard .vd-dashboard-row-5
            .vd-screen-middle-card,
            .vd-dashboard .vd-dashboard-row-5
            .vd-live-overview-card,
            .vd-dashboard .vd-dashboard-row-5
            .vd-pending-commissions-card,
            .vd-dashboard .vd-dashboard-row-5
            .vd-alerts-card,
            .vd-dashboard .vd-dashboard-row-5
            .vd-jobs-overview-card {
                width: 100% !important;
                height: auto !important;
                min-height: 230px !important;
                max-height: none !important;
            }


        /* =====================================================
       IMPORTANT:
       Your global mobile CSS sets .card overflow-x:auto.
       Disable that only inside dashboard.
       ===================================================== */

        .vd-dashboard .card,
        .vd-dashboard .vd-card {
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
            overflow-x: hidden !important;
        }


        /* -----------------------------------------
       Normal card padding
       ----------------------------------------- */

        .vd-dashboard .card-body,
        .vd-dashboard .vd-card-body {
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
        }


        /* -----------------------------------------
       Header must not overflow
       ----------------------------------------- */

        .vd-dashboard .vd-card-header {
            width: 100% !important;
            min-width: 0 !important;
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 6px !important;
        }

        .vd-dashboard .vd-card-title {
            min-width: 0 !important;
            max-width: 100% !important;
        }


        /* -----------------------------------------
       Long text
       ----------------------------------------- */

        .vd-dashboard .vd-card-title,
        .vd-dashboard .vd-kpi-title {
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: unset !important;
            word-break: normal !important;
        }


        /* -----------------------------------------
       Region/map card
       ----------------------------------------- */

        .vd-dashboard .vd-region-map-body {
            width: 100% !important;
            height: 300px !important;
        }

        .vd-dashboard .vd-region-map-stage {
            width: 100% !important;
            height: 100% !important;
        }


        /* -----------------------------------------
       Lists
       ----------------------------------------- */

        .vd-dashboard .vd-live-list,
        .vd-dashboard .vd-card-list-expanded {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            max-height: 300px !important;
            overflow-x: auto !important;
            overflow-y: auto !important;
        }
}


/* =========================================================
   DASHBOARD FIRST ROW - EXACT 8 KPI CARDS
   Scoped only to .vd-kpi-first-row.
   ========================================================= */

.vd-dashboard .vd-kpi-first-row {
    margin-left: -4px !important;
    margin-right: -4px !important;
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 8px !important;
}

.vd-dashboard .vd-kpi-first-card-col {
    position: relative;
    min-width: 0;
    width: 100%;
    padding-left: 4px;
    padding-right: 4px;
}

@media (min-width: 1200px) {
    .vd-dashboard .vd-kpi-first-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
    }

    .vd-dashboard .vd-kpi-first-card-col {
        flex: 0 0 12.5% !important;
        width: 12.5% !important;
        max-width: 12.5% !important;
    }
}

.vd-dashboard .vd-kpi-first-row .vd-kpi-card {
    width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e4e8ef !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(27, 39, 64, .055) !important;
}

    .vd-dashboard .vd-kpi-first-row .vd-kpi-card .card-body {
        width: 100% !important;
        height: 100% !important;
        padding: 10px 9px 9px !important;
        overflow: hidden !important;
    }

.vd-dashboard .vd-kpi-first-row .vd-kpi-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: flex-start !important;
    gap: 7px !important;
    min-width: 0;
}

.vd-dashboard .vd-kpi-first-row .vd-kpi-icon {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    flex: 0 0 27px !important;
    margin-top: 1px;
    border-radius: 50%;
}

    .vd-dashboard .vd-kpi-first-row .vd-kpi-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

.vd-dashboard .vd-kpi-first-row .vd-kpi-content {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible !important;
}

.vd-dashboard .vd-kpi-first-row .vd-status-kpi-link {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-align: left !important;
}

    .vd-dashboard .vd-kpi-first-row .vd-kpi-title,
    .vd-dashboard .vd-kpi-first-row .vd-status-kpi-link .vd-kpi-title {
        display: block !important;
        width: 100% !important;
        margin: 0 0 7px !important;
        overflow: hidden !important;
        color: #202938 !important;
        font-size: 10px !important;
        line-height: 1.05 !important;
        font-weight: 800 !important;
        letter-spacing: -.08px !important;
        text-transform: uppercase;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-value,
    .vd-dashboard .vd-kpi-first-row .vd-status-kpi-link .vd-kpi-value {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #111827 !important;
        font-size: 19px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: -.45px !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

.vd-dashboard .vd-kpi-first-row .vd-kpi-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.vd-dashboard .vd-kpi-first-row .vd-kpi-footer-muted {
    margin-left: 2px !important;
    color: #6f7889 !important;
    font-size: 10px !important;
    font-weight: 650 !important;
}

.vd-dashboard .vd-kpi-first-row .vd-kpi-revenue-card .vd-kpi-inner {
    display: block !important;
}

.vd-dashboard .vd-kpi-first-row .vd-kpi-revenue-card .vd-kpi-content {
    width: 100% !important;
}

.vd-dashboard .vd-kpi-first-row .vd-kpi-revenue-card .vd-kpi-footer {
    padding-right: 37px;
}

.vd-dashboard .vd-kpi-first-row .vd-kpi-sparkline {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 34px;
    height: 19px;
    color: #36a66e;
    opacity: .92;
    pointer-events: none;
}

.vd-dashboard .vd-kpi-first-row .vd-icon-blue,
.vd-dashboard .vd-kpi-first-row .vd-active-venues-icon {
    color: #3479db !important;
    background: #eaf2ff !important;
}

.vd-dashboard .vd-kpi-first-row .vd-icon-green {
    color: #2aa66b !important;
    background: #e7f7ef !important;
}

.vd-dashboard .vd-kpi-first-row .vd-icon-purple {
    color: #7557df !important;
    background: #f0ecff !important;
}

.vd-dashboard .vd-kpi-first-row .vd-icon-orange {
    color: #e88923 !important;
    background: #fff0df !important;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .vd-dashboard .vd-kpi-first-row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .vd-dashboard .vd-kpi-first-card-col {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        margin-bottom: 8px;
    }
}

@media (max-width: 767.98px) {
    .vd-dashboard .vd-kpi-first-row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .vd-dashboard .vd-kpi-first-card-col {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 8px;
    }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-card {
        height: 104px !important;
        min-height: 104px !important;
    }

        .vd-dashboard .vd-kpi-first-row .vd-kpi-card .card-body {
            padding: 11px 9px 10px !important;
        }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-title,
    .vd-dashboard .vd-kpi-first-row .vd-status-kpi-link .vd-kpi-title {
        font-size: 10px !important;
        white-space: normal !important;
        line-height: 1.1 !important;
        max-height: 20px;
    }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-value,
    .vd-dashboard .vd-kpi-first-row .vd-status-kpi-link .vd-kpi-value {
        font-size: 18px !important;
    }
}

@media (max-width: 420px) {
    .vd-dashboard .vd-kpi-first-card-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   DASHBOARD REFERENCE IMAGE - COMPLETE BODY LAYOUT
   Scoped to .vd-reference-* classes. Existing modal/HTMX/chart
   behaviour remains untouched.
   ========================================================= */

.vd-dashboard {
    padding: 8px !important;
    background: #f7f8fa !important;
}

    .vd-dashboard .vd-reference-dashboard-grid {
        display: grid;
        grid-template-columns: minmax(0, 3.15fr) minmax(260px, .9fr);
        gap: 9px;
        width: 100%;
        margin-top: 9px;
        align-items: stretch;
    }

    .vd-dashboard .vd-reference-main-column {
        display: flex;
        flex-direction: column;
        gap: 9px;
        min-width: 0;
    }

    .vd-dashboard .vd-reference-chart-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
        gap: 9px;
        min-width: 0;
    }

    .vd-dashboard .vd-reference-chart-row-single {
        grid-template-columns: 1fr;
    }

    .vd-dashboard .vd-reference-revenue-performance,
    .vd-dashboard .vd-reference-revenue-performance > .card,
    .vd-dashboard .vd-reference-heatmap-card {
        min-width: 0;
        height: 242px !important;
        min-height: 242px !important;
    }

    .vd-dashboard .vd-reference-performance-card,
    .vd-dashboard .vd-reference-heatmap-card,
    .vd-dashboard .vd-reference-table-card,
    .vd-dashboard .vd-reference-machine-type-card,
    .vd-dashboard .vd-reference-bottom-data-card,
    .vd-dashboard .vd-reference-movers-card,
    .vd-dashboard .vd-reference-alerts-card,
    .vd-dashboard .vd-jobs-overview-card {
        border: 1px solid #e2e6ec !important;
        border-radius: 5px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(26, 37, 58, .035) !important;
    }

        .vd-dashboard .vd-reference-performance-card .vd-card-header,
        .vd-dashboard .vd-reference-heatmap-card .vd-card-header,
        .vd-dashboard .vd-reference-table-card .vd-card-header,
        .vd-dashboard .vd-reference-machine-type-card .vd-card-header,
        .vd-dashboard .vd-reference-bottom-data-card .vd-card-header,
        .vd-dashboard .vd-reference-movers-card .vd-card-header,
        .vd-dashboard .vd-reference-alerts-card .vd-card-header,
        .vd-dashboard .vd-jobs-overview-card .vd-card-header {
            min-height: 34px !important;
            padding: 9px 10px 5px !important;
        }

        .vd-dashboard .vd-reference-performance-card .vd-card-title,
        .vd-dashboard .vd-reference-heatmap-card .vd-card-title,
        .vd-dashboard .vd-reference-table-card .vd-card-title,
        .vd-dashboard .vd-reference-machine-type-card .vd-card-title,
        .vd-dashboard .vd-reference-bottom-data-card .vd-card-title,
        .vd-dashboard .vd-reference-movers-card .vd-card-title,
        .vd-dashboard .vd-reference-alerts-card .vd-card-title,
        .vd-dashboard .vd-jobs-overview-card .vd-card-title {
            color: #192235 !important;
            font-size: 10px !important;
            line-height: 1.05 !important;
            font-weight: 800 !important;
            letter-spacing: .05px !important;
            text-transform: uppercase;
        }

    /* Revenue Performance */
    .vd-dashboard .vd-reference-performance-header {
        align-items: flex-start !important;
    }

    .vd-dashboard .vd-reference-performance-total {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        min-width: 90px;
    }

        .vd-dashboard .vd-reference-performance-total strong {
            color: #1a2538;
            font-size: 15px !important;
            line-height: 1 !important;
            font-weight: 800;
            white-space: nowrap;
        }

        .vd-dashboard .vd-reference-performance-total span {
            color: #27a665;
            font-size: 10px !important;
            line-height: 1 !important;
            font-weight: 700;
        }

    .vd-dashboard .vd-reference-performance-card .vd-card-body {
        padding: 0 9px 7px !important;
    }

    .vd-dashboard .vd-reference-trend-legend {
        min-height: 23px;
        padding: 2px 0 0;
        display: flex;
        gap: 14px;
        align-items: center;
        color: #536075;
        font-size: 10px !important;
    }

    .vd-dashboard .vd-reference-performance-chart {
        width: 100%;
        height: 177px;
    }

    /* Heatmap */
    .vd-dashboard .vd-reference-heatmap-card .vd-hour-body {
        height: calc(100% - 34px);
        padding: 0 8px 7px !important;
    }

    .vd-dashboard .vd-reference-hour-summary {
        min-height: 19px;
    }

    .vd-dashboard .vd-reference-heatmap-card .vd-hour-chart-scroll {
        height: 160px !important;
        overflow: hidden !important;
    }

    .vd-dashboard .vd-reference-heatmap-card .vd-hour-chart {
        min-width: 0 !important;
        width: 100% !important;
        height: 154px !important;
    }

    .vd-dashboard .vd-reference-heatmap-card .vd-hour-legend {
        margin-top: 2px !important;
    }

    /* Fleet Status */
    .vd-dashboard .vd-fleet-section {
        min-width: 0;
    }

    .vd-dashboard .vd-reference-section-title {
        margin: 0 0 5px 1px;
        color: #1b2538;
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;
    }

    .vd-dashboard .vd-fleet-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
    }

    .vd-dashboard .vd-fleet-card {
        --fleet-color: #65758a;
        --fleet-bg: #f4f6f8;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        height: 63px;
        padding: 7px 9px;
        border: 1px solid #e2e6ec;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(26, 37, 58, .025);
    }

    .vd-dashboard .vd-fleet-online {
        --fleet-color: #16985b;
        --fleet-bg: #e8f7ef;
    }

    .vd-dashboard .vd-fleet-newly-offline {
        --fleet-color: #dc3545;
        --fleet-bg: #fdecef;
    }

    .vd-dashboard .vd-fleet-offline-one-seven,
    .vd-dashboard .vd-fleet-offline-seven-thirty {
        --fleet-color: #d8840f;
        --fleet-bg: #fff3df;
    }

    .vd-dashboard .vd-fleet-long-term {
        --fleet-color: #637386;
        --fleet-bg: #edf1f4;
    }

    .vd-dashboard .vd-fleet-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 29px;
        width: 29px;
        height: 29px;
        border-radius: 50%;
        background: var(--fleet-bg);
        color: var(--fleet-color);
    }

        .vd-dashboard .vd-fleet-icon svg {
            width: 17px;
            height: 17px;
        }

    .vd-dashboard .vd-fleet-copy {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 1px 6px;
        min-width: 0;
        flex: 1;
    }

    .vd-dashboard .vd-fleet-label {
        grid-column: 1 / 3;
        min-width: 0;
        overflow: hidden;
        color: #313a4d;
        font-size: 10px;
        line-height: 1.05;
        font-weight: 800;
        text-transform: uppercase;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

        .vd-dashboard .vd-fleet-label small {
            display: inline;
            margin-left: 2px;
            color: #6d778a;
            font-size: 10px !important;
            font-weight: 700;
        }

    .vd-dashboard .vd-fleet-value {
        color: #172033;
        font-size: 16px;
        line-height: 1;
        font-weight: 800;
    }

    .vd-dashboard .vd-fleet-percent {
        align-self: end;
        color: #526078;
        font-size: 10px;
        line-height: 1;
        font-weight: 700;
        white-space: nowrap;
    }

    /* Middle 3 cards */
    .vd-dashboard .vd-reference-middle-row,
    .vd-dashboard .vd-reference-bottom-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        min-width: 0;
    }

        .vd-dashboard .vd-reference-middle-row > .card,
        .vd-dashboard .vd-reference-middle-row > #dashboardBiggestMoversCard {
            height: 182px !important;
            min-height: 182px !important;
        }

    .vd-dashboard .vd-reference-table-head,
    .vd-dashboard .vd-reference-table-row {
        display: grid;
        align-items: center;
        column-gap: 5px;
        min-width: 0;
    }

    .vd-dashboard .vd-top-venue-grid {
        grid-template-columns: minmax(90px, 1.45fr) 72px 58px 44px;
    }

    .vd-dashboard .vd-reference-table-head {
        min-height: 21px;
        padding: 2px 9px;
        border-top: 1px solid #f0f2f5;
        border-bottom: 1px solid #e7ebf0;
        background: #fbfcfd;
        color: #8a93a4;
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;
    }

    .vd-dashboard .vd-reference-table-body {
        height: 123px;
        padding: 0 9px 5px;
        overflow: hidden;
    }

    .vd-dashboard .vd-reference-table-row {
        min-height: 24px;
        border-bottom: 1px solid #f0f2f5;
        color: #485469;
        font-size: 10px;
    }

        .vd-dashboard .vd-reference-table-row:last-child {
            border-bottom: 0;
        }

        .vd-dashboard .vd-reference-table-row strong,
        .vd-dashboard .vd-reference-table-row span {
            min-width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .vd-dashboard .vd-reference-table-row strong {
            color: #273148;
            font-weight: 750;
        }

    .vd-dashboard .vd-reference-static-link {
        color: #246fc7;
        font-size: 10px !important;
        font-weight: 750;
    }

    .vd-dashboard .vd-reference-machine-type-card .vd-card-body {
        height: calc(100% - 34px);
        padding: 0 8px 6px !important;
    }

    .vd-dashboard .vd-reference-machine-type-card .vd-machine-type-layout {
        height: 100%;
    }

    .vd-dashboard .vd-reference-machine-type-card .vd-donut-chart {
        height: 135px !important;
    }

    .vd-dashboard .vd-reference-machine-type-card .vd-machine-type-legend {
        max-height: 130px;
        overflow-y: auto;
    }

    /* Biggest movers fitted to screenshot row */
    .vd-dashboard .vd-reference-middle-row #dashboardBiggestMoversCard,
    .vd-dashboard .vd-reference-middle-row #dashboardBiggestMoversCard .vd-list-body,
    .vd-dashboard .vd-reference-middle-row #dashboardBiggestMoversCard .vd-comparison-movers {
        max-height: 182px !important;
    }

        .vd-dashboard .vd-reference-middle-row #dashboardBiggestMoversCard .vd-comparison-mover-row,
        .vd-dashboard .vd-reference-middle-row #dashboardBiggestMoversCard .vd-mover-heading,
        .vd-dashboard .vd-reference-middle-row #dashboardBiggestMoversCard .vd-mover-period {
            font-size: 10px !important;
        }

    /* Bottom 3 cards */
    .vd-dashboard .vd-reference-bottom-row > * {
        min-width: 0;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-reference-bottom-data-card,
    .vd-dashboard .vd-reference-bottom-row .vd-jobs-overview-card,
    .vd-dashboard .vd-reference-bottom-row #dashboardPendingCommissionsCard {
        height: 188px !important;
        min-height: 188px !important;
        max-height: 188px !important;
    }

    .vd-dashboard .vd-reference-live-head,
    .vd-dashboard .vd-reference-live-row {
        display: grid;
        grid-template-columns: 34px minmax(56px, 1.1fr) minmax(58px, 1fr) 54px 46px 50px;
        align-items: center;
        column-gap: 4px;
        width: 100%;
        min-width: 0;
    }

    .vd-dashboard .vd-reference-live-head,
    .vd-dashboard .vd-reference-commission-head {
        min-height: 20px;
        padding: 2px 8px;
        border-top: 1px solid #f1f3f6;
        border-bottom: 1px solid #e8ebf0;
        background: #fbfcfd;
        color: #8992a2;
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;
    }

    .vd-dashboard .vd-reference-live-list,
    .vd-dashboard .vd-reference-commission-list {
        height: 132px;
        max-height: 132px;
        padding: 0 8px 5px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .vd-dashboard .vd-reference-live-row {
        min-height: 25px;
        border-bottom: 1px solid #f0f2f5;
        color: #465268;
        font-size: 10px;
    }

        .vd-dashboard .vd-reference-live-row > span,
        .vd-dashboard .vd-reference-live-row > strong {
            min-width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .vd-dashboard .vd-reference-live-row > strong {
            color: #253149;
            font-weight: 800;
        }

    .vd-dashboard .vd-reference-approved {
        color: #20a05c !important;
        font-weight: 750;
    }

    .vd-dashboard .vd-reference-commission-head,
    .vd-dashboard .vd-reference-commission-row {
        display: grid;
        grid-template-columns: minmax(65px, 1.2fr) 76px 58px 62px;
        align-items: center;
        gap: 5px;
        min-width: 0;
    }

    .vd-dashboard .vd-reference-commission-row {
        min-height: 25px;
        border-bottom: 1px solid #f0f2f5;
        color: #465268;
        font-size: 10px;
    }

        .vd-dashboard .vd-reference-commission-row > * {
            min-width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .vd-dashboard .vd-reference-commission-row strong {
            color: #253149;
            font-weight: 750;
        }

    .vd-dashboard .vd-reference-commission-amount {
        color: #253149;
        font-weight: 800;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-jobs-overview-body {
        padding: 0 7px 7px !important;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-job-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-job-mini-card {
        min-height: 70px !important;
        border: 0 !important;
        background: #fff !important;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-job-mini-icon {
        display: none !important;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-job-mini-title {
        font-size: 10px !important;
        text-transform: uppercase;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-job-mini-total {
        font-size: 17px !important;
    }

    .vd-dashboard .vd-reference-bottom-row .vd-job-mini-stats {
        font-size: 10px !important;
    }

    /* Alerts rail */
    .vd-dashboard .vd-reference-alert-column {
        min-width: 0;
    }

    .vd-dashboard .vd-reference-alerts-card {
        height: 100% !important;
        min-height: 688px !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .vd-dashboard .vd-reference-alert-header {
        flex: 0 0 auto;
    }

    .vd-dashboard .vd-reference-alert-total {
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #c7202d;
        color: #fff;
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
    }

    .vd-dashboard .vd-reference-alert-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 9px;
        overflow-y: auto;
    }

    .vd-dashboard .vd-reference-alert-group {
        padding: 7px 0 5px;
        border-bottom: 1px solid #eceff3;
    }

        .vd-dashboard .vd-reference-alert-group:last-child {
            border-bottom: 0;
        }

    .vd-dashboard .vd-reference-alert-group-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;
    }

        .vd-dashboard .vd-reference-alert-group-head > :last-child {
            min-width: 19px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

    .vd-dashboard .vd-reference-alert-group-critical .vd-reference-alert-group-head {
        color: #c52a36;
    }

        .vd-dashboard .vd-reference-alert-group-critical .vd-reference-alert-group-head > :last-child,
        .vd-dashboard .vd-reference-alert-group-critical .vd-reference-alert-icon {
            background: #fde9ec;
            color: #cf2d39;
        }

    .vd-dashboard .vd-reference-alert-group-medium .vd-reference-alert-group-head {
        color: #d68110;
    }

        .vd-dashboard .vd-reference-alert-group-medium .vd-reference-alert-group-head > :last-child,
        .vd-dashboard .vd-reference-alert-group-medium .vd-reference-alert-icon {
            background: #fff0d9;
            color: #d98a14;
        }

    .vd-dashboard .vd-reference-alert-group-low .vd-reference-alert-group-head {
        color: #b68b13;
    }

        .vd-dashboard .vd-reference-alert-group-low .vd-reference-alert-group-head > :last-child,
        .vd-dashboard .vd-reference-alert-group-low .vd-reference-alert-icon {
            background: #fff8d9;
            color: #c29b20;
        }

    .vd-dashboard .vd-reference-alert-row {
        width: 100%;
        min-height: 37px;
        padding: 4px 0;
        border: 0;
        border-bottom: 1px solid #f1f2f5;
        background: transparent;
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) 12px;
        align-items: center;
        gap: 5px;
        color: #303a50;
        text-align: left;
        cursor: pointer;
    }

        .vd-dashboard .vd-reference-alert-row:last-child {
            border-bottom: 0;
        }

        .vd-dashboard .vd-reference-alert-row:hover {
            background: #fafbfc;
        }

    .vd-dashboard .vd-reference-alert-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 21px;
        height: 21px;
        border-radius: 50%;
        font-size: 10px;
        font-weight: 900;
    }

    .vd-dashboard .vd-reference-alert-message {
        min-width: 0;
        overflow: hidden;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 650;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .vd-dashboard .vd-reference-alert-arrow {
        color: #7e8797;
        font-size: 14px;
        font-weight: 700;
        text-align: right;
    }

    .vd-dashboard .vd-reference-alert-empty {
        padding: 8px 0;
        color: #9099a8;
        font-size: 10px;
    }

    .vd-dashboard .vd-reference-view-alerts {
        flex: 0 0 34px;
        width: 100%;
        padding: 0 10px;
        border: 0;
        border-top: 1px solid #e7ebf0;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #1f6fc8;
        font-size: 10px;
        font-weight: 750;
        text-align: left;
    }

/* Make the first row closer to the supplied screenshot dimensions. */
@media (min-width: 1200px) {
    .vd-dashboard .vd-kpi-first-row .vd-kpi-card {
        height: 78px !important;
        min-height: 78px !important;
    }

        .vd-dashboard .vd-kpi-first-row .vd-kpi-card .card-body {
            padding: 8px 8px 7px !important;
        }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-title,
    .vd-dashboard .vd-kpi-first-row .vd-status-kpi-link .vd-kpi-title {
        margin-bottom: 5px !important;
        font-size: 10px !important;
    }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-value,
    .vd-dashboard .vd-kpi-first-row .vd-status-kpi-link .vd-kpi-value {
        font-size: 17px !important;
    }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-footer,
    .vd-dashboard .vd-kpi-first-row .vd-kpi-footer-muted {
        font-size: 10px !important;
    }

    .vd-dashboard .vd-kpi-first-row .vd-kpi-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        flex-basis: 24px !important;
    }

        .vd-dashboard .vd-kpi-first-row .vd-kpi-icon svg {
            width: 13px !important;
            height: 13px !important;
        }
}

/* Tablet */
@media (max-width: 1199.98px) {
    .vd-dashboard .vd-reference-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .vd-dashboard .vd-reference-alerts-card {
        min-height: 430px !important;
    }

    .vd-dashboard .vd-reference-middle-row,
    .vd-dashboard .vd-reference-bottom-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vd-dashboard .vd-fleet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .vd-dashboard .vd-reference-chart-row,
    .vd-dashboard .vd-reference-middle-row,
    .vd-dashboard .vd-reference-bottom-row {
        grid-template-columns: 1fr !important;
    }

    .vd-dashboard .vd-reference-revenue-performance,
    .vd-dashboard .vd-reference-revenue-performance > .card,
    .vd-dashboard .vd-reference-heatmap-card {
        height: 270px !important;
        min-height: 270px !important;
    }

    .vd-dashboard .vd-fleet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vd-dashboard .vd-reference-middle-row > .card,
    .vd-dashboard .vd-reference-middle-row > #dashboardBiggestMoversCard,
    .vd-dashboard .vd-reference-bottom-row .vd-reference-bottom-data-card,
    .vd-dashboard .vd-reference-bottom-row .vd-jobs-overview-card,
    .vd-dashboard .vd-reference-bottom-row #dashboardPendingCommissionsCard {
        height: auto !important;
        min-height: 200px !important;
        max-height: none !important;
    }

    .vd-dashboard .vd-reference-live-head,
    .vd-dashboard .vd-reference-live-row {
        grid-template-columns: 34px minmax(78px, 1fr) minmax(78px, 1fr) 54px 50px 54px;
        min-width: 410px;
    }

    .vd-dashboard .vd-reference-live-list {
        overflow-x: auto;
    }
}

@media (max-width: 420px) {
    .vd-dashboard .vd-fleet-grid {
        grid-template-columns: 1fr;
    }
}


/* Jobs wrapper came from the existing Bootstrap/flex row; neutralize those
   width rules only inside the new screenshot-style CSS grid. */
.vd-dashboard .vd-reference-bottom-row > .vd-row-5-card-col,
.vd-dashboard .vd-reference-bottom-row > .vd-last-card-col {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

@media (min-width: 1200px) {
    .vd-dashboard .vd-reference-alerts-card {
        min-height: 708px !important;
    }
}


/* =========================================================
   ALERTS: TOP AREA ONLY + EXPANDED JOBS LAST ROW
   Upcoming Jobs follows the supplied dashboard reference.
   ========================================================= */

/*
   Alerts now ends before the last row. The last row is outside
   .vd-reference-dashboard-grid and spans the full dashboard width.
*/
.vd-dashboard .vd-reference-alerts-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
}

@media (min-width: 1200px) {
    .vd-dashboard .vd-reference-dashboard-grid {
        align-items: stretch !important;
    }

    .vd-dashboard .vd-reference-alert-column {
        align-self: stretch;
        min-height: 0 !important;
    }

        .vd-dashboard .vd-reference-alert-column > #dashboardAlertsCard {
            height: 100% !important;
            min-height: 0 !important;
        }

    /*
       Full-width final row:
       25% Live Transactions
       25% Pending Commissions
       50% Jobs Overview
    */
    .vd-dashboard > .vd-reference-bottom-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) !important;
        gap: 9px !important;
        width: 100% !important;
        margin-top: 9px !important;
    }
}

/* Neutralize old Bootstrap/flex widths for the Jobs wrapper. */
.vd-dashboard > .vd-reference-bottom-row > .vd-reference-bottom-card,
.vd-dashboard > .vd-reference-bottom-row > .vd-row-5-card-col,
.vd-dashboard > .vd-reference-bottom-row > .vd-last-card-col {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/*
   Expanded Jobs card height. Live/Pending keep the same row height
   so the screenshot-style baseline stays aligned.
*/
.vd-dashboard > .vd-reference-bottom-row
.vd-reference-bottom-data-card,
.vd-dashboard > .vd-reference-bottom-row
#dashboardPendingCommissionsCard,
.vd-dashboard > .vd-reference-bottom-row
.vd-jobs-overview-card {
    height: 214px !important;
    min-height: 214px !important;
    max-height: 214px !important;
}

/* Jobs summary takes the upper portion of the expanded card. */
.vd-dashboard > .vd-reference-bottom-row
.vd-jobs-overview-body {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
    height: calc(100% - 34px);
    padding: 0 10px 8px !important;
    overflow: hidden;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-grid {
    flex: 0 0 64px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-card {
    min-height: 62px !important;
    height: 62px !important;
    padding: 3px 8px !important;
    border: 0 !important;
    border-right: 1px solid #edf0f4 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

    .vd-dashboard > .vd-reference-bottom-row
    .vd-job-mini-card:last-child {
        border-right: 0 !important;
    }

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-main {
    min-height: 31px !important;
    padding: 0 !important;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-icon {
    display: none !important;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-title {
    color: #242d3f !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-total {
    color: #111b2d !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-stats {
    justify-content: center !important;
    gap: 9px !important;
    margin-top: 3px !important;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-stat {
    gap: 3px !important;
    padding: 0 !important;
    font-size: 10px !important;
}

.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-stat-label,
.vd-dashboard > .vd-reference-bottom-row
.vd-job-mini-stat-value {
    font-size: 10px !important;
}

/* ---------------- UPCOMING JOBS ---------------- */

.vd-dashboard .vd-upcoming-jobs-section {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 4px;
    border-top: 1px solid #e9edf2;
    overflow: hidden;
}

.vd-dashboard .vd-upcoming-jobs-heading {
    height: 23px;
    padding: 7px 0 4px;
    color: #273146;
    font-size: 10px !important;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12px;
    text-transform: uppercase;
}

.vd-dashboard .vd-upcoming-jobs-list {
    min-height: 0;
    overflow: hidden;
}

.vd-dashboard .vd-upcoming-job-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 62px;
    align-items: center;
    gap: 8px;
    min-height: 29px;
    padding: 3px 0;
    border-bottom: 1px solid #f0f2f5;
    color: #475268;
}

    .vd-dashboard .vd-upcoming-job-row:last-child {
        border-bottom: 0;
    }

.vd-dashboard .vd-upcoming-job-time {
    color: #263149;
    font-size: 10px !important;
    line-height: 1;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vd-dashboard .vd-upcoming-job-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

    .vd-dashboard .vd-upcoming-job-info strong {
        min-width: 0;
        overflow: hidden;
        color: #273146;
        font-size: 10px !important;
        line-height: 1.05;
        font-weight: 750;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .vd-dashboard .vd-upcoming-job-info small {
        min-width: 0;
        overflow: hidden;
        color: #7b8495;
        font-size: 10px !important;
        line-height: 1;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.vd-dashboard .vd-upcoming-job-status {
    justify-self: end;
    color: #24985e;
    font-size: 10px !important;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
}

.vd-dashboard .vd-upcoming-jobs-empty {
    padding: 14px 0 8px;
    color: #8c95a5;
    font-size: 10px !important;
    text-align: center;
}

/* Bottom data tables receive the slightly taller last-row height. */
.vd-dashboard > .vd-reference-bottom-row
.vd-reference-live-list,
.vd-dashboard > .vd-reference-bottom-row
.vd-reference-commission-list {
    height: 158px !important;
    max-height: 158px !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .vd-dashboard > .vd-reference-bottom-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        margin-top: 9px !important;
    }

        .vd-dashboard > .vd-reference-bottom-row
        .vd-row-5-card-col {
            grid-column: 1 / -1;
        }

        .vd-dashboard > .vd-reference-bottom-row
        .vd-jobs-overview-card {
            height: 220px !important;
            min-height: 220px !important;
            max-height: 220px !important;
        }
}

/* Mobile */
@media (max-width: 767.98px) {
    .vd-dashboard > .vd-reference-bottom-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        margin-top: 9px !important;
    }

        .vd-dashboard > .vd-reference-bottom-row
        .vd-reference-bottom-data-card,
        .vd-dashboard > .vd-reference-bottom-row
        #dashboardPendingCommissionsCard,
        .vd-dashboard > .vd-reference-bottom-row
        .vd-jobs-overview-card {
            height: auto !important;
            min-height: 214px !important;
            max-height: none !important;
        }

        .vd-dashboard > .vd-reference-bottom-row
        .vd-jobs-overview-body {
            height: auto !important;
            overflow: visible !important;
        }

    .vd-dashboard .vd-upcoming-job-row {
        grid-template-columns: 64px minmax(0, 1fr) 58px;
    }
}

/* =========================================================
   JOBS OVERVIEW - REFERENCE IMAGE DESIGN
   Scoped only to .vd-jobs-reference-card.
   ========================================================= */

.vd-dashboard .vd-jobs-reference-card {
    overflow: hidden !important;
    border: 1px solid #e2e6ec !important;
    border-radius: 5px !important;
    background: #fff !important;
}

.vd-dashboard .vd-jobs-reference-header {
    min-height: 32px !important;
    padding: 9px 11px 5px !important;
    border-bottom: 0 !important;
}

    .vd-dashboard .vd-jobs-reference-header .vd-card-title {
        margin: 0 !important;
        color: #1c2537 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: .08px !important;
        text-transform: uppercase;
    }

.vd-dashboard .vd-jobs-reference-body {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100% - 32px) !important;
    min-height: 0 !important;
    padding: 0 12px 8px !important;
    overflow: hidden !important;
}

/* ---------------- Summary ---------------- */
.vd-dashboard .vd-jobs-reference-summary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex: 0 0 72px !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    border-bottom: 1px solid #e9edf2;
}

.vd-dashboard .vd-jobs-reference-summary-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 2px 12px 7px !important;
    border: 0 !important;
    border-right: 1px solid #edf0f4 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

    .vd-dashboard .vd-jobs-reference-summary-card:last-child {
        border-right: 0 !important;
    }

.vd-dashboard .vd-jobs-reference-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
}

    .vd-dashboard .vd-jobs-reference-main .vd-job-mini-title {
        display: block !important;
        margin: 0 0 3px !important;
        color: #1f293b !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: .1px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
    }

    .vd-dashboard .vd-jobs-reference-main .vd-job-mini-total {
        display: block !important;
        margin: 0 !important;
        color: #101a2c !important;
        font-size: 21px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: -.35px !important;
    }

.vd-dashboard .vd-jobs-reference-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 17px !important;
    width: 100% !important;
    margin: 5px 0 0 !important;
}

    .vd-dashboard .vd-jobs-reference-stats .vd-job-mini-stat {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        line-height: 1 !important;
    }

    .vd-dashboard .vd-jobs-reference-stats .vd-job-mini-stat-label,
    .vd-dashboard .vd-jobs-reference-stats .vd-job-mini-stat-value {
        display: inline !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 750 !important;
    }

    .vd-dashboard .vd-jobs-reference-stats .vd-job-mini-stat-label {
        color: #6d7687 !important;
    }

    .vd-dashboard .vd-jobs-reference-stats .vd-job-mini-completed .vd-job-mini-stat-value {
        color: #249c60 !important;
    }

    .vd-dashboard .vd-jobs-reference-stats .vd-job-mini-pending .vd-job-mini-stat-value {
        color: #d8494d !important;
    }

/* ---------------- Upcoming Jobs ---------------- */
.vd-dashboard .vd-jobs-reference-upcoming {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    overflow: hidden !important;
}

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-jobs-heading {
        height: 27px !important;
        padding: 9px 0 5px !important;
        color: #202a3d !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: .12px !important;
        text-transform: uppercase !important;
    }

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-jobs-list {
        min-height: 0 !important;
        max-height: 82px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-row {
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) 62px !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 32px !important;
        padding: 4px 0 !important;
        border-bottom: 1px solid #f0f2f5 !important;
        background: transparent !important;
    }

        .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-row:last-child {
            border-bottom: 0 !important;
        }

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-time {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        min-width: 0 !important;
        color: #243047 !important;
        white-space: nowrap !important;
    }

        .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-time strong {
            color: #263149 !important;
            font-size: 10px !important;
            line-height: 1 !important;
            font-weight: 800 !important;
        }

        .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-time small {
            color: #5f697c !important;
            font-size: 10px !important;
            line-height: 1 !important;
            font-weight: 700 !important;
        }

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-info {
        display: flex !important;
        min-width: 0 !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

        .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-info strong {
            min-width: 0 !important;
            overflow: hidden !important;
            color: #273146 !important;
            font-size: 10px !important;
            line-height: 1 !important;
            font-weight: 750 !important;
            white-space: nowrap !important;
            text-overflow: ellipsis !important;
        }

        .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-info small {
            min-width: 0 !important;
            overflow: hidden !important;
            color: #7a8496 !important;
            font-size: 10px !important;
            line-height: 1 !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            text-overflow: ellipsis !important;
        }

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-job-status {
        justify-self: end !important;
        color: #23975c !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 750 !important;
        white-space: nowrap !important;
    }

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-jobs-empty {
        padding: 17px 0 8px !important;
        color: #8c95a4 !important;
        font-size: 10px !important;
        text-align: center !important;
    }

/* Desktop: match screenshot proportions. */
@media (min-width: 1200px) {
    .vd-dashboard > .vd-reference-bottom-row .vd-jobs-reference-card {
        height: 214px !important;
        min-height: 214px !important;
        max-height: 214px !important;
    }
}

/* Tablet / mobile keep the same visual hierarchy without squeezing text. */
@media (max-width: 1199.98px) {
    .vd-dashboard .vd-jobs-reference-summary-card {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .vd-dashboard .vd-jobs-reference-stats {
        gap: 9px !important;
    }
}

@media (max-width: 575.98px) {
    .vd-dashboard .vd-jobs-reference-summary {
        grid-template-columns: 1fr !important;
        flex-basis: auto !important;
        border-bottom: 0 !important;
    }

    .vd-dashboard .vd-jobs-reference-summary-card {
        height: auto !important;
        min-height: 72px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #edf0f4 !important;
    }

    .vd-dashboard .vd-jobs-reference-upcoming .vd-upcoming-jobs-list {
        max-height: none !important;
    }
}

/* =========================================================
   JOBS OVERVIEW - ISOLATED EXACT REFERENCE CARD
   Does not reuse old vd-job-mini* classes.
   ========================================================= */

.vd-dashboard .vd-jobref-shell {
    width: 100% !important;
    height: 214px !important;
    min-height: 214px !important;
    max-height: 214px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e1e5eb !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(25, 35, 54, .04) !important;
}

.vd-dashboard .vd-jobref-header {
    height: 31px !important;
    padding: 10px 11px 4px !important;
    display: flex !important;
    align-items: center !important;
    border: 0 !important;
}

    .vd-dashboard .vd-jobref-header h5 {
        margin: 0 !important;
        color: #172033 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 850 !important;
        letter-spacing: .08px !important;
        text-transform: uppercase !important;
    }

.vd-dashboard .vd-jobref-body {
    height: calc(100% - 31px) !important;
    min-height: 0 !important;
    padding: 0 11px 7px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Summary */
.vd-dashboard .vd-jobref-summary {
    flex: 0 0 66px !important;
    height: 66px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border-bottom: 1px solid #e9edf2 !important;
}

.vd-dashboard .vd-jobref-summary-item {
    min-width: 0 !important;
    padding: 3px 14px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-right: 1px solid #edf0f4 !important;
}

    .vd-dashboard .vd-jobref-summary-item:last-child {
        border-right: 0 !important;
    }

.vd-dashboard .vd-jobref-total-button,
.vd-dashboard .vd-jobref-statuses button {
    appearance: none !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.vd-dashboard .vd-jobref-total-button {
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.vd-dashboard .vd-jobref-type {
    color: #202a3c !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: .08px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.vd-dashboard .vd-jobref-total {
    margin-top: 3px !important;
    color: #10192a !important;
    font-size: 20px !important;
    line-height: .95 !important;
    font-weight: 850 !important;
}

.vd-dashboard .vd-jobref-statuses {
    width: 100% !important;
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
}

    .vd-dashboard .vd-jobref-statuses button {
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #6e7788 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    .vd-dashboard .vd-jobref-statuses strong {
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 850 !important;
    }

    .vd-dashboard .vd-jobref-statuses .done {
        color: #1d9b5b !important;
    }

    .vd-dashboard .vd-jobref-statuses .pending {
        color: #d74a4e !important;
    }

/* Upcoming */
.vd-dashboard .vd-jobref-upcoming-title {
    flex: 0 0 25px !important;
    height: 25px !important;
    padding-top: 8px !important;
    color: #20293b !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: .08px !important;
    text-transform: uppercase !important;
}

.vd-dashboard .vd-jobref-upcoming-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.vd-dashboard .vd-jobref-upcoming-row {
    min-height: 27px !important;
    padding: 2px 0 !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 58px !important;
    gap: 9px !important;
    align-items: center !important;
    border-bottom: 1px solid #f0f2f5 !important;
}

    .vd-dashboard .vd-jobref-upcoming-row:last-child {
        border-bottom: 0 !important;
    }

.vd-dashboard .vd-jobref-date {
    display: grid !important;
    grid-template-columns: 28px 28px !important;
    gap: 2px !important;
    align-items: center !important;
    color: #283248 !important;
    white-space: nowrap !important;
}

    .vd-dashboard .vd-jobref-date strong,
    .vd-dashboard .vd-jobref-date small {
        display: inline !important;
        margin: 0 !important;
        color: #283248 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 750 !important;
    }

.vd-dashboard .vd-jobref-job {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

    .vd-dashboard .vd-jobref-job strong {
        min-width: 0 !important;
        overflow: hidden !important;
        color: #273146 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 750 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .vd-dashboard .vd-jobref-job small {
        min-width: 0 !important;
        overflow: hidden !important;
        color: #7c8595 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

.vd-dashboard .vd-jobref-scheduled {
    justify-self: end !important;
    color: #1f985a !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
}

.vd-dashboard .vd-jobref-empty {
    padding: 16px 0 !important;
    color: #8a93a2 !important;
    font-size: 10px !important;
    text-align: center !important;
}

/* Footer */
.vd-dashboard .vd-jobref-footer {
    flex: 0 0 23px !important;
    height: 23px !important;
    margin-top: 2px !important;
    padding-top: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #1b70c9 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
}

/* Jobs Overview is the large final card. */
@media (min-width: 1200px) {
    .vd-dashboard > .vd-reference-bottom-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) !important;
    }

        .vd-dashboard > .vd-reference-bottom-row > .vd-row-5-card-col {
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            flex: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }
}

@media (max-width: 767.98px) {
    .vd-dashboard .vd-jobref-shell {
        height: auto !important;
        max-height: none !important;
        min-height: 250px !important;
    }

    .vd-dashboard .vd-jobref-body {
        height: auto !important;
        overflow: visible !important;
    }

    .vd-dashboard .vd-jobref-summary {
        height: auto !important;
        flex-basis: auto !important;
        grid-template-columns: 1fr !important;
        border-bottom: 0 !important;
    }

    .vd-dashboard .vd-jobref-summary-item {
        min-height: 66px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #edf0f4 !important;
    }

    .vd-dashboard .vd-jobref-upcoming-list {
        overflow: visible !important;
    }
}

/* =========================================================
   UPCOMING JOBS - READABILITY + WORKING VIEW ALL
   Minimum text size in this section is 10px.
   ========================================================= */

.vd-dashboard .vd-jobref-upcoming-title {
    font-size: 11px !important;
    line-height: 1.1 !important;
}

.vd-dashboard .vd-jobref-upcoming-row {
    min-height: 34px !important;
    padding: 5px 0 !important;
    grid-template-columns: 72px minmax(0, 1fr) 72px !important;
    gap: 10px !important;
}

.vd-dashboard .vd-jobref-date {
    grid-template-columns: 34px 34px !important;
    gap: 3px !important;
}

    .vd-dashboard .vd-jobref-date strong,
    .vd-dashboard .vd-jobref-date small,
    .vd-dashboard .vd-jobref-job strong,
    .vd-dashboard .vd-jobref-job small,
    .vd-dashboard .vd-jobref-scheduled {
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

.vd-dashboard .vd-jobref-job {
    gap: 3px !important;
}

    .vd-dashboard .vd-jobref-job strong {
        font-weight: 750 !important;
    }

    .vd-dashboard .vd-jobref-job small {
        color: #6f798b !important;
        font-weight: 600 !important;
    }

.vd-dashboard .vd-jobref-scheduled {
    font-weight: 750 !important;
}

.vd-dashboard .vd-jobref-empty {
    font-size: 10px !important;
}

/* View all jobs is now a real button. */
.vd-dashboard .vd-jobref-footer {
    appearance: none !important;
    width: 100% !important;
    border: 0 !important;
    border-top: 1px solid #edf0f4 !important;
    background: transparent !important;
    cursor: pointer !important;
    color: #1b70c9 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    text-align: left !important;
}

    .vd-dashboard .vd-jobref-footer:hover {
        color: #155ca7 !important;
        background: #f8fbff !important;
    }

/* Give the larger 10px upcoming rows enough room in the card. */
@media (min-width: 1200px) {
    .vd-dashboard .vd-jobref-shell {
        height: 238px !important;
        min-height: 238px !important;
        max-height: 238px !important;
    }

    .vd-dashboard > .vd-reference-bottom-row
    .vd-reference-bottom-data-card,
    .vd-dashboard > .vd-reference-bottom-row
    #dashboardPendingCommissionsCard {
        height: 238px !important;
        min-height: 238px !important;
        max-height: 238px !important;
    }

    .vd-dashboard > .vd-reference-bottom-row
    .vd-reference-live-list,
    .vd-dashboard > .vd-reference-bottom-row
    .vd-reference-commission-list {
        height: 182px !important;
        max-height: 182px !important;
    }
}

/* ---------------------------------------------------------
   View All Upcoming Jobs modal
   --------------------------------------------------------- */
#dashboardUpcomingJobsModal .vd-upcoming-all-modal {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

#dashboardUpcomingJobsModal .modal-header {
    padding: 13px 16px;
    border-bottom: 1px solid #e7ebf0;
}

#dashboardUpcomingJobsModal .modal-title {
    color: #1c2639;
    font-size: 15px !important;
    font-weight: 800;
}

#dashboardUpcomingJobsModal .modal-body {
    padding: 0 14px 14px;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-head,
#dashboardUpcomingJobsModal .vd-upcoming-all-row {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1.5fr) minmax(150px, 1fr) 90px 90px;
    align-items: center;
    gap: 10px;
    min-width: 720px;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-head {
    min-height: 36px;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e6ec;
    background: #f8fafc;
    color: #6f7889;
    font-size: 10px !important;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-list {
    max-height: 58vh;
    overflow: auto;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-row {
    min-height: 45px;
    padding: 8px 10px;
    border-bottom: 1px solid #edf0f4;
    color: #465268;
    font-size: 11px !important;
    line-height: 1.2;
}

    #dashboardUpcomingJobsModal .vd-upcoming-all-row:last-child {
        border-bottom: 0;
    }

    #dashboardUpcomingJobsModal .vd-upcoming-all-row:hover {
        background: #fafcff;
    }

#dashboardUpcomingJobsModal .vd-upcoming-all-date,
#dashboardUpcomingJobsModal .vd-upcoming-all-job,
#dashboardUpcomingJobsModal .vd-upcoming-all-venue,
#dashboardUpcomingJobsModal .vd-upcoming-all-type,
#dashboardUpcomingJobsModal .vd-upcoming-all-status {
    min-width: 0;
    overflow: hidden;
    font-size: 11px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-job {
    color: #273146;
    font-weight: 750;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-date {
    color: #303c54;
    font-variant-numeric: tabular-nums;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-status {
    color: #23975c;
    font-weight: 750;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-empty {
    padding: 32px 15px;
    color: #8993a4;
    font-size: 11px !important;
    text-align: center;
}

@media (max-width: 767.98px) {
    #dashboardUpcomingJobsModal .modal-dialog {
        max-width: calc(100vw - 20px);
        margin: 10px auto;
    }

    #dashboardUpcomingJobsModal .modal-body {
        overflow-x: auto;
    }
}

/* =========================================================
   JOBS OVERVIEW - HTMX PERIOD FILTER
   Only this card is swapped when the dropdown changes.
   ========================================================= */

.vd-dashboard .vd-jobs-overview-fragment {
    position: relative;
    min-width: 0;
}

.vd-dashboard .vd-jobref-header {
    justify-content: space-between !important;
    gap: 10px !important;
}

.vd-dashboard .vd-jobref-filter-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.vd-dashboard .vd-jobref-filter {
    width: auto;
    min-width: 108px;
    height: 25px;
    padding: 2px 24px 2px 8px;
    border: 1px solid #dfe4eb;
    border-radius: 5px;
    outline: 0;
    background-color: #fff;
    color: #344056;
    font-size: 10px !important;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

    .vd-dashboard .vd-jobref-filter:hover {
        border-color: #cbd3df;
    }

    .vd-dashboard .vd-jobref-filter:focus {
        border-color: #7fa7db;
        box-shadow: 0 0 0 2px rgba(52, 121, 219, .10);
    }

.vd-dashboard .vd-jobref-filter-loader {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3479db;
}

    .vd-dashboard .vd-jobref-filter-loader .spinner-border {
        width: 12px;
        height: 12px;
        border-width: 1.5px;
    }

/* Keep header readable when card becomes narrower. */
@media (max-width: 575.98px) {
    .vd-dashboard .vd-jobref-header {
        height: auto !important;
        min-height: 46px !important;
        padding-bottom: 8px !important;
        flex-wrap: wrap !important;
    }

    .vd-dashboard .vd-jobref-filter-wrap {
        width: 100%;
        margin-left: 0;
    }

    .vd-dashboard .vd-jobref-filter {
        width: 100%;
    }
}

.vd-dashboard .vd-jobref-initial-loading {
    height: calc(100% - 31px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #7b8596;
    font-size: 10px !important;
    font-weight: 650;
}

    .vd-dashboard .vd-jobref-initial-loading .spinner-border {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }

/* =========================================================
   DASHBOARD - FLEET CARD BACKGROUNDS + COMPACT TABLE HEADERS
   Visual-only overrides. No dashboard logic is changed.
   ========================================================= */

/* Fleet Status - soft card backgrounds like the reference image */
.vd-dashboard .vd-fleet-online {
    --fleet-color: #16985b;
    --fleet-bg: #dff6e9;
    background: #eefaf3 !important;
    border-color: #d9eee2 !important;
}

.vd-dashboard .vd-fleet-newly-offline {
    --fleet-color: #dc3545;
    --fleet-bg: #fde2e6;
    background: #fff0f2 !important;
    border-color: #f5dce1 !important;
}

.vd-dashboard .vd-fleet-offline-one-seven {
    --fleet-color: #d8840f;
    --fleet-bg: #ffedcf;
    background: #fff6e8 !important;
    border-color: #f4e6cf !important;
}

.vd-dashboard .vd-fleet-offline-seven-thirty {
    --fleet-color: #c58a00;
    --fleet-bg: #fff1bf;
    background: #fffbea !important;
    border-color: #f2e8c7 !important;
}

/* Long-term offline stays neutral/grey like the reference */
.vd-dashboard .vd-fleet-long-term {
    --fleet-color: #637386;
    --fleet-bg: #e8edf2;
    background: #f4f6f8 !important;
    border-color: #e1e6eb !important;
}

/* ---------------------------------------------------------
   Top Performing Venues
   Smaller heading text + tighter gaps so headings stay 1 line.
   --------------------------------------------------------- */
.vd-dashboard #dashboardTopPerformingVenuesCard .vd-top-venue-grid {
    grid-template-columns: minmax(78px, 1.45fr) 62px 64px 46px !important;
    column-gap: 3px !important;
}

.vd-dashboard #dashboardTopPerformingVenuesCard .vd-reference-table-head {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 10px !important;
    letter-spacing: 0 !important;
}

    .vd-dashboard #dashboardTopPerformingVenuesCard .vd-reference-table-head > span {
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: clip !important;
    }

.vd-dashboard #dashboardTopPerformingVenuesCard .vd-reference-table-body {
    padding-left: 7px !important;
    padding-right: 7px !important;
}

/* ---------------------------------------------------------
   Live Transactions
   Keep all 6 headings on one line and reduce wasted gap.
   --------------------------------------------------------- */
.vd-dashboard #dashboardLiveTransactionsCard .vd-reference-live-head,
.vd-dashboard #dashboardLiveTransactionsCard .vd-reference-live-row {
    grid-template-columns: 32px minmax(48px, 1.08fr) minmax(48px, 1fr) 50px 42px 44px !important;
    column-gap: 2px !important;
}

.vd-dashboard #dashboardLiveTransactionsCard .vd-reference-live-head {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 10px !important;
    letter-spacing: 0 !important;
}

    .vd-dashboard #dashboardLiveTransactionsCard .vd-reference-live-head > span {
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: clip !important;
    }

.vd-dashboard #dashboardLiveTransactionsCard .vd-reference-live-list {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* =========================================================
   UPCOMING JOBS - SEPARATE TYPE / VENUE COLUMNS
   Compact rows so more upcoming jobs fit in the card.
   ========================================================= */

.vd-dashboard .vd-jobref-upcoming-list {
    overflow-y: hidden !important;
}

/*
   Date/Time | Job | Type | Venue | Status
   "Removal · Venue" is no longer combined under Job.
*/
.vd-dashboard .vd-jobref-upcoming-row {
    grid-template-columns: 62px minmax(90px, 1.25fr) 68px minmax(90px, 1fr) 66px !important;
    gap: 6px !important;
    min-height: 22px !important;
    padding: 2px 0 !important;
}

.vd-dashboard .vd-jobref-date {
    grid-template-columns: 30px 30px !important;
    gap: 2px !important;
}

    .vd-dashboard .vd-jobref-date strong,
    .vd-dashboard .vd-jobref-date small,
    .vd-dashboard .vd-jobref-job strong,
    .vd-dashboard .vd-jobref-type-cell,
    .vd-dashboard .vd-jobref-venue-cell,
    .vd-dashboard .vd-jobref-scheduled {
        font-size: 10px !important;
        line-height: 1 !important;
    }

.vd-dashboard .vd-jobref-job {
    display: block !important;
    min-width: 0 !important;
}

    .vd-dashboard .vd-jobref-job strong {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        color: #273146 !important;
        font-weight: 750 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

.vd-dashboard .vd-jobref-type-cell {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #596579 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.vd-dashboard .vd-jobref-venue-cell {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #596579 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.vd-dashboard .vd-jobref-scheduled {
    justify-self: end !important;
    color: #23975c !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
}

/* More vertical room for four compact upcoming rows. */
.vd-dashboard .vd-jobref-upcoming-title {
    flex-basis: 22px !important;
    height: 22px !important;
    padding-top: 6px !important;
}

.vd-dashboard .vd-jobref-footer {
    flex-basis: 21px !important;
    height: 21px !important;
    padding-top: 4px !important;
}

/* Tablet: keep the five-column row compact. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .vd-dashboard .vd-jobref-upcoming-row {
        grid-template-columns: 60px minmax(85px, 1.15fr) 64px minmax(80px, 1fr) 62px !important;
        gap: 5px !important;
    }
}

/* Mobile: allow horizontal scroll instead of crushing 10px text. */
@media (max-width: 767.98px) {
    .vd-dashboard .vd-jobref-upcoming-list {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    .vd-dashboard .vd-jobref-upcoming-row {
        min-width: 500px;
    }
}

/* =========================================================
   TOP PERFORMING VENUES - WORKING VIEW ALL
   Keeps the same screenshot-style table and scrolls inside the
   existing card when all venues are requested.
   ========================================================= */

.vd-dashboard #dashboardTopPerformingVenuesCard .vd-see-all {
    appearance: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #3978c5 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

    .vd-dashboard #dashboardTopPerformingVenuesCard .vd-see-all:hover {
        color: #245f9f !important;
        text-decoration: underline;
    }

.vd-dashboard #dashboardTopPerformingVenuesCard .vd-top-venues-expanded {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}

    .vd-dashboard #dashboardTopPerformingVenuesCard .vd-top-venues-expanded::-webkit-scrollbar {
        width: 4px;
    }

    .vd-dashboard #dashboardTopPerformingVenuesCard .vd-top-venues-expanded::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background: #cbd3de;
    }

/* =========================================================
   LIVE TRANSACTIONS - APPROVED FEED / NO STATUS COLUMN
   TOP PERFORMING VENUES - SLIGHTLY NARROWER VENUE COLUMN
   ========================================================= */

/*
   Live transactions now use five visible columns:
   Time | Venue | Machine | Amount | Method
   The previous static Status/Approved column is intentionally hidden.
*/
.vd-dashboard #dashboardLiveTransactionsCard .vd-reference-live-head,
.vd-dashboard #dashboardLiveTransactionsCard .vd-reference-live-row {
    grid-template-columns: 34px minmax(52px, .95fr) minmax(52px, .92fr) 54px 48px !important;
    column-gap: 3px !important;
}

/* Give Venue a little less width and free space for the numeric columns. */
.vd-dashboard #dashboardTopPerformingVenuesCard .vd-top-venue-grid {
    grid-template-columns: minmax(66px, 1.12fr) 68px 70px 50px !important;
    column-gap: 3px !important;
}

/* =========================================================
   DASHBOARD PERFORMANCE ROWS + EXPANDED ALERT RAIL
   Row 1: Venue | Terminal | Machine
   Row 2: Movers | Machine Type | empty third slot
   ========================================================= */

/* Same exact 3-column sizing on both rows. */
.vd-dashboard .vd-reference-performance-row,
.vd-dashboard .vd-reference-secondary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

    /* First performance row retains the compact table-card height. */
    .vd-dashboard .vd-reference-performance-row > .card {
        height: 182px !important;
        min-height: 182px !important;
        max-height: 182px !important;
    }

/* Venue now has only Venue | Revenue | Machines. */
.vd-dashboard #dashboardTopPerformingVenuesCard .vd-top-venue-grid {
    grid-template-columns: minmax(62px, 1.05fr) 76px 54px !important;
    column-gap: 4px !important;
}

/* Terminal/Machine performance cards: Name | Revenue. */
.vd-dashboard .vd-performance-device-grid {
    grid-template-columns: minmax(80px, 1fr) 86px !important;
    column-gap: 5px !important;
}

    .vd-dashboard .vd-performance-device-grid > :last-child {
        text-align: right;
    }

/* New second row: same card width as row above, slightly taller. */
.vd-dashboard .vd-reference-secondary-row > .card,
.vd-dashboard .vd-reference-secondary-row > #dashboardBiggestMoversCard {
    height: 208px !important;
    min-height: 208px !important;
    max-height: 208px !important;
}

/* Biggest Movers partial content gets the extra vertical room. */
.vd-dashboard .vd-reference-secondary-row #dashboardBiggestMoversCard,
.vd-dashboard .vd-reference-secondary-row #dashboardBiggestMoversCard .vd-list-body,
.vd-dashboard .vd-reference-secondary-row #dashboardBiggestMoversCard .vd-comparison-movers {
    max-height: 208px !important;
}

    .vd-dashboard .vd-reference-secondary-row #dashboardBiggestMoversCard .vd-comparison-movers {
        overflow-y: auto !important;
    }

/* Revenue by Machine Type uses the slightly taller card too. */
.vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-card-body {
    height: calc(100% - 34px) !important;
}

.vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-donut-chart {
    height: 158px !important;
}

.vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-machine-type-legend {
    max-height: 154px !important;
}

/* =========================================================
   ALERTS - COMPACT ROWS, UP TO 10 / 10 / 10 VISIBLE
   The right rail naturally stretches through the new second row.
   ========================================================= */

.vd-dashboard .vd-reference-alert-body {
    padding: 0 8px !important;
}

.vd-dashboard .vd-reference-alert-group {
    padding: 4px 0 3px !important;
}

.vd-dashboard .vd-reference-alert-group-head {
    margin-bottom: 2px !important;
    font-size: 10px !important;
}

    .vd-dashboard .vd-reference-alert-group-head > :last-child {
        min-width: 17px !important;
        height: 16px !important;
        padding: 0 4px !important;
    }

.vd-dashboard .vd-reference-alert-row {
    min-height: 20px !important;
    padding: 1px 0 !important;
    grid-template-columns: 18px minmax(0, 1fr) 9px !important;
    gap: 4px !important;
}

.vd-dashboard .vd-reference-alert-icon {
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
}

.vd-dashboard .vd-reference-alert-message {
    display: block !important;
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    -webkit-line-clamp: unset !important;
}

.vd-dashboard .vd-reference-alert-arrow {
    font-size: 10px !important;
}

.vd-dashboard .vd-reference-alert-empty {
    padding: 4px 0 !important;
    font-size: 10px !important;
}

/* Desktop: make sure Alerts fills the complete analytics height including
   the newly-added Movers / Machine Type row. */
@media (min-width: 1200px) {
    .vd-dashboard .vd-reference-dashboard-grid {
        align-items: stretch !important;
    }

    .vd-dashboard .vd-reference-alert-column {
        align-self: stretch !important;
        height: 100% !important;
    }

        .vd-dashboard .vd-reference-alert-column > #dashboardAlertsCard {
            height: 100% !important;
            min-height: 100% !important;
            max-height: none !important;
        }
}

/* Tablet keeps two-column wrapping; mobile stacks normally. */
@media (max-width: 1199.98px) {
    .vd-dashboard .vd-reference-performance-row,
    .vd-dashboard .vd-reference-secondary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .vd-dashboard .vd-reference-performance-row,
    .vd-dashboard .vd-reference-secondary-row {
        grid-template-columns: 1fr !important;
    }

        .vd-dashboard .vd-reference-performance-row > .card,
        .vd-dashboard .vd-reference-secondary-row > .card,
        .vd-dashboard .vd-reference-secondary-row > #dashboardBiggestMoversCard {
            height: auto !important;
            min-height: 200px !important;
            max-height: none !important;
        }
}

/* =========================================================
   DASHBOARD TYPOGRAPHY + PERFORMANCE CARD FINAL PASS
   Contract: no dashboard CSS font-size is below 10px.
   ========================================================= */

/* Three performance cards: enough height for at least six records. */
.vd-dashboard .vd-reference-performance-row > .card {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
}

.vd-dashboard .vd-reference-performance-row .vd-reference-table-body {
    overflow: hidden;
}

.vd-dashboard .vd-reference-performance-row .vd-reference-table-row {
    min-height: 25px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

/* Larger View all / Top 6 action on all three performance cards. */
.vd-dashboard #dashboardTopPerformingVenuesCard .vd-see-all,
.vd-dashboard #dashboardTopTerminalsPerformanceCard .vd-see-all,
.vd-dashboard #dashboardTopMachinesPerformanceCard .vd-see-all,
.vd-dashboard .vd-performance-view-all {
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 750 !important;
}

/* Expanded performance lists stay inside the same card. */
.vd-dashboard .vd-performance-list-expanded,
.vd-dashboard #dashboardTopPerformingVenuesCard .vd-top-venues-expanded {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}

/* Second-last row: exactly two equal cards filling the whole available row. */
.vd-dashboard .vd-reference-secondary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

    .vd-dashboard .vd-reference-secondary-row > .card,
    .vd-dashboard .vd-reference-secondary-row > #dashboardBiggestMoversCard {
        width: 100% !important;
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }

    .vd-dashboard .vd-reference-secondary-row #dashboardBiggestMoversCard,
    .vd-dashboard .vd-reference-secondary-row #dashboardBiggestMoversCard .vd-list-body,
    .vd-dashboard .vd-reference-secondary-row #dashboardBiggestMoversCard .vd-comparison-movers {
        max-height: 260px !important;
    }

    .vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-card-body {
        height: calc(100% - 36px) !important;
    }

    .vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-donut-chart {
        height: 205px !important;
    }

    .vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-machine-type-legend {
        max-height: 198px !important;
    }

/* Alerts: larger text while retaining compact rows for 10 / 10 / 10. */
.vd-dashboard .vd-reference-alert-group-head {
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}

.vd-dashboard .vd-reference-alert-row {
    min-height: 23px !important;
    padding: 2px 0 !important;
    grid-template-columns: 20px minmax(0, 1fr) 10px !important;
    gap: 5px !important;
}

.vd-dashboard .vd-reference-alert-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
}

.vd-dashboard .vd-reference-alert-message,
.vd-dashboard .vd-reference-alert-empty {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
}

.vd-dashboard .vd-reference-alert-arrow {
    font-size: 11px !important;
}

/* Keep table headings/readable content at or above 10px. */
.vd-dashboard .vd-reference-table-head,
.vd-dashboard .vd-reference-live-head,
.vd-dashboard .vd-card-header .vd-see-all,
.vd-dashboard .vd-card-header .vd-link-button {
    font-size: 10px !important;
}

/* The three performance cards use a slightly larger action than the general rule. */
.vd-dashboard #dashboardTopPerformingVenuesCard .vd-see-all,
.vd-dashboard #dashboardTopTerminalsPerformanceCard .vd-see-all,
.vd-dashboard #dashboardTopMachinesPerformanceCard .vd-see-all {
    font-size: 12px !important;
}

@media (max-width: 1199.98px) {
    .vd-dashboard .vd-reference-secondary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .vd-dashboard .vd-reference-secondary-row {
        grid-template-columns: 1fr !important;
    }

        .vd-dashboard .vd-reference-performance-row > .card,
        .vd-dashboard .vd-reference-secondary-row > .card,
        .vd-dashboard .vd-reference-secondary-row > #dashboardBiggestMoversCard {
            height: auto !important;
            min-height: 220px !important;
            max-height: none !important;
        }
}

/* =========================================================
   REVENUE BY MACHINE TYPE - PREVENT DONUT FROM BEING CLIPPED
   The old chart-pane was still fixed at 154px while the donut
   had been increased to 205px, so the lower part was hidden.
   ========================================================= */

.vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-machine-type-layout {
    height: 100% !important;
    align-items: center !important;
    overflow: visible !important;
}

.vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-machine-type-chart-pane {
    height: 205px !important;
    min-height: 205px !important;
    overflow: visible !important;
}

    .vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-machine-type-chart-pane .vd-donut-chart,
    .vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-donut-chart {
        width: 100% !important;
        height: 205px !important;
        min-height: 205px !important;
        overflow: visible !important;
    }

.vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .highcharts-container,
.vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .highcharts-root {
    overflow: visible !important;
}

@media (max-width: 767.98px) {
    .vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-machine-type-chart-pane,
    .vd-dashboard .vd-reference-secondary-row .vd-reference-machine-type-card .vd-donut-chart {
        height: 190px !important;
        min-height: 190px !important;
    }
}

/* =========================================================
   REVENUE BY HOUR - KEEP "DAYS" / Y-AXIS LABELS VISIBLE
   Gives the left label column a little more room so the first
   character cannot be clipped by the heatmap container.
   ========================================================= */

.vd-dashboard .vd-reference-heatmap-card .vd-hour-chart {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    column-gap: 5px !important;
}

.vd-dashboard .vd-reference-heatmap-card .vd-hour-corner {
    justify-content: flex-start !important;
    padding-left: 5px !important;
    padding-right: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.vd-dashboard .vd-reference-heatmap-card .vd-hour-y-axis {
    overflow: visible !important;
}

.vd-dashboard .vd-reference-heatmap-card .vd-hour-y-label {
    padding-left: 5px !important;
    padding-right: 4px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

/* =========================================================
   JOBS OVERVIEW - PENDING + SCHEDULED LIST
   The period dropdown filters counts only. The job schedule list
   is independent and can contain all three unfinished job types.
   ========================================================= */

/* Scheduled keeps the existing green status. */
.vd-dashboard .vd-jobref-scheduled {
    color: #23975c !important;
}

    /* Overdue unfinished jobs are clearly marked red. */
    .vd-dashboard .vd-jobref-scheduled.vd-jobref-pending,
    .vd-dashboard .vd-jobref-pending {
        color: #dc3545 !important;
        font-weight: 800 !important;
    }

.vd-dashboard .vd-jobref-upcoming-row-pending {
    background: rgba(220, 53, 69, .035) !important;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-status-pending {
    color: #dc3545 !important;
    font-weight: 800 !important;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-row-pending {
    background: rgba(220, 53, 69, .035) !important;
}

    #dashboardUpcomingJobsModal .vd-upcoming-all-row-pending:hover {
        background: rgba(220, 53, 69, .065) !important;
    }

/* =========================================================
   UPCOMING JOBS DETAILS MODAL - WHITE TITLE
   ========================================================= */
#dashboardUpcomingJobsModal .modal-title {
    color: #fff !important;
}

/* =========================================================
   PENDING JOBS - ENGINEERS COLUMN
   Venue is removed from the Pending Jobs card/detail display.
   ========================================================= */

.vd-dashboard .vd-jobref-engineer-cell {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #596579 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-engineers {
    min-width: 0;
    overflow: hidden;
    font-size: 10px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Keep Pending Jobs details title white. */
#dashboardUpcomingJobsModal .modal-title {
    color: #fff !important;
}

/* Engineers replaces Venue in the Pending Jobs card/detail table. */
.vd-dashboard .vd-jobref-date strong,
.vd-dashboard .vd-jobref-date small,
.vd-dashboard .vd-jobref-job strong,
.vd-dashboard .vd-jobref-type-cell,
.vd-dashboard .vd-jobref-engineer-cell,
.vd-dashboard .vd-jobref-scheduled {
    font-size: 10px !important;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-date,
#dashboardUpcomingJobsModal .vd-upcoming-all-job,
#dashboardUpcomingJobsModal .vd-upcoming-all-engineers,
#dashboardUpcomingJobsModal .vd-upcoming-all-type,
#dashboardUpcomingJobsModal .vd-upcoming-all-status {
    min-width: 0;
    overflow: hidden;
    font-size: 11px !important;
}

#dashboardUpcomingJobsModal .vd-upcoming-all-head,
#dashboardUpcomingJobsModal .vd-upcoming-all-row {
    grid-template-columns: 150px minmax(180px, 1.35fr) minmax(180px, 1.25fr) 90px 90px !important;
}
/* ============================================================
   GLOBAL VN GRID - FINAL TILE / CARD DESIGN
   Theme Color: #5E5AD3
   ============================================================ */


/* ============================================================
   WRAPPER
   ============================================================ */

/*.vn-grid-wrapper {
    width: 100%;
    padding: 5px 7px 7px;
    background: #f8f9fc;
    border: 1px solid #e7e9f1;
    border-radius: 8px;
    overflow: visible;
}*/
.vn-grid-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 5px 7px 7px;
    background: #f8f9fc;
    border: 1px solid #e7e9f1;
    border-radius: 8px;
    overflow: visible;
}

/* ============================================================
   TABLE
   ============================================================ */

.vn-grid-table {
    width: 100%;
    margin: 0 !important;
    /*
        Separate rows so every row looks like a tile.
        4px = compact gap between tiles.
    */
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    background: transparent !important;
    color: #25324b;
    font-size: 12px;
}


    /* ============================================================
   HEADER
   ============================================================ */

    .vn-grid-table thead th {
        position: relative;
        background: #E3E2F6 !important;
        color: #29265f !important;
        font-size: 11px;
        font-weight: 700 !important;
        line-height: 1.2;
        padding: 10px 12px !important;
        border: 0 !important;
        border-top: 1px solid #d5d3ef !important;
        border-bottom: 1px solid #d5d3ef !important;
        white-space: nowrap;
        vertical-align: middle;
    }


        /* Header first column */

        .vn-grid-table thead th:first-child {
            padding-left: 15px !important;
            border-left: 1px solid #d5d3ef !important;
            border-top-left-radius: 6px;
            border-bottom-left-radius: 6px;
        }


        /* Header last column */

        .vn-grid-table thead th:last-child {
            padding-right: 15px !important;
            border-right: 1px solid #d5d3ef !important;
            border-top-right-radius: 6px;
            border-bottom-right-radius: 6px;
        }


        /* ============================================================
   HEADER VERTICAL DIVIDERS
   Short line - does not touch top/bottom
   ============================================================ */

        .vn-grid-table thead th:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 7px;
            bottom: 7px;
            width: 1px;
            background: #c9c7e5;
            pointer-events: none;
        }


    /* ============================================================
   BODY ROWS
   ============================================================ */

    .vn-grid-table tbody tr {
        position: relative;
        z-index: 1;
        /*
        Do NOT use filter: drop-shadow().
        It creates stacking contexts and breaks dropdown menus.
    */
        transition: background-color .15s ease, box-shadow .15s ease;
    }


        /* Normal hover row above other rows */

        .vn-grid-table tbody tr:hover {
            z-index: 2;
        }


        /* Row containing an open dropdown must be above all tiles */

        .vn-grid-table tbody tr:has(.dropdown-menu.show),
        .vn-grid-table tbody tr:has(.dropdown.show) {
            z-index: 1000 !important;
        }


    /* ============================================================
   BODY CELLS
   ============================================================ */

    .vn-grid-table tbody td {
        position: relative;
        background: #fff !important;
        color: #263653;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.3;
        /*
        Reduced from previous design
        to make rows shorter/compact.
    */
        padding: 8px 12px !important;
        vertical-align: middle !important;
        border: 0 !important;
        border-top: 1px solid #e5e7ef !important;
        border-bottom: 1px solid #e5e7ef !important;
    }


        /* ============================================================
   FIRST CELL - LEFT SIDE OF TILE
   ============================================================ */

        .vn-grid-table tbody td:first-child {
            padding-left: 15px !important;
            border-left: 1px solid #e5e7ef !important;
            border-top-left-radius: 6px;
            border-bottom-left-radius: 6px;
        }


        /* ============================================================
   LAST CELL - RIGHT SIDE OF TILE
   ============================================================ */

        .vn-grid-table tbody td:last-child {
            padding-right: 15px !important;
            border-right: 1px solid #e5e7ef !important;
            border-top-right-radius: 6px;
            border-bottom-right-radius: 6px;
        }


        /* ============================================================
   BODY VERTICAL DIVIDERS
   Short line - does not touch tile top/bottom
   ============================================================ */

        .vn-grid-table tbody td:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 7px;
            bottom: 7px;
            width: 1px;
            background: #e1e4ec;
            pointer-events: none;
        }


    /* ============================================================
   ROW HOVER
   ============================================================ */

    .vn-grid-table tbody tr:hover td {
        background: #FBFAFF !important;
        border-top-color: #DAD8F1 !important;
        border-bottom-color: #DAD8F1 !important;
    }

        .vn-grid-table tbody tr:hover td:first-child {
            border-left-color: #DAD8F1 !important;
        }

        .vn-grid-table tbody tr:hover td:last-child {
            border-right-color: #DAD8F1 !important;
        }

        .vn-grid-table tbody tr:hover td:not(:last-child)::after {
            background: #d8dcef;
        }


    /* ============================================================
   REMOVE BOOTSTRAP STRIPING
   ============================================================ */

    .vn-grid-table.table-striped > tbody > tr:nth-of-type(odd) > * {
        --bs-table-accent-bg: transparent !important;
        --bs-table-striped-bg: transparent !important;
        background: #fff !important;
    }


    /* ============================================================
   BADGES
   ============================================================ */

    .vn-grid-table .badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 7px;
        border-radius: 4px;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }


    /* ============================================================
   ACTION DROPDOWN
   ============================================================ */

    .vn-grid-table .dropdown {
        position: relative;
        z-index: auto;
    }


        /* Actions button */

        .vn-grid-table .dropdown > button,
        .vn-grid-table .dropdown-toggle {
            min-height: 27px;
            padding: 3px 9px;
            background: #fff;
            border: 1px solid #5E5AD3;
            border-radius: 5px;
            color: #5E5AD3;
            font-size: 10px;
            font-weight: 500;
            box-shadow: none !important;
        }


            /* Actions hover */

            .vn-grid-table .dropdown > button:hover,
            .vn-grid-table .dropdown-toggle:hover,
            .vn-grid-table .dropdown > button:focus,
            .vn-grid-table .dropdown-toggle:focus {
                background: #F2F1FC;
                border-color: #5E5AD3;
                color: #504CBF;
                box-shadow: none !important;
            }


    /* ============================================================
   DROPDOWN MENU
   ============================================================ */

    .vn-grid-table .dropdown-menu {
        z-index: 1100 !important;
        min-width: 180px;
        padding: 5px;
        background: #fff;
        border: 1px solid #e4e7ee;
        border-radius: 6px;
        box-shadow: 0 8px 24px rgba(28, 38, 62, .14);
    }


    /* Dropdown items */

    .vn-grid-table .dropdown-item {
        padding: 6px 9px;
        border-radius: 4px;
        font-size: 11px;
    }

        .vn-grid-table .dropdown-item:hover {
            background: #F5F4FC;
        }


    /* ============================================================
   LINKS
   ============================================================ */

    .vn-grid-table a:not(.dropdown-item):not(.btn) {
        text-decoration: none;
    }


    /* ============================================================
   MUTED TEXT
   ============================================================ */

    .vn-grid-table .text-muted {
        color: #8992a5 !important;
    }


    /* ============================================================
   EMPTY ROW
   ============================================================ */

    .vn-grid-table tbody td.text-center {
        padding: 20px 12px !important;
    }


    /* ============================================================
   SORTABLE COLUMN SUPPORT
   If/when vn-grid-sortable is added
   ============================================================ */

    .vn-grid-table thead th.vn-grid-sortable {
        cursor: pointer;
        user-select: none;
    }

        .vn-grid-table thead th.vn-grid-sortable:hover {
            background: #DAD8F1 !important;
        }


/* ============================================================
   TABLET / SMALL DESKTOP
   Horizontal scroll when table becomes wider than viewport
   ============================================================ */

@media (max-width: 1199.98px) {

    .vn-grid-wrapper {
        padding: 5px;
        /*
            Required for wide tables on smaller screens.
        */
        overflow-x: auto;
        overflow-y: auto;
    }

    .vn-grid-table {
        border-spacing: 0 4px !important;
    }

        .vn-grid-table thead th {
            padding: 9px 10px !important;
            font-size: 10px;
        }

        .vn-grid-table tbody td {
            padding: 7px 10px !important;
            font-size: 10px;
        }

        .vn-grid-table thead th:not(:last-child)::after {
            top: 6px;
            bottom: 6px;
        }

        .vn-grid-table tbody td:not(:last-child)::after {
            top: 6px;
            bottom: 6px;
        }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .vn-grid-wrapper {
        padding: 4px;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vn-grid-table {
        min-width: 750px;
        /*
            Slightly smaller tile gap on mobile.
        */
        border-spacing: 0 3px !important;
        font-size: 10px;
    }

        .vn-grid-table thead th {
            padding: 8px 9px !important;
            font-size: 10px;
        }

        .vn-grid-table tbody td {
            padding: 6px 9px !important;
            font-size: 10px;
            line-height: 1.25;
        }

            .vn-grid-table thead th:first-child,
            .vn-grid-table tbody td:first-child {
                padding-left: 11px !important;
            }

            .vn-grid-table thead th:last-child,
            .vn-grid-table tbody td:last-child {
                padding-right: 11px !important;
            }

        .vn-grid-table thead th:not(:last-child)::after {
            top: 5px;
            bottom: 5px;
        }

        .vn-grid-table tbody td:not(:last-child)::after {
            top: 5px;
            bottom: 5px;
        }

        .vn-grid-table .badge {
            padding: 3px 6px;
            font-size: 9px;
        }

        .vn-grid-table .dropdown > button,
        .vn-grid-table .dropdown-toggle {
            min-height: 25px;
            padding: 2px 7px;
            font-size: 9px;
        }

        .vn-grid-table .dropdown-menu {
            min-width: 160px;
        }
}
/* ============================================================
   GLOBAL GRID PAGINATION
   ============================================================ */

.vn-grid-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 58px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}


/* ============================================================
   LEFT
   ============================================================ */

.vn-grid-pagination-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

    .vn-grid-pagination-left nav {
        max-width: 100%;
    }

.vn-grid-pagination .pagination {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
}

.vn-grid-pagination .page-item {
    margin: 0;
}

.vn-grid-pagination .page-link {
    min-width: 36px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: #fff;
    border-color: #e2e6ed;
    color: #273651;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none !important;
}

.vn-grid-pagination .page-item:first-child .page-link,
.vn-grid-pagination .page-item:last-child .page-link {
    min-width: auto;
    padding-left: 12px;
    padding-right: 12px;
}

.vn-grid-pagination .page-item.active .page-link {
    background: #635bff;
    border-color: #635bff;
    color: #fff;
    font-weight: 700;
}

.vn-grid-pagination .page-link:hover {
    background: #f5f4ff;
    border-color: #817aff;
    color: #554de7;
}

.vn-grid-pagination .page-item.disabled .page-link {
    background: #fff;
    border-color: #e7eaf0;
    color: #a0a7b5;
}


/* ============================================================
   CENTER
   ============================================================ */

.vn-grid-pagination-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
}

.vn-grid-record-info {
    color: #667085;
    font-size: 11px;
    font-weight: 400;
}

    .vn-grid-record-info strong {
        color: #344054;
        font-weight: 600;
    }


/* ============================================================
   RIGHT
   ============================================================ */

.vn-grid-pagination-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

.vn-grid-page-size-form,
.vn-grid-jump-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

.vn-grid-pagination-label {
    margin: 0;
    color: #667085;
    font-size: 11px;
    font-weight: 500;
}

.vn-grid-page-size {
    width: 68px;
    min-width: 68px;
    height: 32px;
    font-size: 11px;
    cursor: pointer;
}

.vn-grid-jump-input {
    width: 58px;
    min-width: 58px;
    height: 32px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 11px;
    text-align: center;
}

.vn-grid-jump-btn {
    height: 32px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
}


/* ============================================================
   TABLE + PAGINATION JOIN
   ============================================================ */

/*
   When pagination immediately follows the grid,
   visually connect them as one component.
*/

.vn-grid-wrapper:has(+ .vn-grid-pagination) {
    border-radius: 8px 8px 0 0;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

    .vn-grid-pagination {
        grid-template-columns: 1fr 1fr;
        gap: 10px 15px;
    }

    .vn-grid-pagination-left {
        grid-column: 1;
        grid-row: 1;
    }

    .vn-grid-pagination-right {
        grid-column: 2;
        grid-row: 1;
    }

    .vn-grid-pagination-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .vn-grid-pagination {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .vn-grid-pagination-left {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 2px;
    }

        .vn-grid-pagination-left nav {
            width: max-content;
            max-width: none;
        }

    .vn-grid-pagination .pagination {
        width: max-content;
    }

    .vn-grid-pagination-center {
        width: 100%;
        order: 2;
        justify-content: center;
    }

    .vn-grid-pagination-right {
        width: 100%;
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .vn-grid-page-size-form,
    .vn-grid-jump-form {
        justify-content: center;
    }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .vn-grid-pagination .page-link {
        min-width: 31px;
        height: 32px;
        padding: 4px 7px;
        font-size: 11px;
    }

    .vn-grid-pagination .page-item:first-child .page-link,
    .vn-grid-pagination .page-item:last-child .page-link {
        padding-left: 8px;
        padding-right: 8px;
    }

    .vn-grid-pagination-right {
        flex-direction: column;
    }

    .vn-grid-page-size-form,
    .vn-grid-jump-form {
        width: 100%;
        justify-content: center;
    }
}

img.img-dart-calib {
    width: 300px;
}

/* ============================================================
   GLOBAL SEARCH / FILTER / ACTION TOOLBAR
   TILE / CARD DESIGN
   Theme: #5E5AD3
   ============================================================ */

.vn-search-toolbar {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(29, 39, 62, .035);
    margin-bottom: 10px !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}


    /* Optional very subtle hover */

    .vn-search-toolbar:hover {
        border-color: #dadcf0;
        box-shadow: 0 3px 8px rgba(29, 39, 62, .045);
    }


/* ============================================================
   LEFT SIDE
   Search + Filters
   ============================================================ */

.vn-search-toolbar-left {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 12px;
    min-width: 0;
}


/* ============================================================
   SEARCH BOX
   ============================================================ */

.vn-search-box {
    position: relative;
    width: 400px;
    max-width: 100%;
}


    .vn-search-box .form-control {
        width: 100%;
        height: 40px;
        padding: 0 14px 0 40px;
        background: #fff;
        border: 1px solid #e2e5ed;
        border-radius: 6px;
        color: #263653;
        font-size: 12px;
        box-shadow: none !important;
        transition: border-color .15s ease, box-shadow .15s ease;
    }


        .vn-search-box .form-control::placeholder {
            color: #929aab;
        }


        .vn-search-box .form-control:focus {
            border-color: #aaa7e8;
            box-shadow: 0 0 0 2px rgba(94, 90, 211, .06) !important;
        }


/* Search icon */

.vn-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #7f8799;
    font-size: 13px;
    pointer-events: none;
}

/* ============================================================
   FILTER BUTTON - SAME BORDER AS SEARCH INPUT
   ============================================================ */

.vn-filter-button {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    background: #fff !important;
    border: 1px solid #e2e5ed !important;
    border-radius: 6px;
    color: #4a5264 !important;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none !important;
}

    .vn-filter-button i {
        color: #5E5AD3 !important;
        font-size: 12px;
    }

    .vn-filter-button:hover,
    .vn-filter-button:focus {
        background: #f8f8fc !important;
        border-color: #aaa7e8 !important;
        color: #5E5AD3 !important;
        box-shadow: 0 0 0 2px rgba(94, 90, 211, .05) !important;
    }

        .vn-filter-button:hover i,
        .vn-filter-button:focus i {
            color: #5E5AD3 !important;
        }

/* ============================================================
   RIGHT SIDE
   Add / Excel / PDF / Print / Refresh
   ============================================================ */

.vn-search-toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
    white-space: nowrap;
}


/* ============================================================
   ALL ACTION BUTTONS
   ============================================================ */

.vn-search-toolbar .vn-toolbar-action {
    height: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none !important;
}


    .vn-search-toolbar .vn-toolbar-action i {
        font-size: 11px;
    }


/* ============================================================
   FILLED BUTTONS
   Add / Excel / PDF / Print
   ============================================================ */

.vn-search-toolbar .btn-primary {
    background: #5E5AD3 !important;
    border: 1px solid #5E5AD3 !important;
    color: #fff !important;
}


    .vn-search-toolbar .btn-primary:hover,
    .vn-search-toolbar .btn-primary:focus {
        background: #504CC2 !important;
        border-color: #504CC2 !important;
        color: #fff !important;
        box-shadow: none !important;
    }


/* ============================================================
   REFRESH
   Outline like reference image
   ============================================================ */

.vn-search-toolbar .vn-refresh-button {
    background: #fff !important;
    border: 1px solid #5E5AD3 !important;
    color: #5E5AD3 !important;
}


    .vn-search-toolbar .vn-refresh-button:hover,
    .vn-search-toolbar .vn-refresh-button:focus {
        background: #F4F3FC !important;
        border-color: #5E5AD3 !important;
        color: #504CC2 !important;
        box-shadow: none !important;
    }


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

    .vn-search-toolbar {
        flex-wrap: wrap;
        gap: 10px 15px;
        padding: 10px 12px;
    }


    .vn-search-toolbar-left {
        flex: 1 1 400px;
    }


    .vn-search-toolbar-right {
        flex: 0 1 auto;
        flex-wrap: wrap;
    }


    .vn-search-box {
        width: 340px;
    }
}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .vn-search-toolbar {
        align-items: stretch;
    }


    .vn-search-toolbar-left {
        width: 100%;
        flex: 1 1 100%;
    }


    .vn-search-toolbar-right {
        width: 100%;
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }


    .vn-search-box {
        width: min(100%, 400px);
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .vn-search-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-height: 0;
        padding: 9px;
        border-radius: 6px;
    }


    .vn-search-toolbar-left {
        width: 100%;
        gap: 6px;
    }


    .vn-search-box {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }


        .vn-search-box .form-control {
            height: 38px;
        }


    .vn-filter-button {
        height: 38px;
    }


    .vn-search-toolbar-right {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 5px;
        flex-wrap: wrap;
    }


    .vn-search-toolbar .vn-toolbar-action {
        height: 36px;
        min-height: 36px;
        padding: 0 10px;
        font-size: 10px;
    }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .vn-search-toolbar {
        padding: 8px;
    }


    .vn-search-toolbar-left {
        display: flex;
        align-items: center;
    }


    .vn-search-toolbar .vn-toolbar-action {
        padding: 0 9px;
    }
}



/* ============================================================
   GENERIC GRID SORTING
   ============================================================ */

.vn-grid-table thead th.vn-grid-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 30px !important;
}

    .vn-grid-table thead th.vn-grid-sortable:hover {
        background: #DAD8F1 !important;
    }


/* Sorting icon container */

.vn-sort-indicator {
    position: absolute;
    right: 11px;
    top: 50%;
    width: 9px;
    height: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}


    /* ASC arrow */

    .vn-sort-indicator::before {
        content: "▲";
        position: absolute;
        left: 0;
        top: -1px;
        font-size: 6px;
        line-height: 1;
        color: #aaa8c8;
    }


    /* DESC arrow */

    .vn-sort-indicator::after {
        content: "▼";
        position: absolute;
        left: 0;
        bottom: -1px;
        font-size: 6px;
        line-height: 1;
        color: #aaa8c8;
    }


/* Active ASC */

.vn-grid-table thead th.vn-grid-sortable[data-sort-dir="asc"]
.vn-sort-indicator::before {
    color: #5E5AD3;
}


/* Active DESC */

.vn-grid-table thead th.vn-grid-sortable[data-sort-dir="desc"]
.vn-sort-indicator::after {
    color: #5E5AD3;
}


/* ============================================================
   GLOBAL VN GRID PAGINATION - TILE DESIGN
   ============================================================ */

.vn-grid-pagination {
    width: 100%;
    min-height: 62px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7ef;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(29, 39, 62, .035);
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .vn-grid-pagination:hover {
        border-color: #dadcf0;
        box-shadow: 0 3px 8px rgba(29, 39, 62, .045);
    }


    /* ============================================================
   REMOVE OLD + / PSEUDO ELEMENT
   ============================================================ */

    .vn-grid-pagination::before,
    .vn-grid-pagination::after,
    .vn-grid-pagination-right::before,
    .vn-grid-pagination-right::after {
        content: none !important;
        display: none !important;
    }


/* ============================================================
   LEFT
   ============================================================ */

.vn-grid-pagination-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

    .vn-grid-pagination-left nav {
        margin: 0;
    }

.vn-grid-pagination .pagination {
    display: flex;
    align-items: center;
    margin: 0 !important;
    gap: 0;
}


/* ============================================================
   PAGE BUTTONS
   ============================================================ */

.vn-grid-pagination .page-item {
    margin: 0;
}

.vn-grid-pagination .page-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    background: #fff;
    border: 1px solid #e2e5ed;
    color: #37425a;
    font-size: 11px;
    font-weight: 500;
    box-shadow: none !important;
}

.vn-grid-pagination .page-item:first-child .page-link {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.vn-grid-pagination .page-item:last-child .page-link {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.vn-grid-pagination .page-link:hover {
    background: #f4f3fc;
    border-color: #cbc9ed;
    color: #5E5AD3;
}


/* ACTIVE PAGE */

.vn-grid-pagination .page-item.active .page-link {
    background: #5E5AD3 !important;
    border-color: #5E5AD3 !important;
    color: #fff !important;
    font-weight: 600;
}


/* DISABLED */

.vn-grid-pagination .page-item.disabled .page-link {
    background: #fafbfc;
    border-color: #e7e9ef;
    color: #a4abb8;
    cursor: default;
}


/* ============================================================
   CENTER
   ============================================================ */

.vn-grid-pagination-center {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.vn-grid-record-info {
    color: #667085;
    font-size: 11px;
    font-weight: 400;
}

    .vn-grid-record-info strong {
        color: #344054;
        font-weight: 600;
    }


/* ============================================================
   RIGHT
   ============================================================ */

.vn-grid-pagination-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}


/* ============================================================
   PAGE SIZE
   ============================================================ */

.vn-grid-page-size-form {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.vn-grid-pagination-label {
    margin: 0;
    color: #667085;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.vn-grid-page-size {
    width: 78px;
    height: 38px;
    padding-left: 10px;
    background-color: #fff;
    border: 1px solid #e2e5ed;
    border-radius: 5px;
    color: #344054;
    font-size: 11px;
    box-shadow: none !important;
}

    .vn-grid-page-size:focus {
        border-color: #aaa7e8;
        box-shadow: 0 0 0 2px rgba(94, 90, 211, .06) !important;
    }


/* ============================================================
   JUMP TO PAGE
   ============================================================ */

.vn-grid-jump-form {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.vn-grid-jump-input {
    width: 70px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid #e2e5ed;
    border-radius: 5px;
    color: #344054;
    font-size: 11px;
    text-align: center;
    box-shadow: none !important;
}

    .vn-grid-jump-input:focus {
        border-color: #aaa7e8;
        box-shadow: 0 0 0 2px rgba(94, 90, 211, .06) !important;
    }

.vn-grid-jump-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #fff !important;
    border: 1px solid #5E5AD3 !important;
    border-radius: 5px;
    color: #5E5AD3 !important;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none !important;
}

    .vn-grid-jump-btn:hover,
    .vn-grid-jump-btn:focus {
        background: #F4F3FC !important;
        border-color: #5E5AD3 !important;
        color: #504CC2 !important;
        box-shadow: none !important;
    }


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

    .vn-grid-pagination {
        grid-template-columns: 1fr auto;
        gap: 10px 15px;
        padding: 10px 12px;
    }

    .vn-grid-pagination-left {
        grid-column: 1;
        grid-row: 1;
    }

    .vn-grid-pagination-center {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .vn-grid-pagination-right {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .vn-grid-pagination {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-height: 0;
        padding: 9px;
        border-radius: 6px;
    }

    .vn-grid-pagination-left {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .vn-grid-pagination-center {
        width: 100%;
        justify-content: flex-start;
    }

    .vn-grid-pagination-right {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .vn-grid-pagination .page-link {
        min-width: 34px;
        height: 35px;
        padding: 0 9px;
        font-size: 10px;
    }

    .vn-grid-page-size,
    .vn-grid-jump-input,
    .vn-grid-jump-btn {
        height: 36px;
    }

    .vn-grid-pagination-label,
    .vn-grid-record-info {
        font-size: 10px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .vn-grid-pagination {
        padding: 8px;
    }

    .vn-grid-pagination-right {
        align-items: flex-start;
        flex-direction: column;
    }

    .vn-grid-page-size-form,
    .vn-grid-jump-form {
        width: 100%;
        justify-content: flex-start;
    }

    /* =========================
   GENERIC RESPONSIVE TABLE
   ========================= */

    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        /* Desktop / Tablet */
        .table-responsive table {
            width: 100% !important;
            max-width: 100%;
            table-layout: auto;
        }

            .table-responsive table th,
            .table-responsive table td {
                vertical-align: middle;
                white-space: normal;
                word-break: normal;
                overflow-wrap: break-word;
            }

            /* Never break badges */
            .table-responsive table .badge {
                white-space: nowrap !important;
            }

            /* Never break buttons */
            .table-responsive table .btn,
            .table-responsive table .dropdown {
                white-space: nowrap !important;
            }

    /* Medium screens */
    @media (max-width: 1400px) {
        .table-responsive table th,
        .table-responsive table td {
            padding: 6px;
            font-size: 12px;
        }
    }

    /* Mobile */
    @media (max-width: 767.98px) {
        .table-responsive {
            overflow-x: auto !important;
        }

            .table-responsive table {
                width: max-content !important;
                min-width: 100%;
                table-layout: auto !important;
            }

                .table-responsive table th,
                .table-responsive table td {
                    padding: 5px 6px;
                    font-size: 10px;
                    white-space: normal;
                    min-width: 90px;
                    max-width: 180px;
                    overflow-wrap: break-word;
                    word-break: normal;
                }

                    /* Actions should not become very wide */
                    .table-responsive table th:last-child,
                    .table-responsive table td:last-child {
                        min-width: 60px;
                        width: 60px;
                    }

                /* Badges stay complete */
                .table-responsive table .badge {
                    white-space: nowrap !important;
                    display: inline-block;
                }
    }
}
/* ============================================================
   SEARCH CLEAR BUTTON
   ============================================================ */

.vn-search-box .form-control {
    padding-right: 40px !important;
}

.vn-search-clear {
    position: absolute;
    top: 50%;
    right: 11px;
    z-index: 3;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}

.vn-search-box input:not(:placeholder-shown) ~ .vn-search-clear {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vn-search-clear:hover,
.vn-search-clear:focus {
    background: rgba(220, 53, 69, .08);
    color: #b02a37;
    outline: none;
}


.holiday-summary-card {
    background: #fff;
    border: 1px solid #e8ebf2;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(24,39,75,.05);
    overflow: hidden
}

.holiday-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px
}

.holiday-summary-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.holiday-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--bs-primary);
    font-size: 27px;
    flex-shrink: 0
}

.holiday-summary-title {
    margin: 0;
    color: #172b4d;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2
}

.holiday-summary-subtitle {
    margin: 5px 0 0;
    color: #7b8497;
    font-size: 13px
}

.holiday-legend {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    color: #596579;
    font-size: 12px
}

.holiday-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap
}

.holiday-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%
}

.holiday-legend-good {
    background: #36b44a
}

.holiday-legend-low {
    background: #ff9800
}

.holiday-legend-critical {
    background: #ef2929
}

.holiday-table-wrapper {
    margin: 0 24px 22px;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    overflow: auto
}

.holiday-summary-table {
    width: 100%;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    min-width: 1050px
}

    .holiday-summary-table thead th {
        background: #fafbfe !important;
        color: #24395d !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid #e5e9f0 !important;
        border-right: 1px solid #edf0f5 !important;
        vertical-align: middle !important;
        white-space: nowrap
    }

        .holiday-summary-table thead th:last-child {
            border-right: 0 !important
        }

    .holiday-summary-table tbody td {
        padding: 13px 16px !important;
        border-bottom: 1px solid #edf0f5 !important;
        border-right: 1px solid #f0f2f6 !important;
        color: #344563;
        font-size: 13px;
        vertical-align: middle !important;
        background: #fff
    }

        .holiday-summary-table tbody td:last-child {
            border-right: 0 !important
        }

    .holiday-summary-table tbody tr:last-child td {
        border-bottom: 0 !important
    }

    .holiday-summary-table tbody tr:hover td {
        background: #fbfcff
    }

.holiday-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px
}

.holiday-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--bs-primary);
    font-size: 21px;
    flex-shrink: 0;
    border: 3px solid #f5f8ff
}

.holiday-user-name {
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25
}

.holiday-cell-value {
    display: flex;
    align-items: center;
    gap: 8px
}

    .holiday-cell-value i {
        color: var(--bs-primary);
        font-size: 18px;
        flex-shrink: 0
    }

.holiday-days {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    padding: 7px 18px;
    border-radius: 22px;
    background: #eaf9e9;
    color: #31a841;
    line-height: 1.05
}

.holiday-days-number {
    font-size: 18px;
    font-weight: 800
}

.holiday-days-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px
}

.holiday-notes {
    max-width: 270px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45
}

.holiday-actions {
    text-align: center;
    white-space: nowrap
}

.holiday-pagination {
    padding: 0 24px 18px
}

@media(max - width:767.98px) {
    .holiday-summary-header {
        padding: 16px;
        align-items: flex-start;
        flex-direction: column
    }

    .holiday-summary-icon {
        width: 42px;
        height: 42px;
        font-size: 23px
    }

    .holiday-summary-title {
        font-size: 18px
    }

    .holiday-legend {
        gap: 12px
    }

    .holiday-table-wrapper {
        margin: 0 10px 15px
    }

    .holiday-summary-table thead th, .holiday-summary-table tbody td {
        padding: 10px 12px !important
    }

    .holiday-pagination {
        padding: 0 10px 15px
    }
}

/* Active sorted column - header */
.vn-grid-table thead th.vn-active-sort-column {
    background: #dfe5f5 !important;
}

/* Active sorted column - body */
.vn-grid-table tbody td.vn-active-sort-column {
    background: #eef2fb !important;
}

/* Keep highlight when row is hovered */
.vn-grid-table tbody tr:hover td.vn-active-sort-column {
    background: #e7ecf8 !important;
}

/* Active sort arrow remains prominent */
.vn-grid-table thead th.vn-active-sort-column[data-sort-dir="asc"] .vn-sort-indicator::before {
    color: #5E5AD3;
}

.vn-grid-table thead th.vn-active-sort-column[data-sort-dir="desc"] .vn-sort-indicator::after {
    color: #5E5AD3;
}

/* Fancy Box */
.job-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 75px);
    gap: 8px;
}

.job-gallery-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
}


/* ============================================================
   DARK MODE - CUSTOM COMPONENTS
   ============================================================ */

html[data-bs-theme="dark"] #dynamicTabs {
    border-bottom-color: #2b3242;
}

    html[data-bs-theme="dark"] #dynamicTabs .nav-link {
        color: #9da7ba;
    }

        html[data-bs-theme="dark"] #dynamicTabs .nav-link:hover {
            color: #aaa7ff;
            background: #1c2130;
        }

        html[data-bs-theme="dark"] #dynamicTabs .nav-link.active,
        html[data-bs-theme="dark"] #dynamicTabs.app-main-tabs .nav-link.active {
            color: #b8b5ff !important;
            background: #202536 !important;
            box-shadow: inset 0 -3px 0 #7772ff;
        }

    html[data-bs-theme="dark"] #dynamicTabs .tab-menu-icon,
    html[data-bs-theme="dark"] #dynamicTabs.app-main-tabs .tab-menu-icon {
        color: #8e8ae8 !important;
    }

    html[data-bs-theme="dark"] #dynamicTabs .nav-link.active .tab-menu-icon,
    html[data-bs-theme="dark"] #dynamicTabs .nav-link:hover .tab-menu-icon {
        color: #aaa7ff !important;
    }

html[data-bs-theme="dark"] .vn-search-toolbar {
    background: #151a26;
    border-color: #2a3242;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
}

    html[data-bs-theme="dark"] .vn-search-toolbar:hover {
        border-color: #343d50;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
    }

html[data-bs-theme="dark"] .vn-search-box .form-control {
    background: #111722;
    border-color: #30394b;
    color: #e1e6ef;
}

    html[data-bs-theme="dark"] .vn-search-box .form-control::placeholder {
        color: #7f899b;
    }

    html[data-bs-theme="dark"] .vn-search-box .form-control:focus {
        background: #111722;
        border-color: #7772ff;
        color: #fff;
        box-shadow: 0 0 0 2px rgba(119, 114, 255, .12) !important;
    }

html[data-bs-theme="dark"] .vn-search-icon {
    color: #8d96a8;
}

html[data-bs-theme="dark"] .vn-filter-button {
    background: #151a26;
    border-color: #3a4356;
    color: #aaa7ff;
}

    html[data-bs-theme="dark"] .vn-filter-button:hover,
    html[data-bs-theme="dark"] .vn-filter-button:focus {
        background: #202638;
        border-color: #7772ff !important;
        color: #b8b5ff !important;
    }

html[data-bs-theme="dark"] .vn-grid-wrapper {
    background: #111620;
    border-color: #293142;
}

html[data-bs-theme="dark"] .vn-grid-table {
    --bs-table-bg: transparent;
    --bs-table-color: #dce2ed;
}

    html[data-bs-theme="dark"] .vn-grid-table thead th {
        background: #202636 !important;
        color: #dfe4f0 !important;
        border-top-color: #343d50 !important;
        border-bottom-color: #343d50 !important;
    }

        html[data-bs-theme="dark"] .vn-grid-table thead th:first-child {
            border-left-color: #343d50 !important;
        }

        html[data-bs-theme="dark"] .vn-grid-table thead th:last-child {
            border-right-color: #343d50 !important;
        }

        html[data-bs-theme="dark"] .vn-grid-table thead th:not(:last-child)::after {
            background: #3a4356;
        }

        html[data-bs-theme="dark"] .vn-grid-table thead th.vn-grid-sortable:hover {
            background: #292f43 !important;
        }

    html[data-bs-theme="dark"] .vn-grid-table tbody td {
        background: #171d29 !important;
        color: #d7dde8 !important;
        border-top-color: #2c3445 !important;
        border-bottom-color: #2c3445 !important;
    }

        html[data-bs-theme="dark"] .vn-grid-table tbody td:first-child {
            border-left-color: #2c3445 !important;
        }

        html[data-bs-theme="dark"] .vn-grid-table tbody td:last-child {
            border-right-color: #2c3445 !important;
        }

        html[data-bs-theme="dark"] .vn-grid-table tbody td:not(:last-child)::after {
            background: #303849;
        }

    html[data-bs-theme="dark"] .vn-grid-table tbody tr:hover td {
        background: #202636 !important;
        border-top-color: #3c465b !important;
        border-bottom-color: #3c465b !important;
    }

        html[data-bs-theme="dark"] .vn-grid-table tbody tr:hover td:first-child {
            border-left-color: #3c465b !important;
        }

        html[data-bs-theme="dark"] .vn-grid-table tbody tr:hover td:last-child {
            border-right-color: #3c465b !important;
        }

        html[data-bs-theme="dark"] .vn-grid-table tbody tr:hover td:not(:last-child)::after {
            background: #414b60;
        }

    html[data-bs-theme="dark"] .vn-grid-table.table-striped > tbody > tr:nth-of-type(odd) > * {
        --bs-table-accent-bg: transparent !important;
        --bs-table-striped-bg: transparent !important;
        background: #171d29 !important;
    }

    html[data-bs-theme="dark"] .vn-grid-table .text-muted {
        color: #8f99ab !important;
    }

    html[data-bs-theme="dark"] .vn-grid-table .dropdown-menu {
        background: #1b2130;
        border-color: #343d50;
        color: #dce2ed;
    }

    html[data-bs-theme="dark"] .vn-grid-table .dropdown-item {
        color: #dce2ed;
    }

        html[data-bs-theme="dark"] .vn-grid-table .dropdown-item:hover,
        html[data-bs-theme="dark"] .vn-grid-table .dropdown-item:focus {
            background: #282f42;
            color: #fff;
        }

html[data-bs-theme="dark"] .vn-grid-pagination {
    background: #151a26;
    border-color: #2a3242;
    color: #dce2ed;
}

    html[data-bs-theme="dark"] .vn-grid-pagination .page-link {
        background: #171d29;
        border-color: #30394b;
        color: #d4dae5;
    }

        html[data-bs-theme="dark"] .vn-grid-pagination .page-link:hover {
            background: #262d40;
            border-color: #7772ff;
            color: #b8b5ff;
        }

    html[data-bs-theme="dark"] .vn-grid-pagination .page-item.active .page-link {
        background: #635bff;
        border-color: #635bff;
        color: #fff;
    }

    html[data-bs-theme="dark"] .vn-grid-pagination .page-item.disabled .page-link {
        background: #141923;
        border-color: #293142;
        color: #626d80;
    }

html[data-bs-theme="dark"] .vn-grid-record-info,
html[data-bs-theme="dark"] .vn-grid-pagination-label {
    color: #9aa4b7;
}

    html[data-bs-theme="dark"] .vn-grid-record-info strong {
        color: #e0e5ee;
    }

html[data-bs-theme="dark"] .vn-grid-page-size,
html[data-bs-theme="dark"] .vn-grid-jump-input {
    background-color: #171d29;
    border-color: #30394b;
    color: #dce2ed;
}

    html[data-bs-theme="dark"] .vn-grid-page-size:focus,
    html[data-bs-theme="dark"] .vn-grid-jump-input:focus {
        background-color: #171d29;
        border-color: #7772ff;
        color: #fff;
    }


.startbar .startbar-menu .navbar-nav .nav-item .nav-link {
    position: relative;
    color: var(--bs-menu-link-color);
    font-size: 12px;
    font-weight: 500;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: var(--bs-border-radius);
    padding: 6px;
    line-height: 0px;
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.startbar .startbar-menu .menu-icon {
    font-size: 16px;
    width: 24px;
    color: var(--bs-menu-icon-color);
}

.startbar .startbar-menu .navbar-nav .nav-item .nav .nav-item .nav-link {
    padding: 14px 14px 14px 44px;
}

.img-photos-view {
    max-width:600px;
}
