.stat_box {
    padding: 0 3rem;
}

.left_sidebar {
    background-color: var(--color-background);
    padding: 0 12px 0px;
    padding-bottom: 240px;
}

.company_description {
    padding: 0px;
    margin-bottom: 0px;
    border-top: 1px solid var(--color-borderline);
    width: 100%;
    padding-top: 24px;
}

/* .price_summary .updated_price {
    position: static;
} */

.price_range_wrapper_desktop {
    display: flex;
    margin-right: 25px;
}

.price_range_wrapper_mobile {
    display: none;
}

.price_slider_scale {
    margin: 6px 0px;
}

.price_low {
    margin-right: 16px;
}

.price_high {
    margin-left: 16px;
}

.company_overview {
    border-bottom: unset;
    padding: 0 10px;
    padding-left: 0px;
}

/* Key stats section start*/

.key_stats_wrapper {
    display: flex;
    justify-content: space-between;
}

.key_stats {
    justify-content: flex-start;
}

.price_range {
    width: 310px;
}

/* Key stats section end */

/* Constituents table start */

.table_sort_icons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table_wrapper {
    padding-bottom: 0px;
    height: 430px !important;
}

#shareholdings_table tfoot {
    position: sticky;
    bottom: 0;
    background: var(--color-borderline-secondary);
    /* Ensure background hides the content behind */
    z-index: 1;
}

.peers_table td,
.peers_table th {
    padding: 1rem;
    font-size: 0.9375rem;
    line-height: 1;
    text-align: right;
    font-weight: 500;
}

.peers_table tr:not(:last-child) td.best {
    color: #3bb87a;
}

.peers_table tbody td:first-child {
    color: var(--color-semibold-font);
    word-break: break-word;
}

.peers_table th:first-child span.dt-column-title {
    justify-content: flex-start;
}

.peers_table tfoot td:first-child .dt-column-title {
    justify-content: flex-start;
}

span.dt-column-title {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.peers_table th {
    color: var(--color-semibold-font);
}

.peers_table thead tr {
    height: 50px;
}

.peers_table thead th {
    color: var(--color-semibold-font);
    padding: 0px 1rem;
    cursor: pointer;
}

.peers_table thead th:first-child {
    display: table-cell;
    text-align: left;
    box-sizing: border-box;
    width: unset;
}

/* Constituents table end */

#peers .table_wrapper {
    height: 360px !important;
}

.asterisk_data {
    font-size: 13px;
    margin-top: 5px;
    color: var(--color-text-1);
    margin-left: 1rem;
}

/* Tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    color: var(--color-text-default);
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border-9);
    text-align: left;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    max-width: 250px;
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#revenueMix .data_unavailable,
#peers .data_unavailable,
#shareholdings .data_unavailable,
#price .data_unavailable {
    top: -1.2rem;
}


@media (max-width: 1300px) {
    .table_wrapper {
        height: 370px !important;
    }

    .left_sidebar {
        padding-bottom: 225px;
    }

    .stat_box {
        padding: 2px 22px;
    }
}

@media (max-width: 1200px) {
    .dt-column-title span {
        line-height: 9px;
    }

    #peers .table_wrapper {
        height: unset !important;
    }
}

@media (max-width: 992px) {
    .price_range {
        width: 100%;
    }

    .price_slider_scale {
        width: 100%;
    }

    .price_range_wrapper_desktop {
        display: none;
    }

    .price_range_wrapper_mobile {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 16px 0px;
    }


    .asterisk_data {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .company_overview {
        margin-bottom: 22px;
    }

    .company_description {
        padding: 0px;
        margin-bottom: 0px;
        border-bottom: unset;
        padding-top: 16px;
    }

    .hide_on_desktop.sign_up {
        margin-top: 16px;
    }

    .table_wrapper {
        height: 380px !important;
    }

    /* .table_sort_icons {
        display: none;
    } */

    .slick-list {
        height: 100%;
    }

    .left_sidebar {
        padding: 0;
        margin-bottom: unset;
        background: var(--color-bg);
    }

    .company_title {
        width: unset;
    }

    .price_summary {
        align-items: start;
    }

    .price_summary {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-left: 1px solid var(--color-borderline);
        padding-left: 16px;
        position: relative;
        min-width: 130px;
    }

    /* Constituents table -- start*/
    .peers_table thead tr {
        height: unset;
    }

    .peers_table thead tr th {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Constituents table -- end */

    .section_header {
        margin-bottom: 16px;
    }
}

@media (max-width: 430px) {
    .price_summary .updated_price {
        padding-left: 0px;
    }

    .price_summary {
        padding-left: 0px;
    }

    /* ratios --start*/

    .company_overview_summary {
        gap: 0px;
        justify-content: space-between;
        flex-direction: column;
    }

    .price_summary {
        align-items: end;
    }

    .price_summary {
        border-left: none;
        align-items: flex-start;
        margin-top: 10px;
    }

    /* ratios --end */

    .hide_desktop_block {
        display: block;
    }

    .hide_mobile_block {
        display: none;
    }

    /* Events section end */

    /* constituents table -- start */

    .peers_table td {
        color: var(--color-text-default);
    }

    .peers_table td,
    .peers_table th {
        padding: 1rem 0.3rem !important;
    }

    .peers_table thead th:first-child {
        display: table-cell;
    }

    .peers_table td:first-child,
    .peers_table th:first-child {
        padding-left: 1rem !important;
    }

    .peers_table td:last-child,
    .peers_table th:last-child {
        padding-right: 1rem !important;
    }

    /* constituents table -- end */


    .data_unavailable {
        min-height: 430px;
        top: -16px;
    }
}

@media (max-width: 360px) {
    .peers_table td:first-child {
        padding-left: 10px;
    }

    .peers_table td,
    .peers_table th {
        padding: 1rem 0.3rem;
    }
}

/* Holding design for non equity */
.holdings-chart {
    width: 100%;
    flex-direction: column;
    gap: 20px;
}

.holding-item {
    display: grid;
    grid-template-columns: 1fr 90px 150px;
    align-items: center;
    column-gap: 16px;
    margin-bottom: 15px;
    padding: 0px 10px;
}

.holding-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-font);
    line-height: 1.4;
}

.holding-percent {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-font);
    text-align: right;
}

.holding-bar-wrapper {
    width: 100%;
}

.holding-bar {
    height: 8px;
    background-color: #4f86d8;
}


@media (max-width: 1100px) {
    .holding-item {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name name"
            "bar percent";
    }

    .holding-name {
        grid-area: name;
    }

    .holding-bar-wrapper {
        grid-area: bar;
        display: flex;
        align-items: center;
    }

    .holding-percent {
        grid-area: percent;
        text-align: right;
    }
}