xref: /plugin/botmon/admin.css (revision 6064c7d5428b252136bc1dca67daeac6d0210295)
1#botmon__admin {
2
3	section[role="tabpanel"] {
4		margin: .25rem 0;
5	}
6
7	/* icon items */
8	.has_icon {
9		display: inline-flex;
10		align-items: center;
11		width: auto;
12		white-space: nowrap;
13	}
14	.icon_only {
15		display: inline-grid;
16		grid-template-columns: 20px max-content;
17		width: 20px; max-width: 20px;
18	}
19
20	.has_icon, .icon_only {
21		& {
22			align-items: center;
23			overflow: hidden;
24			column-gap: .2em;
25			min-width: 20px;
26		}
27
28		&::before {
29			content: '';
30			display: inline-block;
31			width: 20px; min-width: 20px; max-width: 20px;
32			height: 20px;
33			background: transparent none center no-repeat;
34			background-position: 0 0;
35			background-size: 20px;
36		}
37
38		/* user info Icon */
39		&.user_known::before { background-image: url('img/user.svg') }
40
41		/* IP Address types */
42		&.ipaddr::before { background-image: url('img/addr.png') }
43		&.ip4::before { background-position-y: -20px }
44		&.ip6::before { background-position-y: -40px }
45		&.ipnet::before { background-position-y: -60px }
46		&.ipother::before { background-image: url('img/more.svg') }
47
48		/* Bot icons */
49		&.bot::before { background-image: url('img/bots.png') }
50		&.bot_googlebot::before, &.bot_googleads::before, &.bot_googleapi::before,
51			&.bot_googleother::before, &.bot_googinspct::before { background-position-y: -20px }
52		&.bot_bingbot::before { background-position-y: -40px }
53		&.bot_applebot::before { background-position-y: -60px }
54		&.bot_openai::before, &.bot_chatgpt::before { background-position-y: -80px }
55		&.bot_metabots::before, &.bot_metauser::before { background-position-y: -100px }
56		&.bot_ahrefs::before { background-position-y: -120px }
57		&.bot_seznambot::before { background-position-y: -140px }
58		&.bot_claude::before { background-position-y: -160px }
59		&.bot_baidu::before { background-position-y: -180px }
60		&.bot_reddit::before { background-position-y: -200px }
61		&.bot_wayback::before { background-position-y: -220px }
62		&.bot_alibaba::before { background-position-y: -241px }
63		&.bot_ibou::before { background-position-y: -260px }
64		&.bot_discord::before { background-position-y: -280px }
65		&.bot_twitter::before { background-position-y: -300px }
66		&.bot_goognblm::before { background-position-y: -320px }
67		&.bot_whatsapp::before { background-position-y: -340px }
68		&.bot_perplexity::before, &.bot_perplexityusr::before { background-position-y: -360px }
69		&.bot_tiktok::before { background-position-y: -380px }
70		&.bot_claudeusr::before { background-position-y: -400px }
71		&.bot_yahoolp::before { background-position-y: -420px }
72		&.bot_other::before { background-image: url('img/more.svg') }
73
74		/* platform icons */
75		&.platform::before { background-image: url('img/platforms.png') }
76		&.pf_win10::before { background-position-y: -20px }
77		&.pf_winold::before, dd.platform_winold::before,
78			&.pf_winsrvr:before { background-position-y: -40px }
79		&.pf_macos::before { background-position-y: -60px }
80		&.pf_macosold::before { background-position-y: -80px }
81		&.pf_ios::before { background-position-y: -100px }
82		&.pf_android::before { background-position-y: -120px }
83		&.pf_androidold::before { background-position-y: -140px }
84		&.pf_linux::before { background-position-y: -160px }
85		&.pf_bsd::before { background-position-y: -180px }
86		&.pf_chromium::before { background-position-y: -200px }
87		&.pf_hmos::before { background-position-y: -220px }
88		&.pf_tizen::before { background-position-y: -240px }
89		&.pf_fire::before { background-position-y: -260px }
90		&.pf_app::before { background-position-y: -280px }
91		&.pf_other::before { background-image: url('img/more.svg') }
92
93		/* browser icons */
94		&.client::before { background-image: url('img/clients.png') }
95		&.cl_firefox::before, &.cl_ffios::before { background-position-y: -20px }
96		&.cl_safari::before { background-position-y: -40px }
97		&.cl_chrome::before { background-position-y: -60px }
98		&.cl_msedge::before { background-position-y: -80px }
99		&.cl_msie::before { background-position-y: -100px }
100		&.cl_opera::before { background-position-y: -120px }
101		&.cl_brave::before { background-position-y: -140px }
102		&.cl_ddg::before { background-position-y: -160px }
103		&.cl_samsung::before { background-position-y: -180px }
104		&.cl_huawei::before { background-position-y: -200px }
105		&.cl_vivaldi::before { background-position-y: -220px }
106		&.cl_aol::before { background-position-y: -240px }
107		&.cl_ya::before { background-position-y: -260px }
108		&.cl_silk::before { background-position-y: -280px }
109		&.cl_ffold::before { background-position-y: -300px }
110		&.cl_chromeold::before { background-position-y: -320px }
111		&.cl_ecosia::before { background-position-y: -340px }
112		&.cl_webkit::before { background-position-y: -360px }
113		&.cl_operaold::before { background-position-y: -380px }
114		&.cl_wget::before { background-position-y: -400px }
115		&.cl_python::before { background-position-y: -420px }
116		&.cl_other::before { background-image: url('img/more.svg') }
117
118		/* Captcha statuses */
119		&.captcha::before { background-image: url('img/captcha.png') }
120		&.cap_Y::before { background-position-y: -20px }
121		&.cap_YN::before { background-position-y: -40px }
122		&.cap_W::before { background-position-y: -60px }
123		&.cap_H::before { background-position-y: -80px }
124		&.cap_X::before { background-position-y: -100px }
125		&.cap_YH::before { background-position-y: -120px }
126
127		/* Country flags */
128		/* Note: flag images and CSS adapted from: https://github.com/lafeber/world-flags-sprite/ */
129		&.country::before {
130			content: '';
131			height: 20px; width: 20px;
132			background:url(img/flags.png) no-repeat 0 0;
133			background-size: 20px auto;
134		}
135		&.ctry_eu::before { background-position-y: -161px }
136		&.ctry_ad::before { background-position-y: -441px }
137		&.ctry_ae::before { background-position-y: -461px }
138		&.ctry_af::before { background-position-y: -481px }
139		&.ctry_ag::before { background-position-y: -501px }
140		&.ctry_ai::before { background-position-y: -521px }
141		&.ctry_al::before { background-position-y: -541px }
142		&.ctry_am::before { background-position-y: -561px }
143		&.ctry_ao::before { background-position-y: -581px }
144		&.ctry_aq::before { background-position-y: -601px }
145		&.ctry_ar::before { background-position-y: -621px }
146		&.ctry_as::before { background-position-y: -641px }
147		&.ctry_at::before { background-position-y: -661px }
148		&.ctry_au::before { background-position-y: -681px }
149		&.ctry_aw::before { background-position-y: -701px }
150		&.ctry_ax::before { background-position-y: -721px }
151		&.ctry_az::before { background-position-y: -741px }
152		&.ctry_ba::before { background-position-y: -761px }
153		&.ctry_bb::before { background-position-y: -781px }
154		&.ctry_bd::before { background-position-y: -801px }
155		&.ctry_be::before { background-position-y: -821px }
156		&.ctry_bf::before { background-position-y: -841px }
157		&.ctry_bg::before { background-position-y: -861px }
158		&.ctry_bh::before { background-position-y: -881px }
159		&.ctry_bi::before { background-position-y: -901px }
160		&.ctry_bj::before { background-position-y: -921px }
161		&.ctry_bm::before { background-position-y: -941px }
162		&.ctry_bn::before { background-position-y: -961px }
163		&.ctry_bo::before { background-position-y: -981px }
164		&.ctry_br::before { background-position-y: -1001px }
165		&.ctry_bs::before { background-position-y: -1021px }
166		&.ctry_bt::before { background-position-y: -1041px }
167		&.ctry_bw::before { background-position-y: -1061px }
168		&.ctry_by::before { background-position-y: -1081px }
169		&.ctry_bz::before { background-position-y: -1101px }
170		&.ctry_ca::before { background-position-y: -1121px }
171		&.ctry_cd::before { background-position-y: -1141px }
172		&.ctry_cf::before { background-position-y: -1161px }
173		&.ctry_cg::before { background-position-y: -1181px }
174		&.ctry_ch::before { background-position-y: -1201px }
175		&.ctry_ci::before { background-position-y: -1221px }
176		&.ctry_ck::before { background-position-y: -1241px }
177		&.ctry_cl::before { background-position-y: -1261px }
178		&.ctry_cm::before { background-position-y: -1281px }
179		&.ctry_cn::before { background-position-y: -1301px }
180		&.ctry_co::before { background-position-y: -1321px }
181		&.ctry_cr::before { background-position-y: -1341px }
182		&.ctry_cu::before { background-position-y: -1361px }
183		&.ctry_cv::before { background-position-y: -1381px }
184		&.ctry_cy::before { background-position-y: -1401px }
185		&.ctry_cz::before { background-position-y: -1421px }
186		&.ctry_de::before { background-position-y: -1441px }
187		&.ctry_dj::before { background-position-y: -1461px }
188		&.ctry_dk::before { background-position-y: -1481px }
189		&.ctry_dm::before { background-position-y: -1501px }
190		&.ctry_do::before { background-position-y: -1521px }
191		&.ctry_dz::before { background-position-y: -1541px }
192		&.ctry_ec::before { background-position-y: -1561px }
193		&.ctry_ee::before { background-position-y: -1581px }
194		&.ctry_eg::before { background-position-y: -1601px }
195		&.ctry_eh::before { background-position-y: -1621px }
196		&.ctry_er::before { background-position-y: -1641px }
197		&.ctry_es::before { background-position-y: -1661px }
198		&.ctry_et::before { background-position-y: -1681px }
199		&.ctry_fi::before { background-position-y: -1701px }
200		&.ctry_fj::before { background-position-y: -1721px }
201		&.ctry_fm::before { background-position-y: -1741px }
202		&.ctry_fo::before { background-position-y: -1761px }
203		&.ctry_fr::before, &.ctry_bl::before, &.ctry_cp::before, &.ctry_mf::before,
204			&.ctry_yt::before { background-position-y: -1781px }
205		&.ctry_ga::before { background-position-y: -1801px }
206		&.ctry_gb::before, &.ctry_bg::before, &.ctry_uk::before,
207			&.ctry_sh::before { background-position-y: -1821px }
208		&.ctry_gd::before { background-position-y: -1841px }
209		&.ctry_ge::before { background-position-y: -1861px }
210		&.ctry_gg::before { background-position-y: -1881px }
211		&.ctry_gh::before { background-position-y: -1901px }
212		&.ctry_gi::before { background-position-y: -1921px }
213		&.ctry_gl::before { background-position-y: -1941px }
214		&.ctry_gm::before { background-position-y: -1961px }
215		&.ctry_gn::before { background-position-y: -1981px }
216		&.ctry_gp::before { background-position-y: -2001px }
217		&.ctry_gq::before { background-position-y: -2021px }
218		&.ctry_gr::before { background-position-y: -2041px }
219		&.ctry_gt::before { background-position-y: -2061px }
220		&.ctry_gu::before { background-position-y: -2081px }
221		&.ctry_gw::before { background-position-y: -2101px }
222		&.ctry_gy::before { background-position-y: -2121px }
223		&.ctry_hk::before { background-position-y: -2141px }
224		&.ctry_hn::before { background-position-y: -2161px }
225		&.ctry_hr::before { background-position-y: -2181px }
226		&.ctry_ht::before { background-position-y: -2201px }
227		&.ctry_hu::before { background-position-y: -2221px }
228		&.ctry_id::before, &.ctry_mc::before { background-position-y: -2241px }
229		&.ctry_ie::before { background-position-y: -2261px }
230		&.ctry_il::before { background-position-y: -2281px }
231		&.ctry_im::before { background-position-y: -2301px }
232		&.ctry_in::before { background-position-y: -2321px }
233		&.ctry_iq::before { background-position-y: -2341px }
234		&.ctry_ir::before { background-position-y: -2361px }
235		&.ctry_is::before { background-position-y: -2381px }
236		&.ctry_it::before { background-position-y: -2401px }
237		&.ctry_je::before { background-position-y: -2421px }
238		&.ctry_jm::before { background-position-y: -2441px }
239		&.ctry_jo::before { background-position-y: -2461px }
240		&.ctry_jp::before { background-position-y: -2481px }
241		&.ctry_ke::before { background-position-y: -2501px }
242		&.ctry_kg::before { background-position-y: -2521px }
243		&.ctry_kh::before { background-position-y: -2541px }
244		&.ctry_ki::before { background-position-y: -2561px }
245		&.ctry_km::before { background-position-y: -2581px }
246		&.ctry_kn::before { background-position-y: -2601px }
247		&.ctry_kp::before { background-position-y: -2621px }
248		&.ctry_kr::before { background-position-y: -2641px }
249		&.ctry_kw::before { background-position-y: -2661px }
250		&.ctry_ky::before { background-position-y: -2681px }
251		&.ctry_kz::before { background-position-y: -2701px }
252		&.ctry_la::before { background-position-y: -2721px }
253		&.ctry_lb::before { background-position-y: -2741px }
254		&.ctry_lc::before { background-position-y: -2761px }
255		&.ctry_li::before { background-position-y: -2781px }
256		&.ctry_lk::before { background-position-y: -2801px }
257		&.ctry_lr::before { background-position-y: -2821px }
258		&.ctry_ls::before { background-position-y: -2841px }
259		&.ctry_lt::before { background-position-y: -2861px }
260		&.ctry_lu::before { background-position-y: -2881px }
261		&.ctry_lv::before { background-position-y: -2901px }
262		&.ctry_ly::before { background-position-y: -2921px }
263		&.ctry_ma::before { background-position-y: -2941px }
264		&.ctry_md::before { background-position-y: -2961px }
265		&.ctry_me::before { background-position-y: -2981px }
266		&.ctry_mg::before { background-position-y: -3001px }
267		&.ctry_mh::before { background-position-y: -3021px }
268		&.ctry_mk::before { background-position-y: -3041px }
269		&.ctry_ml::before { background-position-y: -3061px }
270		&.ctry_mm::before { background-position-y: -3081px }
271		&.ctry_mn::before { background-position-y: -3101px }
272		&.ctry_mo::before { background-position-y: -3121px }
273		&.ctry_mq::before { background-position-y: -3141px }
274		&.ctry_mr::before { background-position-y: -3161px }
275		&.ctry_ms::before { background-position-y: -3181px }
276		&.ctry_mt::before { background-position-y: -3201px }
277		&.ctry_mu::before { background-position-y: -3221px }
278		&.ctry_mv::before { background-position-y: -3241px }
279		&.ctry_mw::before { background-position-y: -3261px }
280		&.ctry_mx::before { background-position-y: -3281px }
281		&.ctry_my::before { background-position-y: -3301px }
282		&.ctry_mz::before { background-position-y: -3321px }
283		&.ctry_na::before { background-position-y: -3341px }
284		&.ctry_nc::before { background-position-y: -3361px }
285		&.ctry_ne::before { background-position-y: -3381px }
286		&.ctry_ng::before { background-position-y: -3401px }
287		&.ctry_ni::before { background-position-y: -3421px }
288		&.ctry_nl::before,
289			&.ctry_bq::before { background-position-y: -3441px }
290		&.ctry_no::before, &.ctry_bv::before , &.ctry_nq::before,
291			&.ctry_sj::before { background-position-y: -3461px }
292		&.ctry_np::before { background-position-y: -3481px }
293		&.ctry_nr::before { background-position-y: -3501px }
294		&.ctry_nz::before { background-position-y: -3521px }
295		&.ctry_om::before { background-position-y: -3541px }
296		&.ctry_pa::before { background-position-y: -3561px }
297		&.ctry_pe::before { background-position-y: -3581px }
298		&.ctry_pf::before { background-position-y: -3601px }
299		&.ctry_pg::before { background-position-y: -3621px }
300		&.ctry_ph::before { background-position-y: -3641px }
301		&.ctry_pk::before { background-position-y: -3661px }
302		&.ctry_pl::before { background-position-y: -3681px }
303		&.ctry_pr::before { background-position-y: -3701px }
304		&.ctry_ps::before { background-position-y: -3721px }
305		&.ctry_pt::before { background-position-y: -3741px }
306		&.ctry_pw::before { background-position-y: -3761px }
307		&.ctry_py::before { background-position-y: -3781px }
308		&.ctry_qa::before { background-position-y: -3801px }
309		&.ctry_re::before { background-position-y: -3821px }
310		&.ctry_ro::before { background-position-y: -3841px }
311		&.ctry_rs::before { background-position-y: -3861px }
312		&.ctry_ru::before { background-position-y: -3881px }
313		&.ctry_rw::before { background-position-y: -3901px }
314		&.ctry_sa::before { background-position-y: -3921px }
315		&.ctry_sb::before { background-position-y: -3941px }
316		&.ctry_sc::before { background-position-y: -3961px }
317		&.ctry_sd::before { background-position-y: -3981px }
318		&.ctry_se::before { background-position-y: -4001px }
319		&.ctry_sg::before { background-position-y: -4021px }
320		&.ctry_si::before { background-position-y: -4041px }
321		&.ctry_sk::before { background-position-y: -4061px }
322		&.ctry_sl::before { background-position-y: -4081px }
323		&.ctry_sm::before { background-position-y: -4101px }
324		&.ctry_sn::before { background-position-y: -4121px }
325		&.ctry_so::before { background-position-y: -4141px }
326		&.ctry_sr::before { background-position-y: -4161px }
327		&.ctry_st::before { background-position-y: -4181px }
328		&.ctry_sv::before { background-position-y: -4201px }
329		&.ctry_sy::before { background-position-y: -4221px }
330		&.ctry_sz::before { background-position-y: -4241px }
331		&.ctry_tc::before { background-position-y: -4261px }
332		&.ctry_td::before { background-position-y: -4281px }
333		&.ctry_tg::before { background-position-y: -4301px }
334		&.ctry_th::before { background-position-y: -4321px }
335		&.ctry_tj::before { background-position-y: -4341px }
336		&.ctry_tl::before { background-position-y: -4361px }
337		&.ctry_tm::before { background-position-y: -4381px }
338		&.ctry_tn::before { background-position-y: -4401px }
339		&.ctry_to::before { background-position-y: -4421px }
340		&.ctry_tr::before { background-position-y: -4441px }
341		&.ctry_tt::before { background-position-y: -4461px }
342		&.ctry_tv::before { background-position-y: -4481px }
343		&.ctry_tw::before { background-position-y: -4501px }
344		&.ctry_tz::before { background-position-y: -4521px }
345		&.ctry_ua::before { background-position-y: -4541px }
346		&.ctry_ug::before { background-position-y: -4561px }
347		&.ctry_us::before { background-position-y: -4581px }
348		&.ctry_uy::before { background-position-y: -4601px }
349		&.ctry_uz::before { background-position-y: -4621px }
350		&.ctry_va::before { background-position-y: -4641px }
351		&.ctry_vc::before { background-position-y: -4661px }
352		&.ctry_ve::before { background-position-y: -4681px }
353		&.ctry_vg::before { background-position-y: -4701px }
354		&.ctry_vi::before { background-position-y: -4721px }
355		&.ctry_vn::before { background-position-y: -4741px }
356		&.ctry_vu::before { background-position-y: -4761px }
357		&.ctry_ws::before { background-position-y: -4781px }
358		&.ctry_ye::before { background-position-y: -4801px }
359		&.ctry_za::before { background-position-y: -4821px }
360		&.ctry_zm::before { background-position-y: -4841px }
361		&.ctry_zw::before { background-position-y: -4861px }
362		&.ctry_sx::before { background-position-y: -4881px }
363		&.ctry_cw::before { background-position-y: -4901px }
364		&.ctry_ss::before { background-position-y: -4921px }
365		&.ctry_nu::before { background-position-y: -4941px }
366
367		&.ctry_local::before { background-image: url('img/addr.png') } /* localhost */
368		&.ctry_other::before { background-image: url('img/more.svg') } /* other countries */
369
370		/* Session icons */
371		&.session::before { background-image: url('img/idtyp.png') }
372		&.typ_dw::before { background-position-y: -20px }
373		&.typ_php::before { background-position-y: -40px }
374		&.typ_ip::before { background-position-y: -60px }
375		&.typ_usr::before { background-position-y: -80px }
376		&.typ_rnd::before { background-position-y: -100px }
377
378		/* External link icons */
379		&.extlink::before { background-image: url('img/links.png') }
380		&.extlink.ipinfo::before { background-position-y: -40px }
381		&.extlink.abuseipdb::before { background-position-y: -20px }
382
383		/* Common referers icons */
384		&.referer::before { background-image: url('img/referers.png') }
385		&.ref_null::before { background-position-y: -20px }
386		&.ref_google::before { background-position-y: -40px }
387		&.ref_bing::before { background-position-y: -60px }
388		&.ref_yahoo::before { background-position-y: -80px }
389		&.ref_dokuwiki::before { background-position-y: -100px }
390		&.ref_duckduckgo::before { background-position-y: -120px }
391		&.ref_ecosia::before { background-position-y: -140px }
392		&.ref_yandex::before { background-position-y: -160px }
393		&.ref_chatgpt::before { background-position-y: -180px }
394		&.ref_brave::before { background-position-y: -200px }
395		&.ref_wikipedia::before { background-position-y: -220px }
396		&.ref_denkfehler::before { background-position-y: -240px }
397		&.ref_fallacies::before { background-position-y: -260px }
398		&.ref_facebook::before { background-position-y: -280px }
399		&.ref_discord::before { background-position-y: -300px }
400		&.ref_other::before { background-image: url('img/more.svg') }
401
402		/* seen-by icons */
403		&.seenby::before { background-image: url('img/stages.png') }
404		&.sb_srv::before { background-position-y: -20px }
405		&.sb_log::before { background-position-y: -40px }
406		&.sb_srvlog::before { background-position-y: -60px }
407		&.sb_tck::before { background-position-y: -80px }
408		&.sb_srvtck::before { background-position-y: -100px }
409		&.sb_logtck::before { background-position-y: -120px }
410		&.sb_srvlogtck::before { background-position-y: -140px }
411	}
412
413	.page_icon {
414		display: inline-flex;
415		column-gap: .25em;
416		align-items: center;
417	}
418	.page_icon::before {
419		content: '';
420		display: inline-block;
421		width: 20px; height: 20px;
422		background: transparent url('img/page.svg') center no-repeat;
423		background-position: 0 0;
424		background-size: 20px;
425	}
426
427	/* grid layout for the overview: */
428	.botmon_bots_grid, .botmon_webmetrics_grid, .botmon_traffic_grid {
429		& {
430			display: grid;
431			grid-gap: 0 .33em;
432		}
433		dl {
434			dd {
435				display: flex;
436				justify-content: space-between;
437				align-items: baseline;
438			}
439		}
440	}
441	.botmon_bots_grid {
442		&[data-geoip="disabled"] {
443			& {
444				grid-template-columns: 1fr 1fr 1fr;
445			}
446			#botmon__botcountries {
447				display: none;
448			}
449		}
450		&:not([data-geoip="disabled"]) {
451			grid-template-columns: 1fr 1fr 1fr 1fr;
452		}
453	}
454	.botmon_webmetrics_grid {
455		&[data-geoip="disabled"] {
456			& {
457				grid-template-columns: 1fr 1fr 1fr;
458			}
459			#botmon__today__wm_countries {
460				display: none;
461			}
462		}
463		&:not([data-geoip="disabled"]) {
464			grid-template-columns: 1fr 1fr 1fr 1fr;
465		}
466	}
467	.botmon_traffic_grid {
468		grid-template-columns: 2fr 1fr;
469	}
470
471	/* The tabs bar */
472	#botmon__tabs ul.tabs li {
473		a[aria-selected="true"] {
474			background-color: #DDD;
475			color: #111;
476		}
477		a[aria-selected="false"] {
478			background-color: #EEE;
479			color: #111;
480		}
481	}
482
483	/* the "today" tab: */
484	#botmon__latest {
485
486		/* item header */
487		header {
488			background-color: #F0F0F0;
489			color: #333;
490			border: #999 solid 1px;
491			border-radius: .5rem .5rem 0 0;
492			margin: .5rem 0 1pt 0;
493			padding: .25rem .5rem;
494			font-size: 1rem;
495			line-height: 1.25;
496		}
497
498		/* list formatting */
499		dl {
500			& {
501				border-left: #555 solid 1px;
502				padding-left: .5rem;
503				margin: 0;
504				font-size: 1rem;
505				line-height: 1.5;
506			}
507			&:first-child {
508				border-left: none;
509				padding-left: 0;
510			}
511			dt {
512				margin-bottom: .2em;
513			}
514			dd {
515				padding: 0; margin: 0;
516			}
517			dd.spaced {
518				display: flex;
519				justify-content: space-between;
520			}
521			dd:nth-child(even) {
522				background-color: #EEE;
523			}
524		}
525
526		/* Content */
527		#botmon__today__content {
528			& details {
529				& {
530					margin: 0 0 1pt 0;
531					text-align: left;
532				}
533				summary {
534					& {
535						display: flex;
536						justify-content: flex-start;
537						align-items: center;
538						column-gap: .25em;
539						font-weight: bold;
540						font-size: 1rem;
541						line-height: 1.5;
542						margin: 0;
543						padding: .25em;
544						color: #333;
545						cursor: pointer;
546					}
547					&::marker {
548						content: none;
549						display: none;
550					}
551					&::before {
552						content: '';
553						display: inline-block;
554						width: 1.25em; min-width: 1.25em; max-width: 1.25em;
555						height: 1.25em;
556						background: transparent url('img/chevron.svg') center no-repeat;
557						background-size: 1.25em;
558						transform: rotate(-90deg);
559						transition-duration: .25s;
560					}
561				}
562				&[open] {
563					& > summary::before {
564						transform: rotate(0deg);
565					}
566				}
567				& > div {
568					padding: .5rem;
569					border: #999 solid 1px;
570					border-top-width: 0;
571					border-radius: 0 0 .25rem .25rem;
572				}
573				& details summary {
574					& {
575						background-color: transparent;
576						border: transparent none 0;
577					}
578					span.title {
579						flex-grow: 1;
580					}
581					a.ext_info {
582						display: inline-block;
583						width: 1.25em; height: 1.25em;
584						overflow: hidden;
585						border-radius: 50%;
586					}
587					a.ext_info::before {
588						content: '';
589						display: inline-block;
590						width: 1.25em; height: 1.25em;
591						background: transparent url('img/info.svg') center no-repeat
592					}
593				}
594			}
595			& > details > summary {
596				background-color: #F0F0F0;
597				border: #999 solid 1px;
598			}
599		}
600
601		/* visitor lists: */
602		#botmon__today__visitorlists {
603			& > details summary {
604				border-radius: .5em;
605			}
606			details ul {
607				margin: 0;
608				padding: 0;
609				list-style: none;
610			}
611			details ul > li {
612				margin: 0 0 0 .75rem;
613				padding: 0;
614				color: #000;
615			}
616			details ul > li > details {
617				border: #ccc solid 1px;
618				border-radius: .5em;
619			}
620			details ul > li > details > summary {
621				display: grid;
622				grid-template-columns: 1.25em minmax(calc(100px + 4em), auto) max-content;
623		        justify-items: stretch;
624				justify-content: stretch;
625				align-items: center;
626				column-gap: .5em;
627				font-weight: normal;
628				font-size: 1rem;
629				line-height: 1.5;
630				background-color: #F0F0F0;
631				border-bottom: #CCC solid 1px;
632				border-radius: .7em;
633				overflow: auto;
634			}
635			details ul > li > details > summary.noServer {
636				opacity: 67%;
637			}
638			details ul > li > details > summary > span {
639				display: flex;
640				align-items: center;
641				column-gap: .25em;
642			}
643			details ul > li > details > summary > span:first-child {
644				justify-content: flex-start;
645			}
646			details ul > li > details > summary > span:last-child {
647				justify-content: flex-end;
648			}
649			details ul > li > details > summary > span > span[title] {
650				cursor: help;
651			}
652
653			dl.visitor_details {
654				& {
655					display: grid;
656					grid-template-columns: min-content auto;
657					gap: .25em .5em;
658					border-left: transparent none 0;
659					margin: 0 .5rem .25rem 0;
660				}
661				dt {
662					grid-column: 1;
663					white-space: nowrap;
664				}
665				dd {
666					grid-column: 2;
667					background-color: transparent;
668				}
669				dd.pages {
670					& {
671					}
672					ul {
673						li {
674							& {
675								display: flex;
676								flex-direction: column;
677								line-height: 1.2rem;
678								margin: 0;
679								padding: 0 .25em;
680							}
681							&:nth-child(odd) {
682								background-color: #DFDFDF;
683							}
684							div.row {
685								display: flex;
686								flex-direction: row;
687								justify-content: space-between;
688								align-items: baseline;
689								white-space: nowrap;
690								line-height: 1.35em;
691							}
692							span {
693								display: inline-block;
694							}
695						}
696					}
697					a[hreflang] {
698						overflow: hidden;
699						text-overflow: ellipsis;
700						padding: 2pt 0 0 2pt;
701
702					}
703					a[hreflang]::after {
704						content: attr(hreflang);
705						font-size: smaller;
706						color: #666;
707						border: #666 solid 1px;
708						line-height: 1.25;
709						border-radius: 2pt;
710						padding: 0 1pt;
711						margin-left: .2em;
712					}
713					span.first-seen {
714						min-width: 4.2em;
715						text-align: right;
716					}
717					span.visit-length {
718						font-size: smaller;
719					}
720					span.bounce {
721						width: 1.25em; height: 1.25em;
722						overflow: hidden;
723					}
724					span.bounce::before {
725						display: inline-block;
726						content: '';
727						width: 1.25em; height: 1em;
728						background: transparent url('img/bounce.svg') center no-repeat;
729						background-size: .95em;
730					}
731					span.referer {
732						font-size: smaller;
733						margin-left: .67rem;
734					}
735				}
736			}
737
738			dd.eval > ul {
739				li {
740					display: flex;
741					justify-content: space-between;
742					align-items: center;
743				}
744				li:nth-child(odd) {
745					background-color: #DFDFDF;
746				}
747				li.total {
748					border-top: #333 solid 1px;
749					font-style: italic;
750				}
751			}
752
753			/* user agent */
754			span.agent::before {
755				background-image: url('img/info.svg')
756			}
757
758			/* pages seen */
759			span.pageseen, span.pageviews {
760				border: #999 solid 1px;
761				padding: 0 2px;
762				font-size: smaller;
763				border-radius: .5em;
764				margin-right: .25em;
765				min-width: fit-content;
766			}
767			span.pageseen::before {
768				content : '';
769				display: inline-block;
770				width: 1.25em; min-width: 1.25em; max-width: 1.25em; height: 1.25em;
771				background: transparent url('img/page.svg') center no-repeat;
772				background-size: 1.25em;
773			}
774			span.pageviews::before {
775				content : '';
776				display: inline-block;
777				width: 1.25em; height: 1.25em;
778				background: transparent url('img/views.svg') center no-repeat;
779				background-size: 1.25em;
780			}
781		}
782
783		/* item footer */
784		footer {
785			& {
786				display: flex;
787				align-items: center;
788				column-gap: .25rem;
789				background-color: #F0F0F0;
790				color: #333;
791				border: #999 solid 1px;
792				border-radius: 0 0 .5rem .5rem;
793				margin: 1pt 0 0 0;
794				padding: .25rem .5rem;
795				line-height: 1.25;
796			}
797			& > svg {
798				width: 1.25em; height: 1.25em;
799				fill: #333;
800				flex-shrink: 0;
801			}
802			& > span {
803				font-size: .96rem;
804				line-height: 1.25rem;
805			}
806			& > span.error {
807				color: #961D1B;
808				font-weight: bold;
809			}
810		}
811	}
812
813	/* the log tab: */
814	#botmon__log {
815
816		#botmon__loglist {
817			& {
818				border: #999 solid 1px;
819				background-color: #F0F0F0;
820				margin: .5rem 0 0 0;
821				padding: .5em;
822				border-radius: .5em 1pt 1pt .5em;
823				list-style: none inside;
824				display: block;
825				min-height: 24rem;
826				max-height: 32rem;
827				overflow: hidden auto
828			}
829			li {
830				& {
831					margin: 0; padding: 0;
832				}
833				&:nth-child(even) {
834					background-color: #DFDFDF;
835				}
836				&.skipped { color: #626262; font-style: italic;}
837				&.success { color: #217121; }
838				&.error { color: #bb2929; }
839			}
840		}
841	}
842}
843
844/* dark mode overrides */
845@media (prefers-color-scheme: dark) {
846	body.darkmode.mode_admin #botmon__admin {
847
848		#botmon__tabs ul.tabs li {
849			a[aria-selected="true"] {
850				background-color: #0c0c0d;
851				color: #adadb3;
852			}
853			a[aria-selected="false"] {
854				background-color: #39393D;
855				color: #ADADB3;
856			}
857		}
858
859		#botmon__latest {
860
861			header {
862				background-color: #0c0c0d;
863				color: #adadb3;
864				border-color: #666;
865			}
866
867			/* list formatting */
868			dl {
869				& {
870					border-left-color: #777;
871				}
872				dt {
873					color: #adadb3;
874				}
875				dd:nth-child(even) {
876					background-color: #333;
877				}
878			}
879
880			#botmon__today__content > details {
881				summary {
882					& {
883						background-color: #0c0c0d;
884						color: #adadb3;
885						border-color: #666;
886					}
887					&::after {
888						color: #76b0fd;
889					}
890				}
891				& > div {
892					border-color: #666;
893				}
894			}
895
896			/* visitor lists: */
897			#botmon__today__visitorlists {
898				details ul > li {
899					& {
900						color: #aeaeae;
901					}
902					& > details {
903						border-color: #666;
904					}
905					& > details summary {
906						background-color: #171717;
907					}
908				}
909
910				dl.visitor_details {
911					dd.pages {
912						ul li:nth-child(odd) {
913							background-color: #333;
914						}
915					}
916				}
917
918				dd.eval > ul {
919					li:nth-child(odd) {
920						background-color: #333;
921					}
922					li.total {
923						border-top-color: #CCC;
924					}
925				}
926				span.pageseen, span.pageviews {
927					border-color: #555;
928				}
929
930			}
931
932			footer {
933				& {
934					background-color: #0c0c0d;
935					color: #adadb3;
936					border-color: #666;
937				}
938				& > svg {
939					fill: #777;
940				}
941				& > span.error {
942					color: #961D1B;
943				}
944			}
945		}
946
947		#botmon__log {
948			#botmon__loglist {
949				& {
950					border-color: #CCC;
951					background-color: #232327;
952				}
953				li {
954					&:nth-child(even) { background-color: #39393D; }
955					&.info { color: #a2a2a2;}
956					&.success { color: #50b750; }
957					&.error { color: #f87d7d; }
958				}
959			}
960		}
961
962	}
963}
964/* layout overrides for narrow screens: */
965@media (max-width: 800px) {
966	#botmon__admin #botmon__latest #botmon__today__visitorlists {
967		dl.visitor_details {
968			& {
969				display: block;
970				margin-top: .5rem;
971			}
972			dt {
973				margin-left: .67rem;
974				font-size: smaller;
975			}
976			dd {
977				margin-left: 1.5rem;
978			}
979			dd.pages, dd.eval {
980				margin-left: 0;
981			}
982		}
983	}
984}
985
986@media (max-width: 670px) {
987	#botmon__admin #botmon__latest {
988		.botmon_bots_grid, .botmon_webmetrics_grid, .botmon_traffic_grid {
989			& {
990				grid-template-columns: 1fr !important;
991			}
992			dt {
993				margin: .5em 0;
994			}
995			dl {
996				border-left: transparent none 0;
997				padding-left: 0;
998			}
999		}
1000	}
1001}
1002
1003@media (max-width: 440px) {
1004	#botmon__admin #botmon__latest #botmon__today__content details  > div { padding: .25em; }
1005	#botmon__admin #botmon__latest #botmon__today__visitorlists details ul > li { margin-left: 0; }
1006	#botmon__admin #botmon__latest #botmon__today__visitorlists details ul > li > details > summary { column-gap: .1em; }
1007}