/* Estilos de domínio extraídos da camada legada. */

/* Ajustes específicos do catálogo Power BI. */
.powerbi-hero-card {
    border-color: rgba(111, 137, 167, 0.22) !important;
    background: linear-gradient(125deg, rgba(18, 29, 49, 0.93), rgba(9, 24, 38, 0.9)) !important;
    box-shadow: 0 1.5rem 4rem rgba(2, 8, 23, 0.2), inset 0 1px rgba(255, 255, 255, 0.035) !important;
}

.powerbi-hero-card::before {
    position: absolute;
    content: '';
    pointer-events: none;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 70% 0%, rgba(28, 184, 168, 0.1), transparent 33%);
}

.powerbi-hero-card h1 { letter-spacing: -0.035em; }

.powerbi-report-card {
    border-color: rgba(111, 137, 167, 0.2);
    background: linear-gradient(145deg, rgba(18, 31, 49, 0.9), rgba(8, 22, 36, 0.92)) !important;
    box-shadow: 0 1.25rem 3rem rgba(2, 8, 23, 0.16), inset 0 1px rgba(255, 255, 255, 0.025);
}

.powerbi-report-card:hover {
    border-color: rgba(83, 222, 208, 0.35) !important;
    box-shadow: 0 1.5rem 3rem rgba(2, 8, 23, 0.25), 0 0 0 1px rgba(83, 222, 208, 0.08);
}

html[data-theme="light"] .powerbi-hero-card {
    border-color: rgba(105, 133, 164, 0.2) !important;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98)) !important;
    box-shadow: 0 1.5rem 4rem rgba(55, 78, 108, 0.1), inset 0 1px rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="light"] .powerbi-report-card {
    background: linear-gradient(145deg, #ffffff, #f5f9fc) !important;
    box-shadow: 0 1.25rem 3rem rgba(55, 78, 108, 0.1), inset 0 1px #ffffff;
}

@media (max-width: 768px) {
    html[data-theme="light"] .powerbi-hero-card,
    html[data-theme="light"] .powerbi-report-card,
    html[data-theme="light"] .powerbi-empty-state {
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(148, 163, 184, 0.07);
    }
}

.powerbi-list-shell {
    position: relative;
    z-index: 1;
}

.powerbi-hero-card,
.powerbi-report-card,
.powerbi-empty-state {
    position: relative;
    overflow: hidden;
}

.powerbi-hero-card::before,
.powerbi-report-card::before,
.powerbi-empty-state::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.powerbi-report-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.powerbi-report-cover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.powerbi-report-title,
.powerbi-hero-card h1 {
    text-wrap: balance;
}

.powerbi-report-description {
    flex: 1;
}

html[data-theme="light"] .powerbi-hero-card {
    border-color: rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 38%);
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.08),
        0 10px 24px rgba(148, 163, 184, 0.08);
}

html[data-theme="light"] .powerbi-hero-card::before {
    background:
        radial-gradient(circle at 88% 20%, rgba(56, 189, 248, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 42%);
}

html[data-theme="light"] .powerbi-hero-icon {
    background: linear-gradient(135deg, rgba(186, 230, 253, 0.85), rgba(224, 242, 254, 0.92));
    color: #0284c7;
    border: 1px solid rgba(125, 211, 252, 0.55);
    box-shadow: 0 12px 26px rgba(56, 189, 248, 0.16);
}

html[data-theme="light"] .powerbi-hero-kicker {
    color: #38bdf8 !important;
    letter-spacing: 0.28em;
}

html[data-theme="light"] .powerbi-hero-card h1 {
    color: #1e293b !important;
}

html[data-theme="light"] .powerbi-hero-description {
    color: #5b6b86 !important;
}

html[data-theme="light"] .powerbi-report-card {
    border-color: rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96)),
        linear-gradient(135deg, rgba(56, 189, 248, 0.03), transparent 40%);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.08),
        0 8px 20px rgba(148, 163, 184, 0.08);
}

html[data-theme="light"] .powerbi-report-card::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 30%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 26%);
}

html[data-theme="light"] .powerbi-report-card:hover {
    border-color: rgba(14, 165, 233, 0.4) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 248, 252, 0.98)),
        linear-gradient(135deg, rgba(56, 189, 248, 0.04), transparent 42%) !important;
    box-shadow:
        0 28px 52px rgba(15, 23, 42, 0.1),
        0 14px 32px rgba(56, 189, 248, 0.12);
}

html[data-theme="light"] .powerbi-report-cover {
    border-color: rgba(191, 219, 254, 0.7);
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .powerbi-report-overlay {
    background:
        linear-gradient(180deg, rgba(9, 18, 34, 0.02), rgba(9, 18, 34, 0.08)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.04) 45%, transparent 68%) !important;
}

html[data-theme="light"] .powerbi-report-icon {
    background: rgba(255, 255, 255, 0.88);
    color: #0ea5e9;
    border: 1px solid rgba(186, 230, 253, 0.8);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .powerbi-report-pill {
    border-color: rgba(191, 219, 254, 0.9);
    background: rgba(255, 255, 255, 0.88);
    color: #334155 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .powerbi-report-title {
    color: #172554 !important;
}

html[data-theme="light"] .powerbi-report-description {
    color: #60708a !important;
}

html[data-theme="light"] .powerbi-report-cta {
    color: #0ea5e9 !important;
}

html[data-theme="light"] .group:hover .powerbi-report-cta {
    color: #0284c7 !important;
}

html[data-theme="light"] .powerbi-empty-state {
    border-color: rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.07), transparent 28%);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.08),
        0 8px 20px rgba(148, 163, 184, 0.08);
}

html[data-theme="light"] .powerbi-empty-state::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 34%);
}

html[data-theme="light"] .powerbi-empty-state p,
html[data-theme="light"] .powerbi-empty-state-text {
    color: #5b6b86 !important;
}

/* Power BI: hero mais compacto para priorizar os relatórios disponíveis. */
.powerbi-list-shell .powerbi-hero-card {
    margin-bottom: 1.25rem !important;
    padding: 1.35rem 1.6rem !important;
}

.powerbi-list-shell .powerbi-hero-card .portal-responsive-hero {
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0 !important;
}

.powerbi-list-shell .powerbi-hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
}

.powerbi-list-shell .powerbi-hero-icon i { font-size: 1.35rem; }
.powerbi-list-shell .powerbi-hero-card h1:not(.portal-page-title) { font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.08; }
.powerbi-list-shell .powerbi-hero-description { margin-top: 0.45rem !important; font-size: 0.86rem; line-height: 1.45; }

@media (max-width: 767px) {
    .powerbi-list-shell .powerbi-hero-card { padding: 1.1rem !important; }
    .powerbi-list-shell .powerbi-hero-icon { width: 2.85rem; height: 2.85rem; }
    .powerbi-list-shell .powerbi-hero-card h1:not(.portal-page-title) { font-size: clamp(1.45rem, 7vw, 1.9rem); }
}
