/* /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: 80px;
}

.status-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabs {
    display: flex;
    background-color: #EDEDED;
    border-radius: 999px;
    padding: 8px;
    gap: 8px;
}

.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: transparent;
    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;
}

.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;
}

@media screen and (max-width: 1024px) {
    .status-container {
        padding: 40px 16px;
        gap: 40px;
        box-sizing: border-box;
    }

    .chart-section {
        width: 100%;
        height: auto;
        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-list {
        gap: 8px; /* 카드 간격 8px */
    }

    .table-header-row {
        display: none !important;
    }

    .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;
        margin-bottom: 16px;
    }

    .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;
    }

    .status-card .card-row .value {
        font-size: 14px;
        font-weight: 600;
        color: #222222;
    }
}
