.contents {
    max-width: 1766px;
}

.main_title .title {
    flex-wrap: wrap;
}

.data_content {
    background: transparent;
    border-radius: 0;
    box-shadow: 0 0;
}

.table-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .16);
    margin-bottom: 16px;
}

.datepicker-outter {
    flex-wrap: nowrap;
}

.sc-datepicker {
    width: 166px;
    display: inline-block;
    margin-left: 8px;
    user-select: none;
}

/* yearpicker */
.yearpicker-items.selected {
    /* color: #658ae6; */
    background-color: #eee;
}

.yearpicker-prev,
.yearpicker-next {
    user-select: none;
}

@media screen and (max-width:450px) {
    .sc-datepicker {
        width: calc(100% - 80px);
    }
}

.subtitle_info h3 {
    color: #000;
    padding-bottom: 0;
}

.tab-link {
    margin-bottom: 16px;
    margin-left: auto;
}

.tab-link .tabs{
    background-color: #dbdbdb;
    border-radius: 8px;
}

.tab_item {
    width: 65px;
    height: 32px;
    padding: 8px 16px;
    background-color: #dbdbdb;
    color: #fff;
}

.tab_item:first-child{
    border-radius: 8px 0 0 8px;
}

.tab_item:last-child{
    border-radius: 0 8px 8px 0;
}

.tab_item.active {
    background-color: #658ae6;
    border-radius: 8px;
}

.chart {
    padding: 16px 24px;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 15px;
    position: relative;
}

.chart > .subtitle_info {
    padding: 0 0;
}

.chart-container {
    width: 50%;
    position: relative;
    margin-bottom: 16px;
}

.chart-container::after {
    content: '';
    display: inline-block;
    height: 100%;
    border-right: 1px solid #f0f0f0;
    position: absolute;
    top: 0;
    
    z-index: 3;
}

.chart-container:nth-child(1):after{
    right: -16px;
}

.chart-container:nth-child(2):after{
    right: -24px;
}

/* chart-container */
.chart-pie {
    display: flex;
    justify-content: space-between;
}

.highcharts-figure-pie {
    width: 100%;
    max-width: 676px;
    display: flex;
    padding-top: 40px;
    position: relative;
}

.pie_info {
    margin-top: -48px;
}

.pie_summary {
    width: 100%;
    max-width: 452px;
    display: flex;
    flex-direction: column;
}

.description-title {
    margin-bottom: 24px;
}

.description-title>.description {
    color: #6a6a6a;
    margin-bottom: 10px;
}

.description-title>.amount {
    font-size: 2rem;
}

.dividing_line {
    margin-bottom: 16px;
    background-color: #f0f0f0;
}

.legend_list {
    height: 100%;
    max-height: 300px;
    line-height: 1.2;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 8px;
}

.legend-item-thead {
    display: grid;
    grid-template-columns: 144px 80px 120px;
    height: 32px;
    align-items: center;
    /* justify-content: space-between; */
    gap: 16px;
    font-size: 1rem;
    color: #bebebe;
    background-color: #fff;
    position: sticky;
    top: 0;
}

.legend-item {
    display: grid;
    grid-template-columns: 20px 120px 80px 120px;
    align-items: center;
    /* justify-content: space-between; */
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.legend-color-box {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 4px;
    display: inline-block;
}

.legend-name {
    color: #0052d9;
    text-decoration: underline;
}

/* summary-container */
.summary_list {
    margin-left: 36px;
}

.summary_list ul li {
    margin-top: 32px;
    margin-bottom: 60px;
}

.summary_list ul li:last-child {
    margin-bottom: 32px;
}

.summary_list ul li>img {
    margin-bottom: -40px;
}

.summary_list ul li .top-row {
    width: 272px;
    height: 94px;
    padding: 16px 24px;
    background-color: #658ae6;
    color: white;
    border-radius: 12px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 0;
}

.summary_list ul li .top-row>img {
    position: absolute;
    top: -36px;
    left: 0;
}

.summary_list ul li .top-row::after {
    content: url(/static/v2/images/components/material/decorations/23626_line_b.svg);
    position: absolute;
    bottom: -2px;
    right: 0px;
    z-index: 1;
    pointer-events: none;
}

.summary_list .top-row>.amount {
    position: relative;
    font-size: 32px;
    margin-top: 8px;
}

.unit-dollar::before {
    content: '$';
    margin-right: 8px;
}

.unit-percent::after {
    content: '%';
    margin-left: 4px;
}

.summary_list .growth {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.summary_list .growth.positive {
    background-color: #ff5757;
    color: white;
}

.summary_list .growth.negative {
    background-color: #46cd46;
    color: white;
}



/* table */
.tableFixHead {
    min-height: 176px;
}

.tableFixHead table tr th:nth-child(1),
.tableFixHead table tr td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
}

.tableFixHead table tr:nth-child(2n) td:nth-child(1) {
    background: #f6f6f6;
}

.tableFixHead table tr:nth-child(2n+1) td:nth-child(1) {
    background: #ebebeb;
}

.tb-amount {
    width: 128px;
    min-width: 128px;
}

.tb-name {
    min-width: 168px;
    max-width: 168px;
}

@media screen and (max-width:1900px){
    .chart-pie {
        flex-wrap: wrap;
    }

    .chart-container:nth-child(2):after {
        display: none;
    }

    .summary-container {
        width: 100%;
    }

    .summary_list {
        width: 100%;
        margin-left: 0px;
    }

    .summary_list ul {
        display: flex;
    }

    .summary_list ul li {
        width: 33.33%;
    }

    .summary_list ul li+li {
        margin-left: 24px;
    }

    .summary_list ul li .top-row {
        width: 100%;
        min-width: 272px;
    }

    .summary_list .growth {
        right: auto;
        left: 196px;
    }
}

@media screen and (max-width:1600px){
    .highcharts-figure-pie {
        max-width: 100%;
        justify-content: center;
    }

    .chart-container {
        width: 100%;
        margin-left: -24px;
    }

    .chart-container::after {
        display: none;
    }

    .summary_list {
        max-width: 742px;
        margin: 0 auto;
    }

    .summary_list ul {
        flex-direction: column;
    }

    .summary_list ul li {
        width: 100%;
        margin-bottom: 16px;
    }

    .summary_list ul li+li {
        margin-left: 0;
    }
}

@media screen and (max-width:768px) {
    .chart-container {
        margin-left: 0;
    }

    .highcharts-figure-pie {
        flex-direction: column;
        align-items: center;
    }

    .legend_list {
        max-height: 500px;
    }
}


