/* ============================================================
   TAX PUBLICATIONS + TAX TOP NAVIGATION
   Shared Debt layout with Tax blue visual identity

   Tax palette:
   Primary:      #0d8ac7
   Primary dark: #0875ae
   Deep text:    #0f2747
   Soft blue:    #eef8fd
   Border blue:  rgba(13, 138, 199, 0.28)
============================================================ */


/* ============================================================
   TAX THEME VARIABLES
============================================================ */

.public-dashboard-page {
    --tax-primary: #0d8ac7;
    --tax-primary-dark: #0875ae;
    --tax-primary-deeper: #066694;

    --tax-text: #0f2747;
    --tax-muted-text: #517391;

    --tax-soft-bg: #eef8fd;
    --tax-soft-bg-strong: #e4f4fc;

    --tax-border: rgba(13, 138, 199, 0.28);
    --tax-border-strong: rgba(13, 138, 199, 0.38);

    --tax-shadow:
        0 8px 18px rgba(13, 138, 199, 0.18);
}


/* ============================================================
   TAX MAIN TAB
   Applies across ALL Tax pages, not publication pages only.
============================================================ */

.top-dashboard-tabs
.tax-main-tab.active {
    background: var(--tax-primary) !important;
    border-color: var(--tax-primary-dark) !important;
    color: #ffffff !important;

    box-shadow:
        0 7px 16px rgba(13, 138, 199, 0.20) !important;
}


/* Hover on normal or active Tax tab */

.top-dashboard-tabs
.tax-main-tab:hover,
.top-dashboard-tabs
.tax-main-tab:focus {
    background: var(--tax-primary) !important;
    border-color: var(--tax-primary-dark) !important;
    color: #ffffff !important;
}


/* Keep arrow consistent with text */

.top-dashboard-tabs
.tax-main-tab:hover
.dashboard-dropdown-arrow,

.top-dashboard-tabs
.tax-main-tab:focus
.dashboard-dropdown-arrow,

.top-dashboard-tabs
.tax-main-tab.active
.dashboard-dropdown-arrow {
    color: #ffffff !important;
}


/* Keyboard accessibility */

.top-dashboard-tabs
.tax-main-tab:focus-visible {
    outline: 2px solid rgba(13, 138, 199, 0.32) !important;
    outline-offset: 2px;
}


/* ============================================================
   TAX DROPDOWN MENU
   IMPORTANT:
   These selectors DO NOT depend on .tax-publication-page.
   Therefore Tax Dashboard, Tax Law, MTRS and Tax Expenditure
   pages all receive the same blue dropdown styling.
============================================================ */


/* Normal Tax dropdown items */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item {
    color: var(--tax-text) !important;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease !important;
}


/* ============================================================
   TAX DROPDOWN — HOVER
============================================================ */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:hover,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:focus {
    background:
        linear-gradient(
            180deg,
            rgba(232, 247, 254, 0.98),
            rgba(242, 250, 254, 0.98)
        ) !important;

    border-color:
        rgba(13, 138, 199, 0.28) !important;

    color: var(--tax-primary-dark) !important;

    box-shadow:
        inset 0 0 0 1px rgba(13, 138, 199, 0.025),
        0 3px 10px rgba(13, 138, 199, 0.055) !important;
}


/* ============================================================
   TAX DROPDOWN — CURRENT / ACTIVE PAGE
============================================================ */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"] {
    background:
        linear-gradient(
            180deg,
            rgba(225, 244, 253, 0.99),
            rgba(239, 249, 254, 0.99)
        ) !important;

    border:
        1px solid rgba(13, 138, 199, 0.34) !important;

    color: var(--tax-primary-dark) !important;

    box-shadow:
        inset 0 0 0 1px rgba(13, 138, 199, 0.035),
        0 3px 10px rgba(13, 138, 199, 0.055) !important;
}


/* Active item while hovered */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active:hover,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"]:hover {
    background:
        linear-gradient(
            180deg,
            rgba(216, 240, 252, 1),
            rgba(233, 247, 253, 1)
        ) !important;

    border-color:
        rgba(13, 138, 199, 0.42) !important;
}


/* ============================================================
   TAX DROPDOWN TITLES
============================================================ */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:hover
.dashboard-dropdown-title,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:focus
.dashboard-dropdown-title,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active
.dashboard-dropdown-title,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"]
.dashboard-dropdown-title {
    color: var(--tax-primary-dark) !important;
}


/* ============================================================
   TAX DROPDOWN DESCRIPTIONS
============================================================ */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:hover
.dashboard-dropdown-desc,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:focus
.dashboard-dropdown-desc,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active
.dashboard-dropdown-desc,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"]
.dashboard-dropdown-desc {
    color: var(--tax-muted-text) !important;
}


/* ============================================================
   TAX DROPDOWN SEPARATORS
   Prevent inherited Debt/gold separators.
============================================================ */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item
+ .tax-dropdown-item {
    border-top-color:
        rgba(13, 138, 199, 0.12) !important;
}


.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item
+ .tax-dropdown-item::after {
    background:
        rgba(13, 138, 199, 0.13) !important;

    border-color:
        rgba(13, 138, 199, 0.13) !important;
}


/* ============================================================
   TAX DROPDOWN KEYBOARD FOCUS
============================================================ */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:focus-visible {
    outline:
        2px solid rgba(13, 138, 199, 0.32) !important;

    outline-offset: 1px;
}


/* ============================================================
   TAX DROPDOWN DISABLED ITEM
============================================================ */

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.disabled,

.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-disabled="true"] {
    background: transparent !important;
    border-color: transparent !important;
    color: #91a4b8 !important;
    box-shadow: none !important;
    cursor: default !important;
    opacity: 0.65;
}


/* ============================================================
   TAX PUBLICATION PAGE
   FILE COUNT BADGE
============================================================ */

.public-dashboard-page.tax-publication-page
.chart-meta-badge {
    background:
        rgba(13, 138, 199, 0.08) !important;

    border:
        1px solid rgba(13, 138, 199, 0.20) !important;

    color: var(--tax-primary-dark) !important;
}


/* ============================================================
   TAX PUBLICATION PAGE
   DOWNLOAD BUTTON
============================================================ */

.public-dashboard-page.tax-publication-page
.download-btn {
    background: var(--tax-primary) !important;
    border-color: var(--tax-primary-dark) !important;
    color: #ffffff !important;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease !important;
}


.public-dashboard-page.tax-publication-page
.download-btn:hover {
    background: var(--tax-primary-dark) !important;
    border-color: var(--tax-primary-deeper) !important;
    color: #ffffff !important;

    box-shadow:
        0 5px 12px rgba(13, 138, 199, 0.16) !important;
}


.public-dashboard-page.tax-publication-page
.download-btn:focus-visible {
    outline:
        2px solid rgba(13, 138, 199, 0.30) !important;

    outline-offset: 2px;
}


/* ============================================================
   TAX PUBLICATION PAGE
   TABLE HOVER
============================================================ */

.public-dashboard-page.tax-publication-page
.dashboard-table
tbody
tr:hover {
    background:
        rgba(13, 138, 199, 0.055) !important;
}


/* ============================================================
   DARK MODE — TAX MAIN TAB
============================================================ */

[data-theme="dark"]
.top-dashboard-tabs
.tax-main-tab.active,

[data-theme="dark"]
.top-dashboard-tabs
.tax-main-tab:hover,

[data-theme="dark"]
.top-dashboard-tabs
.tax-main-tab:focus {
    background: #0284c7 !important;
    border-color: #0ea5e9 !important;
    color: #ffffff !important;

    box-shadow:
        0 7px 18px rgba(2, 132, 199, 0.20) !important;
}


/* ============================================================
   DARK MODE — TAX DROPDOWN HOVER
============================================================ */

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:hover,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:focus {
    background:
        rgba(14, 165, 233, 0.10) !important;

    border-color:
        rgba(56, 189, 248, 0.28) !important;

    color: #38bdf8 !important;

    box-shadow:
        inset 0 0 0 1px rgba(56, 189, 248, 0.025) !important;
}


/* ============================================================
   DARK MODE — TAX ACTIVE ITEM
============================================================ */

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"] {
    background:
        rgba(14, 165, 233, 0.14) !important;

    border-color:
        rgba(56, 189, 248, 0.36) !important;

    color: #38bdf8 !important;

    box-shadow:
        inset 0 0 0 1px rgba(56, 189, 248, 0.04) !important;
}


/* Active + hover */

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active:hover,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"]:hover {
    background:
        rgba(14, 165, 233, 0.18) !important;

    border-color:
        rgba(56, 189, 248, 0.44) !important;
}


/* ============================================================
   DARK MODE — TAX TITLE
============================================================ */

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:hover
.dashboard-dropdown-title,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:focus
.dashboard-dropdown-title,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active
.dashboard-dropdown-title,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"]
.dashboard-dropdown-title {
    color: #38bdf8 !important;
}


/* ============================================================
   DARK MODE — TAX DESCRIPTION
============================================================ */

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:hover
.dashboard-dropdown-desc,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item:focus
.dashboard-dropdown-desc,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item.active
.dashboard-dropdown-desc,

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item[aria-current="page"]
.dashboard-dropdown-desc {
    color: #a9c5df !important;
}


/* ============================================================
   DARK MODE — SEPARATORS
============================================================ */

[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item
+ .tax-dropdown-item {
    border-top-color:
        rgba(56, 189, 248, 0.11) !important;
}


[data-theme="dark"]
.top-dashboard-tabs
.tax-dropdown-menu
.tax-dropdown-item
+ .tax-dropdown-item::after {
    background:
        rgba(56, 189, 248, 0.11) !important;

    border-color:
        rgba(56, 189, 248, 0.11) !important;
}


/* ============================================================
   DARK MODE — FILE COUNT BADGE
============================================================ */

[data-theme="dark"]
.public-dashboard-page.tax-publication-page
.chart-meta-badge {
    background:
        rgba(14, 165, 233, 0.10) !important;

    border-color:
        rgba(56, 189, 248, 0.24) !important;

    color: #38bdf8 !important;
}


/* ============================================================
   DARK MODE — TABLE HOVER
============================================================ */

[data-theme="dark"]
.public-dashboard-page.tax-publication-page
.dashboard-table
tbody
tr:hover {
    background:
        rgba(14, 165, 233, 0.07) !important;
}



/* ============================================================
   TAX PUBLICATION TABLE NORMALIZATION
   ------------------------------------------------------------
   Applies to:
   - Tax Law
   - MTRS
   - Tax Expenditure Reports

   Layout/spacing intentionally matches Macro and Debt.
   Only the Tax blue accent is different.
============================================================ */


/* ============================================================
   PUBLICATION CARD
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
#publications-section {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;

    box-sizing: border-box !important;
}


/* ============================================================
   HEADER
   Same title + right-side badge arrangement as Debt/Macro
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
#publications-section
.chart-card-header {
    display: flex !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 16px !important;

    width: 100% !important;

    margin-bottom: 24px !important;

    box-sizing: border-box !important;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
#publications-section
.chart-card-header
> div:first-child {
    flex: 1 1 auto !important;

    min-width: 0 !important;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
#publications-section
.chart-card-header
h3 {
    margin: 0 !important;
}


/* ============================================================
   FILE COUNT BADGE
   Same pill layout as Macro/Debt.
   Tax keeps only its blue accent.
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
#publications-section
.chart-meta-badge {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;

    height: auto !important;

    padding: 9px 18px !important;

    margin: 0 !important;

    border-radius: 999px !important;

    background:
        rgba(13, 138, 199, 0.08) !important;

    border:
        1px solid rgba(13, 138, 199, 0.20) !important;

    color:
        var(--tax-primary-dark) !important;

    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    box-sizing: border-box !important;
}


/* ============================================================
   TABLE WRAPPER
   Same behaviour as Macro/Debt.
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
#download-section.mini-table-wrap {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    overflow-x: auto !important;
    overflow-y: visible !important;

    box-sizing: border-box !important;
}


/* ============================================================
   TABLE
   Geometry exactly follows Debt/Macro.
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table {
    width: 100% !important;

    border-collapse: collapse !important;

    color: #dbe8ff;
}


/* Debt/Macro use 12px normally and 10px 12px for compact tables. */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
th,

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
td {
    padding: 12px !important;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08) !important;

    text-align: left !important;
    vertical-align: top !important;

    /*
       Tax previously forced 1.5.
       Removing that difference makes row height match Debt/Macro.
    */
    line-height: normal !important;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.compact-table
th,

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.compact-table
td {
    padding: 10px 12px !important;
}


/* ============================================================
   TABLE HEADER
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
th {
    color: #ffffff !important;

    font-weight: 700 !important;

    background:
        rgba(255, 255, 255, 0.04) !important;
}


/* ============================================================
   TAX-SPECIFIC HOVER
   Layout remains identical; only accent changes.
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
tbody
tr:hover {
    background:
        rgba(13, 138, 199, 0.055) !important;
}


/* ============================================================
   LIGHT MODE TABLE
   Same Debt/Macro structure with a subtle Tax-blue shade.
============================================================ */

[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table {
    color:
        #0f2747 !important;
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
th,

[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
td {
    border-bottom:
        1px solid rgba(15, 39, 71, 0.12) !important;
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
th {
    color:
        #071b33 !important;

    /*
       Debt/Macro use #eef4fb.
       This is the same visual treatment with the Tax blue shade.
    */
    background:
        #eef8fd !important;
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
td {
    color:
        #0f2747 !important;

    background:
        #ffffff !important;
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.dashboard-table
tbody
tr:hover
td {
    background:
        rgba(13, 138, 199, 0.045) !important;
}


/* ============================================================
   DOWNLOAD BUTTON
   Same role/position as Debt/Macro.
   Only Tax blue accent changes.
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.download-btn {
    background:
        var(--tax-primary) !important;

    border-color:
        var(--tax-primary-dark) !important;

    color:
        #ffffff !important;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.download-btn:hover {
    background:
        var(--tax-primary-dark) !important;

    border-color:
        var(--tax-primary-deeper) !important;

    color:
        #ffffff !important;
}


/* ============================================================
   DARK MODE BADGE
============================================================ */

[data-theme="dark"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.chart-meta-badge {
    background:
        rgba(14, 165, 233, 0.10) !important;

    border-color:
        rgba(56, 189, 248, 0.24) !important;

    color:
        #38bdf8 !important;
}


/* ============================================================
   RESPONSIVE PUBLICATION HEADER
   Keep badge visible without forcing it outside the card.
============================================================ */

@media (max-width: 600px) {

    .public-dashboard-page.tax-dashboard-page.tax-publication-page
    #publications-section
    .chart-card-header {
        align-items: flex-start !important;

        gap: 12px !important;
    }


    .public-dashboard-page.tax-dashboard-page.tax-publication-page
    #publications-section
    .chart-meta-badge {
        flex-shrink: 0 !important;

        padding: 8px 13px !important;
    }

}

/* ============================================================
   TAX PUBLICATION PAGES
   Match Macro / Debt publication tables exactly.
   Only Tax accent colors remain different.

   Applies to:
   - Tax Law
   - MTRS
   - Tax Expenditure Reports
============================================================ */


/* ============================================================
   MAIN PUBLICATION CARD
============================================================ */

.public-dashboard-page.tax-publication-page
#publications-section {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
}


/* ============================================================
   HEADER
   Same layout as Macro / Debt
============================================================ */

.public-dashboard-page.tax-publication-page
#publications-section
.chart-card-header {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 16px !important;

    width: 100% !important;

    margin-bottom: 24px !important;
}


.public-dashboard-page.tax-publication-page
#publications-section
.chart-card-header h3 {
    margin: 0 !important;
}


.public-dashboard-page.tax-publication-page
#publications-section
.chart-card-header > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}


/* ============================================================
   FILE COUNT BADGE
   Same size / shape / position as Macro and Debt.
   Tax keeps blue accent.
============================================================ */

.public-dashboard-page.tax-publication-page
#publications-section
.chart-meta-badge {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    width: auto !important;
    min-width: max-content !important;

    padding: 9px 18px !important;
    margin: 0 !important;

    border-radius: 999px !important;

    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    background: rgba(13, 138, 199, 0.08) !important;
    border: 1px solid rgba(13, 138, 199, 0.20) !important;
    color: #0875ae !important;
}


/* ============================================================
   TABLE WRAPPER
============================================================ */

.public-dashboard-page.tax-publication-page
#download-section {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    overflow-x: auto !important;
}


/* ============================================================
   TABLE
   Copy Debt / Macro dimensions.
============================================================ */

.public-dashboard-page.tax-publication-page
.dashboard-table {
    width: 100% !important;

    border-collapse: collapse !important;

    color: #dbe8ff !important;
}


.public-dashboard-page.tax-publication-page
.dashboard-table th,

.public-dashboard-page.tax-publication-page
.dashboard-table td {
    padding: 12px !important;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08) !important;

    text-align: left !important;
    vertical-align: top !important;

    /*
       Important:
       Tax tables.css currently forces 1.5,
       while Debt/Macro do not.
    */
    line-height: normal !important;
}


.public-dashboard-page.tax-publication-page
.compact-table th,

.public-dashboard-page.tax-publication-page
.compact-table td {
    padding: 10px 12px !important;
}


.public-dashboard-page.tax-publication-page
.dashboard-table th {
    color: #ffffff !important;

    font-weight: 700 !important;

    background:
        rgba(255, 255, 255, 0.04) !important;
}


/* Tax-only shaded hover */

.public-dashboard-page.tax-publication-page
.dashboard-table tbody tr:hover {
    background:
        rgba(13, 138, 199, 0.055) !important;
}


/* ============================================================
   LIGHT MODE
   Same table appearance as Debt/Macro.
   Only header shade is slightly Tax-blue.
============================================================ */

[data-theme="light"]
.public-dashboard-page.tax-publication-page
.dashboard-table {
    color: #0f2747 !important;
}


[data-theme="light"]
.public-dashboard-page.tax-publication-page
.dashboard-table th,

[data-theme="light"]
.public-dashboard-page.tax-publication-page
.dashboard-table td {
    border-bottom:
        1px solid rgba(15, 39, 71, 0.12) !important;
}


[data-theme="light"]
.public-dashboard-page.tax-publication-page
.dashboard-table th {
    color: #071b33 !important;

    background:
        #eef8fd !important;
}


[data-theme="light"]
.public-dashboard-page.tax-publication-page
.dashboard-table td {
    color: #0f2747 !important;

    background:
        #ffffff !important;
}


[data-theme="light"]
.public-dashboard-page.tax-publication-page
.dashboard-table tbody tr:hover td {
    background:
        rgba(13, 138, 199, 0.045) !important;
}


/* ============================================================
   DOWNLOAD BUTTON
============================================================ */

.public-dashboard-page.tax-publication-page
.download-btn {
    background: #0d8ac7 !important;
    border-color: #0875ae !important;
    color: #ffffff !important;
}


.public-dashboard-page.tax-publication-page
.download-btn:hover {
    background: #0875ae !important;
    border-color: #066694 !important;
    color: #ffffff !important;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .public-dashboard-page.tax-publication-page
    #publications-section
    .chart-card-header {
        align-items: flex-start !important;
        gap: 12px !important;
    }


    .public-dashboard-page.tax-publication-page
    #publications-section
    .chart-meta-badge {
        padding: 8px 13px !important;
    }

}

/* ============================================================
   TAX LAW ACCORDION
============================================================ */


/* ============================================================
   ACCORDION CONTAINER
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion {
    width: 100%;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 14px;

    overflow: hidden;

    box-sizing: border-box;
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion {
    border-color:
        rgba(15, 39, 71, 0.12);
}


/* ============================================================
   ACCORDION ITEM
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-item {
    width: 100%;

    margin: 0;

    border: 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.09);

    background: transparent;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-item:last-child {
    border-bottom: 0;
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-item {
    border-bottom-color:
        rgba(15, 39, 71, 0.11);
}


/* ============================================================
   CATEGORY HEADER
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    width: 100%;
    min-height: 64px;

    padding: 16px 20px;

    box-sizing: border-box;

    cursor: pointer;

    list-style: none;

    background: transparent;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-summary::-webkit-details-marker {
    display: none;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-summary::marker {
    content: "";
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-summary:hover {
    background:
        rgba(13, 138, 199, 0.055);
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-summary:hover {
    background:
        rgba(13, 138, 199, 0.045);
}


/* ============================================================
   TITLE
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-title {
    flex: 1 1 auto;

    min-width: 0;

    color:
        var(--tax-primary-dark);

    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}


/* ============================================================
   RIGHT-SIDE CONTROLS
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-actions {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    flex: 0 0 auto;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-category-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 5px 10px;

    box-sizing: border-box;

    border-radius: 999px;

    color:
        var(--tax-primary-dark);

    background:
        rgba(13, 138, 199, 0.08);

    border:
        1px solid rgba(13, 138, 199, 0.18);

    font-size: 0.72rem;
    font-weight: 750;

    white-space: nowrap;
}


/* ============================================================
   CHEVRON
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-chevron {
    display: block;

    width: 10px;
    height: 10px;

    border-right:
        2px solid var(--tax-primary-dark);

    border-bottom:
        2px solid var(--tax-primary-dark);

    transform:
        rotate(45deg) translateY(-2px);

    transform-origin: center;

    transition:
        transform 0.18s ease;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-item[open]
.tax-law-chevron {
    transform:
        rotate(225deg);
}


/* ============================================================
   OPEN STATE
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-item[open]
.tax-law-accordion-summary {
    background:
        rgba(13, 138, 199, 0.08);

    border-bottom:
        1px solid rgba(13, 138, 199, 0.18);
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-item[open]
.tax-law-accordion-summary {
    background:
        rgba(13, 138, 199, 0.07);
}


/* ============================================================
   EXPANDED TABLE AREA
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-content {
    width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-group-table-wrap {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    overflow-x: auto !important;
    overflow-y: visible !important;

    box-sizing: border-box !important;
}


/*
 * The same dashboard-table and compact-table classes used
 * by the original Tax Law page remain in place.
 */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-group-table-wrap
.dashboard-table {
    width: 100% !important;

    margin: 0 !important;
}


.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-group-table-wrap
.dashboard-table
tbody
tr:last-child
td {
    border-bottom: 0 !important;
}


/* ============================================================
   EMPTY CATEGORY
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-empty-row
td {
    padding: 17px 12px !important;

    text-align: center !important;

    color:
        rgba(219, 232, 255, 0.68) !important;

    font-style: italic;
}


[data-theme="light"]
.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-empty-row
td {
    color:
        var(--tax-muted-text) !important;

    background:
        #ffffff !important;
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

.public-dashboard-page.tax-dashboard-page.tax-publication-page
.tax-law-accordion-summary:focus-visible {
    outline:
        2px solid rgba(13, 138, 199, 0.42);

    outline-offset: -2px;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 820px) {

    .public-dashboard-page.tax-dashboard-page.tax-publication-page
    .tax-law-accordion-summary {
        min-height: 58px;

        padding:
            14px 15px;
    }


    .public-dashboard-page.tax-dashboard-page.tax-publication-page
    .tax-law-accordion-title {
        font-size: 0.88rem;
    }


    .public-dashboard-page.tax-dashboard-page.tax-publication-page
    .tax-law-category-count {
        display: none;
    }

}


/* END TAX LAW ACCORDION */

