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