.data-table-section {
    --mc-panel: var(--bg-secondary);
    --mc-panel-alt: var(--bg-tertiary);
    --mc-grid: var(--border-color);
    --mc-text: var(--text-primary);
    --mc-muted: var(--text-secondary);
    --mc-steel: var(--text-muted);
    --mc-row-size: 3.65rem;
    width: 100%;
    margin-block-end: clamp(.75rem, 1.5vw, 1.25rem);
    overflow: hidden;
    border: 1px solid var(--mc-grid);
    background: var(--mc-panel);
    color: var(--mc-text);
    font-family: inherit;
}

.market-console-header {
    padding: clamp(1rem, 3vw, 2rem);
    border-block-end: 1px solid var(--mc-grid);
}

.market-console-header h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    line-height: 1.45;
}

.market-console-header h2 a {
    color: inherit;
    text-decoration-color: var(--mc-steel);
    text-underline-offset: .22em;
}

.market-console-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.market-console-table th {
    height: 2.4rem;
    padding: .35rem .7rem;
    border-block-end: 1px solid var(--mc-grid);
    border-inline-start: 1px solid var(--mc-grid);
    background: var(--mc-panel-alt);
    color: var(--mc-muted);
    font-size: .65rem;
    font-weight: 500;
    text-align: start;
}

.market-console-table th:first-child,
.market-console-table td:first-child {
    border-inline-start: 0;
}

.market-console-table td {
    position: relative;
    height: var(--mc-row-size);
    min-width: 0;
    padding: .35rem .7rem;
    border-block-end: 1px solid var(--mc-grid);
    border-inline-start: 1px solid var(--mc-grid);
    vertical-align: middle;
}

.market-console-table tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--mc-panel-alt) 58%, var(--mc-panel));
}

.market-console-table tbody tr:last-child td {
    border-block-end: 0;
}

.market-console-table tbody tr:focus-within td,
.market-console-shareholders tbody tr.active td {
    background: var(--hover-bg);
}

.market-console-shareholders th:first-child,
.market-console-shareholders td:first-child,
.market-console-peers-price th:first-child,
.market-console-peers-price td:first-child {
    width: 52%;
}

.market-console-peers-standard th:first-child,
.market-console-peers-standard td:first-child {
    width: 46%;
}

.market-console-sectors .market-console-rank-column {
    width: 5rem;
}

.market-console-sectors .market-console-sector-column {
    width: 46%;
}

.market-console-identity {
    overflow: hidden;
}

.market-console-identity a,
.market-console-identity-static {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: .75rem;
    color: inherit;
    text-decoration: none;
}

.market-console-identity a:focus-visible,
.market-console-header a:focus-visible,
.market-console-sort:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.market-console-symbol {
    flex: 0 0 auto;
    color: var(--mc-text);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.3;
}

.market-console-identity strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--mc-muted);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-console-rank {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border-inline-end: 2px solid var(--mc-steel);
    color: var(--mc-muted);
    font-family: inherit;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1;
}

.market-console-sector-rank {
    color: var(--mc-muted);
    font-family: inherit;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.market-console-quote {
    display: grid;
    min-width: 0;
    gap: .12rem;
}

.market-console-depth {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: clamp(0%, var(--row-scale), 100%);
    height: 2px;
    background: var(--mc-steel);
}

.market-console-table tbody tr:focus-within .market-console-depth,
.market-console-shareholders tbody tr.active .market-console-depth {
    background: var(--mc-steel);
}

.market-console-number {
    color: var(--mc-text);
    font-family: inherit;
    font-size: clamp(.69rem, 1.2vw, .82rem);
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    text-align: start;
    white-space: nowrap;
}

.market-console-sort {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.market-console-table th[aria-sort]:not([aria-sort="none"]) .market-console-sort {
    color: var(--mc-text);
}

.market-console-sort-icon {
    width: 1em;
    color: currentColor;
    text-align: center;
}

.market-console-empty {
    display: grid;
    min-height: 18rem;
    place-content: center;
    justify-items: center;
    padding: 2rem;
    text-align: center;
}

.market-console-empty svg {
    width: 2.6rem;
    fill: none;
    stroke: var(--mc-muted);
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.3;
}

.market-console-empty h3 {
    margin: .9rem 0 .3rem;
    font-size: .95rem;
}

.market-console-empty p {
    margin: 0;
    color: var(--mc-muted);
    font-size: .76rem;
}

.market-console-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .data-table-section {
        width: auto;
        margin-inline: calc(0px - var(--layout-pad));
        border-inline: 0;
    }

    .market-console-header {
        padding-block: .85rem;
        padding-inline: max(.7rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-left));
    }

    .market-console-table,
    .market-console-table tbody {
        display: block;
        width: 100%;
    }

    .market-console-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .market-console-sectors thead {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    .market-console-sectors thead tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-console-sectors thead th {
        display: block;
        width: auto !important;
        height: auto;
        padding: 0;
        border-block-end: 1px solid var(--mc-grid);
    }

    .market-console-sectors thead th:nth-child(odd) {
        border-inline-start: 0;
    }

    .market-console-sectors .market-console-sort {
        width: 100%;
        justify-content: space-between;
        padding-inline: .7rem;
    }

    .market-console-table tbody tr {
        position: relative;
        display: grid;
        width: 100%;
        border-block-end: 1px solid var(--mc-grid);
    }

    .market-console-table tbody tr:last-child {
        border-block-end: 0;
    }

    .market-console-table td {
        display: flex;
        width: auto !important;
        min-width: 0;
        min-height: var(--mc-row-size);
        align-items: center;
        padding: .3rem .45rem;
        border-block: 0;
    }

    .market-console-table .market-console-number {
        display: grid;
        align-content: center;
        gap: .12rem;
        text-align: center;
    }

    .market-console-number::before {
        color: var(--mc-muted);
        content: attr(data-label);
        font-family: inherit;
        font-size: .56rem;
        font-weight: 500;
        line-height: 1.1;
    }

    .market-console-shareholders tbody tr {
        grid-template-columns: minmax(0, 1.45fr) minmax(4.4rem, .65fr) minmax(5.5rem, .9fr);
    }

    .market-console-peers-price tbody tr {
        grid-template-columns: minmax(0, 1.45fr) minmax(5.3rem, .85fr) minmax(4.5rem, .7fr);
    }

    .market-console-peers-standard tbody tr {
        grid-template-columns: minmax(0, 1.55fr) minmax(5.8rem, 1fr) minmax(4.5rem, .7fr);
    }

    .market-console-peers-standard .market-console-secondary {
        display: none;
    }

    .market-console-sectors tbody tr {
        grid-template-columns: minmax(0, 1.4fr) minmax(5.8rem, 1fr) minmax(4rem, .62fr);
    }

    .market-console-yearly tbody tr {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-console-sectors .market-console-sector-rank {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-start: .45rem;
        z-index: 1;
        width: 1.55rem !important;
        min-height: 1.8rem;
        padding: 0;
        transform: translateY(-50%);
        border-inline-start: 0;
    }

    .market-console-sectors .market-console-identity {
        grid-column: 1;
        padding-inline-start: 2.35rem;
    }

    .market-console-identity a,
    .market-console-identity-static {
        gap: .45rem;
    }

    .market-console-rank {
        width: 1.55rem;
        height: 1.8rem;
    }

    .market-console-symbol {
        font-size: .7rem;
    }

    .market-console-identity strong {
        display: -webkit-box;
        max-height: 2.9em;
        font-size: .67rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 340px) {
    .market-console-table td {
        padding-inline: .3rem;
    }

    .market-console-shareholders tbody tr,
    .market-console-peers-price tbody tr,
    .market-console-peers-standard tbody tr,
    .market-console-sectors tbody tr,
    .market-console-yearly tbody tr {
        grid-template-columns: minmax(0, 1.25fr) minmax(4.4rem, .85fr) minmax(4rem, .7fr);
    }
}
