/* ============================================
   SELLER REPORT TAB — Admin Dashboard
   ============================================ */

#reportTab {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

/* ---- Report Intro Stats ---- */
.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.report-stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}

.report-stat-card .rs-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.report-stat-card .rs-value {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 2px;
}

.report-stat-card .rs-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.report-stat-card.green .rs-value {
    color: #059669;
}

.report-stat-card.purple .rs-value {
    color: #6366f1;
}

.report-stat-card.orange .rs-value {
    color: #d97706;
}

/* ---- AI Note Card ---- */
.seller-ai-note {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid rgba(5, 150, 105, 0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.seller-ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.seller-ai-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.seller-ai-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
}

.seller-ai-text {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}

.seller-ai-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.seller-ai-loading .mini-spin {
    width: 14px;
    height: 14px;
    border: 2px solid #d1fae5;
    border-top-color: #059669;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ---- Top Products ---- */
.top-products-list {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.top-products-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.top-products-item:last-child {
    border-bottom: none;
}

.tp-rank {
    width: 22px;
    height: 22px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
}

.tp-rank.gold {
    background: #fef3c7;
    color: #92400e;
}

.tp-rank.silver {
    background: #f3f4f6;
    color: #4b5563;
}

.tp-rank.bronze {
    background: #fef7ed;
    color: #9a3412;
}

.tp-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.tp-count {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

/* ---- Section Label ---- */
.report-section-label {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    margin-top: 4px;
}

/* ---- Status Breakdown ---- */
.status-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.confirmed {
    background: #10b981;
}

.status-dot.pending {
    background: #f59e0b;
}

.status-dot.pending_agreement {
    background: #6366f1;
}

.status-dot.pending_payment {
    background: #ec4899;
}

.status-label {
    flex: 1;
    font-size: 13px;
    color: #374151;
}

.status-bar-wrap {
    flex: 2;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.status-bar-fill.confirmed {
    background: #10b981;
}

.status-bar-fill.pending {
    background: #f59e0b;
}

.status-bar-fill.pending_agreement {
    background: #6366f1;
}

.status-bar-fill.pending_payment {
    background: #ec4899;
}

.status-count {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    min-width: 20px;
    text-align: right;
}

/* ---- Empty ---- */
.report-empty {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 640px) {
    #reportTab {
        padding: 16px;
    }
}