/* Shared screen table baseline. Keep existing print layouts and column behavior. */
@media screen {
    .duevara-app-shell .duevara-main-content :is(.table, .dv-anomaly-table) {
        --bs-table-bg: transparent;
        --bs-table-border-color: #e1e7ef;
        --bs-table-striped-bg: transparent;
        --bs-table-hover-bg: #eff6f8;
        background-color: #fff;
        box-shadow: none;
        overflow: visible;
        font-size: max(1rem, 16px);
        line-height: 1.5;
    }

    .duevara-app-shell .duevara-main-content :is(.table, .dv-anomaly-table) > :not(caption) > * > * {
        padding: .8rem .85rem;
        border-bottom: 1px solid #e1e7ef;
        font-size: max(1rem, 16px);
        line-height: 1.5;
    }

    .duevara-app-shell .duevara-main-content :is(.table, .dv-anomaly-table) thead th {
        background-color: #f2f5f9;
        /* site.css has legacy !important header color and weight declarations. */
        color: #172d4d !important;
        font-weight: 650 !important;
        font-size: max(1rem, 16px);
        letter-spacing: normal;
        line-height: 1.5;
        text-transform: none;
        white-space: normal;
    }

    /* Keep explicit compact density, while preserving readable text size. */
    .duevara-app-shell .duevara-main-content :is(.table.table-sm, .table.dv-table-compact, .dv-table-compact .table) > :not(caption) > * > * {
        padding: .6rem .7rem;
    }

    .duevara-app-shell .duevara-main-content :is(.table, .dv-anomaly-table) :is(th, td).dv-table-number {
        text-align: right;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .duevara-app-shell .duevara-main-content :is(.table, .dv-anomaly-table) :is(th, td).text-end {
        font-variant-numeric: tabular-nums;
    }

    /* Preserve selected/hover row colors and native responsive visibility rules. */
    .duevara-app-shell .duevara-main-content :is(.table-responsive, .dv-anomaly-table-wrap, .dv-workbench-table-shell, .registry-table-wrap) {
        min-inline-size: 0;
        max-inline-size: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .duevara-app-shell .duevara-main-content :is(.table-responsive, .dv-anomaly-table-wrap, .dv-workbench-table-shell, .registry-table-wrap):focus-visible,
    .duevara-app-shell .duevara-main-content :is(.table, .dv-anomaly-table) :focus-visible {
        /* Override the legacy important yellow focus ring within data tables. */
        outline: 3px solid #0b6961 !important;
        outline-offset: -3px;
        box-shadow: none !important;
    }
}
