:root {
  color: #172928;
  background: #f2f6f5;
  font: 100%/1.5 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body, h1, h2, form { margin: 0; }
h1 { font-size: clamp(1.55rem, 4vw, 2.15rem); margin-bottom: 1.25rem; }
h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #103d3a;
  color: white;
  padding: .85rem max(1rem, calc((100% - 68rem) / 2));
  min-height: 4.25rem;
}

main { margin: 0 auto; padding: 2.5rem 1rem; }
.signin { max-width: 28rem; }
.portal { max-width: 70rem; }

.card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: .8rem;
  background: white;
  border: 1px solid #d8e3e0;
  margin-bottom: 1rem;
}

.login, .filters { display: grid; gap: 1rem; }
.filters { grid-template-columns: minmax(6rem, 1fr) 1fr 2fr auto; align-items: end; }
label { display: grid; gap: .3rem; font-weight: 600; min-width: 0; }

input, select, button {
  min-height: 2.75rem;
  border-radius: .4rem;
  font: inherit;
  padding: .5rem .7rem;
}

input, select { color: inherit; background: white; border: 1px solid #8ba39e; width: 100%; }
button { border: 1px solid #00665d; background: #00665d; color: white; font-weight: 650; cursor: pointer; }
button:hover { background: #00534c; }
.secondary { background: transparent; border-color: #9cbfb8; }
:focus-visible { outline: 3px solid #a36511; outline-offset: 3px; }
.notice { color: #8d2419; background: #fff0ec; padding: .8rem 1rem; border-radius: .4rem; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid #e0e8e5; white-space: nowrap; }
th { background: #e6f0ed; }
tr:nth-child(even) td { background: #f7faf9; }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.pagination a { color: #00665d; font-weight: 650; }

@media (max-width: 42rem) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters label:last-of-type, .filters button { grid-column: 1 / -1; }
}
