* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #172f2c;
  background: #f3f7f5;
  font:
    15px/1.55 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
article,
.metric,
.hero,
dialog {
  border-radius: 5px;
}
button {
  border: 1px solid #c3d7cf;
  background: #fff;
  color: #16584c;
  padding: 9px 15px;
  cursor: pointer;
  font-weight: 650;
  min-height: 40px;
}
button:hover {
  background: #e6f4ed;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary {
  background: #125a4d;
  border-color: #125a4d;
  color: white;
}
.primary:hover {
  background: #0b4038;
}
a {
  color: #175e50;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin-bottom: 7px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 18px;
  margin-bottom: 7px;
}
small {
  font-size: 12px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #b8cec4;
  background: #fff;
  color: #172f2c;
  min-height: 43px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
textarea {
  min-height: 80px;
}
form {
  display: grid;
  gap: 15px;
}
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #092f2d;
  color: white;
  padding: 27px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: 1px;
  color: white;
}
.brand span {
  display: inline-grid;
  place-items: center;
  background: #b5efc9;
  color: #0b4944;
  width: 37px;
  height: 37px;
  border-radius: 5px;
}
.tagline {
  font-size: 11px;
  color: #bdd6cd;
  margin: 12px 0 28px;
}
#nav {
  display: grid;
  gap: 4px;
}
#nav a {
  padding: 10px 13px;
  color: #cae1d8;
}
#nav a.active {
  color: #fff;
  background: #246257;
  border: 1px solid #598b7c;
}
#nav a:hover {
  background: #16453f;
}
.sidefoot {
  margin-top: auto;
  font-size: 11px;
  color: #99c7b8;
}
#header {
  margin-left: 230px;
  padding: 18px 32px;
  background: white;
  border-bottom: 1px solid #dce7e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
#header label {
  grid-template-columns: auto minmax(140px, 260px);
  align-items: center;
}
#account {
  display: flex;
  align-items: center;
  gap: 12px;
}
#account span {
  font-size: 13px;
  font-weight: 700;
}
main {
  margin-left: 230px;
  padding: 28px 32px;
  max-width: 1800px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #0b4944, #24685c);
  padding: 26px 32px;
  color: white;
  min-height: 160px;
  border: 1px solid #2b7061;
  margin-bottom: 24px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 45px solid #a7e1bc18;
  transform: rotate(35deg);
  right: 2%;
  top: -95px;
  pointer-events: none;
}
.hero small {
  color: #c0efcf;
  font-size: 10px;
  letter-spacing: 2px;
}
.hero p {
  margin: 0;
  color: #d1e9df;
}
.sectionbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.sectionbar h2 {
  margin: 0;
}
.sectionbar label {
  flex: 1;
  max-width: 500px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 22px;
}
.card {
  background: #fff;
  border: 1px solid #ceded5;
  padding: 20px;
  min-width: 0;
  box-shadow: 0 4px 16px #173d2e04;
}
.card p {
  color: #566e65;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.card strong {
  display: block;
  font-size: 21px;
}
.card small {
  display: block;
  margin-bottom: 9px;
}
.card button {
  margin-top: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.metric {
  padding: 21px;
  background: #e3f3e8;
  border: 1px solid #c6dfcf;
  display: grid;
  gap: 8px;
}
.metric:nth-child(2) {
  background: #eef0ff;
  border-color: #d4d8f0;
}
.metric:nth-child(3) {
  background: #fff2d9;
  border-color: #ecdcba;
}
.metric:nth-child(4) {
  background: #f9eaf0;
  border-color: #e9d0dc;
}
.metric strong {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.metric span {
  font-size: 11px;
  color: #536b61;
}
.actions {
  display: flex;
  gap: 8px;
}
.actions button {
  flex: 1;
}
.empty {
  grid-column: 1/-1;
  padding: 36px;
  background: white;
  border: 1px dashed #b5cfc0;
  color: #536e60;
  text-align: center;
}
.error {
  color: #b32437;
  white-space: pre-line;
}
.error:empty {
  display: none;
}
dialog {
  max-width: 760px;
  width: calc(100% - 28px);
  max-height: 90dvh;
  border: 1px solid #b8cec4;
  padding: 25px;
  color: #172f2c;
}
dialog::backdrop {
  background: #04242180;
}
.dialoghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialoghead h2 {
  margin: 0;
}
.line-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 12px;
}
#notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 500px;
  background: #172f2c;
  color: #fff;
  padding: 15px 20px;
  border-radius: 5px;
  z-index: 999;
}
#notice:empty {
  display: none;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 1000;
  background: white;
  padding: 10px;
}
.auth-pending #sidebar,
.auth-pending #header {
  display: none;
}
.auth-pending main {
  margin: 0;
  padding: 0;
  max-width: none;
}
.auth-pending .skip {
  display: none;
}
.nk-auth-note {
  font-size: 13px;
}
.nk-auth-password {
  position: relative;
}
.nk-auth-password input {
  padding-right: 70px;
}
.nk-auth-eye {
  position: absolute;
  right: 5px;
  top: 3px;
  border: 0;
  background: transparent !important;
  min-height: 36px;
  padding: 6px;
  color: #075b54;
}
.nk-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.nk-auth-link {
  background: none;
  border: 0;
  padding: 7px 0;
  color: #076e62;
  font-size: 13px;
}
.nk-auth-primary {
  min-height: 48px;
}
.nk-auth-fields {
  gap: 14px;
}
.nk-auth-error {
  color: #b32437;
}
body.auth-pending {
  background: #f3f8fc;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bb8a2e;
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #account span {
    display: none;
  }
  #sidebar {
    width: 190px;
  }
  main,
  #header {
    margin-left: 190px;
  }
}
@media (max-width: 700px) {
  #sidebar {
    position: static;
    width: 100%;
    padding: 14px 16px;
  }
  .brand {
    font-size: 22px;
  }
  .tagline,
  .sidefoot {
    display: none;
  }
  #nav {
    display: flex;
    overflow-x: auto;
    margin-top: 12px;
  }
  #nav a {
    white-space: nowrap;
    padding: 7px 11px;
    font-size: 12px;
  }
  #header {
    margin: 0;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  #header label {
    flex: 1;
  }
  #account {
    gap: 8px;
  }
  #account button {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 34px;
  }
  main {
    margin: 0;
    padding: 16px;
  }
  .hero {
    min-height: 140px;
    padding: 22px;
  }
  h1 {
    font-size: 30px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 19px;
  }
  .sectionbar {
    flex-wrap: wrap;
  }
  .line-row {
    grid-template-columns: 1fr 70px;
  }
  .line-row button {
    grid-column: 1/-1;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  dialog[open] {
    display: block !important;
    position: static;
    width: 100%;
    max-height: none;
    border: 0;
  }
  dialog button {
    display: none;
  }
}
