:root {
  font-family: system-ui, sans-serif;
  color: #20363d;
  background: #f3f7f8;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #143c43;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 22px max(24px, calc((100vw - 1080px) / 2));
  gap: 20px;
}
header a {
  color: white;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
main {
  max-width: 1128px;
  padding: 28px 24px 60px;
  margin: auto;
}
h1 {
  margin: 0;
  font-size: 30px;
}
h2 {
  margin: 0;
  font-size: 24px;
}
h3 {
  color: #143c43;
  margin: 0 0 18px;
  font-size: 21px;
}
h4 {
  margin: 0 0 16px;
  font-size: 16px;
}
p {
  line-height: 1.5;
  color: #526970;
}
.title,
.report-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.title a {
  color: #076b76;
}
.title p {
  margin: 6px 0 22px;
}
form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 1fr 1fr auto;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid #d9e4e6;
  border-radius: 12px;
}
label {
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 7px;
}
input,
select,
button {
  font: inherit;
  min-height: 46px;
  border: 1px solid #c4d5d9;
  border-radius: 7px;
  padding: 10px;
  min-width: 0;
}
button {
  background: #087f8c;
  border-color: #087f8c;
  color: white;
  font-weight: 650;
  cursor: pointer;
}
form button {
  align-self: end;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
article {
  background: white;
  border: 1px solid #d9e4e6;
  border-radius: 14px;
  padding: 26px;
}
.report-heading p {
  margin: 6px 0 0;
}
.notice {
  background: #eff5f6;
  padding: 14px;
  border-radius: 8px;
}
section {
  margin-top: 30px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric {
  background: #eff5f6;
  padding: 18px;
  border-radius: 9px;
}
.metric strong {
  display: block;
  font-size: 32px;
  color: #087f8c;
  margin-bottom: 6px;
}
.metric span {
  font-weight: 650;
}
.metric small {
  display: block;
  color: #526970;
  margin-top: 5px;
  font-size: 13px;
}
.chart-block {
  margin-top: 20px;
  border: 1px solid #d9e4e6;
  padding: 20px;
  border-radius: 10px;
}
.trend {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 190px;
}
.trend-column {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.trend-column strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.trend-column i {
  display: block;
  width: 75%;
  margin: auto;
  background: #087f8c;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.trend-column small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}
.action {
  display: grid;
  grid-template-columns: 170px 1fr 45px;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  font-size: 14px;
}
.bar {
  background: #e7eff1;
  border-radius: 5px;
  height: 13px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #087f8c;
}
.action:last-child .bar span {
  background: #d4752d;
}
.complete-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #eff5f6;
  padding: 18px;
  border-radius: 9px;
}
.complete-card strong {
  font-size: 28px;
  color: #087f8c;
}
.complete-card p {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
}
th {
  text-align: left;
  background: #143c43;
  color: white;
  padding: 12px;
}
td {
  padding: 12px;
  border-bottom: 1px solid #d9e4e6;
}
tr:nth-child(even) {
  background: #f3f7f8;
}
.complete {
  color: #25744d;
  font-weight: 650;
}
.needed {
  color: #92621a;
  font-weight: 650;
}
.small {
  font-size: 14px;
}
details {
  margin-top: 24px;
  font-size: 14px;
}
summary {
  cursor: pointer;
  color: #143c43;
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  form {
    grid-template-columns: 1fr 1fr;
  }
  label:first-child {
    grid-column: 1/-1;
  }
  form button {
    grid-column: 1/-1;
  }
  .report-heading,
  .title {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .title a {
    margin-bottom: 16px;
  }
  article {
    padding: 18px;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2px 10px;
  }
  .metric strong {
    grid-row: 1/3;
  }
  .action {
    grid-template-columns: 125px 1fr 30px;
    gap: 9px;
  }
  .trend {
    gap: 7px;
  }
  .trend-column small {
    font-size: 12px;
  }
  header span {
    font-size: 14px;
  }
  td,
  th {
    padding: 10px;
  }
  main {
    padding: 22px 14px 40px;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #076b76;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
header a:focus-visible {
  outline-color: #fff;
}
