﻿/* /resource/www/css/status/overall.css */

.status-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.status-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tabs {
    display: flex;
    background-color: #EDEDED;
    border-radius: 999px;
    padding: 8px;
    gap: 16px;
}

.tab-item {
    padding: 10px 12px;
    min-width: 100px;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    color: #222222;
    background-color: #FCFCFC;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.tab-item.active {
    background-color: #00754A;
    color: #FCFCFC;
}

.tab-item.sub {
    background-color: #27C289;
    color: #FCFCFC;
}

.chart-section {
    width: 100%;
    height: 634px;
    /* position: relative 제거 또는 유지 */
}

.chart-main {
    /* position: absolute 제거 */
    /* top, left 제거 */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.chart-image-wrapper {
    width: 100%;
    height: 500px; /* 차트 높이 명시 */
    padding: 0 8px 0 0;
    box-sizing: border-box;
}

.chart-image-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}
.chart-scroll-wrap.dragging {
    cursor: grabbing;
    user-select: none;
}

.chart-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item .color-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.legend-item .label {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #222222;
}

.table-section {
    width: 100%;
    background-color: #FCFCFC;
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-x: auto;
}

.table-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* gap: 8px; 제거 */
}

.table-row {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 16px;
    width: 100%;
}

.table-row.table-header-row {
    background-color: #EDEDED;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #222222;
}

.table-row:not(.header) {
    border-bottom: 1px solid #D4D4D4;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #222222;
}

.table-row .cell {
    text-align: center;
    flex: 1;
}

.table-row .cell.date {
    flex: 0 0 230px;
}

.pagination-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.pagination-arrow, .pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-arrow:hover, .pagination-number:hover {
    background-color: #EDEDED;
}

.pagination-number.active {
    font-weight: 700;
    color: #00754A;
}

/* PC/모바일 전용 표시 제어 */
@media screen and (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media screen and (max-width: 1024px) {
    .pc-only {
        display: none !important;
    }

    .status-section {
        width: 100%;
    }
    
    .status-container {
        padding: 40px 16px;
        gap: 40px;
        box-sizing: border-box;
    }

    .status-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .tabs {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        justify-content: center;
        padding: 6px;
        background-color: #F2F2F2;
        gap: 6px;
        box-sizing: border-box;
    }
    
    .tab-item {
        min-width: auto;
        flex: 1;
        font-size: 14px;
        padding: 10px 2px;
        background-color: #FFFFFF;
        border-radius: 999px;
    }

    .tab-item.active {
        background-color: #00754A;
        color: #FFFFFF;
    }
    
    .chart-section {
        width: 100%;
        overflow: hidden;
    }

    .chart-image-wrapper {
        height: 400px;
    }

    .chart-legend {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        padding: 0;
        box-sizing: border-box;
    }

    .legend-item {
        gap: 6px;
    }

    .legend-item .color-box {
        width: 18px;
        height: 18px;
        border-radius: 4px;
    }

    .legend-item .label {
        font-size: 12px;
    }

    .table-section {
        padding: 16px;
        margin-top: 0;
    }

    .table-row {
        gap: 12px;
        padding: 12px 0;
    }

    .table-row.table-header-row {
        font-size: 14px;
    }

    .table-row:not(.header) {
        font-size: 13px;
    }

    .table-list {
        gap: 12px;
    }

    .status-card {
        background-color: #EDEDED;
        border-radius: 12px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .status-card .card-header {
        font-size: 16px;
        font-weight: 600;
        color: #222222;
    }

    .status-card .card-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .status-card .card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .status-card .card-row .label {
        font-size: 14px;
        color: #555555;
    }

    .pagination-arrow, .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        color: #777777;
    }

    .pagination-number.active {
        color: #00754A;
        font-weight: 700;
    }
}

