/* Emphasis classes are assigned from each table's visible column headings. */
table tbody td.table-emphasis-key {
    color: #183b60 !important;
    font-weight: 700 !important;
}

table tbody td.table-emphasis-metric {
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
}

table tbody td.table-emphasis-secondary {
    color: #667085 !important;
    font-weight: 500 !important;
}

table tbody td.table-emphasis-status {
    color: #536277 !important;
    font-weight: 500 !important;
}

/* Shared table palette: calm headers, neutral rows, and one clear key column. */
table thead th {
    background-color: #edf2f7 !important;
    color: #536277 !important;
    border-color: #dce4ed !important;
    font-weight: 700 !important;
}

table tbody tr>td,
table tfoot tr>td {
    border-color: #e2e8f0 !important;
}

table tbody tr:nth-child(odd)>td {
    background-color: #ffffff !important;
}

table tbody tr:nth-child(even)>td {
    background-color: #f8fafc !important;
}

table tbody tr>td:not(:first-child) {
    color: #657386 !important;
    font-weight: 500 !important;
}

table tbody tr>td.table-emphasis-key:not(:first-child) {
    color: #657386 !important;
    font-weight: 500 !important;
}

table tbody tr>td.table-emphasis-metric:not(:first-child) {
    /* color: #657386 !important; */
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
}

table tbody tr>td:not(:first-child) :not(.badge):not([class*="badge"]):not(button):not(svg) {
    color: #657386 !important;
}

table tbody tr>td:first-child:not([colspan]),
table tfoot tr>td:first-child:not([colspan]) {
    background-color: #eaf2fb !important;
    color: #214f7a !important;
    border-right: 1px solid #d6e2ef !important;
    font-weight: 700 !important;
}

table tbody tr:nth-child(even)>td:first-child:not([colspan]),
table tfoot tr>td:first-child:not([colspan]) {
    background-color: #e4eef9 !important;
}

table tbody tr>td:first-child:not([colspan]) a,
table tfoot tr>td:first-child:not([colspan]) a {
    color: #214f7a !important;
    font-weight: 700 !important;
}

/* Negative financial and count values stay easy to spot in every data table. */
table tbody tr>td.table-emphasis-negative,
table tfoot tr>td.table-emphasis-negative {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

table tbody tr>td.table-emphasis-negative *:not(svg),
table tfoot tr>td.table-emphasis-negative *:not(svg) {
    color: #dc3545 !important;
}

/* Every data table gets its own horizontal scroll area when needed. */
.app-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #9aafc5 #e8eef5;
}

.app-table-scroll:focus-visible {
    outline: 2px solid #5b72e8;
    outline-offset: 2px;
}

.app-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.app-table-scroll::-webkit-scrollbar-track {
    background: #e8eef5;
    border-radius: 6px;
}

.app-table-scroll::-webkit-scrollbar-thumb {
    background: #9aafc5;
    border-radius: 6px;
}

@media (max-width: 767.98px) {
    .app-table-scroll>table {
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
    }

    .app-table-scroll>table th,
    .app-table-scroll>table td {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
}

.cc-table tbody tr.total-row .col-tot-val {
    color: #fff !important;
    background: gray !important;
}

.cc-table tbody tr.total-row td {
    background: gray !important;
    color: #fff !important;
    font-weight: 800 !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    font-size: 14px !important;
    padding-top: 15px;
    padding-bottom: 15px;
}

table th:last-child,
table td:last-child {
    padding-right: 20px !important;
}

.cp-table thead th {
    font-weight: 800 !important;
    color: black !important;
    font-size: 12.5px;
}

table.cph-table th {
    font-weight: 800 !important;
    color: black !important;
    font-size: 12.5px !important;
    border: 1.5px solid #b3b3b3 !important;
}

table.cph-table th,
table.cph-table td {
    padding: 9px 12px;
    border: 1px solid #f1f5f9 !important;
}

.cs-breakdown-tbl tbody td,
.cs-breakdown-tbl tbody th {
    border: 1px solid #f2f4f8;
}

.cs-breakdown-tbl .sub-header th {
    border: 1.5px solid #dedede !important;
}

.cs-dept-tbl tbody td {
    border: 1px solid #f4f4f4;
}

table.cph-table tfoot tr>td:first-child {
    background: #808080 !important;
    color: white !important;
}

.cc-table thead th,
.cc-table thead td {
    border: 1px solid #e2e8f0 !important;
}

.cc-table tbody td {
    border: 1px solid #e2e8f0 !important;
}