Spaces:
Running

File size: 14,417 Bytes
f070da0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/* Radar Macro: terminal escuro e denso */
:root {
  color-scheme: dark;
  --fundo: #050505;
  --painel: #0c0c0b;
  --painel-2: #151513;
  --linha: #2a2a27;
  --grade: #1c1c1a;
  --texto: #ecebe6;
  --texto-2: #b0aea6;
  --texto-3: #7d7b74;
  --ambar: #ff9f1c;
  --ambar-fraco: #3a2a10;
  --sobe: #35d07f;
  --desce: #ff5f57;
  --acima: rgba(230, 103, 103, .17);
  --acima-texto: #ff8a80;
  --abaixo: rgba(57, 135, 229, .2);
  --abaixo-texto: #7db4ff;
  --serie-1: #3987e5;
  --serie-2: #d95926;
  --serie-3: #199e70;
  --bom: #0ca30c;
  --alerta: #fab219;
  --serio: #ec835a;
  --critico: #e66767;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--fundo); }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 13px/1.45 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--texto); text-decoration: none; }
a:hover { color: var(--ambar); }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }

/* barra superior com a fita de cotações */
.barra {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: stretch; gap: 0;
  background: #000; border-bottom: 1px solid var(--linha);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.marca { font: 700 14px/1 var(--mono); color: var(--ambar); letter-spacing: .06em; padding: 12px 14px; white-space: nowrap; border-right: 1px solid var(--linha); display: flex; align-items: center; }
.marca b { color: var(--texto); font-weight: 700; margin-left: 4px; }
.fita { flex: 1; display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.fita::-webkit-scrollbar { display: none; }
.cota { display: flex; flex-direction: column; justify-content: center; padding: 5px 12px; border-right: 1px solid var(--grade); white-space: nowrap; cursor: pointer; }
.cota:hover { background: var(--painel-2); }
.cota .rot { font: 600 10.5px/1.2 var(--mono); color: var(--ambar); letter-spacing: .05em; }
.cota .val { font: 600 13.5px/1.25 var(--mono); }
.cota .var { font: 11px/1.2 var(--mono); }
.estado { display: flex; align-items: center; gap: 6px; padding: 0 14px; font: 11.5px var(--mono); color: var(--texto-2); white-space: nowrap; border-left: 1px solid var(--linha); }
.sobe { color: var(--sobe); }
.desce { color: var(--desce); }
.igual { color: var(--texto-3); }

/* teclas de função */
.funcoes { display: flex; gap: 2px; padding: 6px 10px; background: var(--fundo); border-bottom: 1px solid var(--linha); overflow-x: auto; scrollbar-width: none; position: sticky; top: 49px; z-index: 9; }
.funcoes::-webkit-scrollbar { display: none; }
.funcoes button { border: 1px solid var(--linha); background: var(--painel); padding: 5px 12px 5px 6px; cursor: pointer; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); white-space: nowrap; border-radius: 2px; }
.funcoes kbd { font: 700 11px var(--mono); background: var(--painel-2); color: var(--texto-3); border: 1px solid var(--linha); padding: 0 5px; margin-right: 7px; border-radius: 2px; }
.funcoes button[aria-selected="true"] { background: var(--ambar); color: #000; border-color: var(--ambar); }
.funcoes button[aria-selected="true"] kbd { background: #000; color: var(--ambar); border-color: #000; }

main { padding: 8px max(8px, env(safe-area-inset-left)) 40px; }
main:focus { outline: none; }
.aviso { font: 13px var(--mono); color: var(--texto-2); padding: 24px 8px; }

/* grade de quadros */
.grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.q3 { grid-column: span 3; } .q4 { grid-column: span 4; } .q5 { grid-column: span 5; } .q6 { grid-column: span 6; }
.q7 { grid-column: span 7; } .q8 { grid-column: span 8; } .q12 { grid-column: span 12; }
@media (max-width: 1100px) { .q3, .q4 { grid-column: span 6; } .q5, .q7, .q8 { grid-column: span 12; } }
@media (max-width: 700px) { .grade > * { grid-column: span 12 !important; } }

.quadro { background: var(--painel); border: 1px solid var(--linha); display: flex; flex-direction: column; min-width: 0; }
.quadro > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--painel-2); border-bottom: 1px solid var(--linha); }
.quadro > header h2 { margin: 0; font: 700 11.5px var(--mono); color: var(--ambar); letter-spacing: .07em; text-transform: uppercase; }
.quadro > header .meta { font: 11px var(--mono); color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.corpo { padding: 0; overflow: auto; }
.corpo.rolar { max-height: 460px; }
.corpo.pad { padding: 10px; }
.nota { font: 11px var(--mono); color: var(--texto-3); padding: 7px 10px; border-top: 1px solid var(--grade); }
.vazio { font: 12px var(--mono); color: var(--texto-3); padding: 14px 10px; margin: 0; }

/* tabelas */
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font: 600 10.5px var(--mono); color: var(--texto-3); letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--linha); white-space: nowrap; position: sticky; top: 0; background: var(--painel); z-index: 1; }
td { padding: 5px 8px; border-bottom: 1px solid var(--grade); vertical-align: middle; }
tbody tr:hover td { background: var(--painel-2); }
td.n, th.n { text-align: right; font-family: var(--mono); white-space: nowrap; }
td.casa { font-weight: 600; white-space: nowrap; }
td.casa small { display: block; font: 10.5px var(--mono); color: var(--texto-3); font-weight: 400; }
tr.focus td { color: var(--ambar); font-weight: 600; }
tr.mediana td { border-bottom: 1px solid var(--linha); color: var(--texto); }
td.acima { background: var(--acima); }
td.abaixo { background: var(--abaixo); }
td .dif { font-size: 10px; margin-left: 3px; }
td.acima .dif { color: var(--acima-texto); }
td.abaixo .dif { color: var(--abaixo-texto); }
.def { color: var(--texto-3); font-size: 10px; margin-left: 1px; }
.clicavel { cursor: pointer; }
.clicavel:hover { color: var(--ambar); }

/* barras simples (tom, temas) */
.barras { padding: 8px 10px; display: grid; gap: 7px; }
.barra-l { display: grid; grid-template-columns: 92px minmax(0, 1fr) 28px; align-items: center; gap: 8px; font: 11.5px var(--mono); }
.barra-l .rot { color: var(--texto-2); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-l .trilho { height: 10px; background: var(--grade); }
.barra-l .enchimento { height: 10px; background: var(--ambar); border-radius: 0 2px 2px 0; }
.barra-l .qt { text-align: right; }
.barra-l .quem { grid-column: 2 / 4; font: 11px var(--sans); color: var(--texto-3); margin-top: -3px; }

/* visões por tema */
details.tema { border-bottom: 1px solid var(--grade); }
details.tema summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px; cursor: pointer; list-style: none; font: 12px var(--mono); }
details.tema summary::-webkit-details-marker { display: none; }
details.tema summary .nome { text-transform: uppercase; color: var(--texto); }
details.tema summary .nome::before { content: "▸ "; color: var(--texto-3); }
details.tema[open] summary .nome::before { content: "▾ "; }
details.tema summary .contas { color: var(--texto-2); white-space: nowrap; }
details.tema ul { margin: 0; padding: 0 10px 8px 24px; list-style: none; }
details.tema li { padding: 3px 0; font-size: 12.5px; color: var(--texto-2); }
details.tema li b { color: var(--texto); font-weight: 600; margin-right: 6px; }
.dir { font: 600 10.5px var(--mono); margin-right: 6px; }

/* etiquetas */
.tag { display: inline-block; font: 600 10px/1.6 var(--mono); padding: 0 5px; border: 1px solid var(--linha); color: var(--texto-2); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; border-radius: 2px; }
.tag.duro { color: #ff8a80; border-color: #5a2a26; }
.tag.brando { color: #7db4ff; border-color: #1f3a5c; }
.tag.neutro { color: var(--texto-2); }
.tag.long { color: var(--sobe); border-color: #1d4a32; }
.tag.short { color: var(--desce); border-color: #5a2a26; }
.tag.est { color: var(--alerta); border-color: #4a3a10; }

/* feed */
.feed td { vertical-align: top; }
.feed td.data { font: 11.5px var(--mono); color: var(--texto-2); white-space: nowrap; }
.feed td.titulo a { font-weight: 500; }
.feed tr.linha-rel { cursor: pointer; }
.feed tr.detalhe td { background: var(--painel-2); padding: 10px 12px 12px; }
.det-tese { font-size: 13.5px; margin: 0 0 6px; color: var(--texto); }
.det-resumo { margin: 0 0 8px; color: var(--texto-2); }
.det-sec { font: 600 10.5px var(--mono); color: var(--ambar); text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 3px; }
.det-lista { margin: 0; padding: 0; list-style: none; }
.det-lista li { padding: 2px 0; color: var(--texto-2); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: 11.5px var(--mono); background: var(--painel); border: 1px solid var(--linha); padding: 1px 7px; color: var(--texto); border-radius: 2px; }
.links-pdf { margin-top: 8px; font: 12px var(--mono); display: flex; gap: 14px; }
.links-pdf a { color: var(--ambar); }

/* séries */
.serie-l { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 2px 10px; align-items: center; padding: 5px 10px; border-bottom: 1px solid var(--grade); cursor: pointer; }
.serie-l:hover { background: var(--painel-2); }
.serie-l .nome { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serie-l .nome small { display: block; font: 10.5px var(--mono); color: var(--texto-3); }
.serie-l .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.serie-l .num b { font-weight: 600; font-size: 13px; }
.serie-l .num small { display: block; font-size: 10.5px; }
.serie-l svg { width: 70px; height: 24px; }
@media (max-width: 480px) { .serie-l { grid-template-columns: minmax(0, 1fr) auto; } .serie-l svg { display: none; } }

/* filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filtros input, .filtros select { font: 12.5px var(--mono); color: var(--texto); background: var(--painel); border: 1px solid var(--linha); padding: 6px 9px; border-radius: 2px; min-width: 0; }
.filtros input { flex: 1 1 220px; }
.filtros input:focus, .filtros select:focus { outline: 1px solid var(--ambar); }

/* casas */
.casas-grade { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 8px; }
@media (max-width: 760px) { .casas-grade { grid-template-columns: 1fr; } }
.lista-casas button { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--grade); padding: 7px 10px; cursor: pointer; }
.lista-casas button:hover { background: var(--painel-2); }
.lista-casas button[aria-pressed="true"] { background: var(--ambar-fraco); box-shadow: inset 3px 0 0 var(--ambar); }
.lista-casas b { font-weight: 600; }
.lista-casas small { font: 10.5px var(--mono); color: var(--texto-3); }
.dossie h3 { margin: 0 0 2px; font-size: 17px; }
.dossie .sub { font: 11.5px var(--mono); color: var(--texto-3); margin-bottom: 10px; }

/* status */
.status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font: 11.5px var(--mono); }
.status i { font-style: normal; font-size: 10px; }
.status.bom i { color: var(--bom); } .status.alerta i { color: var(--alerta); }
.status.serio i { color: var(--serio); } .status.critico i { color: var(--critico); }
.status.neutro { color: var(--texto-3); }

/* gráfico */
.grafico { position: relative; padding: 8px 10px 6px; }
.grafico svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 11.5px var(--mono); color: var(--texto-2); margin: 0 0 4px; }
.legenda span::before { content: ""; display: inline-block; width: 12px; height: 2px; background: var(--c); vertical-align: middle; margin-right: 5px; }
.eixo text { fill: var(--texto-3); font: 10.5px var(--mono); }
.eixo line { stroke: var(--grade); }
.linha { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mira line { stroke: var(--texto-3); stroke-width: 1; stroke-dasharray: 3 3; }
.mira circle { stroke: var(--painel); stroke-width: 2; }
.rotulo-fim { font: 11px var(--mono); fill: var(--texto-2); }
.tooltip { position: absolute; pointer-events: none; background: #000; color: var(--texto); border: 1px solid var(--ambar); padding: 5px 8px; font: 11.5px var(--mono); white-space: nowrap; z-index: 2; }
.tooltip b { color: var(--ambar); font-weight: 600; }
.tooltip .linha-tt { display: flex; align-items: center; gap: 6px; }
.tooltip .linha-tt::before { content: ""; width: 9px; height: 2px; background: var(--c); }

/* janela de gráfico */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .quadro { width: min(980px, 100%); max-height: 92vh; }
.modal .fechar { background: none; border: 1px solid var(--linha); color: var(--texto-2); font: 12px var(--mono); padding: 1px 8px; cursor: pointer; }
.faixas { display: flex; gap: 4px; padding: 8px 10px 0; flex-wrap: wrap; align-items: center; }
.faixas button { font: 600 11px var(--mono); background: var(--painel); border: 1px solid var(--linha); color: var(--texto-2); padding: 3px 9px; cursor: pointer; border-radius: 2px; }
.faixas button[aria-pressed="true"] { background: var(--ambar); color: #000; border-color: var(--ambar); }
.faixas .info { margin-left: auto; font: 11px var(--mono); color: var(--texto-3); }

.rodape { margin-top: 8px; font: 11px var(--mono); color: var(--texto-3); display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 6px 2px; }

/* ajustes de largura */
.focus-q td, .focus-q th { padding-left: 5px; padding-right: 5px; }
.focus-q svg { width: 54px; height: 18px; }
@media (max-width: 1100px) { .focus-q { grid-column: span 12; } }
@media (max-width: 600px) {
  .feed th:nth-child(4), .feed td:nth-child(4) { display: none; }
  .marca { padding: 10px; font-size: 12px; }
  .estado { padding: 0 8px; }
}