        /* ============================================================ */
        /* Clean Light Dashboard Theme (Matching Attached Screenshot)    */
        /* ============================================================ */
        :root {
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --bg-card-hover: #f1f5f9;
            --border-color: #cbd5e1;
            --border-light: #e2e8f0;
            --text-primary: #0f172a;
            --text-secondary: #334155;
            --text-muted: #64748b;
            --accent-blue: #2563eb;
            --accent-blue-hover: #1d4ed8;
            --accent-indigo: #4f46e5;
            --accent-green: #16a34a;
            --accent-amber: #d97706;
            --accent-red: #dc2626;
            --radius: 10px;
        }

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

        body {
            font-family: 'Noto Sans KR', 'Inter', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-primary);
            line-height: 1.5;
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
        }

        /* Header Bar */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .header h1 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .db-status {
            font-size: 0.85rem;
            padding: 6px 14px;
            border-radius: 20px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .db-status.online {
            background-color: #dcfce7;
            color: #15803d;
            border: 1px solid #86efac;
        }

        .db-status.offline {
            background-color: #fee2e2;
            color: #b91c1c;
            border: 1px solid #fca5a5;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }

        .online .status-dot {
            background-color: #16a34a;
            box-shadow: 0 0 6px #16a34a;
        }

        .offline .status-dot {
            background-color: #dc2626;
            box-shadow: 0 0 6px #dc2626;
        }

        /* Summary Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .stat-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 18px 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: transform 0.2s, border-color 0.2s;
        }

        .stat-card.clickable {
            text-decoration: none;
            cursor: pointer;
            display: block;
            transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
        }

        .stat-card.clickable:hover {
            transform: translateY(-3px);
            border-color: var(--accent-blue);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
        }

        .stat-card.clickable.active {
            border: 2px solid var(--accent-blue);
            background-color: #eff6ff;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 6px;
            font-weight: 500;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .stat-value.amount {
            color: var(--accent-blue);
        }

        /* Filter Controls Panel */
        .filter-panel {
            background-color: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 15px 20px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .filter-form {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            align-items: center;
            width: 100%;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .form-group label {
            font-size: 0.78rem;
            color: #334155;
            font-weight: 600;
        }

        input[type="text"],
        select {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        input[type="text"]:focus,
        select:focus {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }

        /* Custom Date Picker Trigger Box */
        .date-trigger-box {
            display: flex;
            align-items: center;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0 12px;
            gap: 8px;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s;
            user-select: none;
        }

        .date-trigger-box:hover {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .date-trigger-box input {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            cursor: pointer;
            width: 230px;
            padding: 8px 0 !important;
            color: var(--text-primary);
            font-size: 0.88rem;
            font-weight: 500;
        }

        .search-input {
            min-width: 260px;
            flex-grow: 1;
        }

        .btn {
            padding: 9px 20px;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: background-color 0.2s, opacity 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: auto;
        }

        .btn-primary {
            background-color: #2563eb;
            color: #ffffff;
        }

        .btn-primary:hover {
            background-color: #1d4ed8;
        }

        .btn-reset {
            background-color: #f1f5f9;
            color: #475569;
            border: 1px solid #cbd5e1;
            text-decoration: none;
        }

        .btn-reset:hover {
            background-color: #e2e8f0;
            color: #0f172a;
        }

        .btn-excel-download {
            background-color: #ffffff;
            color: #ef4444;
            border: 1.5px solid #fca5a5;
            padding: 7px 16px;
            border-radius: 6px;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .btn-excel-download:hover {
            background-color: #fee2e2;
            color: #dc2626;
            border-color: #ef4444;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
        }

        /* Data Table Wrapper */
        .table-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .table-wrapper {
            overflow-x: auto;
            max-height: 720px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
            white-space: nowrap;
            text-align: left;
        }

        thead {
            position: sticky;
            top: 0;
            background-color: #f1f5f9;
            z-index: 10;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
        }

        th {
            padding: 11px 12px;
            color: #1e293b;
            font-weight: 700;
            border-bottom: 2px solid #cbd5e1;
            letter-spacing: 0.01em;
        }

        .th-content {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            user-select: none;
        }

        .th-content.th-right {
            justify-content: flex-end;
            width: 100%;
        }

        .sort-btns {
            display: inline-flex;
            flex-direction: column;
            gap: 0px;
            line-height: 1;
        }

        .sort-btn {
            font-size: 0.6rem;
            color: #94a3b8;
            text-decoration: none;
            padding: 1px 3px;
            border-radius: 2px;
            transition: color 0.15s, background-color 0.15s;
            line-height: 0.7;
        }

        .sort-btn:hover {
            color: #0f172a;
            background-color: rgba(0, 0, 0, 0.06);
        }

        .sort-btn.active {
            color: var(--accent-blue);
            font-weight: bold;
        }

        td {
            padding: 10px 14px;
            border-bottom: 1px solid #e2e8f0;
            color: #0f172a;
            vertical-align: middle;
        }

        tbody tr {
            background-color: #ffffff;
            transition: background-color 0.15s;
        }

        tbody tr:nth-child(even) {
            background-color: #f8fafc;
        }

        tbody tr:hover {
            background-color: #f1f5f9;
        }

        /* Light Theme Badges (Pastel Style) */
        .badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            text-align: center;
            box-sizing: border-box;
            line-height: 1;
        }

        /* 상태 배지: 66px x 26px (중앙 정렬) */
        .badge-status,
        .badge-success,
        .badge-danger,
        .badge-warning,
        .badge-info,
        .badge-deleted {
            width: 66px;
            height: 26px;
        }

        .badge-success {
            background-color: #dcfce7;
            color: #15803d;
            border: 1px solid #86efac;
        }

        .badge-danger {
            background-color: #fee2e2;
            color: #b91c1c;
            border: 1px solid #fca5a5;
        }

        .badge-warning {
            background-color: #fef3c7;
            color: #b45309;
            border: 1px solid #fde68a;
        }

        .badge-info {
            background-color: #f5e0fe;
            color: #7e22ce;
            border: 1px solid #e2bcfd;
        }

        .badge-deleted {
            background-color: #e2e8f0;
            color: #0f172a;
            border: 1px solid #cbd5e1;
        }

        /* 사업부 배지: 67px x 26px (중앙 정렬) */
        .badge-division,
        .badge-division-viaweb,
        .badge-division-nayana,
        .badge-division-cloud,
        .badge-division-deleted {
            width: 67px;
            height: 26px;
        }

        .badge-division {
            background-color: #e0e7ff;
            color: #3730a3;
            border: 1px solid #c7d2fe;
        }

        .badge-division-viaweb {
            background-color: #3a7ab8;
            color: #ffffff;
            border: 1px solid #336ca3;
        }

        .badge-division-nayana {
            background-color: #fd9d0a;
            color: #ffffff;
            border: 1px solid #e08906;
        }

        .badge-division-cloud {
            background-color: #32ba8f;
            color: #ffffff;
            border: 1px solid #2aa17b;
        }

        .badge-division-deleted {
            background-color: #000000;
            color: #ffffff;
            border: 1px solid #000000;
        }

        .badge-type {
            background-color: #dbeafe;
            color: #1e40af;
            border: 1px solid #bfdbfe;
        }

        .amount-cell {
            font-weight: 700;
            color: #1d4ed8;
            text-align: right;
        }

        .truncate {
            max-width: 380px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Pagination Bar */
        .pagination-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background-color: #f8fafc;
            border-top: 1px solid #e2e8f0;
            flex-wrap: wrap;
            gap: 12px;
        }

        .pagination-info {
            font-size: 0.85rem;
            color: #475569;
        }

        .pagination-nav {
            display: flex;
            gap: 6px;
        }

        .page-link {
            padding: 6px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            background-color: #ffffff;
            color: #475569;
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.2s;
        }

        .page-link:hover {
            border-color: var(--accent-blue);
            color: var(--text-primary);
            background-color: #f1f5f9;
        }

        .page-link.active {
            background-color: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
            font-size: 1rem;
        }

        .alert-error {
            background-color: #fee2e2;
            border: 1px solid #fca5a5;
            color: #b91c1c;
            padding: 16px;
            border-radius: var(--radius);
            margin-bottom: 24px;
        }

        /* ============================================================ */
        /* Custom Calendar Modal Styling (Matching User Screenshot)     */
        /* ============================================================ */
        .cal-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(3px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .cal-modal-card {
            background-color: #ffffff;
            color: #1e293b;
            border-radius: 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
            border: 1px solid #cbd5e1;
            width: 100%;
            max-width: 960px;
            padding: 24px 28px;
            font-family: 'Noto Sans KR', 'Inter', sans-serif;
            animation: calFadeIn 0.2s ease-out;
        }

        @keyframes calFadeIn {
            from {
                opacity: 0;
                transform: scale(0.96);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .cal-header-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            align-items: center;
            margin-bottom: 20px;
            gap: 12px;
        }

        .cal-nav-box {
            display: flex;
            align-items: center;
            gap: 10px;
            background-color: #f8fafc;
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid #f1f5f9;
        }

        .cal-nav-box.center {
            justify-content: center;
        }

        .cal-nav-box.right {
            justify-content: flex-end;
        }

        .cal-month-title {
            font-weight: 700;
            font-size: 1.05rem;
            color: #0f172a;
        }

        .cal-btn-circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }

        .cal-btn-circle:hover {
            background-color: #f1f5f9;
            border-color: #94a3b8;
            color: #0f172a;
        }

        .cal-select {
            background-color: #ffffff;
            border: 1px solid #cbd5e1;
            color: #0f172a;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            outline: none;
            cursor: pointer;
        }

        .cal-months-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        @media (max-width: 860px) {
            .cal-months-container {
                grid-template-columns: 1fr;
            }

            .cal-header-row {
                grid-template-columns: 1fr;
            }
        }

        .cal-month-block {
            background: #ffffff;
        }

        .cal-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .cal-weekday {
            padding: 6px 0;
        }

        .cal-weekday.sun {
            color: #ef4444;
        }

        .cal-weekday.sat {
            color: #2563eb;
        }

        .cal-weekday.normal {
            color: #475569;
        }

        .cal-days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 3px;
            text-align: center;
        }

        .cal-day {
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            user-select: none;
            border-radius: 6px;
            transition: background-color 0.15s, color 0.15s;
            color: #1e293b;
        }

        .cal-day.other-month {
            color: #cbd5e1;
            pointer-events: none;
        }

        .cal-day:hover:not(.other-month) {
            background-color: #f1f5f9;
        }

        .cal-day.selected {
            border: 2px solid #3b82f6 !important;
            border-radius: 10px !important;
            color: #1d4ed8 !important;
            font-weight: 700 !important;
            background-color: #eff6ff !important;
        }

        .cal-day.in-range {
            background-color: #dbeafe !important;
            color: #1e40af !important;
            border-radius: 0 !important;
        }

        .cal-day.range-start {
            border-top-left-radius: 10px !important;
            border-bottom-left-radius: 10px !important;
        }

        .cal-day.range-end {
            border-top-right-radius: 10px !important;
            border-bottom-right-radius: 10px !important;
        }

        .cal-footer-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 18px;
            border-top: 1px solid #f1f5f9;
            flex-wrap: wrap;
            gap: 12px;
        }

        .cal-footer-left,
        .cal-footer-right {
            display: flex;
            gap: 10px;
        }

        .cal-btn-today {
            border: 1.5px solid #3b82f6;
            color: #2563eb;
            background-color: #eff6ff;
            border-radius: 8px;
            font-weight: 600;
            padding: 8px 18px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.15s;
        }

        .cal-btn-today:hover {
            background-color: #dbeafe;
        }

        .cal-btn-clear {
            border: 1px solid #cbd5e1;
            color: #64748b;
            background-color: #ffffff;
            border-radius: 8px;
            font-weight: 500;
            padding: 8px 18px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.15s;
        }

        .cal-btn-clear:hover {
            background-color: #f8fafc;
            color: #334155;
            border-color: #94a3b8;
        }

        .cal-btn-apply {
            border: 1px solid #2563eb;
            color: #ffffff;
            background-color: #2563eb;
            border-radius: 8px;
            font-weight: 600;
            padding: 8px 22px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.15s;
        }

        .cal-btn-apply:hover {
            background-color: #1d4ed8;
        }

        .cal-btn-close {
            border: 1px solid #cbd5e1;
            color: #475569;
            background-color: #ffffff;
            border-radius: 8px;
            font-weight: 500;
            padding: 8px 18px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.15s;
        }

        .cal-btn-close:hover {
            background-color: #f8fafc;
            border-color: #94a3b8;
        }

        /* ============================================================ */
        /* 갱신 기능 (전체 갱신 / 문서번호 갱신 / 행별 갱신)              */
        /* ============================================================ */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-refresh {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 14px;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
            white-space: nowrap;
        }

        .btn-refresh-all {
            background-color: var(--accent-blue);
            border: 1px solid var(--accent-blue);
            color: #ffffff;
        }

        .btn-refresh-all:hover:not(:disabled) {
            background-color: var(--accent-blue-hover);
            border-color: var(--accent-blue-hover);
        }

        .btn-refresh-doc {
            background-color: var(--bg-card);
            border: 1px solid var(--accent-indigo);
            color: var(--accent-indigo);
        }

        .btn-refresh-doc:hover:not(:disabled) {
            background-color: #eef2ff;
        }

        .btn-refresh:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        /* 도는 동안 아이콘만 회전시킨다. 버튼 글자까지 돌면 읽을 수 없다. */
        .btn-refresh.is-busy svg,
        .btn-row-refresh.is-busy svg {
            animation: refresh-spin 0.9s linear infinite;
        }

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

        /* ② 행별 갱신 버튼 */
        .th-refresh {
            width: 52px;
            text-align: center;
            white-space: nowrap;
        }

        .td-refresh {
            text-align: center;
        }

        .btn-row-refresh {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            padding: 0;
            border: 1px solid var(--border-color);
            border-radius: 7px;
            background-color: var(--bg-card);
            color: var(--text-muted);
            cursor: pointer;
            transition: color 0.15s, border-color 0.15s, background-color 0.15s;
        }

        .btn-row-refresh svg {
            width: 15px;
            height: 15px;
        }

        .btn-row-refresh:hover:not(:disabled) {
            color: var(--accent-blue);
            border-color: var(--accent-blue);
            background-color: #eff6ff;
        }

        .btn-row-refresh:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 문서번호 입력 모달 */
        .rf-modal-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(15, 23, 42, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1200;
            padding: 20px;
        }

        .rf-modal-card {
            background-color: var(--bg-card);
            border-radius: 14px;
            box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
            width: 100%;
            max-width: 520px;
            overflow: hidden;
        }

        .rf-modal-head {
            padding: 18px 22px;
            border-bottom: 1px solid var(--border-light);
        }

        .rf-modal-head h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .rf-modal-head p {
            margin-top: 5px;
            font-size: 0.82rem;
            color: var(--text-muted);
            line-height: 1.55;
        }

        .rf-modal-body {
            padding: 20px 22px;
        }

        .rf-field {
            margin-bottom: 16px;
        }

        .rf-field:last-child {
            margin-bottom: 0;
        }

        .rf-field label {
            display: block;
            margin-bottom: 6px;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .rf-field textarea,
        .rf-field select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.9rem;
            color: var(--text-primary);
            background-color: var(--bg-card);
        }

        .rf-field textarea {
            min-height: 92px;
            resize: vertical;
            line-height: 1.6;
        }

        .rf-field textarea:focus,
        .rf-field select:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .rf-hint {
            margin-top: 6px;
            font-size: 0.78rem;
            color: var(--text-muted);
            line-height: 1.55;
        }

        .rf-modal-foot {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            padding: 14px 22px;
            background-color: #f8fafc;
            border-top: 1px solid var(--border-light);
        }

        .rf-btn {
            padding: 9px 18px;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .rf-btn-primary {
            background-color: var(--accent-blue);
            color: #fff;
        }

        .rf-btn-primary:hover {
            background-color: var(--accent-blue-hover);
        }

        .rf-btn-ghost {
            background-color: var(--bg-card);
            border-color: var(--border-color);
            color: var(--text-secondary);
        }

        .rf-btn-ghost:hover {
            background-color: var(--bg-card-hover);
        }

        .rf-modal-error {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            background-color: #fee2e2;
            border: 1px solid #fca5a5;
            color: #b91c1c;
            font-size: 0.83rem;
            line-height: 1.5;
        }

        /* 진행 상황 패널 - 화면 오른쪽 아래에 떠 있는다 */
        .rf-progress {
            position: fixed;
            right: 24px;
            bottom: 24px;
            z-index: 1300;
            width: 340px;
            max-width: calc(100vw - 48px);
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
            overflow: hidden;
        }

        .rf-progress-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 12px 14px;
            border-bottom: 1px solid var(--border-light);
        }

        .rf-progress-title {
            font-size: 0.87rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .rf-progress-close {
            border: none;
            background: none;
            color: var(--text-muted);
            font-size: 1.15rem;
            line-height: 1;
            cursor: pointer;
            padding: 0 2px;
        }

        .rf-progress-close:hover {
            color: var(--text-primary);
        }

        .rf-progress-body {
            padding: 6px 14px 12px;
            max-height: 260px;
            overflow-y: auto;
        }

        .rf-job {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-light);
            font-size: 0.83rem;
            line-height: 1.5;
        }

        .rf-job:last-child {
            border-bottom: none;
        }

        .rf-job-icon {
            flex: 0 0 auto;
            width: 16px;
            text-align: center;
            padding-top: 1px;
        }

        .rf-job-text {
            flex: 1 1 auto;
            min-width: 0;
        }

        .rf-job-label {
            font-weight: 600;
            color: var(--text-primary);
        }

        .rf-job-phase {
            color: var(--text-muted);
            font-size: 0.79rem;
        }

        .rf-job.is-failed .rf-job-phase {
            color: var(--accent-red);
        }

        .rf-job.is-done .rf-job-phase {
            color: var(--accent-green);
        }

        .rf-job-code {
            font-family: 'Inter', monospace;
            font-size: 0.68rem;
            color: var(--text-muted);
            opacity: 0.7;
            margin-left: 3px;
        }

        .rf-spinner {
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid var(--border-color);
            border-top-color: var(--accent-blue);
            border-radius: 50%;
            animation: refresh-spin 0.8s linear infinite;
        }

        @media (max-width: 720px) {
            .header-actions {
                flex-wrap: wrap;
                justify-content: flex-end;
            }
        }


        /* ============================================================ */
        /* Login Page Styles                                            */
        /* ============================================================ */
        body.login-page {
            height: 100% !important;
            background-color: #ffffff !important;
            margin: 0 !important;
            padding: 0 !important;
            font-family: 'Poppins', 'Noto Sans KR', "Malgun Gothic", sans-serif !important;
            color: #1e293b !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            min-height: 100vh;
        }

        .login-card {
            background-color: #ffffff !important;
            width: 420px !important;
            max-width: 90% !important;
            border-radius: 24px !important;
            padding: 56px 48px !important;
            border: 1px solid #f1f5f9 !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
            text-align: center !important;
            margin: auto !important;
        }

        .logo-area {
            font-family: 'Playfair Display', Georgia, serif;
            font-size: 36px;
            font-weight: 900;
            font-style: italic;
            color: #0f172a;
            margin-bottom: 20px;
            letter-spacing: -1px;
        }

        .logo-area span {
            color: #ff6f3f;
        }

        .title {
            font-size: 26px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .title span {
            color: #ff6f3f;
        }

        .description {
            font-size: 15px;
            color: #64748b;
            margin-bottom: 32px;
        }

        /* Error Alert Box */
        .error-alert {
            display: none;
            background-color: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
            font-size: 14px;
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 20px;
            text-align: left;
            word-break: break-all;
        }

        /* Form Styles */
        .input-group {
            position: relative;
            margin-bottom: 16px;
            text-align: left;
        }

        .input-group input {
            width: 100%;
            height: 54px;
            padding: 0 16px;
            padding-right: 48px;
            font-size: 15px;
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            color: #0f172a;
            outline: none;
            transition: all 0.2s ease;
        }

        .input-group input::placeholder {
            color: #94a3b8;
        }

        .input-group input:focus {
            border-color: #ff6f3f;
            background-color: #ffffff;
            box-shadow: 0 0 0 4px rgba(255, 111, 63, 0.15);
        }

        .password-toggle {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            cursor: pointer;
            font-size: 16px;
            transition: color 0.2s ease;
            user-select: none;
        }

        .password-toggle:hover {
            color: #64748b;
        }

        .login-btn {
            width: 100%;
            height: 54px;
            background-color: #ff6f3f;
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            margin-top: 16px;
            margin-bottom: 24px;
            box-shadow: 0 4px 12px rgba(255, 111, 63, 0.25);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .login-btn:hover {
            background-color: #e55628;
            box-shadow: 0 6px 16px rgba(255, 111, 63, 0.35);
        }

        .login-btn:active {
            transform: scale(0.98);
        }

        .login-btn:disabled {
            background-color: #94a3b8;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* Links Area */
        .links-area {
            font-size: 14px;
            color: #64748b;
            margin-bottom: 40px;
        }

        .links-area a {
            color: #64748b;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .links-area a:hover {
            color: #ff6f3f;
        }

        .links-divider {
            color: #cbd5e1;
            margin: 0 10px;
        }

        /* Footer Section */
        .card-footer {
            border-top: 1px solid #f1f5f9;
            padding-top: 28px;
            font-size: 12px;
            line-height: 1.6;
            color: #94a3b8;
        }

        .card-footer p {
            margin-bottom: 4px;
        }

        .card-footer .copyright {
            margin-top: 8px;
            font-weight: 600;
            color: #cbd5e1;
        }

        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #ffffff;
            animation: spin 0.8s ease-in-out infinite;
        }

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

        /* ============================================================ */
        /* Dashboard Page Styles                                        */
        /* ============================================================ */
        :root {
            --primary-color: #ff6f3f;
            --primary-hover: #e55628;
            --primary-gradient: linear-gradient(135deg, #ff6f3f 0%, #ff8b61 100%);
            --primary-light: #fff1eb;
            --bg-body: #f3f4f6;
            --bg-sidebar-dark: #1e293b;
            --bg-sidebar-light: #ffffff;
            --bg-card: #ffffff;
            --text-dark: #0f172a;
            --text-secondary: #334155;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
            --radius-lg: 16px;
            --radius-md: 12px;
            --radius-sm: 8px;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

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

        html,
        body {
            height: 100%;
            background-color: var(--bg-body);
            font-family: 'Poppins', 'Noto Sans KR', 'Inter', sans-serif;
            color: var(--text-dark);
            overflow-x: hidden;
        }

        /* App Container Layout */
        .app-wrapper {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Top Header Bar */
        .header-bar {
            height: 54px;
            background-color: var(--primary-color);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(255, 111, 63, 0.25);
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .header-logo {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 1.25rem;
            font-weight: 900;
            font-style: italic;
            color: #ffffff;
            text-decoration: none;
        }

        .header-logo span {
            color: #ffffff;
            font-weight: 900;
        }

        .company-badge {
            background-color: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            font-family: 'Noto Sans KR', sans-serif;
            font-size: 0.75rem;
            font-weight: 500;
            font-style: normal;
            padding: 2px 8px;
            border-radius: 4px;
        }

        .header-divider {
            color: rgba(255, 255, 255, 0.4);
            font-weight: 300;
        }

        .header-title-group {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
            font-weight: 600;
        }

        .menu-toggle-btn {
            background: none;
            border: none;
            color: #ffffff;
            font-size: 1rem;
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .header-icon-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.85);
            font-size: 1.05rem;
            cursor: pointer;
            transition: color 0.2s;
            position: relative;
        }

        .header-icon-btn:hover {
            color: #ffffff;
        }

        .user-profile-area {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .user-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }

        .logout-btn {
            background-color: rgba(0, 0, 0, 0.15);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .logout-btn:hover {
            background-color: rgba(0, 0, 0, 0.3);
            border-color: #ffffff;
        }

        /* Body Main Layout */
        .body-container {
            display: flex;
            flex: 1;
        }

        /* Extreme Left Icon Sidebar */
        .icon-sidebar {
            width: 58px;
            background-color: var(--bg-sidebar-dark);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 10px;
            gap: 8px;
            flex-shrink: 0;
        }

        .icon-sidebar-item {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            text-decoration: none;
            font-size: 1.1rem;
            transition: all 0.2s;
        }

        .icon-sidebar-item:hover {
            color: #ffffff;
            background-color: rgba(255, 255, 255, 0.08);
        }

        .icon-sidebar-item.active {
            background-color: var(--primary-color);
            color: #ffffff;
            box-shadow: 0 4px 10px rgba(255, 111, 63, 0.4);
        }

        /* Main Menu Sidebar */
        .menu-sidebar {
            width: 220px;
            background-color: var(--bg-sidebar-light);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 16px 12px;
            flex-shrink: 0;
        }

        .sidebar-top-action {
            width: 100%;
            padding: 10px 14px;
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-dark);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-sm);
            transition: all 0.2s;
            margin-bottom: 20px;
        }

        .sidebar-top-action:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background-color: var(--primary-light);
        }

        .menu-tree {
            display: flex;
            flex-direction: column;
            gap: 18px;
            overflow-y: auto;
            max-height: calc(100vh - 170px);
            padding-right: 4px;
        }

        .menu-tree::-webkit-scrollbar {
            width: 4px;
        }

        .menu-tree::-webkit-scrollbar-thumb {
            background-color: #cbd5e1;
            border-radius: 4px;
        }

        .menu-group-title {
            font-size: 0.76rem;
            font-weight: 700;
            color: #94a3b8;
            margin-bottom: 8px;
            letter-spacing: -0.3px;
        }

        .menu-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .menu-item a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 10px;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.15s;
        }

        .menu-item a:hover {
            background-color: var(--primary-light);
            color: var(--primary-color);
        }

        .menu-item a i {
            width: 16px;
            font-size: 0.9rem;
            text-align: center;
            color: var(--text-muted);
        }

        .menu-item a:hover i {
            color: var(--primary-color);
        }

        .menu-item.active a {
            background-color: var(--primary-light);
            color: var(--primary-color);
            font-weight: 700;
        }

        .menu-item.active a i {
            color: var(--primary-color);
        }

        .sidebar-footer {
            font-size: 0.72rem;
            color: #94a3b8;
            text-align: center;
            padding-top: 14px;
            border-top: 1px solid var(--border-color);
        }

        /* Main Area Content */
        .content-area {
            flex: 1;
            width: 100%;
            padding: 24px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        /* Hero Greeting Banner */
        .hero-banner {
            background: var(--primary-gradient);
            color: #ffffff;
            border-radius: var(--radius-lg);
            padding: 28px 32px;
            box-shadow: 0 10px 24px rgba(255, 111, 63, 0.25);
            position: relative;
            overflow: hidden;
        }

        .hero-banner::after {
            content: '';
            position: absolute;
            right: -30px;
            top: -40px;
            width: 220px;
            height: 220px;
            background: rgba(255, 255, 255, 0.12);
            border-radius: 50%;
            pointer-events: none;
        }

        .hero-banner h2 {
            font-size: 1.55rem;
            font-weight: 700;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .hero-banner p {
            font-size: 0.92rem;
            opacity: 0.92;
            font-weight: 400;
            line-height: 1.5;
        }

        /* Summary Stat Cards Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .stat-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 10px 22px;
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .stat-icon-wrapper {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .stat-icon-1 {
            background-color: #ffe8cb;
            color: #f78e16;
        }

        .stat-icon-2 {
            background-color: #f3e8ff;
            color: #a855f7;
        }

        .stat-icon-3 {
            background-color: #fae8ff;
            color: #d946ef;
        }

        .stat-icon-4 {
            background-color: #ecfdf5;
            color: #10b981;
        }

        .stat-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .stat-label {
            font-size: 0.83rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .stat-value {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        /* Middle Grid Layout (70% / 30%) */
        .middle-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
        }

        .dashboard-section {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 22px;
            box-shadow: var(--shadow-sm);
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .section-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            color: var(--primary-color);
        }

        /* Quick Links Grid (2 rows x 3 cols) */
        .quick-links-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
        }

        .quick-link-item {
            background-color: #f8fafc;
            border: 1px solid #f1f5f9;
            border-radius: var(--radius-md);
            padding: 20px 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 0.86rem;
            font-weight: 600;
            transition: all 0.2s;
        }

        .quick-link-item:hover {
            background-color: #ffffff;
            border-color: var(--primary-color);
            color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(255, 111, 63, 0.12);
            transform: translateY(-2px);
        }

        .quick-link-item i {
            font-size: 1.35rem;
            color: var(--text-muted);
            transition: color 0.2s;
        }

        .quick-link-item:hover i {
            color: var(--primary-color);
        }

        /* Upcoming Events List */
        .events-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .event-card {
            background-color: #f8fafc;
            border: 1px solid #f1f5f9;
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .event-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .event-date {
            font-size: 0.78rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 500;
        }

        /* Bottom Recent Reports List */
        .recent-reports-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .report-item {
            background-color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-decoration: none;
            transition: all 0.2s;
        }

        .report-item:hover {
            border-color: var(--primary-color);
            background-color: var(--primary-light);
        }

        .report-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.88rem;
            color: var(--text-secondary);
        }

        .report-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: var(--primary-color);
            flex-shrink: 0;
        }

        .report-team-tag {
            font-weight: 600;
            color: #f37f12ff;
        }

        .report-name {
            font-weight: 600;
            color: var(--text-dark);
        }

        .report-text {
            color: var(--text-muted);
        }

        .report-date {
            font-size: 0.8rem;
            color: #94a3b8;
            font-family: 'Inter', sans-serif;
        }

        /* Responsive Breakpoints */
        @media (max-width: 1024px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .middle-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .menu-sidebar {
                display: none;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .quick-links-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }