        /* Loading Overlay & Spinner */
        #loadingOverlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(4px);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        #loadingOverlay.hidden-loader {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .spinner {
            width: 52px;
            height: 52px;
            border: 5px solid rgba(255, 255, 255, 0.2);
            border-top-color: #109668;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .progress-bar-container {
            width: 280px;
            height: 6px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 999px;
            overflow: hidden;
            margin-top: 20px;
        }

        .progress-bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, #109668, #38bdf8);
            border-radius: 999px;
            animation: indeterminate 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }

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

        @keyframes indeterminate {
            0% {
                transform: translateX(-100%);
                width: 40%;
            }

            50% {
                transform: translateX(50%);
                width: 70%;
            }

            100% {
                transform: translateX(200%);
                width: 40%;
            }
        }

        body {
            background-color: #f1f5f9;
            font-family: 'SUIT Variable', 'SUIT', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
            color: #1e293b;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        }

        .chart-container {
            position: relative;
            height: 100%;
            width: 100%;
        }

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

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* 16:9 Slide Master Container Styling (Exact replica of 112222.pptx slideLayout12) */
        .slide-page {
            width: 100%;
            max-width: 1400px;
            min-height: 787.5px;
            height: auto;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            position: relative;
            box-sizing: border-box;
            background-color: #ffffff;
            overflow: visible;
            border-radius: 0px !important;
            /* PPT 원본 슬라이드 형태: 직각 */
            border: 1px solid #cbd5e1;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
            margin-bottom: 2.5rem;
            padding: 0;
            /* 내부 여백은 header-area, content-area로 정밀 분할 */
        }

        @media screen and (max-width: 1360px) {
            .slide-page {
                aspect-ratio: auto !important;
                height: auto !important;
                min-height: auto !important;
                overflow: visible !important;
            }
        }

        @media screen and (max-width: 1024px) {

            .slide-ribbon {
                width: 12px !important;
                height: 48px !important;
            }

            .slide-top-line {
                height: 50px !important;
            }

            .slide-top-logo {
                height: 20px !important;
                top: 18px !important;
                right: 1px !important;
            }

            .slide-header-area {
                height: 50px !important;
                padding: 0 16px 0 22px !important;
            }

            .slide-header-area h1,
            .slide-header-area h2 {
                font-size: 16px !important;
            }

            .slide-num-tab {
                height: 34px !important;
                width: 42px !important;
                font-size: 11px !important;
                padding-bottom: 5px !important;
            }

            html body .slide-content-area,
            html body #slide-0 .slide-content-area {
                padding: 12px 14px 56px 14px !important;
            }

            .slide-page .chart-container {
                min-height: 220px;
            }

            #slide-2 .chart-container,
            #slide-3 .chart-container {
                min-height: 320px;
            }
        }

        /* Slide Master Elements */
        .slide-ribbon {
            position: absolute;
            left: 0;
            top: 0;
            width: 18px;
            height: 74px;
            background-image: url('/images/master_ribbon.png');
            background-size: 100% 100%;
            background-repeat: no-repeat;
            z-index: 20;
            pointer-events: none;
        }

        .slide-top-line {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            width: 100%;
            height: 76px;
            pointer-events: none;
            z-index: 10;
        }

        .slide-top-logo {
            position: absolute;
            top: 24px;
            right: 26px;
            width: 28px;
            height: 48px;
            object-fit: contain;
            pointer-events: auto;
            z-index: 25;
        }

        .slide-bottom-bar {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 6px;
            background-color: rgba(0, 162, 154, 0.16);
            /* PPT 원본 직사각형 20: 00A29A (alpha 16%) */
            z-index: 15;
            pointer-events: none;
        }

        .slide-num-tab {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 42px;
            height: 72px;
            /* PPT 원본 직각삼각형 31(#00A29A) + 직사각형 30(상단 #00A29A -> 하단 #036EB8 그라데이션) 일치 */
            background: linear-gradient(180deg, #00A29A 0%, #00A29A 32%, #0183A8 65%, #036EB8 100%);
            clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 24px);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 9px;
            color: #ffffff;
            font-weight: 900;
            font-size: 13px;
            letter-spacing: 0.05em;
            font-family: 'SUIT Variable', 'SUIT', sans-serif;
            z-index: 25;
            pointer-events: none;
        }

        .slide-header-area {
            position: relative;
            z-index: 15;
            height: 76px;
            padding: 0 4.88%;
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }

        .slide-content-area {
            position: relative;
            z-index: 5;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 1.8% 4.88% 4.2% 4.88%;
            min-height: 0;
            box-sizing: border-box;
        }

        #slide-0 .slide-content-area {
            justify-content: flex-start !important;
            gap: 14px !important;
            padding: 1.8% 4.88% 3% 4.88% !important;
        }

        .slide-badge {
            background-color: #00A29A;
            color: #ffffff;
            padding: 4px 14px;
            font-weight: 800;
            font-size: 18.67px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
        }

        .slide-bullets li {
            font-size: 18.67px;
            color: #334155;
            line-height: 1.45;
            position: relative;
            padding-left: 14px;
            font-weight: 500;
        }

        .slide-bullets li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: #0c2b5b;
            font-weight: 900;
        }

        #slide1Table td,
        #slide1Table th {
            font-size: 14.67px !important;
        }

        /* Screen mode for print page container */
        .print-page {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        /* Print & PDF Export Media Rules (A4 Landscape 297mm x 210mm with Contain Ratio & 21mm Equal Margins) */
        @media print {
            @page {
                size: A4 landscape;
                margin: 0;
            }

            *,
            ::before,
            ::after {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            html,
            body {
                background: #ffffff !important;
                padding: 0 !important;
                margin: 0 !important;
                width: 1122.5px !important;
                min-width: 1122.5px !important;
                max-width: 1122.5px !important;
                color: #1e293b !important;
                font-family: 'SUIT Variable', 'SUIT', sans-serif !important;
            }

            html body .no-print,
            .no-print {
                display: none !important;
            }

            .print-force-show {
                display: block !important;
            }

            main,
            #view-comp,
            #view-lead {
                width: 1122.5px !important;
                min-width: 1122.5px !important;
                max-width: 1122.5px !important;
                padding: 0 !important;
                margin: 0 !important;
            }

            /* Print Page Wrapper: Exactly A4 Landscape 1122.5px x 793.7px (297mm x 210mm) */
            .print-page {
                width: 1122.5px !important;
                min-width: 1122.5px !important;
                max-width: 1122.5px !important;
                height: 793.7px !important;
                min-height: 793.7px !important;
                max-height: 793.7px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                break-after: page !important;
                page-break-after: always !important;
                break-inside: avoid !important;
                page-break-inside: avoid !important;
                box-sizing: border-box !important;
                margin: 0 auto !important;
                padding: 0 !important;
                overflow: hidden !important;
                background: #ffffff !important;
            }

            .print-page:last-child {
                break-after: auto !important;
                page-break-after: auto !important;
            }

            /* 16:9 Slide Page in Print: Exact 1400px x 787.5px scaled with single zoom: 0.8018 */
            .slide-page,
            .slide-card,
            #leaderReportCard {
                width: 1400px !important;
                min-width: 1400px !important;
                max-width: 1400px !important;
                height: 787.5px !important;
                min-height: 787.5px !important;
                max-height: 787.5px !important;
                aspect-ratio: 16 / 9 !important;
                zoom: 0.8018 !important;
                transform: none !important;
                margin: 0 auto !important;
                padding: 0 !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                page-break-after: auto !important;
                break-after: auto !important;
                page-break-inside: avoid !important;
                break-inside: avoid !important;
                box-sizing: border-box !important;
                overflow: hidden !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: flex-start !important;
                position: relative !important;
                background-color: #ffffff !important;
            }

            /* Enforce desktop multi-column responsive grids in print so they never collapse into 1 column */
            .slide-page .lg\:grid-cols-12,
            .slide-card .lg\:grid-cols-12,
            #leaderReportCard .lg\:grid-cols-12 {
                grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
            }

            .slide-page .lg\:col-span-4,
            .slide-card .lg\:col-span-4,
            #leaderReportCard .lg\:col-span-4 {
                grid-column: span 4 / span 4 !important;
            }

            .slide-page .lg\:col-span-5,
            .slide-card .lg\:col-span-5,
            #leaderReportCard .lg\:col-span-5 {
                grid-column: span 5 / span 5 !important;
            }

            .slide-page .lg\:col-span-7,
            .slide-card .lg\:col-span-7,
            #leaderReportCard .lg\:col-span-7 {
                grid-column: span 7 / span 7 !important;
            }

            .slide-page .lg\:col-span-8,
            .slide-card .lg\:col-span-8,
            #leaderReportCard .lg\:col-span-8 {
                grid-column: span 8 / span 8 !important;
            }

            .slide-page .lg\:col-span-6,
            .slide-card .lg\:col-span-6,
            #leaderReportCard .lg\:col-span-6 {
                grid-column: span 6 / span 6 !important;
            }

            .slide-page .lg\:grid-cols-3,
            .slide-card .lg\:grid-cols-3,
            #leaderReportCard .lg\:grid-cols-3 {
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            }

            .slide-page .lg\:grid-cols-2,
            .slide-card .lg\:grid-cols-2,
            #leaderReportCard .lg\:grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }

            .slide-page .lg\:grid-cols-4,
            .slide-card .lg\:grid-cols-4,
            #leaderReportCard .lg\:grid-cols-4,
            .slide-page .md\:grid-cols-4,
            .slide-card .md\:grid-cols-4,
            #leaderReportCard .md\:grid-cols-4 {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }

            .slide-page .md\:grid-cols-2,
            .slide-card .md\:grid-cols-2,
            #leaderReportCard .md\:grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }

            .slide-page .sm\:grid-cols-2,
            .slide-card .sm\:grid-cols-2,
            #leaderReportCard .sm\:grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }

            .slide-page .md\:flex-row,
            .slide-card .md\:flex-row,
            #leaderReportCard .md\:flex-row {
                flex-direction: row !important;
            }

            .slide-page .md\:items-center,
            .slide-card .md\:items-center,
            #leaderReportCard .md\:items-center {
                align-items: center !important;
            }

            /* Maintain Slide Master Layout */
            .slide-ribbon {
                display: block !important;
            }

            .slide-top-line {
                display: block !important;
            }

            .slide-bottom-bar {
                display: block !important;
            }

            .slide-num-tab {
                display: flex !important;
            }

            .slide-header-area h1,
            .slide-header-area h2 {
                font-size: 32px !important;
            }

            .slide-badge {
                font-size: 18.67px !important;
            }

            .slide-bullets li {
                font-size: 18.67px !important;
            }

            #slide1Table td,
            #slide1Table th {
                font-size: 14.67px !important;
            }

            /* Table cell text ellipsis prevention in print */
            #slide1Table td span.truncate {
                max-width: none !important;
                overflow: visible !important;
                white-space: nowrap !important;
            }
        }

@media print {
    #view-comp .slide-page.hidden {
        display: block !important;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

@media print {
    .no-print {
        display: none !important;
    }
    .print-force-show {
        display: block !important;
    }
}
