/* RusBotNet pages: the old white "BotNetStats Engine" look, on a responsive grid. */
:root {
  --frame: #000;
  --muted: #808080;
  --rule: #a0a0a0;
  --zebra: #f0f0f0;
  --sans: Verdana, Arial, Geneva, Helvetica, sans-serif;
  --mono: "Lucida Console", "Cascadia Mono", "DejaVu Sans Mono", Consolas, ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; color: #000; }
body { margin: 0 auto; padding: 8px 12px 16px; max-width: 1400px; font: 12px/1.45 var(--sans); }
a { color: #00c; }
a:visited { color: #551a8b; }
h1 { color: #606060; font-size: 21px; font-style: italic; font-weight: bold; text-align: center; margin: 5px; }
h2 { font-size: 12px; font-weight: normal; text-align: center; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
p { margin: 0 0 .5em; }
.center { text-align: center; }
.muted { color: var(--muted); }
.top { font-size: 11px; color: var(--muted); }
.top a { color: var(--muted); }

.up { color: green; }
.down { color: red; }
a.up, a.down { text-decoration: none; }
a.up:hover, a.down:hover { text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}
.wide { grid-column: 1 / -1; }
/* Botnet page: the tree on the left half, everything else stacked on the right, as on the old page. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 10px; }
.panel { border: 1px solid var(--frame); padding: 10px; min-width: 0; }

pre { font: 11px/1.35 var(--mono); color: var(--muted); margin: 0; overflow-x: auto; }
.tree a, .tree span { font-weight: bold; }
.stats .n { color: #000; }
.stats .br { color: green; }
.stats .bar { color: blue; }
.stats .name { color: red; }

.counts, .users, .legend { list-style: none; margin: 0; padding: 0; font-size: 10px; }
.counts { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.users { font-size: 11px; }
.users li { padding: 1px 0; overflow-wrap: anywhere; }
.legend { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.role-owner { color: red; }
.role-master { color: green; }
.role-op { color: blue; }
.role-botnetmaster { color: orange; }

.info { border-collapse: collapse; width: 100%; font: 11px/1.4 var(--mono); }
.info th { color: var(--muted); text-align: right; vertical-align: top; font-weight: normal; padding: 1px 1ch 1px 0; white-space: nowrap; width: 1%; }
.info td { vertical-align: top; overflow-wrap: anywhere; padding: 1px 0; }
.warn { color: red; text-align: center; font: 11px var(--mono); margin: .4em 0; }
.note { color: blue; font-size: 10px; margin-top: .4em; }

.scroll { overflow-x: auto; }
.traffic { border: 1px solid var(--rule); border-collapse: collapse; width: 100%; font: 11px var(--mono); }
.traffic thead th { color: var(--muted); font-weight: normal; border-bottom: 1px solid var(--rule); padding: 2px 6px; }
.traffic tbody th { color: var(--muted); font-weight: normal; text-align: right; border-right: 1px solid var(--rule); padding: 1px 6px; }
.traffic td { text-align: right; padding: 1px 6px; white-space: nowrap; }
.traffic tbody tr:nth-child(even) > * { background: var(--zebra); }

.foot { text-align: center; margin-top: 16px; color: #606060; font-size: 11px; }
