/* DSP 报表 — 实时查询面板主题（无灰色遮罩，面板 + 流畅切换） */

.dsp-rt-stack {
    margin: 0 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dsp-rt-panel {
    position: relative;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px -6px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.dsp-rt-panel:hover {
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 12px 32px -8px rgba(15, 23, 42, 0.12);
}

.dsp-rt-panel__accent {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
}

.dsp-rt-panel--progress .dsp-rt-panel__accent {
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 50%, #22d3ee 100%);
    animation: dsp-rt-accent-flow 2.4s ease-in-out infinite;
}

.dsp-rt-panel--src-day .dsp-rt-panel__accent {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.dsp-rt-panel--src-hour .dsp-rt-panel__accent {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.dsp-rt-panel--src-realtime .dsp-rt-panel__accent {
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
}

.dsp-rt-panel--src-loading .dsp-rt-panel__accent,
.dsp-rt-panel--loading .dsp-rt-panel__accent {
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}

.dsp-rt-panel__body {
    padding: 12px 16px;
}

.dsp-rt-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dsp-rt-progress-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.dsp-rt-progress-title i {
    color: #2563eb;
    font-size: 15px;
}

.dsp-rt-fallback-tip {
    font-size: 12px;
    color: #15803d;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.dsp-rt-panel--progress .el-progress-bar__outer {
    background-color: #e2e8f0 !important;
    border-radius: 999px !important;
}

.dsp-rt-panel--progress .el-progress-bar__inner {
    border-radius: 999px !important;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%) !important;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dsp-rt-progress-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.dsp-rt-progress-meta span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}

.dsp-rt-source-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-height: 28px;
}

.dsp-rt-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dsp-rt-badge--day {
    color: #166534;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
}

.dsp-rt-badge--hour {
    color: #b45309;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.dsp-rt-badge--realtime {
    color: #1d4ed8;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
}

.dsp-rt-badge--loading {
    color: #475569;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
}

.dsp-rt-range {
    font-size: 12px;
    color: #334155;
}

.dsp-rt-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

.dsp-rt-table-shell {
    position: relative;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.dsp-rt-table-shell.is-soft-refresh {
    opacity: 0.72;
    transform: translateY(2px);
}

.dsp-table-fade-enter-active,
.dsp-table-fade-leave-active {
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.dsp-table-fade-enter {
    opacity: 0;
    transform: translateY(6px);
}

.dsp-table-fade-leave-to {
    opacity: 0;
    transform: translateY(-4px);
}

.dsp-rt-panel--loading .dsp-rt-loading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.dsp-rt-panel--loading .dsp-rt-loading-row i {
    color: #3b82f6;
    font-size: 16px;
}

.dsp-rt-hint-text {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
}

@keyframes dsp-rt-accent-flow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

@media (max-width: 767px) {
    .dsp-rt-stack {
        margin: 0 10px 12px;
    }

    .dsp-rt-time {
        margin-left: 0;
        width: 100%;
    }
}
