:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #20372f;
  background: #f5f6f2;
  font-synthesis: none;
  --green: #1e5d42;
  --muted: #75817a;
  --line: #e2e7df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  background: #142c25;
  color: #dbe7dc;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -2px;
  text-decoration: none;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}
.brand span {
  font-size: 10px;
  letter-spacing: 2px;
  border-left: 1px solid #567064;
  padding-left: 14px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #8ea79a;
  margin: 48px 14px 16px;
}
nav {
  display: grid;
  gap: 8px;
}
.nav {
  border: 0;
  text-align: left;
  padding: 14px 13px;
  border-radius: 8px;
  background: transparent;
  color: #b4c7bb;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav span {
  font-size: 18px;
}
.nav b {
  font-size: 10px;
  margin-left: auto;
  background: #4b6556;
  padding: 3px 5px;
  border-radius: 4px;
}
.nav.active {
  background: #2d493a;
  color: #e5f2ca;
}
.nav:hover {
  background: #294336;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #a8bfaf;
  padding: 28px 8px 0;
}
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #b7d887;
  border-radius: 50%;
  margin-right: 7px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #365044;
  margin-top: 20px;
  padding-top: 22px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c4d9b1;
  color: #20372f;
  font-weight: 700;
}
.profile strong {
  font-size: 12px;
  color: #f0f4ea;
}
.profile small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
main {
  margin-left: 248px;
  flex: 1;
  min-width: 0;
}
.demo-strip {
  padding: 10px 40px;
  background: #edf0dd;
  color: #656b42;
  font-size: 10px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-strip span {
  font-weight: 750;
  letter-spacing: 0.8px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: #fafbf7;
}
.slash {
  padding: 0 10px;
  color: #bac3ba;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 38px 40px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--green);
  font-weight: 700;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 10px 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
}
.btn {
  border: 1px solid #ced9cc;
  border-radius: 7px;
  background: white;
  color: #2a4938;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn:hover {
  filter: brightness(0.96);
}
.btn.small {
  padding: 8px 11px;
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.stat-label {
  font-size: 12px;
  color: #64766a;
}
.stat strong {
  font-size: 35px;
  letter-spacing: -1.6px;
  display: block;
  font-weight: 600;
  margin: 14px 0 8px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.stat.warning {
  background: #faf2e6;
  border-color: #eadbbf;
}
.stat.warning strong {
  color: #a06422;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(250px, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0e9;
}
.panel-head p {
  margin-bottom: 0;
  font-size: 11px;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  color: #899287;
  letter-spacing: 0.5px;
  background: #fafbf8;
  font-weight: 550;
  padding: 13px 20px;
}
td {
  padding: 18px 20px;
  border-top: 1px solid #edf0e9;
}
td strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.id {
  font-size: 10px;
  color: var(--green);
  font-weight: 650;
  margin-bottom: 6px;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  padding: 6px 8px;
  background: #edf0eb;
  color: #75816e;
}
.badge.green {
  background: #e8f0e6;
  color: #427047;
}
.badge.amber {
  background: #faf0de;
  color: #9d6a29;
}
.badge.red {
  background: #fae9e3;
  color: #aa543b;
}
.badge.blue {
  background: #eaf0f3;
  color: #4b7184;
}
.progress-track {
  height: 5px;
  background: #e9eee5;
  border-radius: 5px;
  overflow: hidden;
  width: 90px;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: #649b62;
}
.mini-label {
  font-size: 10px;
  color: #71806e;
}
.alert-box {
  margin: 18px;
  background: #fbf3e6;
  border: 1px solid #edddbf;
  border-radius: 8px;
  padding: 15px;
}
.alert-box strong {
  display: block;
  font-size: 12px;
  color: #906224;
}
.alert-box p {
  font-size: 11px;
  color: #987e56;
}
.activity-item {
  padding: 16px 20px;
  border-bottom: 1px solid #edf0e9;
  display: flex;
  gap: 12px;
}
.activity-dot {
  width: 8px;
  height: 8px;
  background: #8fac7d;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.activity-item strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  line-height: 1.5;
}
.activity-item small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.summary {
  padding: 22px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0e9;
}
.summary-line:last-child {
  border: 0;
}
.section-footer {
  padding: 15px 20px;
  background: #fafbf7;
  font-size: 10px;
  color: #899383;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
  min-width: 200px;
}
.field,
input,
select,
textarea {
  border: 1px solid #d9e0d4;
  border-radius: 7px;
  padding: 11px;
  background: #fff;
  color: #283d31;
  font-size: 12px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #6c9e72;
  outline-offset: 1px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #5d705f;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(780px, 94vw);
  max-height: 90vh;
  box-shadow: 0 25px 100px #142c2540;
}
dialog::backdrop {
  background: #0c231b80;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.close {
  border: 0;
  background: #eef1e9;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  font-size: 20px;
  color: #647660;
}
.dialog-body {
  padding: 25px 28px;
}
.dialog-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px 28px;
  background: #f7f9f3;
  border-top: 1px solid var(--line);
}
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
}
.check-row select {
  width: 145px;
}
.check-group {
  margin: 22px 0;
}
.notice {
  background: #faf1df;
  border: 1px solid #ead9b4;
  border-radius: 7px;
  padding: 12px;
  font-size: 11px;
  color: #8b652b;
  line-height: 1.6;
  margin: 15px 0;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.error {
  color: #a03c2e;
  font-size: 12px;
  padding: 12px 0;
}
.back {
  margin-bottom: 20px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px;
  font-size: 12px;
}
.detail-meta span {
  color: var(--muted);
}
.detail-meta b {
  color: #334d3c;
}
.row-link {
  cursor: pointer;
}
.row-link:hover {
  background: #f8faf4;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #1d4933;
  color: white;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 35px #0002;
  display: none;
  z-index: 10;
}
.mobile-title {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
  .stats {
    gap: 22px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 30px 12px;
  }
  main {
    margin-left: 210px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 20px 24px;
  }
  .demo-strip {
    padding: 10px 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  td,
  th {
    padding: 15px;
  }
  .page-head {
    align-items: flex-start;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 3;
    padding: 12px 16px;
  }
  .shell {
    display: block;
  }
  .brand {
    font-size: 23px;
    padding: 0;
  }
  .brand span {
    font-size: 8px;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    overflow: auto;
  }
  .nav {
    font-size: 10px;
    padding: 9px;
    white-space: nowrap;
  }
  .nav span,
  .nav b {
    display: none;
  }
  main {
    margin: 0;
  }
  .demo-strip {
    font-size: 9px;
    padding: 9px 16px;
    gap: 5px;
  }
  .topbar {
    padding: 15px 16px;
    font-size: 10px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-head {
    flex-wrap: wrap;
    margin-bottom: 22px;
    gap: 12px;
  }
  h1 {
    font-size: 26px;
  }
  .page-head p {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 30px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel-head {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .dialog-head,
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 16px;
    flex-wrap: wrap;
  }
  .check-row {
    font-size: 11px;
  }
  .check-row select {
    width: 125px;
  }
  .btn {
    min-height: 42px;
  }
  .toolbar select {
    width: 100%;
  }
}

.grid > * {
  min-width: 0;
}
progress.progress-track {
  display: block;
  border: 0;
  appearance: none;
}
progress::-webkit-progress-bar {
  background: #e9eee5;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #649b62;
  border-radius: 5px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .nav {
    white-space: normal;
  }
}
