@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600&display=swap");
:root {
  --ink: #152019;
  --muted: #718078;
  --line: #e4e8e4;
  --canvas: #f6f7f3;
  --card: #fff;
  --green: #196c46;
  --mint: #e6f3eb;
  --amber: #b77919;
  --amberbg: #fff5df;
  --red: #bd4d45;
  --redbg: #fcecea;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #10261c;
  color: #eff5f0;
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px 34px;
}
.mark {
  display: grid;
  place-items: center;
  background: #91d3aa;
  color: #10261c;
  font-family: "Playfair Display";
  font-size: 22px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
nav {
  display: grid;
  gap: 5px;
}
button {
  font: inherit;
  border: 0;
  cursor: pointer;
}
nav button,
.bottom button {
  background: transparent;
  color: #b8c9bc;
  text-align: left;
  padding: 11px 12px;
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
}
nav button:hover,
nav .active {
  color: white;
  background: #264936;
}
nav b {
  font-family: "DM Mono";
  font-size: 10px;
  background: #355b45;
  border-radius: 9px;
  padding: 2px 6px;
}
.warn {
  background: #805b18;
  color: #ffe8ad;
}
.bottom {
  margin-top: auto;
}
.user {
  border-top: 1px solid #31513d;
  margin: 14px 8px 0;
  padding-top: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.user > span {
  background: #d4ad76;
  color: #3e2514;
  padding: 8px 6px;
  border-radius: 50%;
  font-weight: bold;
}
.user strong,
.user small {
  display: block;
}
.user small {
  color: #a3b5a7;
  font-size: 11px;
  margin-top: 3px;
}
main {
  margin-left: 240px;
  padding: 36px 42px;
  max-width: 1600px;
}
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.eyebrow {
  font: 11px "DM Mono";
  letter-spacing: 0.08em;
  color: var(--green);
  margin: 0 0 9px;
}
h1 {
  font: 600 31px "Playfair Display";
  margin: 0;
}
.sub {
  color: var(--muted);
  margin: 8px 0 0;
}
.head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.live {
  font-size: 12px;
  color: var(--green);
  margin-right: 5px;
}
.live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #35a36e;
  border-radius: 50%;
  margin-right: 6px;
}
.primary,
.secondary {
  padding: 10px 15px;
  border-radius: 7px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  border: 1px solid #ccd6cf;
  background: white;
  color: var(--ink);
}
section {
  padding-top: 27px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.metric,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric {
  padding: 17px;
}
.metric small,
.label {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font: 600 29px "DM Mono";
  margin-top: 11px;
}
.metric .trend {
  font-size: 11px;
  color: var(--green);
}
.metric.alert strong {
  color: var(--red);
}
.grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  margin-top: 19px;
}
.panel {
  padding: 20px;
}
.panel h2 {
  font-size: 15px;
  margin: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.link {
  background: none;
  color: var(--green);
  font-weight: 600;
  font-size: 12px;
}
.orders {
  width: 100%;
  border-collapse: collapse;
}
.orders th {
  text-align: left;
  color: var(--muted);
  font: 11px "DM Mono";
  letter-spacing: 0.03em;
  padding: 0 0 10px;
}
.orders td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.orderid {
  font-family: "DM Mono";
  font-size: 12px;
}
.customer {
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.ready,
.printed,
.exported {
  background: var(--mint);
  color: var(--green);
}
.held,
.failed {
  background: var(--redbg);
  color: var(--red);
}
.queued {
  background: var(--amberbg);
  color: var(--amber);
}
.activity {
  display: grid;
  gap: 0;
}
.event {
  position: relative;
  padding: 0 0 18px 24px;
  border-left: 1px solid #d4e5db;
  margin-left: 6px;
}
.event:last-child {
  border-left: 0;
}
.event:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 3px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
}
.event.warn:before {
  background: var(--amber);
}
.event.error:before {
  background: var(--red);
}
.event strong {
  display: block;
  font-size: 13px;
}
.event small {
  color: var(--muted);
  font-size: 11px;
}
.health {
  display: grid;
  gap: 12px;
}
.health div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  background: #f7faf7;
  border-radius: 6px;
}
.status {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 17px;
}
.filters input,
.filters select {
  border: 1px solid #d5ddd7;
  background: white;
  border-radius: 7px;
  padding: 10px;
  width: 220px;
  color: var(--ink);
}
.wide {
  grid-column: 1/-1;
}
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.settings {
  max-width: 760px;
  display: grid;
  gap: 15px;
}
.setting {
  padding: 19px;
}
.setting h3 {
  margin: 0 0 7px;
  font-size: 15px;
}
.setting p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 13px;
}
.setting input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
}
.setting .row {
  display: flex;
  gap: 10px;
}
.setting .row input {
  flex: 1;
}
#toast {
  position: fixed;
  right: 30px;
  bottom: 24px;
  background: #10261c;
  color: white;
  padding: 12px 16px;
  border-radius: 7px;
  transform: translateY(100px);
  transition: 0.25s;
  box-shadow: 0 5px 25px #0003;
}
#toast.show {
  transform: none;
}
@media (max-width: 900px) {
  aside {
    width: 170px;
    padding: 22px 8px;
  }
  .brand span:last-child {
    font-size: 16px;
  }
  .brand {
    padding-left: 8px;
  }
  .bottom {
    display: none;
  }
  main {
    margin-left: 170px;
    padding: 22px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  header {
    display: block;
  }
  .head-actions {
    margin-top: 18px;
  }
}
