File size: 3,666 Bytes
e82f783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
.gwp {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gwp p {
  display: flex;
  align-items: flex-end;
}

.more-info-btn {
  align-self: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #2c3554;
  background: #4c70ffbe;
  color: #f5f5f5;
  font-size: 0.85rem;
  cursor: pointer;
}

.emissions-modal {
  display: flex;
  flex-direction: column;
  position: relative;
}

.emissions-table {
  width: 100%;
  border-collapse: collapse;
}

.emissions-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.emissions-table th:nth-child(2),
.emissions-table th:nth-child(3),
.emissions-table th:nth-child(4),
.emissions-table th:nth-child(5) {
  text-align: right;
}

.emissions-table tbody tr {
  /* border-bottom: 1px solid black; */
  transition: background-color 0.2s;
}

.emissions-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.emissions-table td {
  padding: 0.75rem;
  color: var(--text-secondary);
}

.emissions-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.emissions-table td:nth-child(2),
.emissions-table td:nth-child(3),
.emissions-table td:nth-child(4),
.emissions-table td:nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.emissions-table tfoot {
  border-top: 2px solid var(--border-color);
  font-weight: 600;
}

.emissions-table tfoot td {
  padding: 1rem 0.75rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.total-row {
  background-color: var(--bg-secondary);
}

/* Emissions equivalent */
.emissions-equivalents {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  /* padding: 1.5rem; */
  margin: 2.5rem 0 1.5rem 0;
}

.emissions-equivalents h3 {
  margin: 0 0 1.25rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.equivalent-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.equivalent-item:last-child {
  border-bottom: none;
}

.equivalent-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.equivalent-text {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.equivalent-text strong {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-variant-numeric: tabular-nums;
}

.equivalent-text span {
  color: var(--text-secondary);
}

.equivalent-detail {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .emissions-modal {
    height: 90%;
  }

  .emissions-table thead {
    display: none; /* Hide headers */
  }
  
  .emissions-table,
  .emissions-table tbody,
  .emissions-table tfoot,
  .emissions-table tr,
  .emissions-table td {
    display: block;
  }
  
  .emissions-table tr {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #0d1324;
    border: 1px solid #2c3554;
    border-radius: 8px;
  }
  
  .emissions-table td {
    text-align: left !important;
    padding: 0.5rem 0;
    border: none;
  }
  
  /* Add labels before each value */
  .emissions-table td:nth-child(1)::before { content: "Model: "; font-weight: bold; }
  .emissions-table td:nth-child(2)::before { content: "CO₂: "; font-weight: bold; }
  .emissions-table td:nth-child(3)::before { content: "Tokens: "; font-weight: bold; }
  .emissions-table td:nth-child(4)::before { content: "Replies: "; font-weight: bold; }
  .emissions-table td:nth-child(5)::before { content: "CO₂/Token: "; font-weight: bold; }
}