:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #14233d;
    background: #f2f6fc;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #fff; border-bottom: 1px solid #dae3f0; }
.bar, main { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.bar { min-height: 4.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bar strong { font-size: 1.25rem; }
.bar span { color: #315c91; }
main { padding-block: clamp(2rem, 6vw, 4rem); }
h1 { margin: 0 0 1.5rem; line-height: 1.1; font-size: clamp(1.65rem, 4vw, 2.25rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.card { padding: 1.5rem; border-radius: 1rem; background: white; border: 1px solid #dae3f0; }
dt { font-weight: 650; }
dd { margin: 0; color: #475c77; line-height: 1.45; }
.total { margin-block: .5rem; color: #1654a0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; overflow-wrap: anywhere; }
.login { max-width: 27rem; margin: 1rem auto; }
label, input { display: block; }
label { font-weight: 600; margin-bottom: .375rem; }
input { width: 100%; margin-bottom: 1rem; padding: .625rem .75rem; border: 1px solid #8297b1; border-radius: .5rem; font: inherit; }
button { border: 0; border-radius: .5rem; padding: .65rem 1rem; font: inherit; font-weight: 650; background: #1654a0; color: white; cursor: pointer; }
button:hover { background: #113f78; }
.secondary { background: #e7effa; color: #163f73; }
.secondary:hover { background: #d4e3f7; }
:focus-visible { outline: 3px solid #2874d0; outline-offset: 3px; }
.error { color: #a22532; margin: 0 0 1rem; }

.report-card { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; }
.report-card:hover { border-color: #2874d0; }
.report-card .total { margin: 0; }
.card-detail { color: #315c91; margin-top: auto; }
.report-card:hover .card-detail { text-decoration: underline; }
main a:not(.report-card) { color: #1654a0; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #dae3f0; border-radius: 1rem; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid #dae3f0; overflow-wrap: anywhere; }
thead, .date-row { background: #e7effa; }
tbody:last-child tr:last-child td { border-bottom: 0; }
.pagination { display: flex; gap: 1.25rem; margin-top: 1rem; }
