/**
 * dashboard.css
 */
/* ===== 공통 앱 기반 스타일 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
}

.section-container {
    display: none;
}

.active-section {
    display: block;
}

/* ===== 대시보드 공통 스타일 ===== */

/* 대시보드 카드 및 차트 */
.admin-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.dash-stat-box {
    border-radius: 12px;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Dashboard Responsive Header */
.dash-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.dash-left,
.dash-right {
    display: contents;
}

.dash-title-group {
    grid-column: 1 / 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-title-group h2 {
    white-space: nowrap;
    font-size: 1.5rem;
}

/* [기본: 엑셀 다운로드가 있는 진단형 대시보드 기존 2x2 형태 유지] */
.dash-delete {
    grid-column: 1;
    grid-row: 2;
}

.dash-select {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
}

.dash-create {
    grid-column: 1;
    grid-row: 3;
}

.dash-export {
    grid-column: 2;
    grid-row: 3;
}

/* 모든 대시보드 컨트롤(버튼, 셀렉트) 크기 및 패딩 통일 */
.dash-delete,
.dash-create,
.dash-export {
    width: 100%;
    height: 42px;
    padding: 0.4rem 0.5rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.dash-select {
    height: 42px;
    font-size: 0.95rem;
}

/* [엑셀 다운로드가 없는 대시보드 전용 모바일 3단 레이아웃] */
.dash-header-no-export .dash-select {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
}

.dash-header-no-export .dash-create {
    grid-column: 1;
    grid-row: 3;
}

.dash-header-no-export .dash-delete {
    grid-column: 2;
    grid-row: 3;
}

@media (min-width: 768px) {
    .dash-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .dash-left {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .dash-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dash-title-group h2 {
        font-size: calc(1.325rem + .9vw);
    }

    .dash-select {
        width: 180px;
        height: 42px;
        font-size: 1rem;
    }

    .dash-delete,
    .dash-create,
    .dash-export {
        height: 42px;
        padding: 0.45rem 1rem;
        font-size: 1rem;
        width: auto;
    }
}