/* ==========================================================================
   RELATÓRIOS — MONTENEGRO INTERIORES (UI REFINADA)
   ========================================================================== */

:root {
    --bg: #070707;
    --panel: #121213;
    --panel-2: #161618;

    --text: #f2f2f2;
    --muted: #9aa0a6;

    --accent: #e53935;
    --accent-soft: #ff7043;

    --success: #4caf50;

    --glass: rgba(255, 255, 255, 0.03);
    --glass-soft: rgba(255, 255, 255, 0.015);

    --border: rgba(255, 255, 255, 0.06);

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);


    
    --accent-report: #d64f4f;
    --accent-2-report: #ffc400;

    --panel-report: #111214;

    --card-border-report:
        rgba(255,255,255,0.06);



}


/* ==========================================================================
   BASE
   ========================================================================== */

.relatorios-page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px clamp(16px, 2vw, 42px);
    color: var(--text);
}



/* =================================================== HEADER =================================================== */



/* ==========================================================================
   HEADER — MONTENEGRO INTELIGENTE (UI MODERNA)
   ========================================================================== */

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 18px 20px;
    margin-bottom: 28px;

    border-radius: 16px;

   

    border: 1px solid rgba(229, 56, 53, 0.096);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(10px);
}

/* ================= BRAND ================= */

.report-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* título + subtítulo como bloco hierárquico real */
.report-title-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-title-box .company {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.3px;

    color: #fff;

    position: relative;
}

/* pequeno highlight sutil estilo “sistema premium” */
.report-title-box .company::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;

    width: 40px;
    height: 2px;

    background: var(--accent);
    border-radius: 2px;
}

.report-title-box .subtitle {
    font-size: 0.85rem;
    color: var(--muted);

    max-width: 420px;
    line-height: 1.3;
}

/* ================= LOGO (caso use futuramente) ================= */

.report-logo-box {
    width: 56px;
    height: 56px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 900;
    font-size: 18px;
    color: #fff;

    background: linear-gradient(135deg, var(--accent), #7a1515);

    box-shadow:
        0 10px 30px rgba(229, 57, 53, 0.25),
        inset 0 0 10px rgba(255,255,255,0.05);

    flex-shrink: 0;
}

/* ================= META (lado direito) ================= */

.report-meta {
    text-align: right;

    display: flex;
    flex-direction: column;
    gap: 4px;

    color: var(--muted);
    font-size: 0.85rem;
}

/* destaque do “emitido por” como badge de sistema */
.report-meta strong {
    color: #fff;
    font-weight: 700;

    font-size: 0.9rem;

    padding: 4px 10px;
    border-radius: 8px;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);

    display: inline-flex;
    align-self: flex-end;
}

/* data com cara de sistema operacional */
#emitido-em {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   HOVER (SUTIL, NÃO TEATRAL)
   ========================================================================== */

.report-header:hover {
    border-color: rgba(229, 57, 53, 0.3);
    box-shadow: 0 25px 80px rgba(0,0,0,0.7);
    transition: 0.25s ease;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 768px) {
    .report-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-meta {
        text-align: left;
        width: 100%;
    }

    .report-meta strong {
        align-self: flex-start;
    }
}









/* =================================================== CARD RELATÓRIO (DONUTS) =================================================== */


/* =========================================================
   DONUT CARD — EXECUTIVE DARK UI
   ========================================================= */

.report-visual-area {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 26px;

    padding: 26px;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.025),
            rgba(255,255,255,0.015)
        );

    border: 1px solid rgba(255,255,255,0.06);

    overflow: hidden;
}

/* glow ambiente */

.report-visual-area::before {
    content: "";

    position: absolute;

    top: -120px;
    right: -120px;

    width: 240px;
    height: 240px;

    border-radius: 50%;



    pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.report-visual-header {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-visual-header h3 {
    margin: 0;

    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;

    color: #fff;
}

.report-visual-subtitle {
    font-size: 0.8rem;
    line-height: 1.5;

    color: rgba(255,255,255,0.55);
}

/* =========================================================
   LAYOUT
   ========================================================= */

.report-donut-wrapper {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;

    gap: 24px;
}

/* =========================================================
   DONUT
   ========================================================= */

.report-donut {
    position: relative;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        conic-gradient(
            from -90deg,

            #861010 0deg 72deg,
            #f3be0f 72deg 126deg,
            #13da76 126deg 360deg
        );

    border:
        1px solid rgba(255,255,255,0.06);

    box-shadow:
        inset 0 0 25px rgba(255,255,255,0.04),
        inset 0 -10px 20px rgba(0,0,0,0.3),
        0 25px 60px rgba(0,0,0,0.45);

    isolation: isolate;

    overflow: hidden;
}

.report-donut::before {
    content: "";

    position: absolute;
    inset: 12px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.04);

    pointer-events: none;
}

.report-donut:hover {
    transform: translateY(-2px) scale(1.01);

    box-shadow:
        inset 0 0 30px rgba(255,255,255,0.05),
        inset 0 -20px 30px rgba(0,0,0,0.35),
        0 40px 90px rgba(0,0,0,0.55);
}

/* =========================================================
   CENTRO
   ========================================================= */

.report-donut-center {
    position: relative;

    width: 128px;
    height: 128px;

    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            rgba(20,20,22,0.98),
            rgba(8,8,9,0.98)
        );

    border:
        1px solid rgba(255,255,255,0.06);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -10px 20px rgba(0,0,0,0.4),
        0 12px 30px rgba(0,0,0,0.35);

    z-index: 2;
}

.report-donut-center::before {
    content: "";

    position: absolute;
    inset: 8px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.04);
}

.report-donut-center .num {
    position: relative;
    z-index: 2;

    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;

    color: #fff;

    letter-spacing: -0.05em;
}

.report-meta-small {
    position: relative;
    z-index: 2;

    margin-top: 6px;

    font-size: 0.72rem;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: rgba(255,255,255,0.45);
}

/* =========================================================
   SIDE KPIS
   ========================================================= */

.report-donut-kpis {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-kpi {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 18px;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.015)
        );

    border: 1px solid rgba(255,255,255,0.05);

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}



.mini-kpi::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;
}


.mini-kpi.danger::before {
    background: #861010 0deg 72deg;
}

.mini-kpi.warning::before {
    background: #f3be0f 72deg 126deg;
}

.mini-kpi.neutral::before {
    background: #13da76 126deg 360deg;
}

.mini-kpi span {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.6);
}

.mini-kpi strong {
    font-size: 1.15rem;
    font-weight: 800;

    color: #fff;
}









/* =================================================== mini KPIs =================================================== */




.mini-kpi {
    position: relative;

    padding: 14px 16px;

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.015)
        );

    border: 1px solid rgba(255,255,255,0.05);

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.mini-kpi:hover {
    transform: translateX(3px);

    border-color: rgba(255,255,255,0.09);
}

.mini-kpi span {
    font-size: 0.72rem;
    color: var(--muted);
}

.mini-kpi strong {
    font-size: 1.3rem;
    font-weight: 800;

    color: #fff;
}


/* =================================================== MAINS PANEL (BASE DO SISTEMA) =================================================== */

/* ==========================================================================
   MAIN PANEL
   ========================================================================== */

.report-main-content {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 26px;

    box-shadow: var(--shadow);
}

.report-main-content h1 {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 1px;

    color: var(--accent);

    margin-bottom: 26px;
}

/* ==========================================================================
   GRID
   ========================================================================== */

.report-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}


/* ==========================================================================
   OVERVIEW
   ========================================================================== */

.report-overview {
    grid-column: span 12;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.report-stat-card {
    flex: 1;
    min-width: 220px;

    padding: 18px;

    background: var(--panel);
    border: 1px solid var(--glass);
    border-radius: 14px;
}

.report-stat-card h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .6px;
}

.report-stat-card p {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 6px;
}

/* ==========================================================================
   VISUAL
   ========================================================================== */

.report-visual-area {
    grid-column: span 4;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}



/* ==========================================================================
   KPI AREA
   ========================================================================== */

.report-kpi-area {
    grid-column: span 8;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-kpi-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.report-kpi-card {
    flex: 1;
    min-width: 180px;
    padding: 16px;

    background: var(--panel);
    border-radius: 14px;
    border: 1px solid var(--glass);
}

.report-kpi-card h4 {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
}

.report-kpi-card p.big {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 6px 0;
}


/* =================================================== CARDS BASE =================================================== */


/* ==========================================================================
   CARD BASE (PADRÃO ÚNICO)
   ========================================================================== */

.report-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 18px;

    transition: transform .25s ease, box-shadow .25s ease, border .25s ease;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(229, 57, 53, 0.25);
}










/* ==========================================================================
   OVERVIEW FINANCEIRO (PAINEL EXECUTIVO) - Seção 1: Visão Geral Financeira
   ========================================================================== */





.report-stat-card:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   HEADER DO KPI
   ========================================================================== */

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;
}

.kpi-header h3 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================================
   VALOR PRINCIPAL
   ========================================================================== */

.report-stat-card p {
    margin: 0;

    font-size: 1.6rem;
    font-weight: 800;

    color: #fff;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   KPI BADGES — CLEAN PREMIUM DARK
   ========================================================================== */

.kpi-badge {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .04em;

    border: 1px solid transparent;

    backdrop-filter: blur(10px);

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

/* ==========================================================================
   NEUTRAL
   ========================================================================== */

.kpi-badge.neutral {
    color: rgba(255,255,255,0.72);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.03)
        );

    border-color: rgba(255,255,255,0.06);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ==========================================================================
   RISK / CRITICAL
   ========================================================================== */

.kpi-badge.risk {
    color: #ff9bb0;

    background:
        linear-gradient(
            180deg,
            rgba(214,79,114,0.14),
            rgba(214,79,114,0.08)
        );

    border-color: rgba(214,79,114,0.16);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 12px rgba(214,79,114,0.08);
}

/* ==========================================================================
   GOOD / SUCCESS
   ========================================================================== */

.kpi-badge.good {
    color: #6ee778;

    background:
        linear-gradient(
            180deg,
            rgba(16, 185, 53, 0.14),
            rgba(16, 185, 30, 0.08)
        );

    border-color: rgba(52, 211, 60, 0.16);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 12px rgba(52,211,153,0.08);
}

/* ==========================================================================
   VARIAÇÕES SEMÂNTICAS DOS CARDS
   ========================================================================== */

.report-stat-card--primary {
    border-color: rgba(255, 255, 255, 0.08);
}

.report-stat-card--warning {
    border-color: rgba(229, 57, 53, 0.2);
    background: linear-gradient(
        180deg,
        rgba(229, 57, 53, 0.05),
        rgba(0, 0, 0, 0.1)
    );
}

.report-stat-card--health {
    border-color: rgba(76, 175, 80, 0.15);
}

/* ==========================================================================
   PROGRESS BAR (SAÚDE DO ESTOQUE)
   ========================================================================== */

.kpi-progress {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 8px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.015)
        );

    border: 1px solid rgba(255,255,255,0.04);

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.45);
}

/* Barra ativa */

.kpi-progress-bar {
    position: relative;

    height: 100%;
    width: 0%;

    border-radius: inherit;

    transition:
        width 1s cubic-bezier(.22, 1, .36, 1),
        background .35s ease,
        box-shadow .35s ease;

    overflow: hidden;
}

/* brilho interno sofisticado */

.kpi-progress-bar::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.22),
            rgba(255,255,255,0.02)
        );

    opacity: .7;
}

/* ==========================================================================
   STATES
   ========================================================================== */

/* crítico */

.kpi-progress-bar.critical {
    background:
        linear-gradient(
            90deg,
            #e02730,
            #d64f56
        );

    box-shadow:
        0 0 14px rgba(214,79,114,0.18);
}

/* atenção */

.kpi-progress-bar.warning {
    background:
        linear-gradient(
            90deg,
            #d8a900,
            #ffd54f
        );

    box-shadow:
        0 0 14px rgba(255,213,79,0.14);
}

/* saudável */

.kpi-progress-bar.success {
    background:
        linear-gradient(
            90deg,
            #059669,
            #34d399
        );

    box-shadow:
        0 0 14px rgba(52,211,153,0.14);
}

/* ==========================================================================
   TEXTO SECUNDÁRIO
   ========================================================================== */

.kpi-footer {
    margin-top: 10px;
}

.report-meta-small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}









/* ========================================================================== */
/* VISUAL AREA HEADER        - Seção 2: Composição Visual (Donut)                                                 */
/* ========================================================================== */

.report-visual-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.report-visual-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.4px;
}

.report-visual-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ========================================================================== */
/* LAYOUT DO DONUT + KPIs LATERAIS                                          */
/* ========================================================================== */


/* ========================================================================== */
/* KPIS                                          */
/* ========================================================================== */

.mini-kpi strong {
    color: #fff;
    font-size: 0.95rem;
}

/* cores sem quebrar identidade */
.mini-kpi.danger {
    border-left: 3px solid var(--accent-report);
}

.mini-kpi.warning {
    border-left: 3px solid var(--accent-2-report);
}

.mini-kpi.neutral {
    border-left: 3px solid rgba(255,255,255,0.15);
}

/* ========================================================================== */
/* RISK BAR (nível executivo)                                               */
/* ========================================================================== */

.report-risk-summary {
    margin-top: 14px;
}

.risk-bar {
    width: 100%;
    height: 10px;

    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    width: 0%;

    background: linear-gradient(
        90deg,
        var(--accent-report),
        var(--accent-2-report)
    );

    transition: width 1s ease;
}

.risk-text {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.risk-text span {
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
}

.risk-text small {
    color: var(--muted);
    font-size: 0.75rem;
}




/* ==========================================================================
   SEÇÃO 3 — KPIs E TENDÊNCIAS
   CLEAN • EXECUTIVO • DARK PREMIUM
   ========================================================================== */

.report-kpi-area {
    grid-column: span 8;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ==========================================================================
   ROW
   ========================================================================== */

.report-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

/* ==========================================================================
   CARD BASE
   ========================================================================== */

.report-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 18px;

    min-height: 220px;

    padding: 22px;
    border-radius: 20px;

    
    border: 1px solid rgba(255,255,255,0.06);

    transition:
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.report-kpi-card:hover {
    transform: translateY(-2px);

    border-color: rgba(229,57,53,0.18);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.22);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.report-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.report-kpi-label {
    display: block;

    margin-bottom: 8px;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: var(--muted);
}

.report-kpi-value {
    margin: 0;

    font-size: clamp(1.9rem, 2vw, 2.4rem);
    font-weight: 800;
    line-height: 1;

    letter-spacing: -0.03em;

    color: var(--text);
}

/* ==========================================================================
   STATUS
   ========================================================================== */

.report-status-pill {
    padding: 7px 12px;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 700;

    border: 1px solid transparent;
}

.report-status-pill.positive {
    background: rgba(76,175,80,0.08);
    border-color: rgba(76,175,80,0.12);
    color: #81c784;
}

.report-status-pill.excellent {
    background: rgba(3,169,244,0.08);
    border-color: rgba(3,169,244,0.12);
    color: #4fc3f7;
}

.report-status-pill.danger {
    background: rgba(229,57,53,0.08);
    border-color: rgba(229,57,53,0.12);
    color: #ff8a80;
}

/* ==========================================================================
   CHART
   ========================================================================== */

.report-kpi-chart {
    height: 72px;
}

.report-sparkline {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.report-kpi-footer {
    margin-top: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.report-kpi-meta-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-kpi-trend {
    padding: 7px 10px;
    border-radius: 10px;

    font-size: 0.75rem;
    font-weight: 600;
}

.report-kpi-trend.positive {
    background: rgba(76,175,80,0.08);
    color: #81c784;
}

/* ==========================================================================
   PROGRESS
   ========================================================================== */

.report-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-progress-bar {
    width: 100%;
    height: 10px;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(255,255,255,0.05);
}

.report-progress-fill {
    height: 100%;
    border-radius: inherit;
}

.report-progress-fill.success {
    background:
        linear-gradient(
            90deg,
            #43a047,
            #66bb6a
        );
}

/* ==========================================================================
   MINI STATS
   ========================================================================== */

.report-kpi-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mini-stat {
    padding: 12px;
    border-radius: 14px;

    background: rgba(255,255,255,0.025);

    border: 1px solid rgba(255,255,255,0.04);
}

.mini-stat span {
    display: block;

    margin-bottom: 5px;

    font-size: 0.72rem;

    color: var(--muted);
}

.mini-stat strong {
    font-size: 0.95rem;
    font-weight: 700;

    color: var(--text);
}

/* ==========================================================================
   ALERT CARD
   ========================================================================== */

.danger-card {
    border-color: rgba(229,57,53,0.12);
}

.report-kpi-alert {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-alert-line {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 13px 14px;
    border-radius: 14px;

    background: rgba(255,255,255,0.025);

    border: 1px solid rgba(255,255,255,0.04);
}

.report-alert-line span {
    font-size: 0.82rem;
    color: var(--muted);
}

.report-alert-line strong {
    color: #ff8a80;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.report-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 20px;
}

.report-section-badge {
    display: inline-flex;

    margin-bottom: 8px;
    padding: 5px 10px;

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;

    background: rgba(255,255,255,0.05);

    color: var(--muted);
}

.report-section-badge.danger {
    background: rgba(229,57,53,0.08);
    color: #ff8a80;
}

.report-section-header h4 {
    margin: 0;

    font-size: 1rem;
    font-weight: 700;

    color: var(--text);
}

.report-section-indicator {
    padding: 6px 10px;
    border-radius: 10px;

    font-size: 0.72rem;
    font-weight: 600;
}

.report-section-indicator.positive {
    background: rgba(76,175,80,0.08);
    color: #81c784;
}

.report-section-indicator.danger {
    background: rgba(229,57,53,0.08);
    color: #ff8a80;
}

/* ==========================================================================
   LISTAS
   ========================================================================== */

.report-ranking-list,
.report-risk-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-ranking-item,
.report-risk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;

    padding: 14px;
    border-radius: 16px;

    background: rgba(255,255,255,0.02);

    border: 1px solid rgba(255,255,255,0.04);

    transition:
        background .2s ease,
        border-color .2s ease;
}

.report-ranking-item:hover,
.report-risk-item:hover {
    background: rgba(255,255,255,0.03);

    border-color: rgba(255,255,255,0.08);
}

/* ==========================================================================
   LEFT / RIGHT
   ========================================================================== */

.ranking-left,
.risk-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranking-right,
.risk-right {
    text-align: right;
}

.ranking-right strong,
.risk-right strong {
    display: block;

    margin-bottom: 4px;

    color: var(--text);
}

.ranking-right span {
    font-size: 0.78rem;
    color: #81c784;
}

.ranking-left span,
.risk-left span {
    display: block;

    margin-top: 4px;

    font-size: 0.76rem;

    color: var(--muted);
}

/* ==========================================================================
   POSIÇÃO
   ========================================================================== */

.ranking-position {
    width: 36px;
    height: 36px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.82rem;
    font-weight: 700;

    background: rgba(229,57,53,0.10);

    color: #fff;
}

/* ==========================================================================
   RISCO
   ========================================================================== */

.risk-icon {
    width: 34px;
    height: 34px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.82rem;
    font-weight: 700;

    background: rgba(229,57,53,0.10);

    color: #ff8a80;
}

.report-risk-item.critical {
    border-left: 2px solid rgba(229,57,53,0.5);
}

.report-risk-item.warning {
    border-left: 2px solid rgba(255,152,0,0.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.report-risk-footer {
    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid rgba(255,255,255,0.05);
}

.report-risk-footer span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1200px) {

    .report-kpi-area {
        grid-column: span 12;
    }

}

@media (max-width: 768px) {

    .report-kpi-row {
        grid-template-columns: 1fr;
    }

    .report-kpi-footer,
    .report-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-kpi-mini-stats {
        grid-template-columns: 1fr;
    }

}



/* =================================================== TOOLTIP INTELIGENTE (informacional da página) =================================================== */


/* ===================================================
   TOOLTIP INTELIGENTE
=================================================== */

.report-tooltip {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    cursor: help;
}

/* pequeno indicador visual */

.report-tooltip::after {
    content: "?";

    width: 16px;
    height: 16px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.65rem;
    font-weight: 700;

    color: rgba(255,255,255,0.7);

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.08);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.report-tooltip:hover::after {
    background: rgba(229,57,53,0.14);
    border-color: rgba(229,57,53,0.25);

    color: #fff;
}

/* caixa */

.tooltip-box {
    position: absolute;

    left: 0;
    bottom: calc(100% + 14px);

    width: 240px;

    padding: 12px 14px;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(20,20,20,0.98),
            rgba(10,10,10,0.98)
        );

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45);

    backdrop-filter: blur(12px);

    font-size: 0.78rem;
    line-height: 1.5;

    color: rgba(255,255,255,0.82);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(6px)
        scale(.98);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;

    z-index: 50;

    pointer-events: none;
}

/* seta */

.tooltip-box::after {
    content: "";

    position: absolute;

    left: 18px;
    top: 100%;

    border-width: 7px;
    border-style: solid;

    border-color:
        rgba(15,15,15,0.98)
        transparent
        transparent
        transparent;
}

/* hover */

.report-tooltip:hover .tooltip-box {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}






/* =================================================== LISTAS E ALERTAS =================================================== */

.thermo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;

    margin-bottom: 22px;
}

.thermo-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.thermo-header span {
    color: var(--muted);
    font-size: 0.8rem;
}

.thermo-status {
    padding: 8px 12px;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 700;

    border: 1px solid;
}

.thermo-status.danger {
    color: #ff7043;
    background: rgba(255,112,67,0.08);
    border-color: rgba(255,112,67,0.2);
}

.thermo-score-area {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 22px;
}

.thermo-score {
    min-width: 90px;
    height: 90px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background:
        radial-gradient(circle at top, rgba(255,255,255,0.04), transparent),
        var(--panel-2);

    border: 1px solid var(--border);
}

.thermo-score strong {
    font-size: 2rem;
    color: #fff;
}

.thermo-score small {
    color: var(--muted);
}

.thermo-score-info span {
    color: #fff;
    font-weight: 700;
}

.thermo-score-info p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.report-alerts-full {
    grid-column: span 12;

    display: grid;
    grid-template-columns: 1.4fr 1fr;

    gap: 18px;

    align-items: stretch;
}

.report-thermo-bar {
    height: 14px;
    border-radius: 999px;

    overflow: hidden;

    background: rgba(255,255,255,0.05);

    margin-bottom: 22px;
}

.report-thermo-fill {
    height: 100%;
    width: 0%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #ffb74d,
            var(--accent),
            #ff5252
        );

    box-shadow:
        0 0 12px rgba(229,57,53,0.4);

    transition: width 1s ease;
}

.thermo-infos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-bottom: 20px;
}

.thermo-info-item {
    padding: 14px;
    border-radius: 12px;

    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
}

.thermo-info-item span {
    display: block;

    margin-bottom: 6px;

    font-size: 0.75rem;
    color: var(--muted);
}

.thermo-info-item strong {
    color: #fff;
    font-size: 1rem;
}

.thermo-recommendation {
    display: flex;
    gap: 14px;

    padding: 16px;
    border-radius: 14px;

    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
}

.recommendation-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;

    background: rgba(229,57,53,0.1);
    color: var(--accent);
}

.thermo-recommendation strong {
    color: #fff;
}

.thermo-recommendation p {
    margin-top: 6px;

    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.report-alerts-box {
    flex: 1;
    min-width: 340px;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 18px;
}

.alerts-header h4 {
    margin: 0;
    color: #fff;
}

.alerts-header span {
    color: var(--muted);
    font-size: 0.8rem;
}

.alerts-live {
    color: #4caf50;
    font-size: 0.75rem;
}

.alerts-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 20px;
    padding-top: 14px;

    border-top: 1px solid var(--border);

    font-size: 0.75rem;
    color: var(--muted);
}

.alerts-footer-item.success {
    color: #4caf50;
}

.alerts-live {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}







/* =================================================== OUTROS CARDS (ACURACIDADE, GIRO, CAPITAL IMOBILIZADO) =================================================== */

/* ==========================================================================
   KPI FOOTERS
   ========================================================================== */

.report-kpi-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.impact-loss,
.impact-success {
    font-weight: 700;
    font-size: 0.95rem;
}

.impact-loss {
    color: #ff5252;
}

.impact-success {
    color: #4caf50;
}

.report-kpi-footer small {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
}








/* =================================================== CARD DE PRODUÇÃO =================================================== */


.report-production-card {
    position: relative;
    overflow: hidden;

    grid-column: span 12;

    padding: 28px;

    border-radius: 24px;

    background: ( rgba(27, 27, 27, 0)
        );

    border: 1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(20px);

    box-shadow:
        0 30px 80px rgba(0,0,0,.35);

    isolation: isolate;
}

/* ==========================================================
   LINHA DE IDENTIDADE
   ========================================================== */

.report-production-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #6d6d6d,
            #ffffff
        );
}

/* ==========================================================
   HEADER
   ========================================================== */

.production-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 24px;

    margin-bottom: 28px;
    padding-bottom: 22px;

    border-bottom:
        1px solid rgba(255,255,255,0.05);
}

.production-card-header h3 {
    margin: 0;

    font-size: 1.15rem;
    font-weight: 800;

    color: #fff;

    letter-spacing: -.02em;
}

/* ==========================================================
   STATUS OPERACIONAL
   ========================================================== */

.factory-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 8px 16px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(16,185,129,.12),
            rgba(16,185,129,.04)
        );

    border:
        1px solid rgba(50, 185, 16, 0.18);

    color: #82e76e;

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 25px rgba(16,185,129,.08);
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #61d334;

    animation:
        productionPulse 2.5s infinite;
}

@keyframes productionPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(52,211,153,.45);
    }

    70% {
        box-shadow:
            0 0 0 14px rgba(52,211,153,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(52,211,153,0);
    }
}

/* ==========================================================
   GRID
   ========================================================== */

.production-kpi-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

/* ==========================================================
   KPI CARD
   ========================================================== */

.prod-kpi-item {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    gap: 12px;

    min-height: 165px;

    padding: 22px;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.015)
        );

    border:
        1px solid rgba(255,255,255,.05);

    backdrop-filter: blur(14px);

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

/* brilho superior */

.prod-kpi-item::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.30),
            transparent
        );
}

/* barra lateral */

.prod-kpi-item::after {
    content: "";

    position: absolute;

    left: 0;
    top: 20px;

    width: 3px;
    height: 42px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #867f7f,
            #ffffff
        );
}

/* hover */

.prod-kpi-item:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(229,57,53,.16);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0)
        );

    box-shadow:
        0 24px 50px rgba(0,0,0,.30);
}

/* ==========================================================
   LABEL
   ========================================================== */

.prod-label {
    font-size: .70rem;

    font-weight: 700;

    letter-spacing: .10em;

    text-transform: uppercase;

    color: rgba(255,255,255,.55);
}

/* ==========================================================
   VALOR
   ========================================================== */

.prod-value {
    font-size:
        clamp(2rem, 2vw, 2.6rem);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -.04em;

    color: #fff;
}

/* ==========================================================
   TEXTO SECUNDÁRIO
   ========================================================== */

.prod-kpi-item small {
    margin-top: auto;

    color: rgba(255,255,255,.55);

    font-size: .78rem;

    line-height: 1.55;
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1200px) {

    .production-kpi-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .production-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .production-kpi-grid {
        grid-template-columns: 1fr;
    }

    .prod-kpi-item {
        min-height: auto;
    }
}


/* =================================================== INSIGHTS (MODO SOBRIEDADE / DECISÃO GERENCIAL) =================================================== */

/* ==========================================================================
   INSIGHTS — MODERNO / EXECUTIVO / FINANCEIRO
   ========================================================================== */

.report-insights-area {
    grid-column: span 12;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

/* CARD */

.report-insight-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 18px;

    padding: 24px;
    border-radius: 22px;

    border: 1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(14px);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.report-insight-card:hover {
    transform: translateY(-4px);

    border-color: rgba(229,57,53,0.25);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.35),
        0 0 0 1px rgba(229,57,53,0.08);
}

/* brilho lateral */

.report-insight-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;
}

/* VARIAÇÕES */

.report-insight-card.financeiro::before {
    background: linear-gradient(
        180deg,
        #4caf50,
        #2e7d32
    );
}

.report-insight-card.operacional::before {
    background: linear-gradient(
        180deg,
        #ff9800,
        #ef6c00
    );
}

.report-insight-card.estrategico::before {
    background: linear-gradient(
        180deg,
        var(--accent),
        #8b1c1c
    );
}

/* HEADER */

.report-insight-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-insight-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.02)
        );

    border: 1px solid rgba(255,255,255,0.06);
}

.report-insight-category {
    display: inline-block;

    margin-bottom: 4px;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: var(--muted);
}

.report-insight-card h4 {
    margin: 0;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;

    color: var(--text);
}

/* TEXTO */

.report-insight-card p {
    margin: 0;

    font-size: 0.92rem;
    line-height: 1.7;

    color: var(--muted);
}

.report-insight-card strong {
    color: #fff;
}

/* HIGHLIGHT */

.report-insight-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;
    border-radius: 14px;

    font-size: 0.88rem;
}

.report-insight-highlight strong {
    font-size: 1rem;
}

.report-insight-highlight.positive {
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.18);
}

.report-insight-highlight.warning {
    background: rgba(255,152,0,0.08);
    border: 1px solid rgba(255,152,0,0.18);
}

.report-insight-highlight.neutral {
    background: rgba(229,57,53,0.08);
    border: 1px solid rgba(229,57,53,0.18);
}

/* FOOTER */

.report-insight-footer {
    margin-top: auto;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-insight-footer span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* BARRA */

.report-impact-bar {
    width: 100%;
    height: 8px;

    border-radius: 999px;
    overflow: hidden;

    background: rgba(255,255,255,0.05);
}

.report-impact-bar .fill {
    height: 100%;
    border-radius: inherit;
}

.report-impact-bar .fill.high {
    width: 88%;
    background: linear-gradient(90deg, #4caf50, #81c784);
}

.report-impact-bar .fill.medium {
    width: 62%;
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.report-impact-bar .fill.low {
    width: 38%;
    background: linear-gradient(90deg, var(--accent), #ff7043);
}

/* =================================================== RODAPÉ =================================================== */

/* ==========================================================================
   FOOTER (SELO DE AUDITORIA / SISTEMA)
   ========================================================================== */

.report-footer {
    margin-top: 50px;
    padding: 18px 6px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
    flex-wrap: wrap;

    font-size: 0.82rem;
    color: var(--muted);

    position: relative;
}

/* linha superior sutil de “separação institucional” */
.report-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(229, 57, 53, 0.25),
        transparent
    );
}

/* ==========================================================================
   BLOCOS DO FOOTER (ORGANIZAÇÃO MAIS CLARA)
   ========================================================================== */

.report-footer div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* texto principal mais forte */
.report-footer strong {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

/* subtítulos / metadados */
.report-footer span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

/* ==========================================================================
   BLOCO DE ASSINATURA (MELHOR DESTAQUE)
   ========================================================================== */

.report-footer .signature {
    min-width: 220px;

    padding: 10px 12px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(6px);
}

/* efeito sutil de destaque institucional */
.report-footer .signature strong {
    color: var(--accent);
}

/* ==========================================================================
   BLOCO DE SISTEMA / VERSÃO
   ========================================================================== */

.report-footer .system-info {
    text-align: right;
}

/* indicador de “status do sistema” opcional */
.report-footer .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 0.78rem;
}

.report-footer .status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: #4caf50;

    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 900px) {
    .report-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-footer .system-info {
        text-align: left;
    }
}
/* ==========================================================================
   SUBSTITUIES DE UI CORPORATIVA (OVERRIDE DE CORES E BORDAS)
   ========================================================================== */
:root {
    --bg: #0a0a0b !important;
    --panel: #111112 !important;
    --panel-2: #141416 !important;
    --accent: #d32f2f !important;
    --shadow: none !important;
    --shadow-soft: none !important;
}

/* Remover brilhos, sobras neon e manter o alinhamento */
.report-donut {
    background: conic-gradient(from -90deg, #d32f2f 0deg 72deg, #fbc02d 72deg 126deg, #388e3c 126deg 360deg) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}
.report-donut:hover { transform: none !important; box-shadow: inset 0 0 10px rgba(0,0,0,0.5) !important; }

.mini-kpi.danger::before { background: #d32f2f !important; }
.mini-kpi.warning::before { background: #fbc02d !important; }
.mini-kpi.neutral::before { background: #388e3c !important; }

.report-card, .report-stat-card, .mini-kpi, .report-visual-area, .report-header, .report-main-content {
    background: #111112 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

/* Tipografia monoespaada nos nmeros para clareza */
.report-stat-card p, .mini-kpi strong, .report-donut-center .num, .report-kpi-card p {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    letter-spacing: 0 !important;
}


/* ==========================================================================
   SUBSTITUIES DE UI CORPORATIVA (PADRONIZAO ABSOLUTA)
   ========================================================================== */
:root {
    --bg: #0a0a0b !important;
    --panel: #111112 !important;
    --panel-2: #141416 !important;
    --accent: #d32f2f !important;
    --shadow: none !important;
    --shadow-soft: none !important;
}

/* Forar fonte nica e profissional em TODA a aba */
.relatorios-page-container, .relatorios-page-container * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Remover brilhos, sobras neon e manter o alinhamento */
.report-donut {
    background: conic-gradient(from -90deg, #d32f2f 0deg 72deg, #fbc02d 72deg 126deg, #388e3c 126deg 360deg) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}
.report-donut:hover { transform: none !important; box-shadow: inset 0 0 10px rgba(0,0,0,0.5) !important; }

.mini-kpi.danger::before { background: #d32f2f !important; }
.mini-kpi.warning::before { background: #fbc02d !important; }
.mini-kpi.neutral::before { background: #388e3c !important; }

/* Fundos limpos e bordas consistentes */
.report-card, .report-stat-card, .mini-kpi, .report-visual-area, .report-header, .report-main-content {
    background: #111112 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

/* Padronizao hierrquica de Ttulos e Valores (Tamanhos consistentes) */
.report-header .company { font-size: 1.1rem !important; }
.report-header .subtitle { font-size: 0.85rem !important; }
.kpi-header h3, .report-stat-card h3, .report-kpi-card h4 {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #9aa0a6 !important;
}
.report-stat-card p, .report-donut-center .num, .report-kpi-card p {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}
.mini-kpi strong {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   SUBSTITUIES DE UI CORPORATIVA (CARDS ESPECIAIS DE INSIGHT)
   ========================================================================== */
.report-production-card, .report-insight-card {
    background: #111112 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    padding: 20px !important;
}
.report-production-card::before, .report-insight-card::before, .report-production-card::after, .report-insight-card::after {
    display: none !important;
}
.report-insight-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 1.2rem !important;
}
.report-insight-category {
    color: #9aa0a6 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.report-insight-header h4 {
    font-size: 1rem !important;
    color: #fff !important;
    margin-top: 4px !important;
}
.report-production-card h3 {
    font-size: 1.1rem !important;
    color: #fff !important;
}
.report-insight-body p, .report-production-card p {
    color: #888c94 !important;
    font-size: 0.9rem !important;
}


/* Padronizacao dos 4 cards internos de Inteligencia de Producao */
.prod-kpi-item {
    background: #111112 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    padding: 16px !important;
}
.prod-label {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #9aa0a6 !important;
}
.prod-value {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
}


/* ==========================================================================
   PADRONIZACAO DOS 3 KPIS PRINCIPAIS (Giro, Acuracidade, Capital Imobilizado)
   ========================================================================== */
.report-kpi-card {
    background: #111112 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    border-radius: 6px !important;
}
.report-kpi-label {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #9aa0a6 !important;
}
.report-kpi-value {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
}
.report-status-pill {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}
.report-status-pill.positive { border-color: #388e3c !important; color: #388e3c !important; }
.report-status-pill.danger { border-color: #d32f2f !important; color: #d32f2f !important; }
.report-status-pill.excellent { border-color: #388e3c !important; color: #388e3c !important; }

/* Graficos e Barras mais flat */
.report-progress-wrapper, .report-progress-bar {
    background: rgba(255,255,255,0.05) !important;
    border: none !important;
    box-shadow: none !important;
}
.report-progress-fill {
    box-shadow: none !important;
    border-radius: 2px !important;
}
.report-kpi-chart path[fill^="url"] {
    display: none !important;
}
.report-kpi-chart path[stroke] {
    stroke-width: 1.5 !important;
    stroke: #888c94 !important;
}
.report-kpi-mini-stats {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}
.report-kpi-mini-stats strong {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}
.report-kpi-alert {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    box-shadow: none !important;
}

/* =========================================
   RESPONSIVO GERAL (MOBILE & TABLET) - RELATRIOS
========================================= */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    /* 1. Container Principal */
    .relatorios-page-container {
        padding: 15px 10px;
    }

    /* 2. Header do relatrio (Logo, Ttulo e Meta) */
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
        text-align: left;
    }

    .report-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .report-meta {
        align-items: flex-start;
        text-align: left;
    }

    /* 3. Grid Principal */
    .report-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }
    
    .report-overview, .report-visual-area, .report-kpi-area {
        grid-column: span 12 !important;
        width: 100% !important;
    }

    /* 4. Cards de Overview Financeiro */
    .report-overview {
        flex-direction: column;
        gap: 15px;
    }
    .report-stat-card {
        width: 100% !important;
        min-width: 0;
        padding: 15px !important;
    }

    /* 5. Grfico Donut (Composio) */
    .report-donut-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        align-items: center;
    }
    
    .report-donut-kpis {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .mini-kpi {
        flex: 1;
        min-width: 90px;
        text-align: center;
    }

    /* 6. Selects dentro dos KPIs (Filtros locais) */
    .report-kpi-top > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .report-kpi-top select {
        width: 100%;
        max-width: 100%;
        margin-top: 5px;
    }

    /* 7. Garantia de que grficos ou textos longos no estourem */
    .report-card, .report-kpi-card {
        min-width: 0;
        word-break: break-word;
        padding: 16px !important;
    }
    
    .report-sparkline {
        width: 100% !important;
    }
}
/* =========================================
   RESPONSIVO - CENTRAL DE RISCO E ALERTAS
========================================= */
@media (max-width: 768px) {
    /* 1. Container principal (quebra o layout lado a lado para 1 coluna) */
    .report-alerts-full {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    /* 2. Central de Risco - Header */
    .thermo-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .thermo-status {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* 3. Central de Risco - Score e Informaes */
    .thermo-score-area {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    /* 4. Central de Risco - Mini KPIs (3 colunas quebram para linha com justificao) */
    .thermo-infos {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }

    .thermo-info-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .thermo-info-item span, .thermo-info-item strong {
        margin: 0 !important;
    }

    /* 5. Alertas Prioritrios - Header e Footer */
    .alerts-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .alerts-live {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .alerts-footer {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}
