/* Component: Report previews, sector/macro viewers and list pagination. Rules are plugin-scoped (.cbah-*). */
/* Dynamically generated sector report inner tabs. */
#sec-tabs-bar.cbah-macro-tabs {
    display: none !important;
}
#sec-tabs-bar.cbah-macro-tabs.cbah-is-visible {
    display: flex !important;
}
#sec-tabs-bar .cbah-sec-tab {
    display: inline-block !important;
    cursor: pointer !important;
    padding: 0 0 10px !important;
    margin: 0 0 -1px !important;
    border-bottom: 2px solid transparent !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
}
#sec-tabs-bar .cbah-sec-tab.active {
    color: #0f172a !important;
    border-bottom-color: #3b82f6 !important;
}
#sec-panes-container .cbah-sec-pane {
    display: none !important;
}
#sec-panes-container .cbah-sec-pane.active {
    display: block !important;
}

/* Keep every report action button on one line and visually consistent. */
.cbah-reports-preview .cbah-btn-view,
.cbah-reports-preview .cbah-btn-large,
.cbah-sector-toggle-card .cbah-btn-view {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
.cbah-sector-toggle-card .cbah-btn-view {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Macro report inner tabs: one active tab controls both underline and pane. */
.cbah-macro-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding-bottom: 0 !important;
}

.cbah-mac-tab {
    display: inline-block !important;
    cursor: pointer !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    border-bottom: 2px solid transparent !important;
    padding: 0 0 10px !important;
    margin: 0 0 -1px !important;
}

.cbah-mac-tab.active {
    color: #0f172a !important;
    border-bottom-color: #3b82f6 !important;
}

.cbah-mac-pane {
    display: none !important;
    box-sizing: border-box !important;
}


#mac-tab-indicators.cbah-mac-pane {
    padding: 15px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
}

#mac-tab-gov.cbah-mac-pane {
    padding: 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.cbah-dashboard-wrap .cbah-data-table tbody td:first-child strong {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
}

/* Market mover tables: keep price/change values visible without affecting other tables. */
.cbah-market-movers-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.cbah-market-movers-table th:first-child,
.cbah-market-movers-table td:first-child {
    width: 40% !important;
    min-width: 0 !important;
    padding-right: 12px !important;
    white-space: nowrap !important;
}

.cbah-market-movers-table th.cbah-table-price,
.cbah-market-movers-table td.cbah-table-price-value {
    width: 28% !important;
    min-width: 90px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.cbah-market-movers-table th.cbah-table-value,
.cbah-market-movers-table td.cbah-table-value {
    width: 32% !important;
    min-width: 100px !important;
    padding-left: 12px !important;
    padding-right: 36px !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Ticker: force a left-anchored horizontal viewport and prevent host-theme centering. */
.cbah-price-ticker {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease;
}

/* The ticker script briefly measures and clones ticker content before the
 * first animation frame is drawn. Fading the whole widget out during that
 * window (instead of the individual wrapper/track/group/item elements,
 * which are force-visible above) avoids a visible layout jump when the
 * clones are appended and the initial transform position is set. */
.cbah-price-ticker.cbah-ticker-initializing {
    opacity: 0 !important;
}

.cbah-price-ticker .cbah-ticker-date {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 218px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 50px !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.cbah-price-ticker .cbah-ticker-wrapper {
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.cbah-price-ticker .cbah-ticker-track {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    transform-origin: left center !important;
    will-change: transform !important;
}

.cbah-price-ticker .cbah-ticker-group {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.cbah-price-ticker .cbah-ticker-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.cbah-price-ticker .cbah-ticker-item span,
.cbah-price-ticker .cbah-ticker-item .cbah-txt-green,
.cbah-price-ticker .cbah-ticker-item .cbah-txt-red {
    display: inline !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 0 3px !important;
    padding: 0 !important;
    white-space: nowrap !important;
    line-height: inherit !important;
}

.cbah-price-ticker .cbah-ticker-wrapper,
.cbah-price-ticker .cbah-ticker-track,
.cbah-price-ticker .cbah-ticker-group,
.cbah-price-ticker .cbah-ticker-item {
    visibility: visible !important;
    opacity: 1 !important;
}

.cbah-price-ticker .cbah-ticker-track {
    /* JavaScript owns ticker movement. Keeping the track static until JS has
     * measured it prevents the initial CSS animation from racing ahead and
     * causing the visible fast-start/jump on page load. */
    animation: none !important;
    transition: none !important;
}


.cbah-price-ticker:not(.cbah-ticker-js) .cbah-ticker-group-secondary {
    display: flex !important;
}

@media (max-width: 900px) {
    .cbah-home-snapshot.cbah-snapshot-page,
    .cbah-home-snapshot.cbah-snapshot-home {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 20px !important;
    }

    .cbah-home-snapshot.cbah-snapshot-page .cbah-snap-item,
    .cbah-home-snapshot.cbah-snapshot-home .cbah-snap-item {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .cbah-home-snapshot.cbah-snapshot-page .cbah-snap-item:nth-child(odd),
    .cbah-home-snapshot.cbah-snapshot-home .cbah-snap-item:nth-child(odd) {
        padding-left: 0 !important;
    }

    .cbah-home-snapshot.cbah-snapshot-page .cbah-snap-item:nth-child(even),
    .cbah-home-snapshot.cbah-snapshot-home .cbah-snap-item:nth-child(even) {
        padding-right: 0 !important;
    }

    .cbah-snap-market-metrics {        padding-right: 0 !important;
    }

    .cbah-snap-metrics-row {
        column-gap: 10px !important;
    }
}

@media (max-width: 600px) {
    .cbah-price-ticker .cbah-ticker-date {
        min-width: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .cbah-home-snapshot.cbah-snapshot-page,
    .cbah-home-snapshot.cbah-snapshot-home {        row-gap: 14px !important;
    }

    .cbah-home-snapshot.cbah-snapshot-page .cbah-snap-item,
    .cbah-home-snapshot.cbah-snapshot-home .cbah-snap-item {
        width: 100% !important;
        padding: 0 0 12px !important;
        border-left: 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .cbah-home-snapshot.cbah-snapshot-home .cbah-snap-item:last-child,
    .cbah-home-snapshot.cbah-snapshot-page .cbah-snap-item:last-child {
        padding-bottom: 0 !important;
        border-bottom: 0 !important;
    }

    
    .cbah-snap-metric-label {        letter-spacing: 0.45px !important;
    }

    }


