Spaces:
Sleeping
Sleeping
| /* === DASHBOARD LAYOUT FIX FOR GRADIO 5 === */ | |
| /* Global page lock | |
| /* html, body, .gradio-container { | |
| height: 100vh !important; | |
| margin: 0 !important; | |
| padding: 0 !important; | |
| overflow: hidden !important; | |
| background: #0e1117 !important; | |
| font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important; | |
| color: #eee !important; | |
| } */ | |
| /* Root dashboard wrapper */ | |
| /* #dashboard_root { | |
| height: 100vh !important; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| box-sizing: border-box; | |
| padding: 8px 14px 10px 14px; | |
| overflow: hidden !important; | |
| } */ | |
| body, html, .gradio-container { | |
| background-color: #0E1117 ; | |
| color: #E6E6E6 ; | |
| } | |
| #dashboard_root { | |
| /* gap: 8px !important; */ | |
| height: auto; | |
| width: auto; | |
| padding: 8px 20px 0px 20px; | |
| margin: 0px; | |
| } | |
| /* Section heights */ | |
| .section-kpis { height: 10%; margin: 0; } | |
| .section-top { height: 36%; display: flex; gap: 10px; } | |
| .section-bottom { height: 45%; display: flex; gap: 10px; } | |
| .center-me { | |
| margin-left: auto ; | |
| margin-right: auto ; | |
| display: block ; | |
| text-align: center; | |
| } | |
| /* Card design */ | |
| .card { | |
| background: #1C1F26 ; | |
| border: 1px solid #2A2D34 ; | |
| box-shadow: 0 0 10px rgba(0,0,0,0.4); | |
| border-radius: 10px; | |
| padding: 8px; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: flex-start; | |
| overflow: hidden; | |
| } | |
| .card h3 { | |
| margin: 0 0 8px 0; | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: #9fb3c8; | |
| } | |
| /* KPI cards */ | |
| .kpi { flex: 1; display: flex; gap: 10px; } | |
| .kpi-card { | |
| background: #1C1F26 ; | |
| color: #E6E6E6 ; | |
| flex: 1; | |
| border: 1px solid #222; | |
| border-radius: 10px; | |
| box-shadow: 0 0 8px rgba(0,0,0,0.2); | |
| padding: 10px 12px; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| } | |
| .kpi-label { font-size: 12px; color: #9fb3c8; margin: 0 0 2px 0; } | |
| .kpi-value { font-size: 20px; font-weight: 700; color: #ffffff; margin: 0; } | |
| /* Plot containers */ | |
| .plot-holder, .gr-plot { | |
| flex: 1 0 0; | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| } | |
| .card .gradio-container, .card .wrap, .card .gr-box { | |
| height: 100% ; | |
| } | |
| /* === ChatInterface fix (inside #ai_panel) === */ | |
| #ai_panel { | |
| height: 100% ; | |
| display: flex ; | |
| flex-direction: column ; | |
| min-height: 0 ; | |
| } | |
| #ai_panel .gr-form { | |
| flex: 1 1 auto ; | |
| display: flex ; | |
| flex-direction: column ; | |
| min-height: 0 ; | |
| overflow: hidden ; | |
| } | |
| #ai_panel .gr-chatbot { | |
| flex: 1 1 auto ; | |
| overflow-y: auto ; /* internal scroll */ | |
| height: auto ; | |
| min-height: 0 ; | |
| scrollbar-width: thin; | |
| scrollbar-color: #444 #15191e; | |
| } | |
| #ai_panel textarea, | |
| #ai_panel input[type="text"] { | |
| flex-shrink: 0 ; | |
| margin-top: 6px ; | |
| } | |
| /* Remove Gradio footer (all variants) */ | |
| footer, | |
| .gradio-container > footer, | |
| .gradio-container footer, | |
| [class*="footer"], | |
| [id*="footer"], | |
| [data-testid="footer"], | |
| [data-testid="block-footer"] { | |
| display: none ; | |
| visibility: hidden ; | |
| height: 0 ; | |
| min-height: 0 ; | |
| padding: 0 ; | |
| margin: 0 ; | |
| border: 0 ; | |
| } | |