* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  --ink: #182a30;
  --muted: #758087;
  --line: #e5e9e8;
  --green: #147b61;
  --light-green: #eaf5ef;
  --paper: #fff;
  --canvas: #f5f7f6;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8fd5b9;
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #88cdb5;
  outline-offset: 1px;
}
input::placeholder,
textarea::placeholder {
  color: #8c969b;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: var(--muted);
}
.primary {
  background: var(--green);
  color: #fff;
  padding: 11px 17px;
  font-weight: 600;
}
.primary:hover {
  background: #10634e;
}
.secondary {
  background: #fff;
  border: 1px solid #dce3df;
  padding: 10px 15px;
  color: var(--ink);
}
.secondary:hover {
  background: #f2f6f3;
}
.small {
  padding: 7px 11px;
  font-size: 12px;
}
.text-button {
  background: transparent;
  color: var(--muted);
  padding: 5px 7px;
}
.text-button:hover {
  background: #edf1ee;
  color: var(--ink);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 5px;
  background: #eef1ef;
  padding: 4px 8px;
  font-size: 11px;
  color: #64716b;
}
.badge.green {
  background: var(--light-green);
  color: #187650;
}
.badge.amber {
  background: #fff4dc;
  color: #986d1b;
}
.badge.red {
  background: #fbece9;
  color: #ae4339;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 188px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.6px;
}
.brand-mark {
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}
.brand-dot {
  font-size: 9px;
  color: #21a579;
  margin-top: 4px;
}
.nav-caption {
  margin-top: 49px;
  margin-bottom: 14px;
  padding-left: 12px;
  font-size: 9px;
}
.nav-current {
  background: #edf6f0;
  padding: 11px 12px;
  color: var(--green);
  font-weight: 600;
  border-radius: 7px;
  display: flex;
  gap: 13px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #65736c;
  padding: 16px 6px 4px;
  border-top: 1px solid var(--line);
}
.sidebar-bottom p {
  color: #98a09b;
  margin-top: 9px;
  line-height: 1.6;
}
.connection-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #35a679;
  border-radius: 50%;
  margin-right: 5px;
}
.main-area {
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background: #fff;
  font-size: 12px;
}
.slash {
  color: #b4bdb8;
  margin: 0 12px;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 35px 32px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
}
.page-heading h1 {
  margin: 6px 0 7px;
}
.page-heading p {
  font-size: 12px;
}
.notice {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #d4e9db;
  border-radius: 8px;
  background: #edf8f0;
  color: #226647;
}
.notice.error {
  background: #fff0ec;
  border-color: #f0d4cb;
  color: #a23d31;
}
.orders-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 560px;
}
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}
.filters {
  display: flex;
  gap: 4px;
}
.filters button {
  background: transparent;
  color: #78857c;
  padding: 8px 11px;
  font-size: 12px;
}
.filters .active {
  background: #edf4ef;
  color: #216b4e;
  font-weight: 600;
}
.list-toolbar form {
  display: flex;
  gap: 6px;
}
.list-toolbar input {
  font-size: 12px;
  padding: 8px 10px;
  width: 175px;
}
.split {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}
.order-list-pane {
  border-right: 1px solid var(--line);
}
.list-caption {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px 10px;
  font-size: 9px;
  color: #8a9690;
  letter-spacing: 1.2px;
}
.order-card {
  width: 100%;
  text-align: left;
  border-radius: 0;
  background: #fff;
  padding: 17px 20px;
  border-bottom: 1px solid #f0f3f1;
  border-left: 3px solid transparent;
  display: block;
}
.order-card:hover {
  background: #fafcfb;
}
.order-card.selected {
  background: #f1f7f3;
  border-left-color: var(--green);
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.order-number {
  font-weight: 650;
  font-size: 14px;
}
.order-card .row + .row {
  margin-top: 10px;
}
.order-card .muted {
  font-size: 11px;
}
.order-money {
  font-size: 12px;
  font-weight: 550;
}
.progress-track {
  height: 3px;
  margin-top: 13px;
  border-radius: 5px;
  background: #e8eeea;
  overflow: hidden;
}
.progress-track progress {
  width: 100%;
  height: 3px;
  display: block;
  accent-color: var(--green);
  border: 0;
}
.progress-track progress::-webkit-progress-bar {
  background: #e8eeea;
}
.progress-track progress::-webkit-progress-value {
  background: var(--green);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  font-size: 11px;
  color: var(--muted);
}
.detail-pane {
  padding: 25px 26px;
  min-width: 0;
}
.empty {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
  padding: 30px;
}
.empty-icon {
  font-size: 40px;
  color: #b4c8bd;
  background: #f1f6f3;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.empty h2 {
  color: #4f6258;
  font-size: 18px;
}
.empty p {
  font-size: 12px;
  max-width: 270px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.detail-heading .muted {
  font-size: 11px;
  margin-top: 6px;
}
.detail-heading button {
  font-size: 11px;
}
.summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.shipment-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.shipment-tabs button {
  font-size: 12px;
  background: #f6f8f6;
  padding: 7px 11px;
  color: #6f7c72;
}
.shipment-tabs .active {
  background: #eaf4ed;
  color: #166c4c;
  box-shadow: inset 0 0 0 1px #c9e2d2;
}
.packing-header {
  padding: 14px 0 17px;
  border-bottom: 1px solid var(--line);
}
.packing-header .muted {
  font-size: 11px;
  margin-top: 4px;
}
.packing-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.unit {
  padding: 15px 0;
  border-bottom: 1px solid #edf1ee;
  display: flex;
  align-items: center;
  gap: 12px;
}
.unit-icon {
  width: 33px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #f2f5f3;
  border: 1px solid #e5ece7;
  border-radius: 6px;
  color: #7c9182;
  flex-shrink: 0;
}
.unit.picked .unit-icon {
  background: #edf7f0;
  color: #248257;
  border-color: #dcece1;
}
.unit-copy {
  flex: 1;
  min-width: 0;
}
.unit-name {
  font-weight: 550;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.unit-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.unit .text-button {
  font-size: 11px;
}
.unit-money {
  font-size: 12px;
  white-space: nowrap;
}
.scanner {
  background: #f7faf8;
  border: 1px solid #dfeae3;
  border-radius: 9px;
  padding: 17px;
  margin-top: 20px;
}
.scanner h3 {
  font-size: 13px;
}
.scanner p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 13px;
}
.scanner select,
.scanner textarea {
  width: 100%;
  font-size: 12px;
  margin-bottom: 9px;
}
.scanner textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, monospace;
  min-height: 70px;
}
.scanner-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.scanner-bottom span {
  font-size: 10px;
  color: var(--muted);
}
.section-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8a9690;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}
.receipt {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 13px;
  margin-top: 7px;
  font-size: 11px;
}
.receipt p {
  margin-top: 7px;
  color: #9b6435;
  overflow-wrap: anywhere;
}
.info-box {
  font-size: 11px;
  background: #f5f7f5;
  border-radius: 7px;
  padding: 12px 14px;
  margin: 12px 0;
  color: #65756a;
  overflow-wrap: anywhere;
}
.info-box.warning {
  background: #fff7e7;
  color: #8a6b2d;
}
.history {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.history summary {
  cursor: pointer;
  font-weight: 550;
}
.history-entry {
  padding: 8px 0;
  border-bottom: 1px solid #f1f4f2;
  overflow-wrap: anywhere;
}
.footer-note {
  font-size: 10px;
  color: #91a096;
  margin-top: 17px;
}
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 410px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 35px;
  background: white;
  box-shadow: 0 10px 50px #193a2410;
}
.login-card .brand-mark {
  margin-bottom: 25px;
}
.login-card h1 {
  font-size: 25px;
  margin: 8px 0;
}
.login-card p {
  font-size: 12px;
  margin-bottom: 22px;
}
.login-card label {
  display: block;
  font-size: 12px;
  margin: 15px 0 7px;
}
.login-card input,
.login-card button {
  width: 100%;
}
.login-card button {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}
.login-card .error-text {
  color: #a23d31;
  font-size: 12px;
  margin: 12px 0 0;
}
@media (min-width: 1600px) {
  .split {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 155px;
    padding: 25px 12px;
  }
  .brand {
    font-size: 19px;
  }
  .topbar {
    padding: 0 20px;
  }
  .content {
    padding: 25px 20px;
  }
  .split {
    grid-template-columns: 255px minmax(0, 1fr);
  }
  .detail-pane {
    padding: 20px 18px;
  }
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .list-toolbar form {
    width: 100%;
  }
  .list-toolbar input {
    flex: 1;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters button {
    padding: 7px 9px;
  }
  .page-heading .secondary {
    font-size: 11px;
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .topbar {
    height: auto;
    min-height: 65px;
    padding: 13px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .top-actions {
    gap: 8px;
    font-size: 11px;
  }
  .content {
    padding: 23px 12px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    max-width: 240px;
  }
  .page-heading .secondary {
    padding: 8px;
    font-size: 0;
  }
  .page-heading .secondary::first-letter {
    font-size: 18px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .order-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #order-list {
    max-height: 300px;
    overflow: auto;
  }
  .detail-pane {
    padding: 23px 17px;
  }
  .detail-heading {
    flex-wrap: wrap;
  }
  .unit {
    gap: 8px;
  }
  .unit-money {
    font-size: 11px;
  }
  .scanner-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .scanner-bottom button {
    width: 100%;
  }
  .list-toolbar {
    padding: 14px;
  }
  .empty {
    min-height: 230px;
  }
  .pagination {
    padding: 8px;
  }
  .footer-note {
    font-size: 10px;
  }
}
