:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f3f6fa;
}

* { box-sizing: border-box; }
body { margin: 0; }
.login-shell, .content { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.card { width: min(100%, 28rem); padding: 2rem; background: white; border: 1px solid #dce3ed; border-radius: 12px; box-shadow: 0 10px 30px rgb(32 48 72 / 8%); }
.card.wide { width: min(100%, 70rem); }
h1 { margin-top: 0; }
label { display: block; margin: 1rem 0 .35rem; font-weight: 650; }
input, select { width: 100%; padding: .75rem; border: 1px solid #aeb9c8; border-radius: 7px; background: white; font: inherit; }
button { margin-top: 1.25rem; padding: .75rem 1rem; border: 0; border-radius: 7px; background: #175cd3; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.muted { color: #5d6b80; }
.notice, .error { margin: 1rem 0; padding: .8rem; border-radius: 7px; }
.notice { background: #eef5ff; color: #18498d; }
.error { background: #fff0f0; color: #a01616; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: white; border-bottom: 1px solid #dce3ed; }
.topbar form { margin: 0; }
.link-button { margin: 0; padding: .45rem .7rem; background: #172033; }
.report-content { padding: 1.5rem; }
.report-content .card { margin: 0 auto; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem 1rem; align-items: end; }
.filters label { margin: 0; }
.filter-actions button { width: 100%; margin: 0; }
.results-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem 0 .8rem; }
.button-link { display: inline-block; padding: .65rem .9rem; border-radius: 7px; background: #167647; color: white; text-decoration: none; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .65rem; border-bottom: 1px solid #e1e6ee; text-align: left; vertical-align: top; }
th { background: #f6f8fb; white-space: nowrap; }
td small { display: block; margin-top: .2rem; color: #69778b; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.pagination a { color: #175cd3; font-weight: 700; }
@media (max-width: 640px) { .card { padding: 1.2rem; } .results-header { align-items: flex-start; flex-direction: column; } }
