/* general */
.equities-badge {
    display: inline-block;
    padding: 12px 15px;
    border-radius: 999px;
    background: var(--color-grey-light);
    color: var(--primary-grey);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.equities-badge.small {
    padding: 10px 14px;
}

.equities-badge + .equities-chart-container {
    margin-top: 14px;
}


/* table */
.equities-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    color: white;
    font-weight: 400;
}

.equities-table--master-data th,
.equities-table--master-data td {
    padding: 0.5rem 0.75rem;
    border-top: none !important;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #898d93;
    text-align: center;
    font-weight: 400;
    background-color: transparent !important;
}

.equities-table--top-values th,
.equities-table--top-values td {
    padding: 0.5rem 0.75rem;
    border: none !important;
    text-align: center;
    font-weight: 400;
    background-color: transparent !important;
}

.equities-table--top-values tr th {
    width: 70% !important;
}

.equities-table--top-values tbody th {
    padding-left: 0.8rem;
}

/*.equities-table tr:hover th,*/
/*.equities-table tr:hover td {*/
/*    background-color: rgba(255, 255, 255, 0.05);*/
/*}*/

.equities-table th {
    padding: 0.5rem 0;
}

.equities-table thead th,
.equities-table tbody tr:last-child th,
.equities-table tbody tr:last-child td {
    border-bottom: none;
}

.equities-table tr th:first-child {
    width: 25%;
    text-align: left;
}

.equities-table__date {
    display: inline-block;
}


/* charts */
.equities-chart-container {
    position: relative;
    width: 100%;
    height: 320px;
    margin-bottom: 0;
}

.equities-chart-container.vertical {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equities-chart-container--pie_chart {
    padding: 1rem;
}

.equities-chart-container.vertical {
    padding: 22px 30px;
}

.elementor-shortcode:has(>.equities-chart-container.vertical) {
    height: 100%;
}

.equities-notice {
    padding: 0.75rem 1rem;
    background: #f6f6f6;
    border-left: 3px solid #ccc;
    font-size: 0.9rem;
}

.equities-overview__title {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.equities-chart-container--pie_chart {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
}

.equities-chart-container--pie_chart canvas {
    max-height: 300px;
}

.equities-chart-container.vertical {

}

.equities-chart-canvas-wrap {
    position: relative;
}

.equities-chart-container.vertical .equities-chart-canvas-wrap {
    display: flex;
    padding: 10px 0;
    justify-content: center;
}

.equities-chart-legend {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.equities-chart-container.vertical .equities-chart-legend {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    column-gap: 2rem;
    row-gap: 1rem;
    max-width: 300px;
    padding-bottom: 1rem;
}

.equities-chart-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.equities-chart-container.vertical .equities-chart-legend__item {
    display: flex;
    flex: none;
}

.equities-chart-legend__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.equities-chart-legend__label {
    color: var(--color-white);
    font-weight: 500;
    font-size: 16px;
    cursor: default;
}


/* award text */
.equities-award-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-size: 0.9em;
}

.equities-award-body {
    display: flex;
    gap: 2.5rem;
}

.equities-award-body p {
    margin-bottom: 0;
    line-height: 1.5;
    text-wrap-style: balance;
}

.equities-award-text {
    color: white;
}

.equities-award-img {
    width: 25%;
    border-radius: 0 !important;
}


/* performance days */
.equities-chart-container--performance-days {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.equities-performance-switcher {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 48px);
}

body .elementor .equities-performance-switcher-wrap {
    display: flex;
    background-color: rgba(62, 69, 79, 0.3);
    padding: 7px;
    border-radius: 50px;
}

body .elementor .equities-performance-switcher-wrap:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: calc(100% - 14px);
    width: var(--pill-width, 0px);
    transform: translateY(-50%) translateX(var(--pill-x, 0px));
    background-color: var(--color-white);
    border-radius: 50px;
    z-index: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.equities-performance-switcher-label,
body .elementor .equities-performance-switcher-wrap button {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1;
    padding: 12px 15px;
    transition: color 0.3s ease;
    background-color: unset;
    border: unset;
}

body .elementor .equities-performance-switcher-wrap button.is-active,
body .elementor .equities-performance-switcher-wrap button:not(.is-active):hover {
    color: var(--primary-grey);
}

body .elementor .equities-performance-switcher-wrap:hover .is-active:not(:hover) {
    color: var(--color-white);
}

@media screen and (max-width: 767px){

    .equities-chart-container {
        height: unset;
        justify-content: left;
    }

    /* Equity Table START */

    body .equities-table:not(.equities-table--top-values),
    body .equities-table:not(.equities-table--top-values) tbody,
    body .equities-table:not(.equities-table--top-values) thead,
    body .equities-table:not(.equities-table--top-values) tr,
    body .equities-table:not(.equities-table--top-values) th,
    body .equities-table:not(.equities-table--top-values) td{
        display: block;
        text-align: left;
        width: 100% !important;
    }

    body .equities-table.equities-table--master-data thead tr th:not(:first-child){
        display: none !important;
    }

    body .equities-table.equities-table--master-data tbody tr td{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    body .equities-table:not(.equities-table--top-values) tbody tr th,
    body .equities-table:not(.equities-table--top-values) tbody tr td:not(:last-child){
        border: unset;
        padding: 8px 0;
    }

    body .equities-table:not(.equities-table--top-values) tbody tr th{
        font-weight: 600;
        padding-top: 20px;
    }

    body .equities-table:not(.equities-table--top-values) tbody tr td:last-child{
        padding-top: 8px;
        padding-inline: 0;
        border-bottom: 1px solid #898d93 !important;
    }

    .equities-award-body{
        flex-wrap: wrap;
    }

    body .equities-table:not(.equities-table--top-values) tbody tr td[data-label]:after{
        content: attr(data-label);
        display: inline-block;
        width: auto;
        font-size: 14px;
        font-weight: 500;
        padding: 7px 12px;
        border-radius: 40px;
        background-color: var(--color-white);
        color: var(--primary-grey);
    }

    /* Equity Table END */

    /* Pie Chart START */

    .equities-chart-container--pie_chart {
        flex-wrap: wrap;
        gap: 40px;
        padding: 0 !important;
    }

    .equities-chart-canvas-wrap {
        width: 100%;
        padding: 10px !important;
    }

    .equities-chart-container.vertical .equities-chart-legend {
        gap: 15px;
        padding-bottom: 0;
    }

    /* Pie Chart END */

}

.elementor .card:has(.equities-chart-container.vertical) {
    min-height: unset;
}

/*@media screen and (min-width: 768px) and (max-width: 1920px) {*/
/*    .equities-chart-container.vertical .equities-chart-canvas-wrap {*/
/*        padding: 0;*/
/*    }*/
/*}*/
