/* ============================================================
   CROSS-PACK ANALYTICS — Phase 12 CSS
   Light theme, matches Governance → Cost Intel design system.
   Reuses prov-card, prov-table, prov-stats-grid from audit.css.
   Only contains styles unique to cross-analytics.
   ============================================================ */

/* ─── Header Actions ─────────────────────────────────────── */
.cross-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cross-date-select {
    padding: 7px 14px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.cross-date-select:focus {
    border-color: #F97216;
}

.cross-action-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #F97216;
    color: #ffffff;
}

.cross-action-btn:hover {
    background: #EA580C;
}

.cross-action-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.cross-action-btn-secondary:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

/* ─── Cached Badge ───────────────────────────────────────── */
.cross-cached-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ─── Workspace Comparison Grid ──────────────────────────── */
.cross-workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.cross-workspace-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.cross-workspace-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.cross-workspace-stat {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    color: #6b7280;
}

.cross-workspace-stat-val {
    font-weight: 600;
    color: #1a1a2e;
}

/* ─── Trend Insight Cards ────────────────────────────────── */
.cross-trend-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cross-trend-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: box-shadow 0.2s;
}

.cross-trend-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cross-trend-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
}

.cross-trend-icon svg {
    display: block;
}

.cross-trend-content {
    flex: 1;
}

.cross-trend-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.cross-trend-detail {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
}

.cross-trend-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid #FDBA74;
}

.cross-trend-tag-muted {
    background: #f8fafc;
    color: #6b7280;
    border-color: #e5e7eb;
}

/* ─── Empty / Offline / Insufficient Data States ─────────── */
.cross-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 60px 24px;
    text-align: center;
}

.cross-empty-icon {
    opacity: 0.6;
    margin-bottom: 4px;
}

.cross-empty-icon svg {
    display: block;
}

.cross-empty-state h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.cross-empty-state p {
    font-size: 13px;
    color: #6b7280;
    max-width: 400px;
    margin: 0;
    line-height: 1.5;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .cross-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .cross-workspace-grid {
        grid-template-columns: 1fr;
    }
}
