:root {
  font:
    15px/1.55 system-ui,
    -apple-system,
    sans-serif;
  color: #20342f;
  background: #f4f6f3;
  --green: #14644d;
  --border: #dce3dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 240px;
  background: #122c25;
  color: #ecf3ed;
  padding: 30px 22px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand {
  font-weight: 750;
  letter-spacing: 1px;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  background: #b9df82;
  color: #163227;
  border-radius: 8px;
  padding: 4px 11px;
  font-size: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #789187;
}
aside .eyebrow {
  margin: 35px 0 14px;
}
nav {
  display: grid;
  gap: 3px;
  overflow: auto;
}
nav button {
  text-align: left;
  background: none;
  color: #c4d3ca;
  font-weight: 500;
  padding: 9px 12px;
}
nav button.active,
nav button:hover {
  background: #28473a;
  color: #d9f7af;
}
.aside-note {
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
  color: #bed0c4;
}
.aside-note small {
  font-size: 10px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #d4b35f;
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin-left: 240px;
  padding: 32px 42px;
  max-width: 1600px;
  width: calc(100% - 240px);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 22px;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 3px 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  color: #62736b;
}
a {
  color: var(--green);
  font-size: 13px;
}
button {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  padding: 10px 17px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #eaf0e8;
  color: #274837;
}
.danger {
  background: #f8e8e4;
  color: #a73b29;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  margin: 20px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin: 16px 0 24px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: #485e52;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad5cb;
  border-radius: 6px;
  background: white;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  color: #20342f;
}
select[multiple] {
  min-height: 115px;
}
input[type="checkbox"] {
  width: auto;
  align-self: start;
}
textarea {
  min-height: 80px;
}
small {
  display: block;
  font-weight: 400;
  color: #708077;
  margin-top: 5px;
  font-size: 12px;
}
.session-bar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}
.session-bar {
  font-size: 12px;
  color: #62736b;
}
.notice {
  padding: 12px 16px;
  background: #edf1df;
  border: 1px solid #dbe4c4;
  border-radius: 7px;
  font-size: 12px;
  color: #516038;
  margin: 18px 0 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 9px;
}
.stat strong {
  font-size: 30px;
  display: block;
  font-weight: 600;
}
.stat span {
  font-size: 12px;
  color: #738275;
}
.toolbar,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 15px 0;
}
.toolbar select,
.toolbar input {
  width: auto;
  max-width: 300px;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #77887e;
  background: #f9fbf8;
}
td,
th {
  padding: 15px 18px;
  border-bottom: 1px solid #e7ece5;
  vertical-align: top;
}
td {
  max-width: 380px;
  overflow-wrap: anywhere;
}
td button {
  font-size: 11px;
  padding: 5px 9px;
  margin: 2px;
}
.badge {
  display: inline-block;
  border-radius: 30px;
  padding: 3px 9px;
  background: #edf1e9;
  font-size: 11px;
  white-space: nowrap;
}
.badge.error {
  color: #9c3d2b;
  background: #f8e8e4;
}
.badge.sent {
  color: #176442;
  background: #e5f1de;
}
.badge.pending,
.badge.outdated {
  color: #86601c;
  background: #f8f0d7;
}
.empty {
  text-align: center;
  padding: 48px;
  color: #718176;
}
.empty strong {
  display: block;
  font-size: 18px;
  color: #3c5848;
  margin-bottom: 8px;
}
#message {
  position: fixed;
  right: 28px;
  bottom: 24px;
  max-width: 500px;
  border-radius: 8px;
  background: #193e2f;
  color: #fff;
  padding: 0;
  z-index: 10;
}
#message:not(:empty) {
  padding: 15px 22px;
}
#message.error {
  background: #803624;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  width: min(820px, 95vw);
  max-height: 90vh;
  padding: 25px;
  color: #20342f;
}
dialog::backdrop {
  background: #0a241a80;
}
#form-error {
  color: #a33528;
}
.wide {
  grid-column: 1/-1;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #f4f6f2;
  padding: 14px;
}
#photo-preview {
  max-width: 180px;
  max-height: 180px;
}
.pagination {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  margin: 15px 0;
  font-size: 12px;
}
@media (max-width: 950px) {
  aside {
    width: 185px;
    padding: 24px 15px;
  }
  main {
    margin-left: 185px;
    width: calc(100% - 185px);
    padding: 25px 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    align-items: start;
    gap: 10px;
  }
}
@media (max-width: 650px) {
  body {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 16px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
  }
  aside .eyebrow,
  .aside-note {
    display: none;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 20px 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  header a {
    max-width: 120px;
  }
  .section-heading {
    align-items: start;
  }
  .stats {
    gap: 8px;
  }
}
