/**
 * pages/insurance.css — 재해보험 통계 페이지 전용 스타일
 * price.css 디자인 시스템 기반 (mypage-page-header, weather-info-bar 재사용)
 */

/* ── 공통 헤더(사과Q) 숨김 — price 페이지와 동일한 구조 ── */
header {
    display: none !important;
}

/* ── 페이지 헤더 ─────────────────────────────────────────── */
.mypage-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    background: var(--white, #fff);
    border-bottom: 1px solid #f0f1f5;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
}

.mypage-page-header .page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--brown-dark);
    margin: 0;
}

.mypage-page-header .back-link {
    color: var(--brown-dark);
    font-size: 20px;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn-sub {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--brown-dark);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ── 정보 바 3열 그리드 ─────────────────────────────────── */
.weather-info-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.weather-info-bar> :last-child {
    justify-self: end;
}

/* ── 카드 헤더 Q 브랜드 간격 ────────────────────────────── */
.header-title-group .q-brand {
    margin-right: 6px;
}

/* ── KPI 그리드 (2×2) — 보험 4개 지표 ──────────────────── */
.ins-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 0 4px;
}

.ins-kpi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.ins-kpi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 8px;
    width: 100%;
}

.kpi-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--brown);
    line-height: 1.2;
    font-family: var(--font-family);
    text-align: center;
    word-break: break-all;
}

.kpi-label {
    width: 100%;
    font-size: 17px;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    border-top: 1px solid #e8e0db;
    padding: 12px 4px;
}

/* ── 요약 카드 헤더 ─────────────────────────────────────── */
.ins-summary-card .card-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

/* ── 차트 컨테이너 ──────────────────────────────────────── */
.price-chart-area {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    min-height: 320px;
}

.price-chart-area--sm {
    min-height: 320px;
}

/* ── 카드 간 간격 ───────────────────────────────────────── */
main>.card+.card {
    margin-top: 8px;
}

/* ── 로딩 상태 ──────────────────────────────────────────── */
.ins-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: #aaa;
    font-size: 15px;
    font-family: var(--font-family);
}

.ins-loading i {
    font-size: 20px;
    color: burlywood;
}

/* ── 차트 공통 폰트 ─────────────────────────────────────── */
.apexcharts-xaxis text,
.apexcharts-yaxis text {
    font-size: 13px !important;
    font-family: var(--font-family) !important;
}

.apexcharts-legend-text {
    font-size: 14px !important;
    font-family: var(--font-family) !important;
}