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