* { box-sizing: border-box; }
:root { font: 16px/1.55 system-ui, sans-serif; color: #162b2a; background: #eff5f4; }
body { margin: 0; }
.shell { max-width: 66rem; margin: auto; padding: 2rem 1.25rem; }
.hero { background: #103c3a; color: white; padding: clamp(1.2rem, 4vw, 2.4rem); border-radius: 1.25rem;
  display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.hero p { margin: 0 0 .35rem; color: #c2ded8; }
.hero h1, h2 { margin: 0; line-height: 1.18; }
.hero h1 { font-size: clamp(1.65rem, 5vw, 2.8rem); overflow-wrap: anywhere; }
.amount { font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.15; }
.card { border: 1px solid #d4e2df; border-radius: 1rem; background: white; padding: 1.15rem; margin-top: 1rem; min-width: 0; }
h2 { font-size: 1.27rem; margin-bottom: .85rem; }
p { margin: .5rem 0 0; }
.stats, .fields { display: grid; gap: 1rem; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats strong, .stats span, label { display: block; }
.stats strong { font-size: 1.25rem; overflow-wrap: anywhere; }
.stats span, .records span { color: #48605d; font-size: .9rem; }
label { font-size: .94rem; font-weight: 600; margin-bottom: .6rem; }
input, select, button { font: inherit; }
input:not([type="hidden"]), select { width: 100%; min-height: 2.7rem; display: block; margin-top: .3rem;
  padding: .55rem; border: 1px solid #9eb5b0; border-radius: .5rem; color: inherit; background: white; }
button { cursor: pointer; border: 1px solid #106358; background: #106358; color: white; border-radius: .55rem;
  padding: .55rem .9rem; margin-top: .3rem; font-weight: 650; }
button.secondary { background: white; color: #106358; }
a { color: #086457; }
:focus-visible { outline: 3px solid #865000; outline-offset: 3px; }
.records { list-style: none; margin: 0; padding: 0; }
.records li { display: flex; justify-content: space-between; gap: .8rem; align-items: start;
  padding: .75rem 0; border-top: 1px solid #e3edeb; overflow-wrap: anywhere; }
.records li div > span { display: block; }
.record-total { text-align: end; flex-shrink: 0; }
.records span.pill { display: inline-block; padding: .15rem .5rem; border-radius: 1rem; background: #e9f3f0; color: #18554a; }
.records span.pill.pending { background: #fff2d7; color: #684602; }
.records span.pill.cancelled { background: #f6e9e9; color: #853638; }
.tabs, .pager { display: flex; flex-wrap: wrap; gap: .65rem 1rem; padding: .55rem 0; }
.tabs [aria-current="page"] { font-weight: 750; }
.notice, .error { padding: .85rem 1rem; border-radius: .6rem; margin-top: 1rem; overflow-wrap: anywhere; }
.notice { background: #ddeee8; }
.error { background: #fbe5e5; color: #7e2727; }
.message { max-width: 36rem; margin-inline: auto; }
@media (max-width: 38rem) {
  .shell { padding: 1rem .75rem; }
  .stats { gap: .4rem; }
  .stats .card { padding: .6rem; }
  .stats strong { font-size: 1rem; }
  .fields { grid-template-columns: 1fr; gap: .25rem; }
  .admin-records li { flex-direction: column; }
}
