:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263d35;
  background: #f6f7f4;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d6ded6;
  border-radius: 7px;
  background: #fff;
  color: #294b3f;
  padding: 11px 16px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #edf2ec;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d6a949;
  outline-offset: 3px;
}
input {
  width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid #d9dfd8;
  border-radius: 6px;
  padding: 11px 12px;
  color: #203e32;
}
input:focus {
  outline: 2px solid #83a995;
  outline-offset: 1px;
}
p {
  color: #778078;
  line-height: 1.65;
}
small {
  color: #7a857b;
  line-height: 1.6;
}
aside {
  position: fixed;
  width: 235px;
  height: 100vh;
  background: #eef1ea;
  border-right: 1px solid #dfe4db;
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  color: #204b3c;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.3px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brandmark {
  display: inline-flex;
  background: #204e3d;
  color: #fff;
  width: 31px;
  height: 35px;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.branddot {
  margin-left: -9px;
  color: #bd9240;
}
.workspace {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8b9588;
  margin: 49px 12px 18px;
}
.nav {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #748071;
  font-weight: 500;
  padding: 14px;
  margin: 5px 0;
}
.nav.active {
  background: #dfe7da;
  color: #25503d;
  font-weight: 650;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: #4f6856;
}
.sidebar-footer small {
  display: block;
  margin: 8px 0 0 13px;
  font-size: 10px;
}
.status-dot,
.amber-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a8667;
  margin-right: 5px;
}
.amber-dot {
  background: #c69b43;
  margin-left: 5px;
}
main {
  margin-left: 235px;
}
header {
  height: 83px;
  border-bottom: 1px solid #e4e7e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 46px;
  color: #869084;
  font-size: 10px;
  letter-spacing: 1px;
}
.slash {
  margin: 0 15px;
  color: #b3b9ad;
}
.device {
  border: 1px solid #e0e5db;
  padding: 8px 12px;
  border-radius: 20px;
  font-family: monospace;
  letter-spacing: 0;
}
.page {
  max-width: 1450px;
  padding: 43px 46px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 9px;
  color: #8c997f;
  letter-spacing: 2px;
  font-weight: 600;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: -1.5px;
  margin: 12px 0 7px;
}
.page-heading p {
  margin: 0;
  font-size: 13px;
}
.primary {
  background: #214f3e;
  border-color: #214f3e;
  color: white;
}
.primary:hover {
  background: #31674f;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stats article {
  background: #fff;
  border: 1px solid #e1e5dc;
  border-radius: 9px;
  padding: 23px 25px;
}
.stats article > span {
  font-size: 12px;
  color: #7b877c;
}
.stats strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 12px 0 5px;
}
.stats small {
  font-size: 10px;
}
.sync-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #dce4d5;
  background: #edf2e8;
  border-radius: 8px;
  padding: 19px 21px;
  margin: 24px 0 39px;
}
.sync-symbol {
  font-size: 27px;
  color: #6d8d62;
}
.sync-strip b {
  font-size: 12px;
  font-weight: 600;
}
.sync-strip p {
  margin: 4px 0 0;
  font-size: 11px;
}
.sync-strip button {
  margin-left: auto;
  white-space: nowrap;
  background: transparent;
  font-size: 11px;
}
.sync-strip button span {
  margin-left: 15px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 20px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
.list-heading p {
  font-size: 11px;
  margin: 0;
}
.pill {
  font:
    10px ui-sans-serif,
    sans-serif;
  background: #e8ece3;
  color: #71816b;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 6px;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e5db;
  border-radius: 6px;
  padding-left: 10px;
  width: 290px;
  color: #83917d;
}
.search input {
  border: 0;
  background: transparent;
  font-size: 11px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.item-card {
  background: white;
  border: 1px solid #e0e5db;
  border-radius: 9px;
  overflow: hidden;
}
.card-top {
  padding: 21px 21px 15px;
}
.item-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.item-icon {
  background: #f0f1e9;
  border: 1px solid #e7e8db;
  padding: 7px 10px;
  border-radius: 7px;
  color: #8c9472;
  font-size: 18px;
}
.stock-badge {
  font-size: 9px;
  color: #64815d;
  background: #eff5e9;
  padding: 5px 7px;
  border-radius: 4px;
}
.stock-badge.low {
  color: #a0823c;
  background: #faf4e4;
}
.card-top h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.location {
  color: #92998d;
  font-size: 10px;
  min-height: 16px;
}
.card-barcode {
  margin: 0 20px 13px;
  padding: 9px 15px 1px;
  border: 1px solid #edf0e8;
  border-radius: 5px;
  background: #fff;
}
.card-barcode svg {
  display: block;
  width: 100%;
  height: 83px;
}
.card-bottom {
  display: flex;
  align-items: center;
  border-top: 1px solid #edf0e8;
  padding: 12px 18px;
  gap: 8px;
  font-size: 10px;
  color: #8a9583;
}
.card-bottom strong {
  color: #324b39;
  font-size: 14px;
  margin-right: 3px;
}
.card-bottom button {
  font-size: 10px;
  border: 0;
  padding: 6px;
  background: transparent;
}
.card-bottom button:first-of-type {
  margin-left: auto;
}
.empty {
  text-align: center;
  border: 1px dashed #cfd8c7;
  border-radius: 10px;
  padding: 48px;
  background: #f1f4ed;
}
.empty > div {
  font-size: 40px;
  color: #72916a;
}
.empty h2 {
  margin-top: 14px;
}
.empty p {
  font-size: 12px;
}
.empty button {
  margin-top: 8px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  font-size: 9px;
  color: #9aa38f;
}
.panel {
  padding: 27px;
  background: white;
  border: 1px solid #e0e5db;
  border-radius: 9px;
  margin-bottom: 20px;
  max-width: 800px;
}
.panel p {
  font-size: 12px;
}
.settings label,
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
label input {
  margin-top: 7px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings label {
  margin: 18px 0;
}
.settings small {
  display: block;
  font-size: 11px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.event-list {
  display: grid;
  gap: 10px;
}
.event {
  border: 1px solid #e0e5db;
  background: #fff;
  border-radius: 7px;
  padding: 18px;
  overflow-wrap: anywhere;
}
.event summary {
  cursor: pointer;
  line-height: 1.7;
}
.event pre {
  overflow: auto;
  font-size: 11px;
  background: #f4f6f1;
  padding: 15px;
}
.event small {
  display: block;
  font-family: monospace;
}
.event-action {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  color: #4e765d;
  margin-right: 10px;
}
dialog {
  border: 1px solid #d8dfd3;
  border-radius: 13px;
  padding: 28px;
  width: min(480px, calc(100% - 30px));
  color: #263d35;
  box-shadow: 0 20px 80px #142c3030;
}
dialog::backdrop {
  background: #17342c55;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dialog-heading button {
  border: 0;
  background: transparent;
  padding: 5px;
}
dialog label {
  margin: 16px 0;
}
.barcode-input {
  display: flex;
  gap: 8px;
  align-items: end;
}
.barcode-input button {
  white-space: nowrap;
  padding: 11px;
  font-size: 11px;
}
.barcode-preview {
  padding: 10px 30px;
  border: 1px solid #e8eae4;
  border-radius: 7px;
}
.barcode-preview svg {
  width: 100%;
  height: 100px;
}
dialog small {
  font-size: 10px;
}
.danger {
  background: #963e32;
  color: white;
}
.danger:hover {
  background: #7e3229;
}
#message {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff7df;
  color: #71562b;
  border-bottom: 1px solid #eadbb6;
  padding: 14px 46px;
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .item-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  aside {
    width: 195px;
    padding: 30px 16px;
  }
  main {
    margin-left: 195px;
  }
  .page {
    padding: 32px 25px;
  }
  header {
    padding: 0 25px;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats article {
    padding: 18px;
  }
  .stats small {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid #dfe4db;
  }
  .brand {
    font-size: 23px;
  }
  .brandmark {
    height: 29px;
    width: 27px;
  }
  .workspace,
  .sidebar-footer {
    display: none;
  }
  nav {
    display: flex;
    gap: 7px;
    margin-top: 15px;
  }
  .nav {
    font-size: 11px;
    margin: 0;
    padding: 10px;
    gap: 5px;
    justify-content: center;
  }
  main {
    margin: 0;
  }
  header {
    height: 52px;
    padding: 0 20px;
    font-size: 9px;
  }
  .device {
    font-size: 9px;
    padding: 6px;
  }
  .page {
    padding: 28px 20px;
  }
  h1 {
    font-size: 34px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .page-heading {
    gap: 10px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > button {
    font-size: 11px;
    padding: 10px;
  }
  .stats {
    gap: 8px;
  }
  .stats article {
    padding: 14px 10px;
  }
  .stats article > span {
    font-size: 10px;
  }
  .stats strong {
    font-size: 28px;
  }
  .stats small {
    font-size: 9px;
  }
  .sync-strip {
    padding: 15px 12px;
    gap: 10px;
    margin-bottom: 28px;
  }
  .sync-symbol {
    display: none;
  }
  .sync-strip b {
    font-size: 11px;
  }
  .sync-strip p {
    font-size: 10px;
  }
  .sync-strip button {
    padding: 9px;
    font-size: 10px;
  }
  .sync-strip button span {
    display: none;
  }
  .list-heading {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .item-grid {
    gap: 12px;
  }
  .card-top {
    padding: 15px;
  }
  .card-top h3 {
    font-size: 12px;
  }
  .card-barcode {
    margin: 0 10px 10px;
    padding: 4px;
  }
  .card-bottom {
    flex-wrap: wrap;
    padding: 8px;
    font-size: 9px;
    gap: 2px;
  }
  .card-bottom button {
    font-size: 9px;
  }
  .stock-badge {
    font-size: 8px;
  }
  .item-icon {
    font-size: 15px;
    padding: 5px;
  }
  .panel {
    padding: 20px;
  }
  .form-row {
    gap: 10px;
  }
  footer {
    font-size: 8px;
  }
  #message {
    padding: 12px 20px;
  }
}
@media (max-width: 360px) {
  .item-grid {
    grid-template-columns: 1fr;
  }
  .stats small {
    display: none;
  }
}
@media print {
  body > * {
    display: none !important;
  }
}
