 /* 🔴 Red Row (Incomplete) */
 tr.row-danger {
     background-color: #fee2e2 !important;
 }

 tr.row-danger:hover {
     background-color: #fecaca !important;
 }

 /* 🟠 Orange Row (Pending) */
 tr.row-warning {
     background-color: #ffedd5 !important;
 }

 tr.row-warning:hover {
     background-color: #fed7aa !important;
 }


 /* 🌙 Dark Mode Support */
 html.dark tr.row-danger {
     background-color: #450a0a !important;
 }

 html.dark tr.row-warning {
     background-color: #431407 !important;
 }

 html.dark tr.row-success {
     background-color: #052e16 !important;
 }


 .import-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.import-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.import-header {
    padding: 16px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.import-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.import-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge-success {
    background: #ecfdf5;
    color: #047857;
}

.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.stat {
    padding: 16px;
    border-radius: 6px;
}

.stat span {
    font-size: 13px;
    color: #6b7280;
}

.stat strong {
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

.stat-blue {
    background: #eff6ff;
    color: #1e40af;
}

.stat-success {
    background: #ecfdf5;
    color: #065f46;
}

.stat-danger {
    background: #fef2f2;
    color: #991b1b;
}

.import-section {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
}

.import-table {
    width: 100%;
    border-collapse: collapse;
}

.import-table th,
.import-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.import-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
}

.text-danger {
    color: #b91c1c;
    font-weight: 500;
}

.warnings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.warning-item {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.import-actions {
    display: flex;
    justify-content: center;
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* Status Bar */
.status-wrapper {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.status-bar {
    display: flex;
    height: 10px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

[data-bs-theme="dark"] .status-bar {
    background: #374151;
}

.status-success {
    background: #22c55e;
    height: 100%;
    transition: width 0.4s ease;
}

.status-failed {
    background: #ef4444;
    height: 100%;
    transition: width 0.4s ease;
}

.status-labels {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}

[data-bs-theme="dark"] .status-labels {
    color: #e5e7eb;
}

.success-text {
    color: #166534;
}

[data-bs-theme="dark"] .success-text {
    color: #86efac;
}

.failed-text {
    color: #991b1b;
}

[data-bs-theme="dark"] .failed-text {
    color: #fca5a5;
}



    .metric-card {
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    [data-bs-theme="dark"] .metric-card {
        background: #1f2937;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .metric-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .metric-title {
        font-size: 1rem;
        font-weight: 600;
        color: #1f2937;
    }

    [data-bs-theme="dark"] .metric-title {
        color: #f3f4f6;
    }

    .period-badge {
        background: #f3f4f6;
        padding: 0.25rem 0.75rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        color: #6b7280;
        font-weight: 500;
    }

    [data-bs-theme="dark"] .period-badge {
        background: #374151;
        color: #d1d5db;
    }

    .metric-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stat-box {
        text-align: left;
    }

    .stat-label {
        font-size: 0.875rem;
        color: #6b7280;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        font-weight: 500;
    }

    [data-bs-theme="dark"] .stat-label {
        color: #9ca3af;
    }

    .stat-value {
        font-size: 2.25rem;
        font-weight: 700;
        color: #1f2937;
        line-height: 1;
        margin-bottom: 0.5rem;
    }

    [data-bs-theme="dark"] .stat-value {
        color: #f3f4f6;
    }

    .stat-change {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
    }

    .change-positive {
        color: #10b981;
    }

    .change-negative {
        color: #ef4444;
    }

    .change-neutral {
        color: #6b7280;
    }

    [data-bs-theme="dark"] .change-neutral {
        color: #9ca3af;
    }

    .chart-container {
        background: #f9fafb;
        border-radius: 0.375rem;
        padding: 1.5rem;
        min-height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    [data-bs-theme="dark"] .chart-container {
        background: #111827;
    }

    .period-selector {
        margin-bottom: 1.5rem;
        display: flex;
        gap: 0.75rem;
    }

    .period-btn {
        padding: 0.5rem 1rem;
        border: 1px solid #d1d5db;
        background: white;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #1f2937;
    }

    [data-bs-theme="dark"] .period-btn {
        border-color: #4b5563;
        background: #374151;
        color: #f3f4f6;
    }

    .period-btn.active {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }

    .period-btn:hover:not(.active) {
        border-color: #3b82f6;
        color: #3b82f6;
    }

    [data-bs-theme="dark"] .period-btn:hover:not(.active) {
        border-color: #60a5fa;
        color: #60a5fa;
        background: #2d3748;
    }

    .header-section {
        margin-bottom: 2rem;
    }

    .page-title {
        font-size: 1.875rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 0.5rem;
    }

    [data-bs-theme="dark"] .page-title {
        color: #f3f4f6;
    }

    .page-subtitle {
        font-size: 0.875rem;
        color: #6b7280;
    }

    [data-bs-theme="dark"] .page-subtitle {
        color: #9ca3af;
    }

    .metrics-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    /* Custom Date Picker Styles */
    .custom-date-picker {
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    [data-bs-theme="dark"] .custom-date-picker {
        background: #1f2937;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

    .custom-date-picker input[type="date"] {
        background-color: white;
        color: #1f2937;
    }

    [data-bs-theme="dark"] .custom-date-picker input[type="date"] {
        background-color: #374151;
        color: #f3f4f6;
        border-color: #4b5563 !important;
    }

    [data-bs-theme="dark"] .custom-date-picker input[type="date"]::-webkit-calendar-picker-indicator {
        filter: invert(1) brightness(0.9);
    }