
    @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
    
    :root { 
        --jd-green: #58585e; 
        --jd-yellow: #FFDE00; 
        --jd-dark: #333333; 
        --bg-gray: #F4F4F4; 
        --border-gray: #DDDDDD; 
        --sidebar-width: 350px; 
    }
    
    body, html { margin: 0; padding: 0; font-family: 'Inter', sans-serif; height: 100vh; width: 100vw; overflow: hidden; background-color: var(--bg-gray); }
    .app-container { display: flex; height: 100vh; width: 100vw; overflow: hidden; position: relative; }
    
    /* SIDEBAR */
    .sidebar-panel { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background-color: white; border-right: 1px solid var(--border-gray); display: flex; flex-direction: column; z-index: 1000; box-shadow: 2px 0 15px rgba(0,0,0,0.05); }
    .sidebar-header { background-color: white; padding: 15px; border-bottom: 3px solid var(--jd-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .sidebar-content { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
    
    /* ÁREA PRINCIPAL COM FLEXBOX (PC) */
    .main-panel { position: fixed; top: 0; right: 0; height: 100vh; width: calc(100vw - var(--sidebar-width)); background-color: #f5f5f6; z-index: 1; padding: 15px; display: flex; flex-direction: column; gap: 15px; overflow: hidden; }
    .linha-graficos { display: flex; flex-direction: row; gap: 15px; flex: 1; min-height: 0; }
    
    /* CARTÕES GEOMÉTRICOS */
    .jd-card { background: white; border: 1px solid var(--border-gray); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex-shrink: 0; }
    .jd-card-graph { background: white; border: 1px solid var(--border-gray); border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; flex-direction: column; flex: 1; height: 100%; min-width: 0; }
    .jd-card-header { padding: 8px 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #555; border-bottom: 1px solid #eee; background-color: #fafafa; display: flex; align-items: center; flex-shrink: 0;}
    
    /* TRAVA DO GRÁFICO (PC) */
    .jd-card-body { flex: 1; min-height: 0; position: relative; padding: 0; overflow: hidden; }
    .plot-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
    
    .kpi-value { font-size: 1.4rem; font-weight: 800; color: #333; margin: 0; line-height: 1.1; }
    .kpi-label { font-size: 0.65rem; color: #888; margin-bottom: 2px; text-transform: uppercase; font-weight: 600; }
    .text-jd { color: var(--jd-green); }
    .text-primary { color: #2196F3 !important; }
    .text-dark { color: #1A237E !important; }

    /* ========================================================================== */
    /* REGRAS MOBILE                                                              */
    /* ========================================================================== */
    @media screen and (max-width: 992px) {
        body, html { overflow-y: auto !important; overflow-x: hidden !important; height: auto !important; }
        .app-container { flex-direction: column; height: auto; overflow: visible; display: block; }
        .sidebar-panel { position: relative; width: 100%; height: auto; border-right: none; box-shadow: 0 4px 10px rgba(0,0,0,0.05); z-index: 10; }
        .main-panel { position: relative; width: 100%; height: auto; padding: 10px; overflow: visible; display: flex; flex-direction: column; gap: 15px; }
        .linha-graficos { flex-direction: column; display: flex; height: auto; gap: 15px; }
        .jd-card-graph { display: flex; height: auto !important; min-height: 350px; }
        
        .jd-card-body, .plot-container { display: block !important; position: relative !important; height: auto !important; overflow: visible !important; }
    }
    