
/* Base styles */
.ds-main-profiling-class {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
    background: #FFF;
    box-shadow: 0px 0px 1px 0px rgba(2, 3, 3, 0.25), 0px 2px 1px 0px rgba(2, 3, 3, 0.05);
    border-radius: var(--2xs, 8px);
    /* min-width: 704px; */
}

.ds-rc-main-heading {
    color: var(--sds--grey-900, #020303);
    /* B3/Semi-bold */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

    .ds-main-profiling-class .ds-profiling-header {
        display: flex;
        padding: 16px 24px;
        align-items: center;
        gap: 12px;
        align-self: stretch;
        border-bottom: 1px solid var(--sds--grey-400, #DEE4E4);
    }

.ds-main-profiling-class .ds-rc-main-section {
    display: flex;
    width: 100%;
    /* max-width: 704px;  */
    /* Set a maximum width */
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center; /* Center horizontally */
    margin-top: 12px;
    margin-bottom: 20px;
}

.ds-main-profiling-class .ds-rc-table-section,
.ds-main-profiling-class .ds-rc-pie-chart-section {
    flex: 1;
    margin-left: 16px; /* Add a left margin for the gap */
}

.ds-main-profiling-class .ds-rc-pie-chart-section {
    /* Add your styles for the pie chart section here */
    --pie-chart-color-1: var(--color-1);
    --pie-chart-color-2: var(--color-2);
    --pie-chart-color-3: var(--color-3);
    --pie-chart-color-4: var(--color-4);
}

    .ds-main-profiling-class table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid #ddd;
        border-radius: 10px;
        overflow: hidden;
    }

    .ds-main-profiling-class th,
    .ds-main-profiling-class td {
        padding: 8px;
        text-align: left;
    }

    .ds-main-profiling-class th {
        background: var(--sds--grey-200, #F8F9FA);
        color: var(--sds--grey-700, #5A6161);
        /* B4/Medium */
        font-family: Inter;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px; /* 142.857% */
        padding: 16px;
    }

    .ds-main-profiling-class tbody tr {
        border-bottom: 1px solid var(--sds--grey-400, #DEE4E4);
        flex: 1 0 0;
        color: #000;
        /* B5/Regular */
        font-family: Inter;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 18px; /* 150% */
    }

        .ds-main-profiling-class tbody tr:last-child {
            border-bottom: none;
        }

        .ds-main-profiling-class tbody tr:hover {
            background-color: #f5f5f5;
        }

    .ds-main-profiling-class table td {
        padding: 16px;
        text-align: left;
        border-bottom: 1px solid var(--sds--grey-400, #DEE4E4);
        /* Handle long table cell text */
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 200px;
    
    }

    .ds-main-profiling-class table tbody tr:last-child td {
        border-bottom: none;
    }

/* Adjust the styles for the pie chart labels */
#ds-rc-pieChart .echarts-label {
    color: #FFF !important;
    font-family: Nunito Sans !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    letter-spacing: 0.215px !important;
}


#ds-rc-pie-chart {
    display: flex;
    width: 342px;
    padding: 0px 54px;
    align-items: center;
    gap: 10px;
}


.ds-rc-border-line {
    border-bottom: 1px solid var(--sds--grey-400, #DEE4E4);
    margin-top: 16px;
    margin-bottom: 16px;
}

.ds-rc-details-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
    background: #FFF;
    box-shadow: 0px 0px 1px 0px rgba(2, 3, 3, 0.25), 0px 2px 1px 0px rgba(2, 3, 3, 0.05);
    border-radius: var(--2xs, 8px);
    /* min-width: 704px; */
    margin-bottom: 16px;
}

.ds-rc-details-section-header {
    display: flex;
    padding: 16px 24px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-bottom: 1px solid var(--sds--grey-400, #DEE4E4);
    margin-bottom: 16px;
    color: var(--sds--grey-900, #020303);
    /* B3/Medium */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
}

.ds-rc-details-section-wrapper {
    display: flex;
    padding: 0px var(--2xl, 24px);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--lg, 16px);
    align-self: stretch;
    margin-bottom: 16px;
}

.ds-rc-details-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    align-self: stretch;
    margin-bottom: 8px;
    color: var(--sds--grey-900, #020303);
    /* B4/Regular */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.ds-rc-details-field-value {
    display: flex;
    min-height: var(--xl, 32px);
    padding: 6px 12px;
    align-items: flex-start;
    gap: var(--2xs, 8px);
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid var(--sds--grey-500, #B6BFBF);
    background: var(--sds--grey-000, #FFF);
    /* Handle very long text value */
    /* max-width: 650px; */
    overflow: auto;
    white-space: nowrap;
}


/* Media query for small screens */
@media screen and (max-width: 600px) {
    .ds-main-profiling-class .ds-rc-main-section {
        flex-direction: column; /* Stack elements vertically on small screens */
        align-items: center;
    }

    .ds-main-profiling-class .ds-rc-table-section,
    .ds-main-profiling-class .ds-rc-pie-chart-section {
        width: 100%;
        margin-left: 0; /* Remove left margin on small screens */
    }
}

