* { box-sizing: border-box; }
html, body, div, span, p, a, label, h1, h2, h3, table, th, td, input, select, textarea, button, option, small, li, ul {
    font-family: "Segoe UI", Segoe, Calibri, sans-serif;
    font-size: 12px;
}
body { margin: 0; background: #f3f5f8; color: #222; }
a { color: #1f5fa8; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1250px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 820px; }
.topbar { background: #000; color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color:#ff0000; margin-left: 14px; }
.topbar strong { font-weight: 700; letter-spacing: .3px; }
h1, h2, h3 { margin: 0 0 8px 0; font-weight: 700; color: #1f3a5f; }
h1 { text-transform: uppercase; letter-spacing: .5px; }
h2 { border-bottom: 1px solid #dde3ea; padding-bottom: 5px; margin-top: 4px; }
.panel { background: #fff; border: 1px solid #dde3ea; border-radius: 4px; padding: 14px; margin-bottom: 14px; }
.cards { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.card { background: #fff; border: 1px solid #dde3ea; border-left: 4px solid #1f5fa8; border-radius: 4px; padding: 10px 14px; min-width: 140px; flex: 1; color: #222; display: block; }
.card:hover { text-decoration: none; background: #f8fbff; }
.card .num { display: block; font-weight: 700; font-size: 12px; margin-top: 4px; }
.card.green { border-left-color: #2e8b57; }
.card.amber { border-left-color: #d98b0a; }
.card.red { border-left-color: #c0392b; }
.card.grey { border-left-color: #7f8c8d; }
label { display: block; margin: 8px 0 3px 0; font-weight: 600; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=password], select, textarea {
    width: 100%; padding: 6px 8px; border: 1px solid #b9c3cf; border-radius: 3px; background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 200px; }
button, .btn {
    background: #1f5fa8; color: #fff; border: 0; padding: 7px 14px; border-radius: 3px; cursor: pointer; display: inline-block;
}
button:hover, .btn:hover { background: #174a85; text-decoration: none; }
button.red, .btn.red { background: #c0392b; }
button.amber, .btn.amber { background: #d98b0a; }
button.grey, .btn.grey { background: #6c7a89; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; background: #eef2f7; padding: 6px 8px; border-bottom: 1px solid #cfd7e1; white-space: nowrap; }
td { padding: 6px 8px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
tr:hover td { background: #fafcff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filters > div { min-width: 140px; }
.filters label { margin-top: 0; }
.bar { background: #e3e8ee; border-radius: 3px; height: 10px; width: 90px; display: inline-block; vertical-align: middle; overflow: hidden; }
.bar span { display: block; height: 100%; background: #2e8b57; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; color: #fff; font-weight: 600; }
.r-A { background: #2e8b57; } .r-B { background: #3a86c8; } .r-C { background: #d98b0a; } .r-D { background: #8e6b3a; } .r-X { background: #c0392b; }
.msg { padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; }
.msg.ok { background: #e6f4ea; border: 1px solid #b6dcc0; color: #1e5b32; }
.msg.err { background: #fdeaea; border: 1px solid #f2b8b8; color: #8a1f1f; }
.msg.warn { background: #fff6e0; border: 1px solid #f0d995; color: #7a5800; }
.muted { color: #6c7a89; }
.count { background: #1f5fa8; color: #fff; border-radius: 10px; padding: 1px 8px; margin-left: 6px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 5px 10px; }
.kv div:nth-child(odd) { font-weight: 600; color: #4a5a6c; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
pre.mail { white-space: pre-wrap; background: #f7f9fb; border: 1px solid #e1e7ee; padding: 8px; border-radius: 3px; margin: 4px 0 0 0; }
