:root {
    --text-color: #000000;
    --main-color: #0091bc;
    --light-main-color: #cce9f2;
    --dark-main-color: #004366;
    --dark-complementary-color: #BC2B00;
    --light-complementary-color: #FF9B7E;
    --dark-tertiary-color: #FA7098;
    --light-tertiary-color: #FDB8CC;
    --dark-second-tertiary-color: #faf070;
    --dark-grey-color: #999999;
    --light-grey-color: #E0E0E0;
    --lga-color: #4C86F7;
    --sa1-color: #F74C86;
    --muted: #BBBBBB;
    --tooltip-highlight-color: rgba(0, 145, 188, 0.15);

    /* Responsive Breakpoints */
    --desktop-breakpoint: 992px;

    /* Badge Colors */
    --badge-demo-color: var(--light-complementary-color);
    --badge-development-color: var(--main-color);
    --badge-public-color: var(--main-color);
    --badge-internal-color: var(--main-color);
    --badge-active-color: var(--main-color);
    --badge-pending-color: var(--light-complementary-color);

    /* Badge Icons */
    --badge-demo-icon: "D";
    --badge-public-icon: "bi bi-globe";
    --badge-internal-icon: "bi bi-lock-fill";
    --badge-active-icon: "bi bi-patch-check-fill";
    --badge-pending-icon: "bi bi-patch-exclamation-fill";

    /* Responsive spacing */
    --block-spacing: 0.5rem;
}

html {
    font-size: 18px; /* looks better on small screens */
    color: var(--text-color);
}

a {
    color: var(--main-color);
}

a:hover {
    color: var(--dark-main-color);
}

/* START sticky footer desing */

html, body {
    height: 100%;
    margin: 0;
}

#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content-wrap {
    flex: 1;
}

/* END sticky footer desing */

/* Larger screens */
@media (min-width: 1024px) {
    html {
        font-size: 18px; /* 18px = Bootstrap5 base size */
    }
}

.container-narrow {
    max-width: 500px;
}

.container-dataset {
    max-width: 750px;
}

.container-medium {
    max-width: 768px;
}

.table-primary,
.table-primary > th,
.table-primary > td {
    background-color: var(--light-main-color) !important;
    white-space: nowrap;
    text-align: left;
}

.table {
    width: auto;
}

.data-table table tr:last-child {
    font-weight: bold;
}

.data-table.no-bold-last-row table tr:last-child {
    font-weight: normal;
}

.highlight-row {
    background-color: var(--light-complementary-color);
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56%; /* 16:9 Aspect Ratio */
}

.leaflet-container { /* all maps */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

#map .leaflet-interactive:focus {
    outline: none; /* Remove the blue border */
}

body #map .leaflet-attribution-flag {
    display: none !important; /* hide the leaflet flag —no politcal messages on our platform */
}

.medium {
    font-size: 1rem;
}

.small {
    font-size: 0.75rem;
}

.extra-small {
    font-size: 0.5rem;
}

.title_tag {
    background-color: var(--main-color);
    font-size: 0.5rem;
    position: relative;
    top: -1rem;
}

.badge-counter {
    background-color: var(--muted);
    color: #ffffff;
    padding: 0 0.5rem 0 0;
    margin-right: 0.25rem;
    white-space: nowrap;
    display: inline-block;
}

.badge-description {
    vertical-align: middle;
    background-color: var(--light-main-color);
    color: #111111;
    padding: 0.15rem;
    white-space: nowrap;
}

.progress-bar {
    height: 15px;
}

.hidden {
    display: none !important;
}

.responsive-images img {
    max-width: 100%;
    height: auto;
}

.small-superscript-icon {
    font-size: x-small;
    vertical-align: super;
}

.forecast-nav-bar {
    background-color: var(--dark-main-color);
}

.forecast-nav-bar .dropdown-menu {
    background-color: var(--dark-main-color);
}

.forecast-nav-bar .dropdown-item:hover {
    background-color: var(--main-color);
    color: #ffffff;
}

.forecast-nav-bar .nav-item,
.forecast-nav-bar .dropdown-item {
    color: var(--light-main-color);
}

.forecast-nav-bar .grouped_dropdown_item {
    padding-left: 2.5rem;
!important;
}

.forecast-nav-bar .nav-link {
    color: var(--light-main-color);
}

.forecast-nav-bar .nav-link:hover,
.forecast-nav-bar .nav-link:focus,
.forecast-nav-bar .nav-link:active {
    color: #ffffff;
}

.forecast-nav-bar .icon-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1rem;
    padding-right: 0.2rem;
}

.help_icon {
    color: var(--muted);
}

.company-name {
    color: var(--main-color);
    font-style: italic;
    font-family: "Calibri", sans-serif;
    font-size: 1.2em;
}

.pi-spinner {
    border: 4px solid var(--light-main-color); /* Lighter shade for the spinner background */
    border-top-color: var(--main-color); /* Main color for the spinner */
    animation: spin 1s linear infinite;
}

.hide-spinner {
    display: none !important; /* Ensure this rule takes precedence */
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.vertical-align-middle th,
.vertical-align-middle td {
    vertical-align: middle !important;
}

.hover-bg-light:hover {
    background-color: var(--bs-light) !important;
}

.chart,
.comparison-chart {
    padding-top: 24px;
}

.chart {
    height: 500px;
}

.comparison-chart,
.combo-chart,
.multi-series-chart,
.run-time-chart {
    height: 600px;
}

ul {
    list-style-type: square;
}

ul li::marker {
    color: var(--main-color);
}

.sorting-options ul,
#area_names ul {
    column-count: 1;
}

/* 768px matches existing tablet breakpoint used elsewhere in base.css */
@media (min-width: 768px) {
    .sorting-options ul,
    #area_names ul {
        column-count: 2;
    }
}

/* 992px matches --desktop-breakpoint variable */
@media (min-width: 992px) {
    .sorting-options ul,
    #area_names ul {
        column-count: 3;
    }
}

ol li::marker {
    color: var(--text-color);
}

.slider::-webkit-slider-thumb {
    background: var(--main-color);
}

.slider::-moz-range-thumb {
    background: var(--main-color);
}

.slider::-ms-thumb {
    background: var(--main-color);
}

-webkit-slider-thumb:active {
    background-color: var(--light-main-color);
}

-webkit-slider-thumb,
.slider:focus::-webkit-slider-thumb,
.slider:focus::-moz-range-thumb,
.slider:focus::-ms-thumb {
    box-shadow: var(--light-main-color);
}

.pc-forecast, .pc-scenario, .pc-small-area-count {
    background-color: var(--light-main-color);
}

.pc-total-price {
    font-weight: bold;
}

/* Filter dropdown styles - used across different filter dropdowns */
/* Dropdown menu items (active and hover states) */
.filter-container .dropdown-item.active,
.filter-container .dropdown-item:hover {
    background-color: var(--main-color);
    color: #ffffff;
}

/* Dropdown button when a filter is active */
.filter-container .dropdown-toggle.filter-active {
    background-color: var(--main-color);
    color: #ffffff;
    border-color: var(--main-color);
}

/* Dropdown button in hover and open states */
.filter-container .dropdown-toggle:hover,
.filter-container .dropdown-toggle.show {
    background-color: var(--main-color);
    color: #ffffff;
    border-color: var(--main-color);
}

/* Expand button to match dropdown width when open */
.filter-container .dropdown-toggle.show {
    min-width: 600px;
    text-align: left;
}

.filter-container .dropdown-toggle {
    color: var(--main-color);
    border-color: var(--main-color);
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

/* Hide default Bootstrap dropdown chevron */
.filter-container .dropdown-toggle::after {
    display: none;
}

/* Plus/dash icon toggle for filter */
.filter-container .dropdown-toggle .toggle-icon-dash {
    display: none;
}

.filter-container .dropdown-toggle.show .toggle-icon-plus {
    display: none;
}

.filter-container .dropdown-toggle.show .toggle-icon-dash {
    display: inline;
}

/* Ensure all list items have complete borders; otherwise, when filtered, border tops and bottoms are missing */
.dataset-list .list-group-item {
    border: 1px solid rgba(0, 0, 0, .125); /* Match Bootstrap's default border style */
}

.dataset-list .list-group-item .d-flex {
    flex-wrap: nowrap; /* Prevent badges from wrapping to new line */
}

.navbar-brand .logo-navbar {
    height: 35px;
}

/* Override Bootstrap 5 primary button colors using CSS variables */
.btn-primary {
    --bs-btn-bg: var(--main-color);
    --bs-btn-border-color: var(--main-color);
    --bs-btn-hover-bg: var(--dark-main-color);
    --bs-btn-hover-border-color: var(--dark-main-color);
    --bs-btn-active-bg: var(--dark-main-color);
    --bs-btn-active-border-color: var(--dark-main-color);
    --bs-btn-disabled-bg: var(--main-color);
    --bs-btn-disabled-border-color: var(--main-color);
}

.btn-outline-primary {
    --bs-btn-color: var(--main-color);
    --bs-btn-border-color: var(--main-color);
    --bs-btn-hover-bg: var(--main-color);
    --bs-btn-hover-border-color: var(--main-color);
    --bs-btn-active-bg: var(--main-color);
    --bs-btn-active-border-color: var(--main-color);
}

/* Override Bootstrap 5 radio button colors */
.form-check-input[type="radio"]:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.form-check-input[type="radio"]:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 145, 188, 0.25); /* main-color with opacity */
}

/* Override Bootstrap 5 checkbox colors */
.form-check-input[type="checkbox"]:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.form-check-input[type="checkbox"]:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 145, 188, 0.25); /* main-color with opacity */
}

/* Forecast Approval Badge - Tab Style */
.forecast-approval-badge {
    position: absolute;
    top: 0;
    right: 20px;
    border-radius: 0 0 8px 8px !important;
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 6px 10px !important;
    font-size: 16px !important;
}

.forecast-approval-badge.active {
    background-color: var(--light-main-color);
    color: var(--badge-active-color);
}

.forecast-approval-badge.pending {
    background-color: var(--light-main-color);
    color: var(--badge-pending-color);
}

.forecast-approval-badge i {
    font-size: 18px;
}

/* Forecast Access Badge - positioned next to approval badge */
.forecast-access-badge {
    position: absolute;
    top: 0;
    right: 70px;
    border-radius: 0 0 8px 8px !important;
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 6px 10px !important;
    font-size: 16px !important;
}

.forecast-access-badge.public {
    background-color: var(--light-main-color);
    color: var(--badge-public-color);
}

.forecast-access-badge.internal {
    background-color: var(--light-main-color);
    color: var(--badge-internal-color);
}

.forecast-access-badge i {
    font-size: 18px;
    margin-right: 2px;
}

/* Forecast Purpose Badge - positioned between access and approval badges */
.forecast-purpose-badge {
    position: absolute;
    top: 0;
    right: 120px;
    border-radius: 0 0 8px 8px !important;
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 6px 10px !important;
    font-size: 16px !important;
    font-weight: bold;
    height: 30px;
    display: flex;
    align-items: center;
}

.forecast-purpose-badge.demonstration {
    background-color: var(--light-main-color);
    color: var(--badge-demo-color);
}

.forecast-purpose-badge.development {
    background-color: var(--light-main-color);
    color: var(--badge-development-color);
}

h1:has(.forecast-approval-badge),
h1:has(.forecast-access-badge),
h1:has(.forecast-purpose-badge) {
    padding-top: 35px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .forecast-approval-badge {
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Responsive block container for Wagtail content blocks */
.responsive-block-container {
    max-width: 100%;
}

@media (min-width: 992px) {
    :root {
        --block-spacing: 7rem;
    }

    .responsive-block-container {
        max-width: 50%;
    }

    .responsive-block-container.wide {
        max-width: 70%;
    }

    .responsive-block-container.first-block {
        max-width: 100%;
    }
}

/* Population Filter Widget Styles */
.age-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
}

.age-group-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.age-btn {
    padding: 2px 4px;
    font-size: 0.75rem;
    min-width: 32px;
    white-space: nowrap;
}

.age-group-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    min-width: 58px !important;
    width: auto !important;
    white-space: nowrap;
}

.age-btn.active {
    background-color: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

.age-btn:hover:not(.active) {
    background-color: var(--light-main-color);
    border-color: var(--main-color);
}

#ageGrid {
    transition: opacity 0.2s;
}

#ageGrid.disabled {
    opacity: 0.5;
}

.control-btn-container {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.control-btn {
    padding: 2px 12px;
    font-size: 0.7rem;
    min-width: 40px;
    font-weight: 500;
}

.control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sticky filter checkbox styling */
#make-filter-sticky:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

#make-filter-sticky:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 145, 188, 0.25);
}

/* Year filter styling */
.year-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.year-btn {
    padding: 4px 6px;
    font-size: 0.75rem;
    min-width: 50px;
    white-space: nowrap;
}

.year-btn.active {
    background-color: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

.year-btn:hover:not(.active) {
    background-color: var(--light-main-color);
    border-color: var(--main-color);
}

.year-range-container {
    margin: 8px 0;
    padding: 8px;
    background: transparent;
    border-radius: 4px;
}

.year-range-labels {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.year-range-slider {
    position: relative;
    width: 100%;
    height: 30px;
}

.year-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
    height: 30px;
}

.year-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--main-color);
    cursor: pointer;
    margin-top: -6px;
}

.year-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    background: #ddd;
    border-radius: 3px;
}

.year-range-slider input[type="range"]:last-child::-webkit-slider-runnable-track {
    background: transparent;
}

/* Filter sections - stacked vertically */
.filter-sections-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-section-age,
.filter-section-year {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
}

/* ========================================
   Demographic Table Styles
   ======================================== */

/* Table Bar Component */
.table-bar {
    display: flex;
    border: 1px solid var(--main-color);
    border-radius: 0.25rem;
    background-color: #ffffff;
    width: fit-content;
}

.table-bar:has(.table-toggle-btn[aria-expanded="true"]) {
    width: auto;
}

.table-toggle-btn {
    flex: 1;
    color: var(--main-color);
    border: none;
    border-radius: 0.25rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
    text-align: left;
    background-color: #ffffff;
}

.table-toggle-btn:hover {
    background-color: var(--main-color);
    color: #ffffff;
}

.table-toggle-btn[aria-expanded="true"] {
    background-color: var(--main-color);
    color: #ffffff;
    border-radius: 0.25rem 0 0 0.25rem;
}

/* Plus/dash icon toggle for table bar */
.table-toggle-btn .toggle-icon-dash {
    display: none;
}

.table-toggle-btn[aria-expanded="true"] .toggle-icon-plus {
    display: none;
}

.table-toggle-btn[aria-expanded="true"] .toggle-icon-dash {
    display: inline;
}

.table-bar .dropdown,
.table-bar .table-bar-copy,
.table-bar .table-bar-download-dropdown {
    display: none;
}

.table-toggle-btn[aria-expanded="true"] ~ .dropdown,
.table-toggle-btn[aria-expanded="true"] ~ .table-bar-copy,
.table-toggle-btn[aria-expanded="true"] ~ .table-bar-download-dropdown {
    display: block;
}

.table-bar-settings {
    background-color: var(--main-color);
    color: #ffffff;
    border: none !important;
    border-radius: 0;
    padding: 0.05rem 0.5rem;
    outline: none !important;
    box-shadow: none !important;
}

.table-bar-settings:hover,
.table-bar-settings:focus,
.table-bar-settings:active,
.table-bar-settings.show,
.table-bar .dropdown.show .table-bar-settings {
    background-color: var(--main-color);
    color: #ffffff;
    opacity: 0.85;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.table-bar .dropdown {
    position: relative;
    background-color: var(--main-color);
}

.table-bar .dropdown-menu {
    z-index: 1050;
}

.table-bar .table-bar-download-dropdown .table-bar-download {
    border-radius: 0 0.25rem 0.25rem 0;
}

.table-bar .table-bar-download-dropdown .dropdown-menu {
    padding: 0.5rem 0;
}

.table-bar .table-bar-download-dropdown .dropdown-item {
    color: var(--main-color);
}

.table-bar .table-bar-download-dropdown .dropdown-item:hover,
.table-bar .table-bar-download-dropdown .dropdown-item:focus {
    background-color: var(--main-color);
    color: #ffffff;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section + .settings-section {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
}

.collapsing {
    transition: none !important;
}

/* Table Bar Copy Flash Animation */
.table-bar.copy-flash {
    animation: copy-flash 0.3s ease;
}

@keyframes copy-flash {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ========================================
   New Table Container - Sticky Headers & Columns
   ======================================== */

.new-table-container {
    max-height: calc(100vh - 250px);
    overflow: auto;
    border: 1px solid #e0e0e0;
    width: fit-content;
    max-width: 100%;
}

.new-table-container table {
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    margin-bottom: 0;
    --bs-table-striped-bg: #fafafa;
}

.new-table-container table th,
.new-table-container table td {
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.new-table-container table thead th {
    font-weight: 700;
    color: #333;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: none !important;
}

.new-table-container table tbody tr:hover {
    background-color: #f0f0f0;
}

.new-table-container table td {
    color: #333;
}

/* Sticky first column */
.new-table-container table td:first-child,
.new-table-container table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    white-space: nowrap;
}

/* Border on first column only for single-column sticky tables (no .sticky-col class) */
.new-table-container table td:first-child:not(.sticky-col),
.new-table-container table thead th:first-child:not(.sticky-col) {
    border-right: 2px solid #e0e0e0;
}

.new-table-container table thead th:first-child {
    z-index: 3;
    background-color: #fff !important;
    color: #333 !important;
    box-shadow: none !important;
}

/* First column sortable header needs extra padding for sort indicator + border */
.new-table-container table thead th:first-child.sortable {
    padding-right: 26px;
}

.new-table-container table tbody td:first-child {
    background-color: #fafafa !important;
    color: #333 !important;
    box-shadow: none !important;
}

.new-table-container table tbody tr:nth-child(even) td:first-child {
    background-color: #fff !important;
}

/* Override table-primary in new-table-container to use alternating colors */
.new-table-container table tbody td.table-primary {
    background-color: #fff !important;
    --bs-table-bg-state: transparent !important;
    box-shadow: none !important;
}

.new-table-container table tbody tr:nth-child(odd) td.table-primary {
    background-color: #fafafa !important;
}

/* Multiple sticky columns support */
.new-table-container table td.sticky-col,
.new-table-container table th.sticky-col {
    position: sticky;
    z-index: 1;
}

.new-table-container table thead th.sticky-col {
    z-index: 3;
    background-color: #fff !important;
    color: #333 !important;
}

.new-table-container table tbody td.sticky-col {
    background-color: #fafafa !important;
}

.new-table-container table tbody tr:nth-child(even) td.sticky-col {
    background-color: #fff !important;
}

/* Override table-primary in sticky columns to use alternating colors */
.new-table-container table tbody td.sticky-col.table-primary {
    background-color: #fafafa !important;
    box-shadow: none !important;
}

.new-table-container table tbody tr:nth-child(even) td.sticky-col.table-primary {
    background-color: #fff !important;
    box-shadow: none !important;
}

/* Border on last sticky column */
.new-table-container table td.sticky-col-last,
.new-table-container table th.sticky-col-last {
    border-right: 2px solid #e0e0e0;
}

/* Hover highlighting for sticky columns - must match specificity of nth-child rules */
.new-table-container table tbody tr:hover td.sticky-col,
.new-table-container table tbody tr:hover td:first-child,
.new-table-container table tbody tr:hover td.table-primary,
.new-table-container table tbody tr:nth-child(odd):hover td.sticky-col,
.new-table-container table tbody tr:nth-child(even):hover td.sticky-col,
.new-table-container table tbody tr:nth-child(odd):hover td.sticky-col.table-primary,
.new-table-container table tbody tr:nth-child(even):hover td.sticky-col.table-primary {
    background-color: #f0f0f0 !important;
    box-shadow: none !important;
}

/* Table responsive override */
.new-table-container .table-container.table-responsive {
    overflow: visible;
}

/* Compact Table Mode */
.new-table-container.compact-table table {
    font-size: 12px;
}

.new-table-container.compact-table table th,
.new-table-container.compact-table table td {
    padding: 4px 8px;
    line-height: 1.2;
}

.new-table-container.compact-table table thead th.sortable {
    padding-right: 16px;
}

.new-table-container.compact-table table tbody td:not(:first-child) {
    padding-right: 16px;
}

.new-table-container.compact-table table thead th.sortable .sort-indicator {
    right: 3px;
    font-size: 10px;
}

/* Column and Row Highlighting */
.new-table-container table thead th.column-highlight {
    background-color: #e8e8e8 !important;
}

.new-table-container table tbody td:first-child.row-header-highlight,
.new-table-container table tbody tr:nth-child(even) td:first-child.row-header-highlight {
    background-color: #e8e8e8 !important;
}

/* Sortable Column Headers */
.new-table-container table thead th.sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 22px;
}

.new-table-container table tbody td:not(:first-child) {
    padding-right: 22px;
}

.new-table-container table thead th.sortable:hover {
    background-color: #e8e8e8;
}

/* Sort indicator icon */
.new-table-container table thead th.sortable .sort-indicator {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #bbb;
}

/* Highlight icon when sorted */
.new-table-container table thead th.sort-asc .sort-indicator,
.new-table-container table thead th.sort-desc .sort-indicator {
    color: var(--main-color);
    font-size: 14px;
    right: 4px;
}

.new-table-container.compact-table table thead th.sort-asc .sort-indicator,
.new-table-container.compact-table table thead th.sort-desc .sort-indicator {
    font-size: 12px;
    right: 0;
}

/* ========================================
   Table Header with Accent Bar
   ======================================== */

.table-header {
    margin-top: 0;
    margin-bottom: 1rem;
}

.table-header-line {
    display: flex;
    align-items: stretch;
}

.table-header-bar {
    width: 22px;
    background-color: var(--main-color);
    flex-shrink: 0;
}

.table-header-title {
    min-height: 40px;
}

.table-header-title .table-header-text {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    color: #464646;
    padding-left: 8px;
}

.table-header-subtitle {
    height: 22px;
}

.table-header-subtitle .table-header-text {
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    color: #464646;
    padding-left: 9px;
}

.table-header-source {
    height: 16px;
}

.table-header-source .table-header-text {
    font-size: 8px;
    color: lightgrey;
    line-height: 16px;
    padding-left: 10px;
}

/* Table Download Area */
.table-download-area {
    background-color: #ffffff;
}

/* ========================================
   Pricing Tier Cards
   ======================================== */

.pricing-tiers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-tiers {
        flex-direction: row;
        justify-content: center;
    }
}

.pricing-card {
    flex: 1;
    max-width: 320px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .pricing-card {
        margin: 0;
    }
}

.pricing-card-header {
    background-color: var(--main-color);
    color: #ffffff;
    padding: 1rem;
    text-align: center;
}

.pricing-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-card-features li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: #333;
}

.pricing-card-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

.pricing-card-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-main-color);
    margin-bottom: 0.5rem;
}

.pricing-card-note {
    font-size: 0.875rem;
    color: #666;
}

/* ========================================
   Pricing Table (Single Card with Price Columns)
   ======================================== */

.pricing-table {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.pricing-table-header {
    background-color: var(--main-color);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.pricing-table-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-table-subtitle {
    margin-top: 0.25rem;
    font-size: 1rem;
    opacity: 0.9;
}

.pricing-table-body {
    padding: 1.5rem;
}

.pricing-table-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.pricing-table-features li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: #333;
}

.pricing-table-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

.pricing-table-prices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .pricing-table-prices {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.pricing-table-price-column {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-width: 200px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .pricing-table-price-column {
        margin: 0;
    }
}

.pricing-table-price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-main-color);
    margin-bottom: 0.25rem;
}

.pricing-table-price-label {
    font-size: 0.875rem;
    color: #666;
}

.pricing-table-note {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}