* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #213247; background: #f3f6fa; }
body { margin: 0; font-size: 15px; }
a { color: #00498a; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid #dce3eb; }
.header-flex, .brand, nav, .results-head, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-flex { min-height: 76px; flex-wrap: wrap; padding: 12px 0; }
.brand { justify-content: flex-start; font-weight: 800; font-size: 20px; color: #00498a; }
.brand small { font-size: 12px; font-weight: 500; color: #5a6d81; display: block; }
.mark { background: #00498a; color: white; padding: 10px 15px; border-radius: 10px; }
nav { justify-content: flex-end; flex-wrap: wrap; }
main { padding: 28px 0 40px; min-height: calc(100vh - 145px); }
h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
h2 { font-size: 19px; margin: 0 0 5px; }
p { margin: 6px 0 16px; }
.heading p, .muted, .results-head p, .help, .footer { color: #617186; }
.panel { background: #fff; border: 1px solid #dce3eb; border-radius: 12px; padding: 22px; margin: 0 0 20px; box-shadow: 0 2px 8px #12254208; }
.login-card { max-width: 490px; margin: 35px auto; }
label, legend { display: block; font-weight: 600; margin: 0 0 8px; }
input:not([type="radio"]) { width: 100%; height: 42px; padding: 9px 12px; border: 1px solid #b9c6d5; border-radius: 7px; font: inherit; margin: 0 0 18px; background: white; }
button, .button { display: inline-block; font: inherit; font-weight: 600; border: none; border-radius: 7px; background: #00498a; color: white; padding: 11px 17px; cursor: pointer; text-align: center; }
button:hover, .button:hover { filter: brightness(1.1); color: white; text-decoration: none; }
button.secondary { background: #edf1f6; color: #24445f; padding: 9px 14px; }
.button.success { background: #19734d; }
.inline-form { display: inline; }
.filters { display: grid; grid-template-columns: minmax(235px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 20px; align-items: end; }
.filters input:not([type="radio"]) { margin-bottom: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
.radio { font-weight: 400; margin-bottom: 9px; }
.radio input { accent-color: #00498a; }
.filter-actions { padding-bottom: 0; }
.help { margin: 16px 0 0; font-size: 13px; }
.results-head { flex-wrap: wrap; margin-bottom: 18px; }
.results-head p { margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th { font-size: 13px; color: #53687f; text-align: left; background: #f3f6fa; }
th, td { padding: 13px; border-bottom: 1px solid #e1e7ee; vertical-align: top; }
td { overflow-wrap: anywhere; }
td:nth-child(1) { width: 23%; }
td:nth-child(2) { width: 19%; }
td:nth-child(3) { width: 43%; }
.message { margin-top: 8px; max-height: 220px; overflow: auto; white-space: normal; }
.nowrap { white-space: nowrap; }
.empty { text-align: center; color: #617186; padding: 40px; }
.pagination { justify-content: center; margin-top: 20px; }
.pagination a { border: 1px solid #bdccda; border-radius: 6px; padding: 8px 12px; }
.alert { padding: 14px; border-radius: 7px; }
.alert.error { background: #fff0f0; color: #8c1d1d; }
.success-alert { background: #eaf7ee; color: #146238; }
.footer { text-align: center; font-size: 12px; padding-bottom: 20px; }
@media (max-width: 850px) { .filters { grid-template-columns: 1fr 1fr; } .filters fieldset { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } .filters fieldset { grid-column: auto; } .header-flex { justify-content: center; } .results-head .button { width: 100%; } }
