:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  color: #243733;
  background: #f4f6f3;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d4ddd7;
  background: white;
  color: #29493e;
  border-radius: 8px;
  padding: 9px 14px;
}
button:hover {
  background: #e7f0ea;
}
button.primary {
  background: #22614c;
  color: white;
  border-color: #22614c;
}
button.danger {
  color: #af4c36;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6ded9;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
  color: #243733;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #64746a;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
.muted {
  color: #7b8980;
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #173e33;
  color: #dce8df;
  padding: 30px 19px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 10px 7px;
}
.sidebar small {
  display: block;
  color: #9fbeb0;
  margin: 0 10px 36px;
  letter-spacing: 2px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  background: none;
  border: 0;
  color: #c3d6cb;
  padding: 13px 15px;
}
.nav button.active {
  background: #31594b;
  color: white;
}
.account {
  position: absolute;
  bottom: 25px;
  left: 28px;
  right: 20px;
  color: #abc6b8;
  line-height: 2;
}
.account button {
  font-size: 12px;
  background: transparent;
  color: inherit;
  padding: 3px 8px;
}
.main {
  padding: 30px 38px;
  min-width: 0;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  gap: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7a9384;
  margin-bottom: 10px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #e9f1eb;
  color: #43705a;
  font-size: 12px;
}
.badge.warn {
  background: #fff0df;
  color: #ac6b27;
}
.badge.red {
  background: #fcece7;
  color: #b75843;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.card,
.panel {
  background: white;
  border: 1px solid #e0e7e1;
  border-radius: 12px;
  padding: 22px;
}
.card strong {
  font-size: 31px;
  display: block;
  margin: 12px 0 5px;
  font-weight: 650;
}
.panel {
  margin-bottom: 20px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 12px;
  color: #7e8e83;
  background: #f8faf7;
  font-weight: 500;
}
th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0eb;
}
td small {
  display: block;
  margin-top: 6px;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: #24664f;
  font-weight: 600;
}
.progress {
  width: 130px;
  height: 5px;
  background: #e9eee9;
  border-radius: 5px;
  margin-top: 7px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: #5b8b70;
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 15px;
  overflow: auto;
}
.column {
  background: #eaf0e9;
  padding: 14px;
  border-radius: 10px;
}
.ticket {
  background: white;
  border: 1px solid #dde4dc;
  border-radius: 9px;
  padding: 16px;
  margin-top: 12px;
}
.ticket p {
  line-height: 1.7;
  margin: 10px 0;
}
.tabs {
  display: flex;
  gap: 5px;
  margin: 22px 0;
  overflow: auto;
  border-bottom: 1px solid #dce4dc;
  padding-bottom: 10px;
}
.tabs button {
  white-space: nowrap;
}
.tabs .active {
  background: #22614c;
  color: white;
}
.stage {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #edf0eb;
}
.dot {
  border-radius: 50%;
  height: 27px;
  width: 27px;
  background: #eef3ed;
  text-align: center;
  line-height: 27px;
  color: #698471;
}
.stage.done .dot {
  background: #27664e;
  color: white;
}
.stage p {
  margin: 8px 0 0;
}
.empty {
  text-align: center;
  color: #839087;
  padding: 45px;
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.login {
  max-width: 420px;
  margin: 12vh auto;
  background: white;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid #dce5dc;
}
.login form {
  display: grid;
  gap: 18px;
}
.login .brand {
  color: #24583f;
  margin: 0 0 12px;
}
.banner {
  background: #f8f0df;
  border: 1px solid #eadcba;
  padding: 10px 14px;
  border-radius: 7px;
  color: #886c3e;
  margin-bottom: 22px;
  font-size: 12px;
}
dialog {
  width: min(720px, 94vw);
  max-height: 88vh;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 22px 90px #183a3440;
  padding: 26px;
}
dialog::backdrop {
  background: #0d302d70;
}
dialog form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.error {
  color: #b94e3a;
  white-space: pre-wrap;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #254f40;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  display: none;
  z-index: 5;
}
.log {
  border-left: 2px solid #dce8dc;
  padding: 0 0 22px 17px;
  margin-left: 5px;
}
.log pre {
  white-space: pre-wrap;
  font-size: 12px;
  color: #65766a;
}
.listitem {
  padding: 15px 0;
  border-bottom: 1px solid #e7ece6;
}
.checkbox {
  width: auto;
}
.subhead {
  margin: 28px 0 14px;
}
.wrap {
  white-space: normal;
  min-width: 160px;
}
a {
  color: #29694f;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 175px 1fr;
  }
  .main {
    padding: 24px 20px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px;
  }
  .brand {
    font-size: 21px;
  }
  .sidebar small {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
  }
  .nav button {
    white-space: nowrap;
    padding: 9px;
  }
  .account {
    position: static;
    margin-top: 10px;
    font-size: 12px;
  }
  .main {
    padding: 20px 14px;
  }
  .top {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .cards {
    gap: 9px;
  }
  .card {
    padding: 16px;
  }
  .card strong {
    font-size: 26px;
  }
  .panel {
    padding: 16px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters input {
    grid-column: 1/-1;
  }
  dialog form {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .stage {
    grid-template-columns: 28px 1fr;
  }
  .stage button {
    grid-column: 2;
    justify-self: start;
  }
  .login {
    margin: 8vh 16px;
  }
  .board {
    grid-template-columns: repeat(4, 260px);
  }
}
.split {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
}
.panel {
  min-width: 0;
}
progress.progress {
  appearance: none;
  border: 0;
  display: block;
}
progress.progress::-webkit-progress-bar {
  background: #e9eee9;
  border-radius: 5px;
}
progress.progress::-webkit-progress-value {
  background: #5b8b70;
  border-radius: 5px;
}
@media (max-width: 1050px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.banner.formal {
  background: #e6f0ea;
  border-color: #ccddd0;
  color: #335f49;
}
