:root {
    --sidebar-width: 260px;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --border-color: #e5e7eb;
    --bg-hover: #f3f4f6;
    --accent: #2563eb;
}

.indicator-hdr-container {
    margin: 0 0 20px 50px;
    width: 96%;
    height: 100px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.indicator-hdr-overlay {
    background: rgba(0, 0, 0, 0.7);
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 8px 16px;
    border-radius: 8px;
}

.indicator-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    font-family: "IBM Plex Sans", sans-serif;
    margin-bottom: 5px;
}

.indicator-hdr-overlay .breadcrumb {
    margin-left: 4px;
    text-align: left;
    color: white !important;
    font-size: 14px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
}

.indicator-hdr-overlay .breadcrumb a {
    color: white !important;
    text-decoration: none;
}

.indicator-hdr-overlay .breadcrumb a:hover {
    text-decoration: underline;
}

.indicator-hdr-overlay .breadcrumb .separator {
    margin: 0 6px; /* add spacing around slashes */
}

.breadcrumb i {
    font-size: 13px;
}

.breadcrumb i.bi-folder2-open {
    margin-right: 8px;
}

.breadcrumb i.bi-chevron-right {
    margin: 0 6px;
}

.indicator-content-wrapper {
    margin: 0 auto;
    width: 95%;
    display: grid;
    grid-template-columns: 1fr 5fr;
}

.indicator-left-wrapper {
    width: 85%;
    height: fit-content;
    background: #eeeeee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.filter-header {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #6A7282;
    padding: 10px 20px 0 20px;
    text-transform: uppercase;
}


.indicator-filter-container {
    width: 100%;
    margin-left: 30px;
}


.indicator-quick-links {
    list-style-type: none;
    padding: 6px 20px 20px 20px;
    font-family: "Inter", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.indicator-quick-links li.active {
    background-color: #F8F8FF;
    border-color: #2563EB;
    color: #2563EB;
    font-weight: 600;
}


.indicator-quick-links li {
    padding: 8px 16px;
    font-weight: 400;
    font-size: 14px;
    background-color: #FAFAFA;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    color: #6B7280;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    gap: 8px;
}

.indicator-quick-links li:hover {
    background-color: #F3F4F6;
}

.indicator-quick-links li:last-child {
    margin-bottom: 0; /* ✅ Remove margin from last item */
}


.indicator-main-content-wrapper {
    margin: 0 0 20px 50px;
}

.tag-count {
    background-color: #E5E7EB; /* Light grey background */
    color: #4B5563;            /* Darker grey text */
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;          /* Vertical and horizontal padding */
    border-radius: 4px;        /* Matches your 6px/8px design system */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

/* Make the badge stand out when the tag is selected */
.indicator-quick-links li.active .tag-count {
    background-color: rgba(37, 99, 235, 0.1); /* Light blue tint */
    color: #2563EB;                          /* Brand blue */
}


/* Sidebar Styling */
.sidebar-group {
    margin-bottom: 32px;
}

.sidebar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.nav-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--accent);
}

.nav-item:hover i {
    color: var(--accent);
}



/* --- Grid container --- */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    grid-auto-rows: 1fr; /* make all rows equal height */
}

/* --- Each series link wrapper --- */
.series-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
    padding-bottom: 16px;
}

/* --- Hide smoothly when filtered --- */
.series-item-link.hidden {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

/* --- Card itself --- */
.series-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    cursor: pointer;
    transition: all 0.2s ease;
    word-break: break-word;
}

.s-item-series-code {
    font-weight: 600;
    font-size: 0.8rem;
    font-family: "Inter", sans-serif;
    color: #d3d3d3;
    margin-bottom: 8px;
}

.s-item-series-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #1a73e8;
    margin-bottom: 8px;
}


.s-item-latest-value {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #1a202c;
    font-size: .8rem;
}

.s-item-latest-date {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #64748b;
    font-size: 12px;
}

.s-item-latest-period {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 300;
    color: #d3d3d3;
}

.s-item-compare {
    font-size: 1rem;
    border-radius: 50px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
}

/* Green trend pill */
.s-item-compare.trend-color-green {
    background-color: #d1fae5; /* Light green background */
    border: 1px solid #10b981; /* Green border */
    color: #065f46; /* Dark green text */
}

/* Red trend pill */
.s-item-compare.trend-color-red {
    background-color: #fee2e2; /* Light red background */
    border: 1px solid #ef4444; /* Red border */
    color: #991b1b; /* Dark red text */
}

/* Gray/neutral trend pill */
.s-item-compare.trend-color-gray {
    background-color: #f3f4f6; /* Light gray background */
    border: 1px solid #9ca3af; /* Gray border */
    color: #4b5563; /* Dark gray text */
}


.s-item-change {
    font-family: "Inter", sans-serif;
    font-weight: 500;
}


/* Trend color styles */
.trend-color-green {
    color: #2AA63E;
}

.trend-color-red {
    color: #E7180B;
}

.trend-color-gray {
    color: #6b7280;
}



.s-item-period-compared {
    font-size: 12px;
}

.series-item:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.series-item-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.series-item-link.hide {
    opacity: 0;
    transform: translateY(10px);
}



.group-block {
    padding-bottom: 20px;
}

/* === Series Pagination === */
.series-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.series-pagination a,
.series-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 0;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.series-pagination a:hover {
    background-color: #d3d3d3;
    color: black;
    border-color: #ccc;
}

.series-pagination span.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    cursor: default;
}

.series-pagination span.disabled {
    color: #aaa;
    border-color: #eee;
    cursor: not-allowed;
}

.series-pagination i.bi {
    font-size: 0.9rem;
}

.table-responsive {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.series-table {
    width: 100%;
    border-collapse: collapse;
}

.series-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    color: #6A7282;
}

.series-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}


.series-table td:nth-child(2),
.col-description {
    max-width: 400px;
    min-width: 250px;
    word-wrap: break-word;
}

.series-table th:last-child,
.series-table td:last-child {
    min-width: 180px;
    text-align: left;
    white-space: nowrap;
}

.series-table tr:hover {
    background-color: #f1f5f9;
}

.series-description,
.series-description a {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #101828;
    text-decoration: none;
    font-size: .9rem;
}

.series-description a:hover {
    color: #2563EB;
    text-decoration: underline;
}

.series-description i {
    opacity: 0;
    color: #2563eb;
    font-size: 0.75rem;
    vertical-align: middle;
    margin-left: 4px;
}

.series-description:hover i {
    opacity: 1;
}

.series-region-name {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #6A7282;
    text-transform: uppercase;
    font-size: .8rem;
}


.series-latest-value {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #101828;
    font-size: .9rem;
    text-align: right;
}

.series-latest-period {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    color: #6A7282;
    text-transform: uppercase;
    font-size: .9rem;
    text-align: center;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

th.text-right {
    text-align: right;
}


.trend-container .compare-date {
    font-family: "Inter", sans-serif;
    color: #6A7282;
    font-weight: 300;
    font-size: .9rem;
}

.trend-container .trend-value {
    font-family: "Inter", sans-serif;
    color: #101828;
    font-weight: 600;
    font-size: .9rem;
}

.series-code-label {
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    font-size: .9rem;
}