Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -993,20 +993,101 @@ def export_calculations_wrapper():
|
|
| 993 |
CSS = """
|
| 994 |
body { background: #f6f8f4; }
|
| 995 |
.gradio-container { max-width: 1200px !important; margin: auto !important; }
|
|
|
|
| 996 |
.main-title { text-align: center; padding: 15px 10px 5px 10px; }
|
| 997 |
.main-title h1 { font-size: 34px; margin-bottom: 4px; }
|
| 998 |
.main-title p { font-size: 17px; color: #555; }
|
| 999 |
-
|
| 1000 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1001 |
button { min-height: 48px !important; }
|
| 1002 |
-
.admin-login {
|
| 1003 |
-
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1009 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1010 |
|
| 1011 |
# ============================================================
|
| 1012 |
# UI
|
|
|
|
| 993 |
CSS = """
|
| 994 |
body { background: #f6f8f4; }
|
| 995 |
.gradio-container { max-width: 1200px !important; margin: auto !important; }
|
| 996 |
+
|
| 997 |
.main-title { text-align: center; padding: 15px 10px 5px 10px; }
|
| 998 |
.main-title h1 { font-size: 34px; margin-bottom: 4px; }
|
| 999 |
.main-title p { font-size: 17px; color: #555; }
|
| 1000 |
+
|
| 1001 |
+
.answer-box {
|
| 1002 |
+
background: white;
|
| 1003 |
+
border-radius: 16px;
|
| 1004 |
+
padding: 16px 20px;
|
| 1005 |
+
border: 1px solid #e5e7eb;
|
| 1006 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
|
| 1007 |
+
min-height: 400px;
|
| 1008 |
+
}
|
| 1009 |
+
|
| 1010 |
+
.email-box {
|
| 1011 |
+
border: 2px solid #d9e7d2;
|
| 1012 |
+
border-radius: 12px;
|
| 1013 |
+
padding: 10px;
|
| 1014 |
+
background: #fbfdf9;
|
| 1015 |
+
}
|
| 1016 |
+
|
| 1017 |
button { min-height: 48px !important; }
|
| 1018 |
+
.admin-login {
|
| 1019 |
+
border: 2px solid #d97706;
|
| 1020 |
+
border-radius: 12px;
|
| 1021 |
+
padding: 15px;
|
| 1022 |
+
background: #fffbeb;
|
| 1023 |
+
}
|
| 1024 |
+
|
| 1025 |
+
/* ============================================================
|
| 1026 |
+
MOBILE VISIBILITY FIX - Make numbers bold and dark
|
| 1027 |
+
============================================================ */
|
| 1028 |
+
|
| 1029 |
+
/* Quick Answer numbers */
|
| 1030 |
+
.quick-answer-number {
|
| 1031 |
+
font-size: 28px !important;
|
| 1032 |
+
font-weight: 900 !important;
|
| 1033 |
+
color: #166534 !important;
|
| 1034 |
+
}
|
| 1035 |
+
|
| 1036 |
+
.quick-answer-approx {
|
| 1037 |
+
font-size: 24px !important;
|
| 1038 |
+
font-weight: 800 !important;
|
| 1039 |
+
color: #1e40af !important;
|
| 1040 |
+
}
|
| 1041 |
+
|
| 1042 |
+
/* Feed Breakdown numbers */
|
| 1043 |
+
.feed-table td:last-child {
|
| 1044 |
+
font-weight: 700 !important;
|
| 1045 |
+
color: #1e293b !important;
|
| 1046 |
+
}
|
| 1047 |
|
| 1048 |
+
/* Feed Cost number */
|
| 1049 |
+
.feed-cost-value {
|
| 1050 |
+
font-size: 30px !important;
|
| 1051 |
+
font-weight: 900 !important;
|
| 1052 |
+
color: #1e40af !important;
|
| 1053 |
+
}
|
| 1054 |
+
|
| 1055 |
+
/* Expected Performance numbers */
|
| 1056 |
+
.performance-value {
|
| 1057 |
+
font-weight: 700 !important;
|
| 1058 |
+
color: #1e293b !important;
|
| 1059 |
+
}
|
| 1060 |
+
|
| 1061 |
+
/* All number values in results */
|
| 1062 |
+
.answer-box strong,
|
| 1063 |
+
.answer-box b {
|
| 1064 |
+
font-weight: 700 !important;
|
| 1065 |
+
color: #1e293b !important;
|
| 1066 |
+
}
|
| 1067 |
+
|
| 1068 |
+
/* Make all table values darker */
|
| 1069 |
+
table td {
|
| 1070 |
+
color: #1e293b !important;
|
| 1071 |
+
}
|
| 1072 |
+
|
| 1073 |
+
/* Specific to the quick answer area */
|
| 1074 |
+
div[style*="background: #f0fdf4"] strong,
|
| 1075 |
+
div[style*="background: #f0fdf4"] b {
|
| 1076 |
+
color: #166534 !important;
|
| 1077 |
+
font-weight: 700 !important;
|
| 1078 |
+
}
|
| 1079 |
+
|
| 1080 |
+
div[style*="background: #f0fdf4"] .big-number {
|
| 1081 |
+
color: #166534 !important;
|
| 1082 |
+
font-weight: 800 !important;
|
| 1083 |
+
}
|
| 1084 |
+
|
| 1085 |
+
/* The approx purchase number */
|
| 1086 |
+
div[style*="color: #1e40af"] {
|
| 1087 |
+
color: #1e40af !important;
|
| 1088 |
+
font-weight: 800 !important;
|
| 1089 |
+
}
|
| 1090 |
+
"""
|
| 1091 |
|
| 1092 |
# ============================================================
|
| 1093 |
# UI
|