/* chart */
.statistics_wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.statistics_text_wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 24px;
}
.statistics_text_wrap .process_types,
.statistics_text_wrap .right {
    min-width: 0;
}
.statistics_text_wrap .process_types {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 12px;
    padding: 0;
}
.statistics_text_wrap .process_types .process {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    background: #fff;
    color: #526071;
    font-size: 14px;
    font-weight: 700;
}
.statistics_text_wrap .process_types .process::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background: #9aa6b8;
}
.statistics_text_wrap .process_types .process:nth-child(1) {
    border-color: rgba(31, 63, 139, .22);
    background: #17213a;
    color: rgba(255, 255, 255, .8);
}
.statistics_text_wrap .process_types .process:nth-child(1)::before {
    background: #b7c7de;
}
.statistics_text_wrap .process_types .process:nth-child(2)::before {
    background: #004bb4;
}
.statistics_text_wrap .process_types .process:nth-child(3)::before {
    background: #00949b;
}
.statistics_text_wrap .process_types .process:nth-child(4)::before {
    background: #6f5bd8;
}
.statistics_text_wrap .process_types .process span {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    color: #14284d;
    font-family: "SBAggro", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 28px;
}
.statistics_text_wrap .process_types .process:nth-child(1) span {
    color: #fff;
}
.statistics_text_wrap .process_types .process span em,
.statistics_text_wrap .process_types .process:nth-child(1) span em {
    color: #8b96a8;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
.statistics_text_wrap .process_types .process:nth-child(1) span em {
    color: rgba(255, 255, 255, .66);
}
.statistics_text_wrap .right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.statistics_text_wrap .right .text_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    padding: 20px;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    background: #fff;
}
.statistics_text_wrap .right .text_item .title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: #edf4ff;
    color: #004bb4;
    font-size: 13px;
    font-weight: 800;
}
.statistics_text_wrap .right .text_item:nth-child(2) .title {
    background: #eafafa;
    color: #00898f;
}
.statistics_text_wrap .right .text_item:nth-child(3) .title {
    background: #f1efff;
    color: #5b4ac7;
}
.statistics_text_wrap .right .text_item .count {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    color: #14284d;
    font-family: "SBAggro", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 28px;
}
.statistics_text_wrap .right .text_item .count span {
    color: #8b96a8;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
.statistics_item_wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.statistics_item_wrap .statistics_item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe6f5;
    border-radius: 16px;
}
.statistics_item_wrap .statistics_item_02 {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.statistics_item_wrap .statistics_item .title,
.statistics_item_wrap .statistics_item .title_02,
.statistics_item_wrap .statistics_item .title_wrap {
    color: #17213a;
    font-size: 18px;
    font-weight: 800;
}
.statistics_item_wrap .statistics_item .title {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid #e4ebf5;
    background: #f8fbff;
}
.statistics_item_wrap .statistics_item .title_02 {
    position: relative;
    margin-bottom: 12px;
    padding-left: 14px;
}
.statistics_item_wrap .statistics_item .title_02::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 18px;
    border-radius: 100px;
    background: #004bb4;
    transform: translateY(-50%);
}
.statistics_item_wrap .statistics_item .title_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid #e4ebf5;
    background: #f8fbff;
}
.statistics_item_wrap .statistics_item .title_wrap .title {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.statistics_item_wrap .statistics_item .title_wrap .select_wrap {
    width: 120px;
    height: 36px;
}
.statistics_item_wrap .statistics_item .title_wrap .select_wrap select {
    height: 36px;
    padding: 0 32px 0 14px;
    font-size: 14px;
}
.statistics_item_wrap .statistics_item .title_wrap .select_wrap select option {
    font-size: 14px;
}
.statistics_item_wrap .statistics_item .title_wrap .select_wrap i {
    right: 14px;
}
.statistics_item_wrap .statistics_item .chart_area {
    width: 100%;
    min-width: 0;
    min-height: 320px;
    height: 100%;
}
.statistics_item_wrap .statistics_item .table_container {
    border-radius: 12px;
}
.statistics_item_wrap .statistics_item .table_container .list_table {
    min-width: 530px;
}
.statistics_item_wrap .statistics_item .table_container td {
    height: 44px;
    padding: 8px 16px;
}
.statistics_item_wrap .statistics_item .table_container tbody td:first-child {
    text-align: left;
}
.statistics_item_wrap .statistics_table_scroll {
    overflow-x: auto;
    overflow-y: hidden;
}
.statistics_item_wrap .statistics_table_scroll .table_split_body {
    max-height: 308px;
}
.statistics_item_wrap .statistics_table_scroll .table_split_head,
.statistics_item_wrap .statistics_table_scroll .table_split_body,
.statistics_item_wrap .statistics_table_scroll .table_split_foot {
    min-width: 530px;
}
.statistics_item_wrap .donut_summary {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    flex: 1;
}
.statistics_item_wrap .donut_chart_wrap {
    position: relative;
    flex-shrink: 0;
    min-width: 230px;
    min-height: 230px;
}
.statistics_item_wrap .donut_chart_wrap .chart_area {
    width: 100%;
    height: 100%;
    min-height: 230px;
}
.statistics_item_wrap .donut_center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}
.statistics_item_wrap .donut_center .label {
    color: #6a7488;
    font-size: 13px;
    font-weight: 600;
}
.statistics_item_wrap .donut_center strong {
    color: #17213a;
    font-size: 20px;
    font-weight: 800;
}
.statistics_item_wrap .donut_legend {
    display: flex;
    gap: 14px;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
}
.statistics_item_wrap .donut_legend_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}
.statistics_item_wrap .donut_legend_item .name {
    position: relative;
    padding-left: 18px;
    color: #17213a;
}
.statistics_item_wrap .donut_legend_item .name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.statistics_item_wrap .donut_legend_item:nth-child(1) .name::before {
    background: #1d4f91;
}
.statistics_item_wrap .donut_legend_item:nth-child(2) .name::before {
    background: #3f78b7;
}
.statistics_item_wrap .donut_legend_item:nth-child(3) .name::before {
    background: #7db5e3;
}
.statistics_item_wrap .donut_legend_item .value {
    color: #4f5b73;
    font-size: 14px;
    white-space: nowrap;
}

/********** 공정 데이터 관리 > 통계 관리 **********/
/* 통계관리 탭 */
.dashboard_tab_container .tab_content_wrap {
    display: flex;
    flex-direction: column;
}
.dashboard_tab_container .tab_pane {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dashboard_tab_container .tab_pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: dashboardTabPaneEnter 0.32s ease both;
}
.section_wrap .dashboard_tabs .tab i {
    color: #8a98ad;
    font-size: 15px;
}
.section_wrap .dashboard_tabs input[type="radio"]:checked + label i {
    color: inherit;
}

@keyframes dashboardTabPaneEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 대시보드 탭 */
.dashboard_overview_wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.dashboard_metric_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.dashboard_metric_card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 20px 24px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}
.dashboard_metric_card.is_link {
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dashboard_metric_card.is_link:hover {
    border-color: #b9ccef;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: none;
}
.dashboard_metric_card .card_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.dashboard_metric_card .card_title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dashboard_metric_card .card_title i {
    font-size: 15px;
    color: #5f6b80;
}
.dashboard_metric_card .card_title span {
    color: #0c2e67;
    font-size: 18px;
    font-weight: 800;
}
.dashboard_metric_card .card_head_trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
}
.dashboard_metric_card .card_head_trend.trend_up {
    color: #0aa56c;
}
.dashboard_metric_card .card_head_trend.trend_down {
    color: #ea394d;
}
.dashboard_metric_card .card_head_trend.trend_flat {
    color: #5f6b80;
}
.dashboard_metric_card .card_link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4b6cb7;
    font-size: 14px;
    font-weight: 700;
}
.dashboard_metric_card.is_link:hover .card_link {
    color: #004bb4;
}
.dashboard_metric_card .card_body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    flex: 1;
}
.dashboard_metric_card .card_count {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #17213a;
    font-size: 44px;
    font-weight: 800;
}
.dashboard_metric_card .card_count span {
    color: #5c677d;
    font-size: 16px;
    font-weight: 600;
}
.dashboard_metric_card .metric_bar_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dashboard_metric_card .metric_bar_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dashboard_metric_card .metric_bar_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.dashboard_metric_card .metric_bar_item span {
    color: #17213a;
    font-size: 14px;
    font-weight: 700;
}
.dashboard_metric_card .metric_bar_item .bar_track {
    position: relative;
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 100px;
    background: #edf2fa;
}
.dashboard_metric_card .metric_bar_item .bar_fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}
.dashboard_metric_card .metric_bar_item.vpp .bar_track {
    background: #edf3ff;
}
.dashboard_metric_card .metric_bar_item.vpp .bar_fill {
    background: #004bb4;
}
.dashboard_metric_card .metric_bar_item.pbf .bar_track {
    background: #e9f9f8;
}
.dashboard_metric_card .metric_bar_item.pbf .bar_fill {
    background: #00949b;
}
.dashboard_metric_card .metric_bar_item.ded .bar_track {
    background: #f1edff;
}
.dashboard_metric_card .metric_bar_item.ded .bar_fill {
    background: #6f5bd8;
}
.dashboard_metric_card .metric_bar_item.powder .bar_track {
    background: #edf3f9;
}
.dashboard_metric_card .metric_bar_item.powder .bar_fill {
    background: #1d4f91;
}
.dashboard_metric_card .metric_bar_item.resin .bar_track {
    background: #eef6fb;
}
.dashboard_metric_card .metric_bar_item.resin .bar_fill {
    background: #3f78b7;
}
.dashboard_metric_card .metric_bar_item.wire .bar_track {
    background: #f0f7fb;
}
.dashboard_metric_card .metric_bar_item.wire .bar_fill {
    background: #7db5e3;
}
.dashboard_metric_card .metric_bar_item.company .bar_track {
    background: #e8f6fb;
}
.dashboard_metric_card .metric_bar_item.company .bar_fill {
    background: #008fc7;
}
.dashboard_trend_panel {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}
.dashboard_panel_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.dashboard_panel_title {
    color: #0c2e67;
    font-size: 26px;
    font-weight: 800;
}
.dashboard_panel_subtitle {
    margin-top: 8px;
    color: #6a7488;
    font-size: 15px;
}
.dashboard_chart_legend {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}
.dashboard_chart_legend .legend_item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #687386;
    font-size: 15px;
    font-weight: 600;
}
.dashboard_chart_legend .legend_item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dashboard_chart_legend .legend_item.vpp::before {
    background: #004bb4;
}
.dashboard_chart_legend .legend_item.pbf::before {
    background: #00949b;
}
.dashboard_chart_legend .legend_item.ded::before {
    background: #6f5bd8;
}
.dashboard_chart_box {
    flex: 1;
}
.dashboard_chart_area {
    width: 100%;
    height: 100%;
    min-height: 399px;
}

/* 장비별/소재별 분석 탭 */
.dashboard_analysis_section {
    display: flex;
    flex-direction: column;
}
.dashboard_analysis_card_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.dashboard_analysis_card_grid.is_summary_layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard_analysis_card_grid:not(.is_summary_layout) .dashboard_analysis_card:nth-child(3) {
    grid-column: 1 / -1;
}
.dashboard_analysis_card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 24px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #fff;
    gap: 12px;
}
.dashboard_analysis_card.is_average_card {
    grid-column: 1 / -1;
    min-height: auto;
}
.dashboard_analysis_card_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.dashboard_analysis_card_title {
    color: #0c2e67;
    font-size: 17px;
    font-weight: 700;
}
.dashboard_analysis_chart_box {
    flex: 1;
    min-height: 200px;
}
.dashboard_analysis_chart_area {
    width: 100%;
    height: 100%;
}
.dashboard_donut_summary {
    display: grid;
    grid-template-columns: minmax(180px, 200px) minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    gap: 30px;
    flex: 1;
    min-height: 0;
}
.dashboard_donut_chart {
    position: relative;
    justify-self: center;
    width: 200px;
    height: 200px;
}
.dashboard_donut_chart_canvas {
    width: 100%;
    height: 100%;
}
.dashboard_donut_center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.dashboard_donut_center .label {
    color: #6a7488;
    font-size: 16px;
    font-weight: 600;
}
.dashboard_donut_center strong {
    color: #17213a;
    font-size: 22px;
    font-weight: 800;
}
.dashboard_donut_legend {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}
.dashboard_analysis_card_grid:not(.is_summary_layout) .dashboard_analysis_card:nth-child(3) .dashboard_donut_summary {
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
}
.dashboard_analysis_card_grid:not(.is_summary_layout) .dashboard_analysis_card:nth-child(3) .dashboard_donut_legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}
.dashboard_donut_legend_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    color: #17213a;
    font-size: 15px;
    font-weight: 600;
}
.dashboard_donut_legend_item:first-child {
    padding-top: 0;
}
.dashboard_donut_legend_item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.dashboard_donut_legend_item .label {
    position: relative;
    display: block;
    min-width: 0;
    padding-left: 18px;
    line-height: 1.6;
}
.dashboard_donut_legend_item .label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateY(-50%);
}
.dashboard_donut_legend_item:nth-child(1) .label::before {
    background: #1f3f8b;
}
.dashboard_donut_legend_item:nth-child(2) .label::before {
    background: #2f7de1;
}
.dashboard_donut_legend_item:nth-child(3) .label::before {
    background: #4aa3df;
}
.dashboard_donut_legend_item:nth-child(4) .label::before {
    background: #8aa4d6;
}
.dashboard_donut_legend_item .value {
    color: #4f5b73;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.dashboard_average_panel {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 4px 0 0;
}
.dashboard_average_label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 32px;
    margin-bottom: 5px;
    padding: 0 12px;
    border-radius: 8px;
    background: #edf3ff;
    color: #1f3f8b;
    font-size: 14px;
    font-weight: 700;
}
.dashboard_average_panel.is_material .dashboard_average_label {
    background: #edf3f9;
    color: #1d4f91;
}
.dashboard_average_value {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    color: #17213a;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}
.dashboard_average_value span {
    margin-bottom: 5px;
    color: #5c677d;
    font-size: 18px;
    font-weight: 700;
}
.dashboard_average_trend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #f8fbff;
}
.dashboard_average_trend span {
    color: #66758a;
    font-size: 13px;
    font-weight: 700;
}
.dashboard_average_trend strong {
    color: #1f3f8b;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}
.dashboard_average_trend.trend_up {
    border-color: #d7eadf;
    background: #f4fbf7;
}
.dashboard_average_trend.trend_up span {
    color: #537667;
}
.dashboard_average_trend.trend_up strong {
    color: #0aa56c;
}
.dashboard_average_trend.trend_down {
    border-color: #f4d5d9;
    background: #fff7f8;
}
.dashboard_average_trend.trend_down span {
    color: #8a5960;
}
.dashboard_average_trend.trend_down strong {
    color: #ea394d;
}
.dashboard_average_trend.trend_flat {
    border-color: #e1e4ea;
    background: #f8f9fb;
}
.dashboard_average_trend.trend_flat span {
    color: #667085;
}
.dashboard_average_trend.trend_flat strong {
    color: #344054;
}
.dashboard_average_note {
    max-width: 480px;
    margin-left: auto;
    color: #687386;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
    word-break: keep-all;
}
.dashboard_analysis_section .sub_title {
    margin: 30px 0 0;
    color: #0c2e67;
    font-size: 20px;
    font-weight: 700;
}
.dashboard_analysis_section .content_top {
    margin-top: 16px;
}
.dashboard_analysis_section .table_search {
    margin-left: auto;
}
.dashboard_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
.dashboard_badge.badge_vpp {
    background: #edf3ff;
    color: #004bb4;
}
.dashboard_badge.badge_pbf {
    background: #e9f9f8;
    color: #00949b;
}
.dashboard_badge.badge_ded {
    background: #f1edff;
    color: #6f5bd8;
}
.dashboard_badge.badge_powder {
    background: #edf3f9;
    color: #1d4f91;
}
.dashboard_badge.badge_resin {
    background: #eef6fb;
    color: #3f78b7;
}
.dashboard_badge.badge_wire {
    background: #f0f7fb;
    color: #7db5e3;
}
.dashboard_donut_legend.is_material .dashboard_donut_legend_item:nth-child(1) .label::before {
    background: #1d4f91;
}
.dashboard_donut_legend.is_material .dashboard_donut_legend_item:nth-child(2) .label::before {
    background: #3f78b7;
}
.dashboard_donut_legend.is_material .dashboard_donut_legend_item:nth-child(3) .label::before {
    background: #7db5e3;
}
/* 참여 기업 산업군 분포 */
.dashboard_donut_legend.is_company .dashboard_donut_legend_item:nth-child(1) .label::before {
    background: #008fc7;
}
.dashboard_donut_legend.is_company .dashboard_donut_legend_item:nth-child(2) .label::before {
    background: #2aa7d6;
}
.dashboard_donut_legend.is_company .dashboard_donut_legend_item:nth-child(3) .label::before {
    background: #62bfdf;
}
.dashboard_donut_legend.is_company .dashboard_donut_legend_item:nth-child(4) .label::before {
    background: #9bd7e8;
}
/* 공정 방식별 구성 비율. VPP / PBF / DED */
.dashboard_donut_legend.is_process .dashboard_donut_legend_item:nth-child(1) .label::before {
    background: #004bb4;
}
.dashboard_donut_legend.is_process .dashboard_donut_legend_item:nth-child(2) .label::before {
    background: #00949b;
}
.dashboard_donut_legend.is_process .dashboard_donut_legend_item:nth-child(3) .label::before {
    background: #6f5bd8;
}
/* 그룹별 구성 비율. 상위 5개 그룹 + 기타 */
.dashboard_donut_legend.is_group .dashboard_donut_legend_item:nth-child(1) .label::before {
    background: #1f3f8b;
}
.dashboard_donut_legend.is_group .dashboard_donut_legend_item:nth-child(2) .label::before {
    background: #2f7de1;
}
.dashboard_donut_legend.is_group .dashboard_donut_legend_item:nth-child(3) .label::before {
    background: #4aa3df;
}
.dashboard_donut_legend.is_group .dashboard_donut_legend_item:nth-child(4) .label::before {
    background: #8aa4d6;
}
.dashboard_donut_legend.is_group .dashboard_donut_legend_item:nth-child(5) .label::before {
    background: #b6c6e2;
}
.dashboard_donut_legend.is_group .dashboard_donut_legend_item:nth-child(6) .label::before {
    background: #d5dded;
}
.dashboard_material_quality_list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 26px;
}
.dashboard_material_quality_item .quality_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color: #24314d;
    font-size: 15px;
    font-weight: 700;
}
.dashboard_material_quality_item .quality_head span {
    color: #17213a;
    font-size: 16px;
    font-weight: 700;
}
.dashboard_material_quality_item .quality_track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #edf2fa;
}
.dashboard_material_quality_item .quality_track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}
.dashboard_material_quality_item.powder .quality_track {
    background: #edf3f9;
}
.dashboard_material_quality_item.powder .quality_track span {
    background: #1d4f91;
}
.dashboard_material_quality_item.resin .quality_track {
    background: #eef6fb;
}
.dashboard_material_quality_item.resin .quality_track span {
    background: #3f78b7;
}
.dashboard_material_quality_item.wire .quality_track {
    background: #f0f7fb;
}
.dashboard_material_quality_item.wire .quality_track span {
    background: #7db5e3;
}

/* 필터 */
.dashboard_filter_wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #fff;
}
.dashboard_filter_wrap + .dashboard_table_container {
    margin-top: 12px;
}
.dashboard_table_container {
    border-color: #dbe6f5;
    border-radius: 8px;
}
.dashboard_table_container .list_table th.sortable_th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.dashboard_table_container .list_table th.sortable_th .sort_ic {
    margin-left: 3px;
    color: #66758a;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
}
.dashboard_table_container .list_table th.sortable_th .sort_ic.on {
    color: #1f3f8b;
}
.dashboard_filter_body {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 24px;
}
.dashboard_filter_select {
    flex: 0 0 112px;
    width: 112px;
    height: 34px;
    border-color: #d6deeb;
}
.dashboard_filter_select select {
    width: 100%;
    height: 100%;
    padding: 0 34px 0 12px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}
.dashboard_filter_select i {
    right: 12px;
    color: #66758a;
    font-size: 13px;
}
.dashboard_filter_item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}
.dashboard_filter_item + .dashboard_filter_item {
    position: relative;
    padding-left: 24px;
}
.dashboard_filter_item + .dashboard_filter_item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 28px;
    background: #e3e8f2;
    transform: translateY(-50%);
}
.dashboard_filter_item .filter_label {
    flex-shrink: 0;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    margin-right: 18px;
}
.filter_check_group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
}
.dashboard_filter_wrap .filter_chip {
    min-width: 60px;
    min-height: 32px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6deeb;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dashboard_filter_wrap .filter_chip.active {
    border-color: #b9ccef;
    background: #eef5ff;
    color: #1f3f8b;
}
.dashboard_table_container .btn_detail_list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #dbe6f5;
    border-radius: 6px;
    background: #fff;
    color: #1f3f8b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dashboard_table_container .btn_detail_list:hover {
    border-color: #b9ccef;
    background: #eef5ff;
    color: #0c2e67;
}
.dashboard_table_container .btn_detail_list i {
    font-size: 13px;
}

/* 통계관리 세부 소재 정보 모달 */
.dashboard_material_detail_desc {
    color: #66758a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
    word-break: keep-all;
}
#dashboardMaterialDetailModal .modal_body {
    display: flex;
    flex-direction: column;
}
#dashboardMaterialDetailModal .content_table {
    min-height: 0;
}
#dashboardMaterialDetailModal .table_split_wrap .table_split_body {
    max-height: 420px;
}

/* 소재/장비 활용 현황 표 - 공정 기여도 뱃지 */
.process_mix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}
.process_mix em {
    color: #cbd3df;
    font-style: normal;
}
.process_mix .vpp {
    color: #004bb4;
}
.process_mix .pbf {
    color: #00949b;
}
.process_mix .ded {
    color: #6f5bd8;
}

/********** responsive **********/
@media screen and (max-width: 1199px) {
    .dashboard_metric_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .statistics_text_wrap,
    .statistics_item_wrap {
        grid-template-columns: 1fr;
    }
    .statistics_text_wrap .process_types .process {
        min-height: auto;
        gap: 20px;
    }
    .statistics_text_wrap .right .text_item {
        min-height: auto;
        gap: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .dashboard_analysis_card_grid,
    .dashboard_analysis_card_grid.is_summary_layout {
        grid-template-columns: 1fr;
    }
    .dashboard_donut_summary {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .dashboard_donut_legend {
        width: 100%;
    }
    .dashboard_analysis_card_grid:not(.is_summary_layout) .dashboard_analysis_card:nth-child(3) {
        grid-column: auto;
    }
    .dashboard_analysis_card_grid:not(.is_summary_layout) .dashboard_analysis_card:nth-child(3) .dashboard_donut_summary {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .dashboard_analysis_card_grid:not(.is_summary_layout) .dashboard_analysis_card:nth-child(3) .dashboard_donut_legend {
        display: flex;
    }
}

@media (max-width: 768px) {
    .statistics_wrap {
        gap: 22px;
    }
    .statistics_text_wrap .process_types,
    .statistics_text_wrap .right {
        grid-template-columns: 1fr;
    }
    .statistics_text_wrap .process_types .process,
    .statistics_text_wrap .right .text_item {
        min-height: 108px;
        padding: 16px;
    }
    .statistics_item_wrap .statistics_item .title,
    .statistics_item_wrap .statistics_item .title_wrap {
        min-height: 58px;
        padding: 0 18px;
    }
    .statistics_item_wrap .statistics_item .title_wrap {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 16px 18px;
    }
    .statistics_item_wrap .statistics_item .title_wrap .select_wrap {
        width: 100%;
    }
    .statistics_item_wrap .statistics_item .chart_area {
        min-width: 0;
        height: 280px;
    }
    .statistics_item_wrap .statistics_table_scroll {
        overflow: visible;
        border: 0;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_head,
    .statistics_item_wrap .statistics_table_scroll .table_split_body,
    .statistics_item_wrap .statistics_table_scroll .table_split_foot,
    .statistics_item_wrap .statistics_item .table_container .list_table {
        min-width: 0;
    }
    .statistics_item_wrap .statistics_item .table_container {
        border-radius: 0;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_head {
        display: none;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body {
        max-height: 420px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 2px;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body .list_table,
    .statistics_item_wrap .statistics_table_scroll .table_split_foot .list_table {
        background: transparent;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body table,
    .statistics_item_wrap .statistics_table_scroll .table_split_body tbody,
    .statistics_item_wrap .statistics_table_scroll .table_split_body tr,
    .statistics_item_wrap .statistics_table_scroll .table_split_foot table,
    .statistics_item_wrap .statistics_table_scroll .table_split_foot tfoot,
    .statistics_item_wrap .statistics_table_scroll .table_split_foot tr {
        display: block;
        width: 100%;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body tr {
        margin-bottom: 10px;
        padding: 14px;
        border: 1px solid #dbe6f5;
        border-radius: 8px;
        background: #fff;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body tr:last-child {
        margin-bottom: 0;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        height: auto;
        min-height: 0;
        padding: 8px 0;
        border: 0;
        color: #17213a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        text-align: right;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body td:first-child {
        padding-top: 0;
        border-bottom: 1px dashed #e5ebf4;
        color: #1f3f8b;
        font-size: 15px;
        text-align: left;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body td:last-child {
        padding-bottom: 0;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body td::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: #66758a;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body td:first-child::before {
        display: none;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body .list_none {
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body .list_none td {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0;
        border-bottom: 0;
        color: #66758a;
        text-align: center;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_body .list_none td::before {
        display: none;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_foot {
        margin-top: 12px;
        padding: 12px 14px;
        border: 1px solid #dbe6f5;
        border-radius: 8px;
        background: #f8fbff;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_foot tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 12px;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_foot th {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #17213a;
        font-size: 14px;
        font-weight: 800;
        text-align: right;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_foot th:first-child {
        grid-column: 1 / -1;
        padding-bottom: 2px;
        border-bottom: 0;
        color: #1f3f8b;
        text-align: left;
    }
    .statistics_item_wrap .statistics_table_scroll .table_split_foot th:not(:first-child)::before {
        content: attr(data-label);
        color: #66758a;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
    }
    .statistics_item_wrap .donut_legend {
        gap: 8px;
    }
}

@media screen and (max-width: 768px) {
    .dashboard_trend_panel {
        padding: 20px;
    }
    .dashboard_panel_head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
    .dashboard_panel_text_wrap {
        min-width: 0;
    }
    .dashboard_panel_title {
        font-size: 20px;
        line-height: 1.35;
    }
    .dashboard_panel_subtitle {
        margin-top: 6px;
        font-size: 14px;
    }
    .dashboard_chart_legend {
        flex-wrap: wrap;
        gap: 10px 18px;
    }
    .dashboard_chart_legend .legend_item {
        font-size: 14px;
    }
    .dashboard_chart_area {
        min-height: 280px;
    }
    .dashboard_metric_grid {
        grid-template-columns: 1fr;
    }
    .dashboard_analysis_card_head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    .dashboard_average_panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        padding: 0;
    }
    .dashboard_average_value {
        font-size: 42px;
    }
    .dashboard_average_value span {
        margin-bottom: 4px;
        font-size: 16px;
    }
    .dashboard_average_trend {
        min-width: 0;
        min-height: 34px;
    }
    .dashboard_average_trend strong {
        font-size: 16px;
    }
    .dashboard_filter_wrap {
        padding: 0;
        border: 0;
        background: transparent;
    }
    .dashboard_filter_body {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .dashboard_filter_item {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        min-width: 0;
    }
    .dashboard_filter_item + .dashboard_filter_item {
        padding-left: 0;
    }
    .dashboard_filter_item + .dashboard_filter_item::before {
        display: none;
    }
    .dashboard_filter_item .filter_label {
        flex: 0 0 auto;
        width: 58px;
        margin-right: 0;
    }
    .dashboard_filter_select,
    .dashboard_filter_select.select_wrap,
    .dashboard_filter_select select {
        height: 40px;
    }
    .dashboard_filter_select,
    .dashboard_filter_select.select_wrap {
        width: 108px;
    }
    .filter_check_group {
        flex: 1;
        flex-wrap: nowrap;
        min-width: 0;
        width: auto;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .filter_check_group::-webkit-scrollbar {
        display: none;
    }
    .dashboard_filter_wrap .filter_chip {
        flex: 0 0 auto;
        min-width: 64px;
    }
    .dashboard_analysis_section .content_top {
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard_analysis_section .table_search,
    .dashboard_analysis_section .table_search_input {
        width: 100%;
    }
    .dashboard_analysis_section .search_input_wrap,
    .dashboard_analysis_section .search_input_wrap input {
        width: 100%;
    }
    .dashboard_analysis_card,
    .dashboard_metric_card {
        min-height: auto;
    }
}

@media screen and (max-width: 360px) {
    .dashboard_analysis_card,
    .dashboard_metric_card {
        padding: 16px;
    }
    .dashboard_trend_panel {
        padding: 16px;
    }
    .dashboard_panel_head {
        gap: 12px;
    }
    .dashboard_panel_title {
        font-size: 18px;
        line-height: 1.4;
    }
    .dashboard_panel_subtitle {
        font-size: 13px;
    }
    .dashboard_chart_legend {
        gap: 8px 14px;
    }
    .dashboard_chart_legend .legend_item {
        gap: 6px;
        font-size: 13px;
    }
    .dashboard_chart_legend .legend_item::before {
        width: 10px;
        height: 10px;
    }
    .dashboard_chart_area {
        min-height: 240px;
    }
    .dashboard_average_label,
    .dashboard_average_note,
    .dashboard_average_trend span {
        font-size: 13px;
    }
    .dashboard_average_note {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
    .dashboard_average_value {
        font-size: 34px;
    }
    .dashboard_average_value span {
        font-size: 14px;
    }
    .dashboard_average_trend strong {
        font-size: 15px;
    }
}
