user-churn / style /style.css
VasithaTilakumara
Version 2.0 - added LFS tracking for lsapp.tsv and updated features
53b92fc
/* === 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 !important;
color: #E6E6E6 !important;
}
#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 !important;
margin-right: auto !important;
display: block !important;
text-align: center;
}
/* Card design */
.card {
background: #1C1F26 !important;
border: 1px solid #2A2D34 !important;
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 !important;
color: #E6E6E6 !important;
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% !important;
}
/* === ChatInterface fix (inside #ai_panel) === */
#ai_panel {
height: 100% !important;
display: flex !important;
flex-direction: column !important;
min-height: 0 !important;
}
#ai_panel .gr-form {
flex: 1 1 auto !important;
display: flex !important;
flex-direction: column !important;
min-height: 0 !important;
overflow: hidden !important;
}
#ai_panel .gr-chatbot {
flex: 1 1 auto !important;
overflow-y: auto !important; /* internal scroll */
height: auto !important;
min-height: 0 !important;
scrollbar-width: thin;
scrollbar-color: #444 #15191e;
}
#ai_panel textarea,
#ai_panel input[type="text"] {
flex-shrink: 0 !important;
margin-top: 6px !important;
}
/* 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 !important;
visibility: hidden !important;
height: 0 !important;
min-height: 0 !important;
padding: 0 !important;
margin: 0 !important;
border: 0 !important;
}