/* ========== 프리미엄 블루톤 디자인 시스템 ========== */

:root {
    /* Premium Blue Palette */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    --secondary-blue: #0ea5e9;
    --accent-blue: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --premium-gold: #f59e0b;
    --premium-gold-light: #fbbf24;
    
    /* Excel Download Button Colors */
    --excel-green: #10b981;
    --excel-green-hover: #059669;
    --excel-green-light: #34d399;
    
    /* Premium Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #e0f2fe;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-premium: linear-gradient(135deg, #1e40af, #3b82f6);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Premium Layout */
    --sidebar-width: 180px;
    --header-height: 55px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 25px 50px -12px rgba(30, 64, 175, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Typography */
    --font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Animation */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ========== 전역 스타일 ========== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    letter-spacing: -0.01em;
}

/* ========== 헤더 디자인 ========== */

.header {
    background: var(--primary-blue-gradient);
    color: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-premium);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.header-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.header-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: color var(--transition-fast);
}

.header-title:hover {
    color: var(--primary-blue);
}

.logo:hover {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    height: 32px;
    width: auto;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

/* ========== 탭 버튼 ========== */

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tab-btn.active {
    background: white;
    color: var(--primary-blue);
    border-color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* ========== 웰컴 페이지 디자인 ========== */

.welcome-container {
    padding: calc(var(--header-height) + 1.5rem) 2rem 8rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 7rem);
    gap: 3rem;
}

.welcome-header {
    text-align: center;
    max-width: 800px;
}

.welcome-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.2);
    cursor: pointer;
}

.feature-card:active {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-blue-dark);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
}

.cta-button {
    background: var(--primary-blue-gradient);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-normal);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.4);
}

/* ========== 탭 컨텐츠 ========== */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== 메인 컨테이너 ========== */

.container {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    padding-top: var(--header-height);
    position: relative;
}

/* 모바일 우선: flex 레이아웃 */
.container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 1rem;
    overflow-y: auto;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ========== 모바일 토글 버튼 ========== */

.mobile-toggle-btn {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + 0.5rem);
    left: 1rem;
    background: var(--primary-blue-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    z-index: 9999;
    box-shadow: var(--shadow-premium);
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.mobile-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ========== 사이드바 ========== */

.sidebar {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-title {
    background: transparent;
    color: var(--text-primary);
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.filter-title::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.filter-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.6rem;
    right: 0.6rem;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 1px;
    opacity: 0.6;
}

.filter-icon {
    font-size: 1.2rem;
}

.filter-content, .year-buttons {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    max-height: 150px;
    overflow-y: auto;
}

.filter-item, .year-btn {
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-xs);
    position: relative;
}

.filter-item:hover, .year-btn:hover {
    background: var(--bg-accent);
    color: var(--primary-blue);
    transform: translateX(4px);
}

.filter-item.active, .year-btn.active {
    background: var(--primary-blue);
    color: white;
    font-weight: var(--font-weight-semibold);
}

.filter-item:last-child, .year-btn:last-child {
    border-bottom: none;
}

/* ========== 차트 카드 ========== */

.chart-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.chart-title,
.chart-title-with-select span {
    font-size: var(--font-size-base) !important;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue-dark);
}

.chart-title {
    margin-bottom: 0.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chart-title-with-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.chart-select {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chart-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.chart-icon {
    font-size: 1.5rem;
}

.chart-container {
    position: relative;
    flex: 1;
    min-height: 0;
    height: 320px;
}

/* ========== 소득분석 섹션 ========== */

.income-analysis-section {
    min-height: 500px;
}

.income-analysis-section .chart-title {
    margin-bottom: 1rem;
}

.income-analysis-layout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    overflow: hidden;
}

.main-summary-box {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 0.3rem 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    font-weight: bold;
}

.summary-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.summary-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-secondary);
}

#totalIncome, #totalRate {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue-dark);
}

.table-wrapper {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    min-height: 0;
}

/* ========== 테이블 스타일 ========== */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

th, td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

th {
    background: var(--primary-blue);
    color: white;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    font-size: var(--font-size-sm);
}

td:nth-child(2), td:nth-child(3), td:nth-child(4), td:nth-child(5) {
    text-align: right;
    font-weight: var(--font-weight-medium);
}

tr:hover {
    background: var(--bg-accent);
}


.loading {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

/* ========== 반응형 레이아웃 ========== */

/* 모바일 및 태블릿 (≤ 1400px) - 무조건 세로 쌓기 */
@media (max-width: 1400px) {
    .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
        padding-top: calc(var(--header-height) + 0.5rem) !important;
        padding-bottom: 1rem !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        background: var(--bg-secondary) !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
    }
    
    #compare .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
        padding-top: calc(var(--header-height) + 0.5rem) !important;
        padding-bottom: 1rem !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        background: var(--bg-secondary) !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
    }
    
    .mobile-toggle-btn {
        display: block !important;
        position: absolute !important;
        top: calc(var(--header-height) + 0.5rem) !important;
        right: 0.5rem !important;
        margin: 0 !important;
        width: fit-content !important;
        z-index: 101 !important;
        background: var(--primary-blue) !important;
        box-shadow: 0 1px 4px rgba(30, 64, 175, 0.3) !important;
        border-radius: var(--border-radius-sm) !important;
        font-size: var(--font-size-xs) !important;
        padding: 0.35rem 0.75rem !important;
        transition: all var(--transition-normal) !important;
        color: white !important;
        border: none !important;
    }
    
    .mobile-toggle-btn:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(30, 64, 175, 0.4) !important;
    }
    
    .sidebar {
        width: 100%;
        max-height: 45px;
        overflow: hidden;
        transition: max-height var(--transition-slow);
        margin-top: 0.1rem;
        margin-bottom: 0.1rem;
        grid-column: unset !important;
        grid-row: unset !important;
        position: relative !important;
    }
    
    .sidebar.expanded {
        max-height: 70vh !important;
        overflow-y: auto !important;
        position: fixed !important;
        top: calc(var(--header-height) + 2.5rem) !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        width: calc(100% - 1rem) !important;
        z-index: 9998 !important;
        box-shadow: var(--shadow-xl) !important;
        border: 2px solid var(--primary-blue) !important;
        background: var(--bg-primary) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .sidebar.collapsed,
    .sidebar:not(.expanded) {
        max-height: 45px !important;
        overflow: hidden !important;
        padding: 0.5rem !important;
    }
    
    .sidebar.collapsed .filter-section,
    .sidebar:not(.expanded) .filter-section {
        display: none !important;
    }

    .sidebar.expanded .filter-section {
        display: block !important;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    /* 비교탭 사이드바도 동일한 반응형 적용 */
    #compare .sidebar {
        width: 100%;
        max-height: 60px;
        overflow: hidden;
        transition: max-height var(--transition-slow);
        margin-top: 60px;
        margin-bottom: 0;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    #compare .sidebar.expanded {
        max-height: 70vh !important;
        overflow-y: auto !important;
        position: fixed !important;
        top: calc(var(--header-height) + 2.5rem) !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        width: calc(100% - 1rem) !important;
        z-index: 9998 !important;
        box-shadow: var(--shadow-xl) !important;
        border: 2px solid var(--primary-blue) !important;
        background: var(--bg-primary) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    #compare .sidebar.collapsed,
    #compare .sidebar:not(.expanded) {
        max-height: 45px !important;
        overflow: hidden !important;
        padding: 0.5rem !important;
    }
    
    #compare .sidebar.collapsed .filter-section,
    #compare .sidebar:not(.expanded) .filter-section {
        display: none !important;
    }

    #compare .sidebar.expanded .filter-section {
        display: block !important;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    /* 평년탭 사이드바도 동일한 반응형 적용 */
    #yearly .sidebar {
        width: 100%;
        max-height: 60px;
        overflow: hidden;
        transition: max-height var(--transition-slow);
        margin-top: 60px;
        margin-bottom: 0;
        grid-column: unset !important;
        grid-row: unset !important;
        background: var(--bg-primary) !important;
        border-radius: var(--border-radius) !important;
        box-shadow: var(--shadow-md) !important;
        padding: 1rem !important;
    }
    
    #yearly .sidebar.expanded {
        max-height: 600px !important;
        overflow-y: auto !important;
        background: var(--bg-primary) !important;
        margin-top: 0 !important;
    }
    
    #yearly .sidebar.collapsed,
    #yearly .sidebar:not(.expanded) {
        max-height: 60px !important;
        overflow: hidden !important;
    }
    
    #yearly .sidebar.collapsed .filter-section,
    #yearly .sidebar:not(.expanded) .filter-section {
        display: none !important;
    }

    #yearly .sidebar.expanded .filter-section {
        display: block !important;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    /* 평년탭 모바일 토글 버튼 숨김 */
    #yearly .mobile-toggle-btn {
        display: none !important;
    }
    
    /* 평년탭 모바일 필터 헤더 위치 조정 */
    #yearly .yearly-filters-header {
        position: relative !important;
        margin: 0.25rem !important;
        margin-top: calc(var(--header-height) + 0.25rem) !important;
        margin-bottom: 0.25rem !important;
        padding: 0.4rem !important;
        z-index: 10 !important;
        order: 0 !important;
    }
    
    /* 평년탭 모바일 컨테이너 여백 조정 */
    #yearly .container {
        padding-top: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    /* 평년탭 모바일 요소 순서 설정 */
    #yearly .yearly-top5-card {
        order: 1 !important;
    }
    
    #yearly .yearly-national-top5-card {
        order: 2 !important;
    }
    
    #yearly .income-table {
        order: 3 !important;
    }
    
    #yearly .yearly-analysis-section {
        order: 4 !important;
    }
    
    .chart-card {
        margin-bottom: 1rem !important;
        padding: 1.5rem !important;
        grid-column: unset !important;
        grid-row: unset !important;
        position: relative !important;
    }
    
    .chart-container {
        height: 350px;
        flex: none;
    }
    
    /* 분석표는 원래 높이 유지 */
    .income-analysis-section .chart-container {
        height: auto;
        flex: 1;
        min-height: 400px;
    }
    
    .income-analysis-section {
        grid-column: unset !important;
        grid-row: unset !important;
        order: 999 !important;
    }
}

/* 프리미엄 데스크탑 그리드 (≥ 1401px) */
@media (min-width: 1401px) {
    body {
        overflow: hidden;
    }
    
    .container {
        display: grid;
        grid-template-columns: var(--sidebar-width) 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 1.5rem;
        height: 100vh;
        overflow: hidden;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        box-sizing: border-box;
    }
    
    /* 프리미엄 비교탭 그리드 */
    #compare .container {
        display: grid;
        grid-template-columns: var(--sidebar-width) 1fr 1fr 1.2fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 1.5rem;
        height: 100vh;
        overflow: hidden;
        background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
        box-sizing: border-box;
    }
    
    /* 프리미엄 평년탭 그리드 - 3열 x 2행 */
    #yearly .container {
        display: grid !important;
        grid-template-columns: 1fr 1.3fr 1.3fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 0.75rem !important;
        padding: 0.5rem !important;
        height: calc(100vh - var(--header-height) - 80px) !important;
        min-height: 700px !important;
        overflow-y: auto !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        box-sizing: border-box !important;
    }
    
    /* 평년탭 chart-container 기본 높이 복원 */
    #yearly .chart-container {
        height: 320px;
        min-height: 0;
    }
    
    /* 평년탭 분석표 positive/negative 스타일 */
    #yearly .positive {
        color: #10b981 !important;
        font-weight: var(--font-weight-semibold);
    }
    
    #yearly .negative {
        color: #ef4444 !important;
        font-weight: var(--font-weight-semibold);
    }
    
    /* 1400px 이상에서 평년탭 최적화 */
    @media (min-width: 1400px) {
        #yearly .container {
            height: calc(100vh - var(--header-height) - 80px) !important;
            min-height: 700px !important;
            padding: 0.5rem !important;
            gap: 0.75rem !important;
            overflow-y: auto !important;
        }
        
        .yearly-filters-header {
            margin-top: var(--header-height);
            margin-bottom: 0.5rem;
            padding: 0.4rem 1rem;
            position: relative;
            width: auto;
        }
    }

    .mobile-toggle-btn {
        display: none !important;
    }

    .container > * {
        flex: unset;
        width: 100%;
        height: 100%;
        min-width: 0;
        margin: 0;
    }

    .sidebar {
        grid-column: 1 / 2;
        grid-row: 1 / 4;
        max-height: none;
        overflow-y: auto;
        margin-top: 0;
    }

    .income-analysis-section {
        grid-column: 4 / 5;
        grid-row: 1 / 4;
        min-height: 0;
    }
    
    /* 비교탭 소득분석섭션 */
    #compare .income-analysis-section {
        grid-column: 4 / 5;
        grid-row: 1 / 4;
        min-height: 0;
    }

    .total-income-chart { 
        grid-column: 2 / 3; 
        grid-row: 1 / 2; 
    }
    .income-rate-chart { 
        grid-column: 2 / 3; 
        grid-row: 2 / 3; 
    }
    .productivity-chart { 
        grid-column: 3 / 4; 
        grid-row: 1 / 2; 
    }
    .annual-labor-chart { 
        grid-column: 3 / 4; 
        grid-row: 3 / 4; 
    }
    .cost-efficiency-chart { 
        grid-column: 3 / 4; 
        grid-row: 2 / 3; 
    }
    .yield-price-chart { 
        grid-column: 2 / 3; 
        grid-row: 3 / 4; 
    }
    
    /* 비교탭 새로운 그리드 위치 */
    #compare .income-table {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }
    #compare .annual-labor-chart {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    #compare .total-income-chart {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    #compare .income-rate-chart {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
    #compare .management-cost-chart {
        grid-column: 3 / 4;
        grid-row: 3 / 4;
    }
    
    /* 비교탭에서 사용하지 않는 차트들 숨김 */
    #compare .productivity-chart,
    #compare .cost-efficiency-chart,
    #compare .yield-price-chart {
        display: none;
    }
    
    /* 비교탭 income-table 내용 폰트 크기 */
    #compare .income-table td {
        font-size: 12px;
    }
    
    /* 비교탭 income-table 정렬 설정 */
    #compare .income-table td {
        text-align: right;
    }
    
    /* 비교탭 income-table 첫 번째 컬럼(작목)은 좌측 정렬 */
    #compare .income-table td:first-child {
        text-align: left;
    }
    
    /* 비교탭 테이블 컨테이너 스크롤 설정 */
    #compare .income-table .table-container {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    
    /* 평년탭 summary-data-table 내용 폰트 크기 */
    #yearly .summary-data-table td {
        font-size: 12px;
    }
    
    /* 평년탭 summary-data-table 정렬 설정 */
    #yearly .summary-data-table td {
        text-align: right;
    }
    
    /* 평년탭 summary-data-table 첫 번째 컬럼(작목)은 좌측 정렬 */
    #yearly .summary-data-table td:first-child {
        text-align: left;
    }
    
    /* 평년탭 테이블 컨테이너 스크롤 설정 */
    #yearly .income-table .table-container {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    
    /* 평년탭과 비교탭 헤더와 필터 영역 */
    #yearly .income-table .chart-header-with-filter,
    #compare .income-table .chart-header-with-filter {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        margin-bottom: 1rem;
    }
    
    #yearly .income-table .chart-header-with-filter .chart-title,
    #compare .income-table .chart-header-with-filter .chart-title {
        margin: 0;
        flex: 1;
    }
    
    #yearly .income-table .chart-header-with-filter .filter-group,
    #compare .income-table .chart-header-with-filter .filter-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: 1rem;
    }
    
    #yearly .income-table .chart-header-with-filter .filter-group label,
    #compare .income-table .chart-header-with-filter .filter-group label {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        color: var(--text-secondary);
        white-space: nowrap;
    }
    
    #yearly .income-table .chart-header-with-filter .filter-group select,
    #compare .income-table .chart-header-with-filter .filter-group select {
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--border-medium);
        border-radius: var(--border-radius-sm);
        background: var(--bg-primary);
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        min-width: 120px;
    }
    
    /* 평년탭 분석표 필터 영역 */
    #yearly .yearly-analysis-section .yearly-analysis-filter {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        justify-content: flex-start;
    }
    
    #yearly .yearly-analysis-section .yearly-analysis-filter label {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        color: var(--text-secondary);
        white-space: nowrap;
    }
    
    #yearly .yearly-analysis-section .yearly-analysis-filter select {
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--border-medium);
        border-radius: var(--border-radius-sm);
        background: var(--bg-primary);
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        min-width: 120px;
    }
    
    /* 평년탭 그리드 위치 - 3열 x 2행 그리드 */
    #yearly .yearly-notice {
        display: none;
    }
    #yearly .yearly-top5-card {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        position: relative;
    }
    
    /* 평년탭 TOP 5 필터를 우측 상단에 위치 */
    #yearly .yearly-top5-filter {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        z-index: 10;
    }
    
    #yearly .yearly-top5-filter label {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        color: var(--text-secondary);
        white-space: nowrap;
    }
    
    #yearly .yearly-top5-filter select {
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--border-medium);
        border-radius: var(--border-radius-sm);
        background: var(--bg-primary);
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        min-width: 120px;
    }
    
    /* 평년탭 TOP 5 아이템 간격 조정 */
    #yearly .yearly-top5-card .top5-item {
        margin-bottom: 0.2rem;
    }
    
    #yearly .yearly-top5-card .top5-item:last-child {
        margin-bottom: 0;
    }
    
    /* 평년탭 TOP 5 제목과 컨테이너 간격 조정 */
    #yearly .yearly-top5-card .chart-title {
        margin-bottom: 0.5rem;
    }
    
    #yearly .yearly-top5-card .top5-container {
        margin-top: 0.5rem;
    }
    
    /* 평년탭 TOP5 카드 헤더 스타일 */
    #yearly .yearly-top5-card .card-title,
    #yearly .yearly-national-top5-card .card-title {
        text-align: left;
        font-size: var(--font-size-base);
    }
    
    /* 평년탭 전국 평년 TOP 5 카드 */
    #yearly .yearly-national-top5-card {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        position: relative;
    }
    
    /* 평년탭 전국 평년 TOP 5 필터를 우측 상단에 위치 */
    #yearly .yearly-national-top5-filter {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        z-index: 10;
    }
    
    #yearly .yearly-national-top5-filter label {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        color: var(--text-secondary);
        white-space: nowrap;
    }
    
    #yearly .yearly-national-top5-filter select {
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--border-medium);
        border-radius: var(--border-radius-sm);
        background: var(--bg-primary);
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        min-width: 120px;
    }
    
    /* 평년탭 전국 평년 TOP 5 아이템 간격 조정 */
    #yearly .yearly-national-top5-card .top5-item {
        margin-bottom: 0.2rem;
    }
    
    #yearly .yearly-national-top5-card .top5-item:last-child {
        margin-bottom: 0;
    }
    
    /* 평년탭 전국 평년 TOP 5 제목과 컨테이너 간격 조정 */
    #yearly .yearly-national-top5-card .chart-title {
        margin-bottom: 0.5rem;
    }
    
    #yearly .yearly-national-top5-card .top5-container {
        margin-top: 0.5rem;
    }
    
    /* 평년탭 요약박스와 분석표 헤더 사이 여백 조정 */
    #yearly .main-summary-box {
        margin-bottom: 0.5rem;
    }
    
    #yearly .yearly-analysis-section #yearlyAnalysisTableHead {
        margin-top: 0.5rem;
    }
    #yearly .income-table {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    #yearly .yearly-analysis-section {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        min-height: 0;
    }
    
    /* 평년탭 주의사항 스타일 */
    .yearly-notice .notice-content {
        padding: 1rem;
        background: #f8fafc;
        border-radius: var(--border-radius);
        border-left: 4px solid var(--primary-blue);
    }

    /* ========== 평년탭 사이드바 전용 스타일 ========== */
    #yearly .sidebar {
        background: var(--bg-primary);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        overflow-y: auto;
    }

    /* 평년탭 필터 섹션 */
    #yearly .filter-section {
        margin-bottom: 1.5rem;
    }

    /* 평년탭 필터 타이틀 (헤더) */
    #yearly .filter-title {
        background: transparent;
        color: var(--text-primary);
        padding: 0.4rem 0.6rem;
        font-weight: 700;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        position: relative;
        padding-left: 1rem;
        margin-bottom: 0.75rem;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 0.75rem;
    }

    #yearly .filter-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0.6rem;
        right: 0.6rem;
        height: 2px;
        background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
        border-radius: 1px;
        opacity: 0.6;
    }

    #yearly .filter-title::before {
        content: '';
        position: absolute;
        left: 0.6rem;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        background: var(--primary-blue);
        border-radius: 50%;
        box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
    }

    /* 평년탭 필터 컨텐츠 */
    #yearly .filter-content {
        background: var(--bg-primary);
        border: 1px solid var(--border-light);
        border-radius: var(--border-radius-sm);
        max-height: 150px;
        overflow-y: auto;
    }

    /* 평년탭 셀렉트 박스 컨테이너 */
    #yearly .filter-select-container {
        background: var(--bg-primary);
        border: 1px solid var(--border-light);
        border-radius: var(--border-radius-sm);
    }

    /* 평년탭 셀렉트 박스 */
    #yearly .filter-select {
        width: 100%;
        padding: 0.35rem 0.5rem;
        border: none;
        background: transparent;
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
        color: var(--text-primary);
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 16px;
        padding-right: 2rem;
        cursor: pointer;
    }

    #yearly .filter-select:focus {
        outline: none;
        background-color: var(--bg-accent);
    }

    /* 평년탭 필터 아이템 */
    #yearly .filter-item {
        padding: 0.35rem 0.5rem;
        cursor: pointer;
        border-bottom: 1px solid var(--border-light);
        transition: all var(--transition-fast);
        font-weight: var(--font-weight-medium);
        font-size: var(--font-size-xs);
        position: relative;
    }

    #yearly .filter-item:hover {
        background: var(--bg-accent);
        color: var(--primary-blue);
        transform: translateX(4px);
    }

    #yearly .filter-item.active {
        background: var(--primary-blue);
        color: white;
        font-weight: var(--font-weight-semibold);
    }

    #yearly .filter-item:last-child {
        border-bottom: none;
    }

    /* 평년탭 필터 컨텐츠 스크롤바 */
    #yearly .filter-content::-webkit-scrollbar,
    #yearly .filter-select-container::-webkit-scrollbar {
        width: 6px;
    }

    #yearly .filter-content::-webkit-scrollbar-track,
    #yearly .filter-select-container::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 3px;
    }

    #yearly .filter-content::-webkit-scrollbar-thumb,
    #yearly .filter-select-container::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 3px;
    }

    #yearly .filter-content::-webkit-scrollbar-thumb:hover,
    #yearly .filter-select-container::-webkit-scrollbar-thumb:hover {
        background: #1d4ed8;
    }

    /* ========== 공통 스크롤바 스타일 ========== */
    .filter-content::-webkit-scrollbar,
    .year-buttons::-webkit-scrollbar {
        width: 6px;
    }

    .filter-content::-webkit-scrollbar-track,
    .year-buttons::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 3px;
    }

    .filter-content::-webkit-scrollbar-thumb,
    .year-buttons::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 3px;
    }

    .filter-content::-webkit-scrollbar-thumb:hover,
    .year-buttons::-webkit-scrollbar-thumb:hover {
        background: #1d4ed8;
    }
    
    .notice-item {
        margin-bottom: 0.75rem;
        line-height: 1.5;
        color: var(--text-primary);
    }
    
    .notice-item:last-child {
        margin-bottom: 0;
    }
    
    .notice-item strong {
        color: var(--primary-blue-dark);
        font-weight: var(--font-weight-semibold);
    }
    
    /* 평년탭 분석표 레이아웃 */
    .yearly-analysis-layout {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }
    
    /* 빈 공간 스타일 */
    #yearly .empty-space-1,
    #yearly .empty-space-2,
    #yearly .empty-space-3,
    #yearly .empty-space-4,
    #yearly .empty-space-5 {
        background: var(--bg-accent);
        border: 2px dashed var(--border-medium);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        font-style: italic;
    }
    
    #yearly .empty-space-1::after,
    #yearly .empty-space-2::after,
    #yearly .empty-space-3::after,
    #yearly .empty-space-4::after,
    #yearly .empty-space-5::after {
        content: '향후 차트 영역';
    }
    
    .chart-card {
        margin-bottom: 0;
        padding: 0.5rem;
        position: relative;
    }
    
    
    
    .chart-container {
        height: auto;
        flex: 1;
        min-height: 0;
    }
    
    .chart-title {
        font-size: var(--font-size-sm);
        margin-bottom: 0.25rem;
    }
}

/* ========== 프리미엄 애니메이션 ========== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 요약탭 전용 스타일 ========== */

.summary-filters-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    margin-top: calc(var(--header-height) + 0.5rem);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

/* 3x4 그리드 레이아웃 */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 4fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.5rem;
    height: calc(100vh - var(--header-height) - 80px);
    min-height: 700px;
}

.grid-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

/* 필터 영역 (1행 전체) */
.filter-area {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: 60px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.filter-area:hover {
    transform: none;
    box-shadow: none;
}

/* TOP 5 카드 스타일 */
.top5-card {
    display: flex;
    flex-direction: column;
}

.card-header {
    background: white;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue-dark);
    margin: 0;
    text-align: center;
}

.unit-text {
    color: #000;
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 0.1em;
}

.card-content {
    flex: 1;
    padding: 0.15rem 0.25rem;
    overflow-y: auto;
}

.top5-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.top5-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.top5-item:hover {
    background: var(--bg-accent);
    transform: translateX(2px);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.crop-info {
    flex: 1;
    min-width: 0;
}

.crop-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.05rem;
}

.crop-group {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}


.crop-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue-dark);
    text-align: right;
    flex-shrink: 0;
}

.loading-item {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* 데이터 표 영역 (3열 1-3행) */
.data-table-area {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.data-table-area .table-container {
    flex: 1;
    overflow: auto;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* 데이터 표 섹션 */
.data-table-section {
    padding: 0 1.5rem 2rem;
}

.table-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 150px;
}

.table-filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.table-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue-dark);
    margin: 0;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    width: 200px;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.table-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.summary-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.summary-data-table th {
    background: var(--bg-secondary);
    color: var(--primary-blue-dark);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 2px solid var(--border-medium);
    position: sticky;
    top: 0;
    z-index: 10;
    vertical-align: top;
}

/* 2줄 헤더 구조 스타일 */
.summary-data-table th .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
}

.summary-data-table th .header-main {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    color: var(--primary-blue-dark);
}

.summary-data-table th .header-unit {
    font-size: 0.7rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-muted);
    opacity: 0.8;
}

.summary-data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
    position: relative;
}

.summary-data-table th.sortable:hover {
    background: var(--bg-accent);
}

.sort-arrow {
    margin-left: 0.25rem;
    font-size: 0.8rem;
    opacity: 0.4;
    align-self: center;
}

.sort-arrow::after {
    content: '⇅';
}

.summary-data-table th.sortable.asc .sort-arrow::after {
    content: '↑';
    opacity: 1;
    color: var(--primary-blue);
}

.summary-data-table th.sortable.desc .sort-arrow::after {
    content: '↓';
    opacity: 1;
    color: var(--primary-blue);
}

.summary-data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
    text-align: right;
}

.summary-data-table td:first-child {
    text-align: left;
}

.summary-data-table td:nth-child(3),
.summary-data-table td:nth-child(5),
.summary-data-table td:nth-child(7),
.summary-data-table td:nth-child(9) {
    text-align: center;
}

.summary-data-table tbody tr:hover {
    background: var(--bg-accent);
}

.summary-data-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.summary-data-table tbody tr:nth-child(even):hover {
    background: var(--bg-accent);
}

.loading-cell {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    width: 28px;
    height: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.rank-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.rank-badge:hover::before {
    left: 100%;
}

.rank-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* 순위별 색상 차별화 - 메달 이모티콘 & 기본 색상 */
.rank-badge[data-rank="1"],
.rank-badge[data-rank="2"],
.rank-badge[data-rank="3"] {
    background: transparent;
    box-shadow: none;
    font-size: 16px;
    padding: 0.2rem 0.4rem;
}

.rank-badge[data-rank="4"],
.rank-badge[data-rank="5"] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 6위 이상은 기본 보라색 */
.rank-badge:not([data-rank="1"]):not([data-rank="2"]):not([data-rank="3"]):not([data-rank="4"]):not([data-rank="5"]) {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
}

.summary-filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-filter-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.summary-filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.summary-filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.summary-filter-btn:hover {
    background: var(--bg-accent);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.summary-filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

/* ========== 평년탭 필터 헤더 ========== */
.yearly-filters-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.4rem 1rem;
    margin: 0.5rem;
    margin-top: calc(var(--header-height) + 0.5rem);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.yearly-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yearly-filter-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.yearly-filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.yearly-filter-select-container {
    display: flex;
    gap: 0.25rem;
}

.yearly-filter-select {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 120px;
}

.yearly-filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.yearly-filter-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    min-width: 80px;
    text-align: center;
}

.yearly-filter-btn:hover {
    background: var(--bg-accent);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.yearly-filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

/* 평년탭 컨테이너 여백 조정 - 위의 그리드 설정으로 통합됨 */

/* 반응형 디자인 - 새로운 그리드 레이아웃 */
@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: 1fr 2fr;
        grid-template-rows: repeat(3, 1fr);
        min-height: 800px;
    }
    
    .data-table-area {
        grid-column: 2;
        grid-row: 1 / -1;
    }
}

/* ========== 중간 모바일 (769px - 1024px) ========== */
@media (max-width: 1024px) and (min-width: 769px) {
    .header {
        padding: 0.75rem;
    }
    
    .header-title {
        font-size: var(--font-size-lg);
    }
    
    .tab-btn {
        font-size: var(--font-size-sm);
        padding: 0.4rem 0.75rem;
    }
    
    .chart-card {
        padding: 0.75rem;
    }
    
    .chart-title,
    .chart-title-with-select span {
        font-size: var(--font-size-base) !important;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .main-summary-box {
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 768px) {
    /* 헤더 모바일 대응 */
    .header {
        padding: 0.5rem;
        height: auto;
        min-height: var(--header-height);
        flex-wrap: wrap;
    }
    
    .header-left {
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
    }
    
    .logo {
        height: 1.75rem;
        width: auto;
        flex-shrink: 0;
    }
    
    .header-title {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-right {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .tab-btn {
        font-size: var(--font-size-xs);
        padding: 0.25rem 0.5rem;
        min-height: 1.75rem;
        border-radius: var(--border-radius-sm);
        min-width: 3rem;
        white-space: nowrap;
    }
    
    /* 카드 및 차트 모바일 최적화 */
    .chart-card {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .chart-title,
    .chart-title-with-select span {
        font-size: var(--font-size-sm) !important;
        margin-bottom: 0.25rem;
    }
    
    .chart-container {
        height: 280px;
        min-height: 280px;
    }
    
    /* 테이블 모바일 최적화 */
    table {
        font-size: var(--font-size-xs);
    }
    
    th, td {
        padding: 0.25rem 0.35rem;
    }
    
    th {
        font-size: var(--font-size-xs);
        white-space: nowrap;
    }
    
    /* 필터 및 사이드바 모바일 최적화 */
    .filter-title {
        font-size: var(--font-size-xs);
        padding: 0.25rem 0.35rem;
    }
    
    .filter-item, .year-btn {
        font-size: var(--font-size-xs);
        padding: 0.25rem 0.35rem;
    }
    
    .chart-select {
        font-size: var(--font-size-xs);
        padding: 0.25rem 0.5rem;
    }
    
    /* 요약 박스 모바일 최적화 */
    .main-summary-box {
        padding: 0.25rem 0.5rem;
        gap: 0.35rem;
        flex-wrap: wrap;
    }
    
    .summary-label {
        font-size: var(--font-size-xs);
    }
    
    #totalIncome, #totalRate {
        font-size: var(--font-size-base);
    }
    
    /* TOP 5 카드 모바일 최적화 */
    .top5-item {
        padding: 0.4rem;
        margin-bottom: 0.25rem;
    }
    
    .crop-name {
        font-size: var(--font-size-xs);
        line-height: 1.2;
    }
    
    .crop-value {
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-bold);
    }
    
    /* 테이블 가로 스크롤 개선 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 필터 버튼 터치 최적화 */
    .summary-filter-btn,
    .yearly-filter-btn {
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }
    
    .summary-filters-header {
        margin: 0.5rem;
        margin-top: calc(var(--header-height) + 0.5rem);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .yearly-filters-header {
        margin: 0.25rem;
        margin-top: var(--header-height);
        padding: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        height: auto;
        min-height: auto;
    }
    
    .filter-area {
        grid-column: 1;
        grid-row: 1;
    }
    
    .data-table-area {
        grid-column: 1;
        grid-row: 5;
        max-height: 400px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .table-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .summary-data-table {
        font-size: var(--font-size-xs);
    }
    
    .summary-data-table th,
    .summary-data-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .top5-item {
        padding: 0.5rem;
    }
    
    .crop-name {
        font-size: var(--font-size-xs);
    }
    
    .crop-value {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    /* 극소형 모바일 (480px 이하) 최적화 */
    .header {
        padding: 0.25rem;
    }
    
    .header-left {
        gap: 0.25rem;
    }
    
    .logo {
        height: 1.5rem;
    }
    
    .header-title {
        font-size: var(--font-size-xs);
    }
    
    .tab-btn {
        font-size: 10px;
        padding: 0.2rem 0.4rem;
        min-height: 1.5rem;
        min-width: 2.5rem;
    }
    
    .container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .chart-card {
        padding: 0.4rem;
        margin-bottom: 0.5rem;
    }
    
    .chart-title,
    .chart-title-with-select span {
        font-size: var(--font-size-xs) !important;
    }
    
    .chart-container {
        height: 250px;
        min-height: 250px;
    }
    
    .summary-grid {
        padding: 0.25rem;
        gap: 0.4rem;
    }
    
    .card-header {
        padding: 0.5rem;
    }
    
    .card-title {
        font-size: var(--font-size-sm);
    }
    
    .top5-item {
        gap: 0.4rem;
        padding: 0.4rem;
    }
    
    .rank-number {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .crop-name,
    .crop-value {
        font-size: 11px;
    }
    
    .crop-group {
        font-size: 9px;
    }
    
    /* 테이블 극소형 최적화 */
    table {
        font-size: 10px;
    }
    
    th, td {
        padding: 0.2rem 0.25rem;
    }
    
    /* 필터 극소형 최적화 */
    .filter-title {
        font-size: 11px;
        padding: 0.2rem 0.25rem;
    }
    
    .filter-item, .year-btn {
        font-size: 11px;
        padding: 0.2rem 0.25rem;
    }
    
    .chart-select {
        font-size: 11px;
        padding: 0.2rem 0.4rem;
    }
    
    .main-summary-box {
        padding: 0.2rem 0.4rem;
        gap: 0.25rem;
    }
    
    .summary-label {
        font-size: 11px;
    }
    
    #totalIncome, #totalRate {
        font-size: var(--font-size-sm);
    }
    
    /* 평년탭 필터 헤더 극소형 최적화 */
    .yearly-filters-header {
        padding: 0.4rem;
        margin: 0.2rem;
        gap: 0.5rem;
    }
    
    .yearly-filter-label {
        font-size: var(--font-size-xs);
    }
    
    .yearly-filter-select,
    .yearly-filter-btn {
        font-size: var(--font-size-xs);
        padding: 0.2rem 0.4rem;
        min-width: 60px;
    }
    
    /* mobile-toggle-btn 극소형 최적화 */
    .mobile-toggle-btn {
        font-size: 10px !important;
        padding: 0.25rem 0.5rem !important;
        top: calc(var(--header-height) + 0.25rem) !important;
        right: 0.25rem !important;
    }
    
    .sidebar {
        max-height: 35px !important;
        margin-top: 0.05rem !important;
        margin-bottom: 0.05rem !important;
    }
    
    .sidebar.collapsed,
    .sidebar:not(.expanded),
    #compare .sidebar.collapsed,
    #compare .sidebar:not(.expanded) {
        max-height: 35px !important;
        padding: 0.35rem !important;
    }
}

/* ========== 스크롤바 스타일링 ========== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue-light);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* ========== 로딩 및 상태 표시 ========== */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: var(--text-muted);
    font-size: var(--font-size-base);
    animation: pulse 2s infinite;
}

.loading::before {
    content: '';
    font-size: 2rem;
    margin-right: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========== 접근성 향상 ========== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 포커스 스타일 */
button:focus,
.filter-item:focus,
.year-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* 다크모드 지원을 위한 미디어 쿼리
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1e293b;
        --bg-secondary: #0f172a;
        --bg-accent: #1e3a8a;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-light: #334155;
        --border-medium: #475569;
    }
} */

/* ========== 인쇄 스타일 ========== */

@media print {
    .header,
    .mobile-toggle-btn,
    .sidebar {
        display: none !important;
    }
    
    .container {
        padding-top: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .chart-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ========== 엑셀 다운로드 버튼 스타일 ========== */

.excel-download-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    margin-left: 8px !important;
    padding: 4px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.excel-download-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.excel-download-btn:active {
    transform: scale(0.95);
}

.excel-download-btn::before {
    content: "📥" !important;
    font-size: 16px !important;
    display: inline-block !important;
}

/* 테이블 헤더 내 버튼들 */
.table-header .excel-download-btn,
.chart-header-with-filter .excel-download-btn {
    margin-left: 8px;
}

/* 차트 타이틀과 버튼이 함께 있는 경우 */
.chart-title + .excel-download-btn {
    margin-left: 8px;
    vertical-align: middle;
}

/* 타이틀 안에 버튼이 있는 경우 */
.table-title .excel-download-btn,
.chart-title .excel-download-btn {
    margin-left: 8px !important;
    vertical-align: middle !important;
    position: relative !important;
    z-index: 1000 !important;
    display: inline-flex !important;
}

/* 차트 카드의 절대 위치 스타일 제거 */
.chart-card {
    position: static;
}

/* ========== 모션 감소 선호 사용자를 위한 설정 ========== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== 데이터 출처 Footer ========== */

.data-source-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 1rem 1rem 0.75rem;
    border-top: 1px solid var(--border-light);
    transition: margin-left 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    transform: translateY(calc(100% - 20px));
}

/* 홈탭에서만 항상 표시 */
body.home-tab-active .data-source-footer {
    transform: translateY(0) !important;
}

.data-source-footer:hover {
    transform: translateY(0);
}

.data-source-footer::before {
    content: "📄 데이터 정보";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px 4px 0 0;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
}


.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4,
.footer-left .source-title,
.footer-right .notice-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.2rem;
    display: inline-block;
}

.footer-section p,
.footer-left .source-text {
    color: #d1d5db;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.footer-left .source-text a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left .source-text a:hover {
    color: #f59e0b;
}

.contact-info {
    color: #d1d5db;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.35rem;
    color: #d1d5db;
    font-size: 0.75rem;
    line-height: 1.4;
}

.notice-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-blue);
}

.footer-bottom {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #4b5563;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .data-source-footer {
        margin-left: 0;
        padding: 0.75rem;
        transform: translateY(calc(100% - 15px));
    }
    
    .data-source-footer::before {
        font-size: 9px;
        top: -15px;
        padding: 1px 6px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-left .source-title,
    .footer-right .notice-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-left .source-text {
        font-size: 0.7rem;
    }
    
    .notice-list li {
        margin-bottom: 0.3rem;
        padding-left: 0.75rem;
        font-size: 0.65rem;
    }
}

/* ========== 차트 단위 표시 ========== */
.chart-container {
    position: relative;
}

.chart-unit {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    padding: 3px 8px;
    z-index: 10;
}

/* ========== 테이블 단위 표시 ========== */
.table-unit {
    display: block;
    text-align: right;
    font-size: 11px;
    font-weight: 600;
    color: #000000;
    padding: 0px 15px 0px 0px;
    margin: 0px;
}