@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/Fonts/Sora-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/Fonts/Sora-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/Fonts/Sora-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/Fonts/Sora-Bold.woff2') format('woff2');
}

.fw-semibold {
    font-weight: 600;
}

.vp-dashboard {
    --fixed-width: unset;
    /* Brand palette (keep existing colors) */
    --brand-primary: #007179;
    --brand-secondary: #73929B;
    --brand-accent: #B2D235;
    --text-strong: #33496D;
    --text-muted: #6c757d;
    /* Surfaces */
    --surface-0: #F7F8FA; /* page */
    --surface-1: #ffffff; /* cards */
    --surface-2: #f4f6f1; /* elevated */
    /*Score Legend Colors*/
    --score-legend-red: #B90000;
    --score-legend-amber: #FFC000;
    --score-legend-light-green: #92D051;
    --score-legend-dark-green: #6E9600;
    /* Borders + shadows */
    --border: rgba(16, 24, 40, 0.08);
    --border-strong: rgba(16, 24, 40, 0.12);
    --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
    --shadow-2: 0 6px 14px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.06);
    --shadow-3: 0 16px 30px rgba(16, 24, 40, 0.12);
    /* Radius */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    /* Spacing */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-7: 32px;
    --s-8: 40px;
    /* Typography */
    --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-0: 0.875rem;
    --fs-1: 1rem;
    --fs-2: 1.125rem;
    --fs-3: 1.375rem;
    --fs-4: 1.75rem;
    font-family: var(--font);
    /*    background: radial-gradient(1200px 600px at 10% 0%, rgba(0, 113, 121, 0.08), transparent 60%), radial-gradient(1000px 500px at 95% 10%, rgba(178, 210, 53, 0.10), transparent 55%), var(--surface-0);*/
    background: #f7f8fa;
    color: var(--text-strong);
    min-height: 100vh;
}

body {
    font-size: 10pt;
    font-family: 'Sora', sans-serif;
    margin: 0;
    padding: 0;
}

.vp-dashboard * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Small utilities (scoped)
   -------------------------------------------------------------------------- */
.red {
    background: var(--score-legend-red);
    color: #fff;
}

.amber {
    background: var(--score-legend-amber);
    color: #2b2b2b;
}

.light-green {
    background: var(--score-legend-light-green);
    color: #0b2a13;
}

.dark-green {
    background: var(--score-legend-dark-green);
    color: #fff;
}

.vp-dashboard .text-primary {
    color: var(--brand-primary) !important;
}

.vp-dashboard .text-system-accent {
    color: var(--brand-accent) !important;
}

.vp-dashboard .fs-7 {
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Layout containers
   -------------------------------------------------------------------------- */

.vp-dashboard__content {
    padding: var(--s-7) var(--s-7);
    /* Header is not fixed; keep normal document flow */
    padding-top: var(--s-7);
}

.vp-dashboard__container {
    max-width: var(--fixed-width);
    margin: 0 auto;
    width: 100%;
}

.vp-dashboard__section {
    margin-top: var(--s-7);
}

#page-container {
    position: relative;
    min-height: 100vh;
}

#content-wrap {
    padding-bottom: 3.5rem; /* Footer height */
}

#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3.5rem; /* Footer height */
    display: flex;
    justify-content: center;
    align-items: center;
}

    #footer p {
        font-size: 0.75rem;
    }

/* --------------------------------------------------------------------------
   V3 Hero header (distinct)
   -------------------------------------------------------------------------- */

.vp-dashboard__page-title-area {
    /*background: linear-gradient(135deg, rgba(0, 113, 121, 0.10), rgba(255, 255, 255, 0.92) 38%, rgba(178, 210, 53, 0.10));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    padding: var(--s-6) var(--s-7);*/
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-5);
}

.vp-dashboard__page-title {
    font-weight: 900;
    font-size: 1.55rem;
    line-height: 1.1;
    color: var(--text-strong);
}

.vp-dashboard__page-title--subtitle {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin: 0;
}

.vp-dashboard__clear-filters {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.vp-dashboard__page-title-subtitle {
    margin-top: var(--s-2);
    font-weight: 800;
    font-size: 1.05rem;
    color: rgba(51, 73, 109, 0.92);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
}

.vp-dashboard__hero-help {
    border: 0;
    background: rgba(0, 113, 121, 0.10);
    color: var(--brand-primary);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-1);
}

    .vp-dashboard__hero-help:hover {
        background: rgba(0, 113, 121, 0.16);
        box-shadow: var(--shadow-2);
    }

.vp-dashboard__page-title-meta {
    margin-top: var(--s-4);
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
}

.vp-dashboard__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(16, 24, 40, 0.10);
    color: rgba(51, 73, 109, 0.90);
    font-weight: 800;
    font-size: var(--fs-0);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.vp-dashboard__actionbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-4);
}

.vp-dashboard__hero-right {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.vp-dashboard__nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2000; /* ensures dropdowns can stack above sticky nav row */
}

.vp-dashboard__header {
    width: 100%;
}

.vp-dashboard__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    padding: var(--s-4) var(--s-7);
}

.vp-dashboard__brand {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    min-width: 0;
}

.vp-dashboard__brand-title {
    font-family: var(--font);
    font-weight: 900;
    color: var(--text-strong);
    font-size: 1.15rem;
    line-height: 1.1;
    white-space: nowrap;
}

.vp-dashboard__header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--s-4);
    position: relative;
    z-index: 2001;
}

.vp-dashboard__header-nav {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.10);
}

.vp-dashboard__nav.fixed-top {
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.vp-dashboard__nav-inner {
    width: 100%;
    padding: 0;
}

.vp-dashboard__nav-left {
    display: none;
}

.vp-dashboard__nav-center {
    display: none;
}

.vp-dashboard__logo {
    height: 40px;
    width: auto;
}

.vp-dashboard__nav-links {
    display: flex;
    gap: var(--s-7);
    padding: 0 var(--s-7);
    justify-content: flex-start;
    align-items: center;
}

    .vp-dashboard__nav-links a {
        display: inline-flex;
        align-items: center;
        padding: 12px 2px;
        text-decoration: none;
        color: var(--text-strong);
        font-weight: 900;
        font-size: var(--fs-0);
        border-bottom: 2px solid transparent;
    }

        .vp-dashboard__nav-links a.active {
            color: var(--brand-primary);
            border-bottom-color: var(--brand-primary);
        }

        .vp-dashboard__nav-links a:hover {
            color: var(--brand-primary);
            border-bottom-color: rgba(0, 113, 121, 0.35);
        }

.vp-dashboard__nav-right {
    display: none;
}

.vp-dashboard__nav-meta {
    display: none;
}

    .vp-dashboard__nav-meta a {
        text-decoration: none;
        color: var(--text-strong);
        font-weight: 600;
        transition: color 150ms ease;
    }

        .vp-dashboard__nav-meta a:hover {
            color: var(--brand-primary);
        }

/* User pill dropdown */
.vp-dashboard__user-menu {
    position: relative;
}

.vp-dashboard__user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 24, 40, 0.14);
    box-shadow: var(--shadow-1);
    color: var(--text-strong);
    font-family: var(--font);
    font-weight: 800;
    font-size: var(--fs-0);
    line-height: 1;
    max-width: 320px;
}

    .vp-dashboard__user-pill:hover {
        box-shadow: var(--shadow-2);
    }

    .vp-dashboard__user-pill.dropdown-toggle::after {
        display: none;
    }

.vp-dashboard__user-pill-icon {
    font-size: 1.35rem;
    color: var(--brand-primary);
}

.vp-dashboard__user-pill-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-dashboard__user-pill-chevron {
    font-size: 1.25rem;
    color: rgba(51, 73, 109, 0.75);
}

.vp-dashboard__user-menu-dropdown {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    padding: 10px;
    min-width: 320px;
}

.vp-dashboard__user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    font-weight: 800;
    color: var(--text-strong);
}

    .vp-dashboard__user-menu-item i {
        font-size: 1.25rem;
        color: var(--brand-primary);
    }

    .vp-dashboard__user-menu-item:hover {
        background: rgba(0, 113, 121, 0.06);
        color: var(--text-strong);
    }

/* Hamburger (existing markup) */
.vp-dashboard .toggle-wrap {
    width: 34px;
    height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.vp-dashboard .toggle-wrap,
.vp-dashboard .toggle-bar,
.vp-dashboard .toggle-bar::before,
.vp-dashboard .toggle-bar::after {
    display: none !important;
}

    .vp-dashboard .toggle-bar,
    .vp-dashboard .toggle-bar::before,
    .vp-dashboard .toggle-bar::after {
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        background: var(--brand-primary);
        border-radius: 999px;
    }

        .vp-dashboard .toggle-bar::before,
        .vp-dashboard .toggle-bar::after {
            margin-top: 8px;
        }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.vp-dashboard .btn {
    font-family: var(--font);
    border-radius: var(--r-md);
    font-weight: 600;
}

.vp-dashboard .btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), #005f65);
    border: none;
    box-shadow: var(--shadow-1);
}

    .vp-dashboard .btn-primary:hover {
        filter: brightness(0.98);
        box-shadow: var(--shadow-2);
    }

.vp-dashboard__btn-ghost {
    background: rgba(0, 113, 121, 0.06);
    border: 1px solid rgba(0, 113, 121, 0.16);
    color: var(--brand-primary);
}

    .vp-dashboard__btn-ghost:hover {
        background: rgba(0, 113, 121, 0.10);
    }

.vp-dashboard .btn-system {
    background: linear-gradient(135deg, var(--brand-primary), #005f65);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-1);
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

    .vp-dashboard .btn-system:hover {
        box-shadow: var(--shadow-2);
        filter: brightness(0.98);
        color: #fff;
    }

.vp-dashboard .view-insights {
    background: rgba(178, 210, 53, 0.30);
    border: 1px solid rgba(178, 210, 53, 0.55);
    color: rgba(51, 73, 109, 0.95);
    box-shadow: var(--shadow-1);
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-weight: 900;
}

    .vp-dashboard .view-insights:hover {
        background: rgba(178, 210, 53, 0.38);
        box-shadow: var(--shadow-2);
    }

.vp-dashboard .btn-export-pdf,
.vp-dashboard .btn-export-excel {
    background: linear-gradient(135deg, var(--brand-primary), #005f65);
    color: #fff;
    box-shadow: var(--shadow-1);
}

.vp-dashboard .btn-clear {
    background: transparent;
    border: 1px solid rgba(0, 113, 121, 0.28);
    color: var(--brand-primary);
}

    .vp-dashboard .btn-clear:hover {
        background: rgba(0, 113, 121, 0.06);
    }

/* --------------------------------------------------------------------------
   Dropdown (filters)
   -------------------------------------------------------------------------- */

.vp-dashboard__filter-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-strong);
    color: var(--text-strong);
    box-shadow: var(--shadow-1);
    font-size: 14px;
    width: 260px;
}

.vp-dashboard__dropdown {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    padding: 0;
    min-width: 320px;
}

    .vp-dashboard__dropdown .list-group {
        padding: 8px 0;
        max-height: 550px;
        overflow: auto;
    }

    .vp-dashboard__dropdown .list-group-item {
        border: 0;
        padding: 10px var(--s-4);
    }

        .vp-dashboard__dropdown .list-group-item:hover {
            background: rgba(0, 113, 121, 0.04);
        }

.vp-dashboard .vp-dashboard__dropdown input[type="checkbox"] {
    accent-color: var(--brand-primary);
    width: 20px;
    height: 20px;
}

.vp-dashboard__dropdown-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: flex-end;
    padding: 8px var(--s-4);
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* --------------------------------------------------------------------------
   Header + subheader blocks (reuse existing markup)
   -------------------------------------------------------------------------- */

.vp-dashboard .dashboard-header {
    font-size: var(--fs-3);
    font-weight: 700;
}

    .vp-dashboard .dashboard-header .header-1 {
        color: var(--brand-primary);
    }

.vp-dashboard .sub-dashboard {
    margin-top: var(--s-4);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
    box-shadow: var(--shadow-1);
}

.vp-dashboard .current-date {
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Action bar
   -------------------------------------------------------------------------- */

.vp-dashboard .compare-results {
    margin-top: var(--s-5);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
    box-shadow: var(--shadow-1);
}

    .vp-dashboard .compare-results .d-flex {
        flex-wrap: wrap;
        gap: var(--s-3);
    }

.vp-dashboard .trackerbtn,
.vp-dashboard .compare-btn {
    text-decoration: none;
    border-radius: var(--r-md);
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--brand-primary), #005f65);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    box-shadow: var(--shadow-1);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

    .vp-dashboard .trackerbtn:hover,
    .vp-dashboard .compare-btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-2);
    }

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.text-login h5 {
    color: var(--brand-primary);
    font-family: var(--primary-font-family);
    font-size: 39px;
    font-style: normal;
    font-weight: 700;
    line-height: 45px; /* 115.385% */
    letter-spacing: -2px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn_login {
    font-family: var(--primary-font-family);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    width: 100%;
    border: none;
    color: #ffffff;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--brand-primary);
    margin-top: 12px;
}

.row-input input {
    flex: 1;
    padding: 13px;
    background: #F4F3F3;
    border: 1px solid #F4F3F3;
    border-radius: 8px;
    font-size: 14.6px;
    transition: all 0.2s ease-out;
    font-family: var(--primary-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #777778;
}

/* --------------------------------------------------------------------------
   Metric cards grid (top row)
   -------------------------------------------------------------------------- */

.vp-dashboard .top-row-blocks {
    margin-top: var(--s-6);
}

.vp-dashboard__kpi-grid {
    align-items: stretch;
}

.vp-dashboard .top-row-blocks .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5);
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
}

.vp-dashboard .top-row-blocks .column {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    padding: var(--s-5);
    transition: transform 180ms ease, box-shadow 180ms ease;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

    .vp-dashboard .top-row-blocks .column::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(0, 113, 121, 0.10), transparent 45%);
        pointer-events: none;
        opacity: 0.6;
    }

    .vp-dashboard .top-row-blocks .column:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-2);
    }

.vp-dashboard .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    position: relative;
    z-index: 1;
}

.vp-dashboard__kpi-title {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
}

.vp-dashboard__kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(0, 113, 121, 0.10);
    border: 1px solid rgba(0, 113, 121, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

    .vp-dashboard__kpi-icon i {
        font-size: 1.25rem;
    }

.vp-dashboard .section-header {
    font-size: 1rem;
    font-weight: 900;
    text-transform: none;
    margin: 0;
    color: rgba(51, 73, 109, 0.85);
}

.vp-dashboard .radial-chart-block {
    position: relative;
    z-index: 1;
}

.vp-dashboard .footer-shows-second,
.vp-dashboard .footer-show,
.vp-dashboard .footer-show-next {
    position: relative;
    z-index: 1;
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px dashed rgba(16, 24, 40, 0.14);
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

/* Flight risk block tweaks */
.vp-dashboard .column.rri .top-text,
.vp-dashboard .column.rri .bottom-text {
    position: relative;
    z-index: 1;
}

.vp-dashboard .column.rri button {
    position: relative;
    z-index: 1;
    background: rgba(0, 113, 121, 0.06);
    border: 1px solid rgba(0, 113, 121, 0.18);
    color: var(--brand-primary);
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-weight: 700;
}

    .vp-dashboard .column.rri button:hover {
        background: rgba(0, 113, 121, 0.10);
    }

/* --------------------------------------------------------------------------
   Tables + shared blocks (partials use existing classes like .table-main)
   -------------------------------------------------------------------------- */

.vp-dashboard .header-main {
    margin-top: var(--s-7);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: var(--shadow-1);
    padding: var(--s-5);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 0;
}

.vp-dashboard__section-card {
    margin-top: var(--s-7);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

/* Unify header/table/legend inside section card */
.vp-dashboard .vp-dashboard__section-card .header-main,
.vp-dashboard .vp-dashboard__section-card .table-main,
.vp-dashboard .vp-dashboard__section-card .legend {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-top: 0;
}

.vp-dashboard .vp-dashboard__section-card .header-main {
    padding: var(--s-5);
    padding-bottom: var(--s-4);
}

/*    .vp-dashboard .vp-dashboard__section-card .header-main::before {
        left: 0;
        top: 0;
        bottom: 0;
    }*/

.vp-dashboard .vp-dashboard__section-card .table-main {
    padding: 0 var(--s-5) var(--s-5);
}

.vp-dashboard .vp-dashboard__section-card .legend {
    padding: var(--s-3) var(--s-5) var(--s-5);
}

    .vp-dashboard .vp-dashboard__section-card .legend.legend-heading,
    .vp-dashboard .vp-dashboard__section-card .legend.legend-heading2 {
        padding-top: 0;
        padding-bottom: var(--s-2);
    }

/* Legend colors (match original thresholds) */
.vp-dashboard .rating-scale-blocks.red {
    background: #B90000;
    color: #fff;
}

.vp-dashboard .rating-scale-blocks.amber {
    background: #FFC000;
    color: #2b2b2b;
}

.vp-dashboard .rating-scale-blocks.light-green {
    background: #92D051;
    color: #0b2a13;
}

.vp-dashboard .rating-scale-blocks.dark-green {
    background: #6E9600;
    color: #fff;
}

/* Card headers / headings consistent typography */
.vp-dashboard .dash-table-header,
.vp-dashboard .left-headings,
.vp-dashboard .breakdown-comments h2 {
    font-family: var(--font);
    font-weight: 900;
}

.vp-dashboard .breakdown-comments h2 {
    font-size: 1.15rem;
}

/*.vp-dashboard .table-main h2 {
    font-family: var(--font);
    font-weight: 900;
    font-size: 1.15rem;
    margin: 0 0 var(--s-3);
}*/

/*.vp-dashboard .header-main::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--brand-primary), rgba(178, 210, 53, 0.9));
}*/

.vp-dashboard .header-main > * {
    position: relative;
    z-index: 1;
}

.vp-dashboard .header-main .dash-table-header {
    font-weight: 900;
}

.vp-dashboard .header-main .left-headings {
    font-weight: 900;
}

.vp-dashboard .header-main .header-container {
    margin-top: var(--s-3);
    display: block;
}

    .vp-dashboard .header-main .header-container p {
        margin: 0;
        margin-top: var(--s-1);
        color: var(--text-muted);
        font-weight: 600;
        font-size: var(--fs-0);
    }

.vp-dashboard .table-main {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    padding: var(--s-5);
    overflow: hidden;
    max-width: 100%;
}

.vp-dashboard .header-main + .table-main {
    margin-top: 0;
    border-top: 0;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.vp-dashboard .table-main > h2:first-child {
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0 0 var(--s-3);
    color: var(--text-strong);
}

.vp-dashboard table {
    width: 100%;
    border-collapse: collapse;
}

    .vp-dashboard table th {
        background: rgba(0, 113, 121, 0.06);
        color: rgba(51, 73, 109, 0.85);
        font-weight: 800;
        font-size: 0.78rem;
        text-transform: uppercase;
        border-bottom: 1px solid var(--border);
        padding: 14px;
    }

    .vp-dashboard table td {
        border-bottom: 1px solid rgba(16, 24, 40, 0.06);
        padding: 14px;
        vertical-align: middle;
    }

    .vp-dashboard table.section-table tbody tr:hover {
        background: rgba(0, 113, 121, 0.03);
    }

/* Paragraph + statement alignment */
.vp-dashboard .section-table td p,
.vp-dashboard .table-main p,
.vp-dashboard .legend p,
.vp-dashboard p.number-img {
    margin: 0;
}

.vp-dashboard .section-table td:first-of-type {
    width: 70%;
}

.vp-dashboard .section-table td .flex-grow-1 {
    display: flex;
    align-items: center;
    min-height: 34px;
}

    .vp-dashboard .section-table td .flex-grow-1 p {
        line-height: 1.35;
        font-size: 16px;
    }

/* Score buttons used in partials */
.vp-dashboard .btn-score {
    border-radius: var(--r-md);
    font-weight: 800;
    padding: 10px 12px;
    min-width: 76px;
    box-shadow: var(--shadow-1);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.vp-dashboard__score-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vp-dashboard .section-table td.score-column.current .vp-dashboard__score-wrap {
    /* Only Current column reserves space for arrow (Overall has no placeholder) */
    min-width: 112px;
}

.vp-dashboard__score-arrow {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1;
    color: rgba(51, 73, 109, 0.85);
}

.vp-dashboard .section-table td.score-column,
.vp-dashboard .section-table th.score-column {
    text-align: center;
}

.vp-dashboard .btn-score:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.vp-dashboard .btn-score.dark-green {
    background: #6E9600;
    color: #fff;
}

.vp-dashboard .btn-score.light-green {
    background: #92D051;
    color: #0b2a13;
}

.vp-dashboard .btn-score.amber {
    background: #FFC000;
    color: #2b2b2b;
}

.vp-dashboard .btn-score.red {
    background: #B90000;
    color: #fff;
}

.vp-dashboard .question-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(0, 113, 121, 0.06);
    border: 1px solid rgba(0, 113, 121, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--brand-primary);
}
/*Score modal*/
.current-modal-body {
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #D3D3D3;
}

.modal .modal-body .score-percentage {
    display: flex;
    width: 114px;
    height: 47px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--primary-font-family);
    margin-right: 0px;
    border-radius: 8px;
    /* color: #ffffff; */
}

.modal-question {
    font-size: 16px;
    font-weight: 700;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    padding-top: 0.75rem;
    padding-right: 0rem;
    padding-bottom: 0.75rem;
    padding-left: 0rem;
    border-top: 0px solid #dee2e6;
    border-top: 1px dashed #D3D3D3;
}

.rating-scale-blocks-modal {
    font-family: var(--primary-font-family);
    /* color: #FFF; */
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 17px;
    width: 23%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Legend chips (partials) */
.vp-dashboard .rating-scale-blocks,
.vp-dashboard .rating-scale-blocks-modal,
.vp-dashboard .rating-scale-blocks-modal2 {
    border-radius: var(--r-md);
    font-weight: 800;
}

/* Legends (partials output multiple .legend blocks) */
.vp-dashboard .legend {
    max-width: 100%;
}

    .vp-dashboard .legend.legend-heading,
    .vp-dashboard .legend.legend-heading2 {
        margin-top: 0;
        padding: var(--s-4) var(--s-5) var(--s-2);
        font-weight: 900;
        color: var(--text-strong);
    }

    .vp-dashboard .legend + .legend {
        margin-top: 0;
        padding-top: var(--s-2);
    }

    .vp-dashboard .legend.d-flex {
        flex-wrap: wrap;
        gap: var(--s-3);
        align-items: center;
    }

.vp-dashboard .rating-scale {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
}

.vp-dashboard .rating-scale-blocks {
    padding: 8px 12px;
    box-shadow: var(--shadow-1);
}

.vp-dashboard .legend-text,
.vp-dashboard .legend-texts {
    color: var(--text-muted);
    font-weight: 700;
    padding: 10px 20px;
}

.vp-dashboard .movement {
    background: rgba(0, 113, 121, 0.04);
    border: 1px solid rgba(0, 113, 121, 0.10);
    border-radius: 999px;
    padding: 8px 12px;
}

    .vp-dashboard .movement.significant {
        background: rgba(178, 210, 53, 0.16);
        border-color: rgba(178, 210, 53, 0.35);
    }

/* Comment analysis (partial uses .comments-table / .commentsection) */
.vp-dashboard .comments-table {
    margin-top: var(--s-5);
}

.vp-dashboard .commentsection h2,
.vp-dashboard .commentsection h4,
.vp-dashboard .commentsection h6 {
    font-family: var(--font);
    color: var(--text-strong);
    font-weight: 900;
}

.vp-dashboard .commentsection p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Comments layout (chart + sentiment + explanation) */
.vp-dashboard .comments-top-section {
    /* display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(320px, 520px);*/
    display: flex;
    align-items: center;
    gap: var(--s-8);
}

    .vp-dashboard .comments-top-section .left-section {
        gap: var(--s-7);
        align-items: flex-start;
    }

.vp-dashboard .chart-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

    .vp-dashboard .chart-wrapper canvas {
        max-width: 220px;
        max-height: 220px;
    }

    .vp-dashboard .chart-wrapper #chartjs-tooltip {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        pointer-events: none;
    }

.table-main .table .col-2 {
    flex: 0 0 auto;
    width: 4%;
}

.light-blue-score {
    border-radius: 8px;
    font-family: var(--primary-font-family);
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.016em;
    font-variant: small-caps;
    color: #424755;
    width: 113px;
    vertical-align: middle;
    cursor: none;
    background: #EDF9FF;
}

.vp-dashboard .sentiment-table {
    min-width: 260px;
}

    .vp-dashboard .sentiment-table h4 {
        margin: 0 0 var(--s-3);
    }

    .vp-dashboard .sentiment-table .left-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--s-3);
        padding: 8px 0;
        border: 0;
    }

        .vp-dashboard .sentiment-table .left-table td img {
            flex: 0 0 auto;
            margin-right: var(--s-2);
        }

/* eNPS layout */
.vp-dashboard .enps-sectioning .enps-breakdown {
    /*    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(320px, 520px);*/
    display: flex;
    gap: var(--s-6);
    align-items: start;
}

    .vp-dashboard .enps-sectioning .enps-breakdown > div:first-child .d-flex {
        gap: var(--s-5);
        align-items: center;
        flex-wrap: wrap;
    }

.vp-dashboard .enps-sectioning .radial-chart {
    min-width: 180px;
    min-height: 180px;
}

.vp-dashboard .enps-table,
.vp-dashboard .enps-table tbody,
.vp-dashboard .enps-table tr {
    display: block;
    width: 100%;
}

    .vp-dashboard .enps-table td {
        display: flex;
        align-items: center;
        /*        justify-content: space-between;*/
        gap: var(--s-3);
        border: 0;
        padding: 6px 0;
        font-weight: 700;
        color: rgba(51, 73, 109, 0.92);
    }

    .vp-dashboard .enps-table tr:first-child td {
        font-weight: 900;
        padding-bottom: var(--s-2);
    }

.vp-dashboard .mathimg {
    margin-top: var(--s-5);
}

/*    .vp-dashboard .mathimg img {
        max-width: 420px;
    }*/

.vp-dashboard .enpsimages {
    display: flex;
    justify-content: center;
}

/* Ensure legacy eNPS legend dots align with theme */
.vp-dashboard .bg-red {
    background-color: #B90000 !important;
}

.vp-dashboard .bg-amber {
    background-color: #FFC000 !important;
}

.vp-dashboard .bg-dark-green {
    background-color: #6E9600 !important;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.vp-dashboard .modal-content {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-3);
}

.vp-dashboard .modal-header {
    border-bottom: 1px solid var(--border);
    padding: var(--s-5);
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.vp-dashboard .modal-title,
.vp-dashboard .breakdown-header {
    font-family: var(--font);
    font-weight: 900;
    color: var(--text-strong);
}

.vp-dashboard .modal-body {
    padding: var(--s-5);
}

.vp-dashboard .modal-footer {
    border-top: 1px solid var(--border);
    padding: var(--s-5);
    background: rgba(0, 113, 121, 0.03);
}

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */

.vp-dashboard .overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.86);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-dashboard .overlayContent {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-7);
    box-shadow: var(--shadow-3);
    text-align: center;
}

    .vp-dashboard .overlayContent h2 {
        font-weight: 900;
        margin-bottom: var(--s-4);
        color: var(--brand-primary);
    }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.vp-dashboard__footer {
    margin-top: var(--s-7);
    padding: var(--s-6) var(--s-7);
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
}

    .vp-dashboard__footer a {
        color: var(--brand-primary);
        text-decoration: none;
        font-weight: 800;
    }

        .vp-dashboard__footer a:hover {
            text-decoration: underline;
        }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1400px) {
    .vp-dashboard__nav-inner {
        padding: var(--s-4) var(--s-5);
    }

    .vp-dashboard__content {
        padding: var(--s-6) var(--s-5);
    }

    .vp-dashboard .top-row-blocks .row {
        grid-template-columns: repeat(2, 1fr);
    }

    .vp-dashboard .enps-sectioning .enps-breakdown {
        grid-template-columns: 1fr;
    }

    .vp-dashboard .comments-top-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .vp-dashboard__header-top {
        padding: var(--s-4) var(--s-5);
        flex-wrap: wrap;
    }

    .vp-dashboard__header-nav .vp-dashboard__nav-links {
        padding: 10px var(--s-5);
        gap: var(--s-5);
        justify-content: flex-start;
    }

    .vp-dashboard .top-row-blocks .row {
        grid-template-columns: 1fr;
    }

    .vp-dashboard__hero-card {
        flex-direction: column;
    }
}

@media print {
    .vp-dashboard__nav.fixed-top {
        position: relative;
        box-shadow: none;
    }

    .vp-dashboard__content {
        padding-top: var(--s-6);
    }

    .vp-dashboard .btn, .vp-dashboard__footer, .vp-dashboard .toggle-wrap {
        display: none !important;
    }
}