:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #192c32;
  background: #f4f6f4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  background: #166454;
  color: white;
  border: 1px solid #166454;
  padding: 10px 17px;
  border-radius: 7px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.92);
}
button.secondary {
  background: white;
  color: #31504d;
  border-color: #cbd8d3;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #cbd8d3;
  border-radius: 6px;
  background: white;
  color: #192c32;
}
textarea {
  min-height: 100px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
form {
  display: grid;
  gap: 16px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
h2 {
  font-size: 19px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: #6a7c7a;
}
aside {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #102e2b;
  color: #d7e6df;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
aside .brand {
  padding: 0 14px 32px;
  font-size: 21px;
  letter-spacing: 2px;
  font-weight: 800;
}
aside .brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 7px;
  color: #9ab8ac;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 14px;
  color: #bdd1c8;
}
nav button.active {
  background: #274a41;
  color: #fff;
}
aside footer {
  margin-top: auto;
  padding: 16px;
  font-size: 12px;
  color: #9ab8ac;
}
main {
  margin-left: 230px;
  padding: 35px 42px;
  max-width: 1700px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  border-bottom: 1px solid #dfe7e0;
  padding-bottom: 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #5a776b;
  text-transform: uppercase;
}
.card {
  background: #fff;
  padding: 24px;
  border: 1px solid #dfe6df;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 3px 12px #203a2e03;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 16px;
}
.metric {
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe6df;
  border-radius: 10px;
}
.metric strong {
  display: block;
  font-size: 30px;
  margin-top: 12px;
  letter-spacing: -1px;
}
.metric:first-child {
  background: #e4efe7;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.toolbar input {
  width: auto;
  flex: 1;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  padding: 12px;
  color: #6d7d77;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #f6f8f5;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0ec;
}
td button {
  padding: 6px 10px;
  font-size: 12px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  background: #e7f0e9;
  color: #326747;
}
.empty {
  text-align: center;
  padding: 50px;
  color: #6d7d77;
}
.login {
  max-width: 430px;
  margin: 10vh auto;
  padding: 36px;
}
.login-brand {
  font-size: 13px;
  letter-spacing: 4px;
  color: #176454;
  font-weight: 800;
  margin-bottom: 38px;
}
.login .muted {
  margin-bottom: 30px;
  font-size: 14px;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 8px;
  background: #163e33;
  color: white;
  display: none;
  max-width: 90vw;
  z-index: 10;
}
#notice.error {
  background: #9e302e;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
dialog {
  border: 1px solid #cbd8d3;
  border-radius: 12px;
  padding: 28px;
  max-width: 650px;
  width: 95%;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #0c292675;
}
.message {
  padding: 14px;
  background: #f2f6f2;
  border-radius: 6px;
  margin: 10px 0;
}
.message small {
  display: block;
  margin-bottom: 5px;
}
.danger {
  color: #9e302e;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 800px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  aside .brand {
    padding: 0 0 12px;
  }
  aside footer {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  main {
    margin: 0;
    padding: 24px 16px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .top {
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
}
