:root {
  --ink: #243a36;
  --muted: #79837d;
  --green: #175d50;
  --lime: #e8f2c9;
  --bg: #f5f6f2;
  --line: #e3e7df;
  --white: #fff;
  --amber: #946724;
  --red: #ab423b;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b5cd69;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fbfcf9;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 0 12px;
  margin: 0 0 10px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  text-align: left;
  font-size: 13px;
  padding: 12px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #66736c;
}
.nav button.active {
  background: var(--green);
  color: white;
}
.nav button:hover:not(.active) {
  background: #edf0e8;
}
.nav .count {
  margin-left: auto;
  border-radius: 4px;
  padding: 2px 6px;
  background: #e8eddf;
  color: var(--green);
  font-size: 10px;
}
.nav .active .count {
  background: #447b6d;
  color: white;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-note {
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
}
.local-note strong {
  display: block;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #78a854;
  margin-right: 6px;
}
.user-card {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e8ecdf;
  font-size: 11px;
  font-weight: 700;
}
.user-card strong {
  font-size: 12px;
  display: block;
}
.user-card small {
  font-size: 10px;
  color: var(--muted);
}
.user-card button {
  margin-left: auto;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 12px;
  background: #fbfcf9;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  padding-left: 10px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pill {
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
  background: white;
}
.content {
  padding: 34px 38px;
  max-width: 1600px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 9px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.6;
}
.btn {
  padding: 11px 15px;
  border-radius: 7px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.danger {
  color: var(--red);
}
.btn.small {
  padding: 7px 10px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 14px 0 10px;
}
.metric small {
  font-size: 10px;
  color: var(--muted);
}
.metric.featured {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.metric.featured .metric-top,
.metric.featured small {
  color: #c4d9c8;
}
.metric.featured .icon {
  color: #d9edb2;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.grid-2 .panel {
  margin-bottom: 0;
}
.panel-head {
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.panel-body {
  padding: 22px;
}
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}
.flow-step {
  padding: 14px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9faf6;
  text-align: center;
}
.flow-step strong {
  display: block;
  font-size: 25px;
  font-weight: 550;
  margin: 12px 0;
}
.flow-step span {
  font-size: 10px;
  color: var(--muted);
}
.flow-step .icon {
  color: var(--green);
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}
.flow-note {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.attention {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.attention:last-child {
  border: 0;
}
.attention .attention-icon {
  background: #faf0dc;
  color: var(--amber);
  padding: 10px;
  border-radius: 7px;
}
.attention strong {
  font-size: 12px;
  display: block;
}
.attention small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.attention button {
  margin-left: auto;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  background: #fafbf8;
}
th,
td {
  padding: 15px 22px;
  border-bottom: 1px solid #edf0e9;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f0f2ed;
  color: #657167;
  display: inline-block;
}
.badge.New,
.badge.Review {
  background: #fff2d9;
  color: #946724;
}
.badge.Picking,
.badge.Picked {
  background: #e8effa;
  color: #4e6e94;
}
.badge.Packed {
  background: #f0eafa;
  color: #83629c;
}
.badge.Shipped,
.badge.Matched,
.badge.Delivered {
  background: #e8f2e8;
  color: #387650;
}
.badge.Cancelled,
.badge.Rejected,
.badge.Exception {
  background: #faeae6;
  color: #a25342;
}
.market {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.market-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #e3aa55;
}
.market-dot.Walmart {
  background: #6389cf;
}
.market-dot.Temu {
  background: #eb8d65;
}
.toolbar {
  padding: 16px 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
input,
select,
textarea {
  border: 1px solid #dce2d8;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  width: 100%;
  font-size: 12px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b8cf93;
  outline-offset: 1px;
}
.toolbar input {
  max-width: 290px;
}
.toolbar select {
  width: auto;
  min-width: 140px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.form-note {
  border-radius: 7px;
  background: #f2f5eb;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.error {
  padding: 12px 15px;
  background: #fff0eb;
  color: #a33d32;
  border-radius: 7px;
  font-size: 12px;
  white-space: pre-line;
  line-height: 1.6;
  margin: 12px 0;
}
.success {
  padding: 14px;
  background: #eaf2e2;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0;
}
.empty {
  padding: 42px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.list {
  display: grid;
  gap: 12px;
}
.list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.list-item p {
  font-size: 12px;
  line-height: 1.6;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
}
.link {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.activity {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity:last-child {
  border: 0;
}
.activity-icon {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  background: #f2f5eb;
  border-radius: 50%;
  font-size: 11px;
}
.activity p {
  font-size: 12px;
}
.activity small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.icon {
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
}
.login {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: var(--green);
  padding: 60px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-size: 58px;
  max-width: 490px;
  line-height: 1.1;
  letter-spacing: -2px;
}
.login-art p {
  color: #c3d7ce;
  font-size: 16px;
  line-height: 1.8;
  max-width: 420px;
  margin-top: 22px;
}
.login-diagram {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  align-items: center;
}
.login-diagram span {
  border: 1px solid #55897b;
  padding: 20px;
  border-radius: 9px;
  color: #e4f2cd;
  font-size: 12px;
}
.login-form {
  display: grid;
  align-content: center;
  justify-content: center;
  padding: 40px;
}
.login-form-inner {
  width: 360px;
  max-width: 100%;
}
.login-form h1 {
  font-size: 28px;
}
.login-form form {
  margin-top: 30px;
}
.login-form .btn {
  width: 100%;
  margin-top: 5px;
}
.demo-accounts {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.demo-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.demo-buttons .btn {
  font-size: 10px;
  padding: 9px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(790px, 94vw);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 100px #162c3626;
}
dialog::backdrop {
  background: #172e3266;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body {
  padding: 24px;
}
.modal-body .panel {
  border-radius: 7px;
}
.close {
  font-size: 22px;
  padding: 0 7px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #203e34;
  color: white;
  border-radius: 8px;
  padding: 14px 22px;
  box-shadow: 0 5px 20px #0002;
  font-size: 13px;
  z-index: 10;
  display: none;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
.upload-box {
  padding: 23px;
  border: 1px dashed #bfcbb2;
  background: #fafbf7;
  border-radius: 8px;
  margin-bottom: 20px;
}
.upload-box input {
  background: transparent;
  border: 0;
  padding: 12px 0;
}
.page-number {
  background: #edf2e4;
  width: 44px;
  height: 54px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.review-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
}
.progress {
  height: 5px;
  border-radius: 5px;
  background: #e9eee3;
  margin-top: 10px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--green);
}
.subheading {
  margin: 24px 0 12px;
}
.wide-text {
  white-space: normal;
  min-width: 160px;
}
.footer-note {
  color: var(--muted);
  font-size: 10px;
  margin-top: 20px;
}
.order-steps {
  display: flex;
  gap: 7px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.order-steps .badge {
  font-size: 11px;
  padding: 8px 12px;
}
.mobile-menu {
  display: none;
}
.nowrap {
  white-space: nowrap;
}
.help-steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.help-step {
  display: flex;
  gap: 15px;
  font-size: 13px;
  line-height: 1.7;
}
.help-step:before {
  counter-increment: step;
  content: counter(step);
  background: var(--lime);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.help-step strong {
  display: block;
}
pre {
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.5;
  background: #f8faf5;
  padding: 12px;
  border-radius: 6px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 42px;
  }
  .metric {
    padding: 26px;
  }
  .metric strong {
    font-size: 38px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    padding: 24px 12px;
  }
  .content {
    padding: 28px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .metric-top {
    font-size: 11px;
  }
  .login-art {
    padding: 35px;
  }
  .login-art h1 {
    font-size: 44px;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 5;
    width: 230px;
    box-shadow: 10px 0 50px #0002;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .mobile-menu {
    display: inline-block;
    margin-right: 10px;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .topbar-right .date {
    display: none;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 26px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric strong {
    font-size: 28px;
  }
  .grid-2 {
    gap: 15px;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 17px;
  }
  .flow {
    gap: 5px;
  }
  .flow-step {
    padding: 10px 3px;
  }
  .flow-step span {
    font-size: 9px;
  }
  .flow-step strong {
    font-size: 22px;
  }
  th,
  td {
    padding: 13px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form {
    padding: 30px 24px;
  }
  .login-form-inner {
    width: 100%;
    max-width: 360px;
  }
  .review-row {
    grid-template-columns: 36px 1fr;
  }
  .review-row .actions {
    grid-column: 2;
  }
  .modal-body {
    padding: 18px;
  }
  .toolbar input {
    max-width: none;
  }
  .list-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 19px;
  }
}
/* Keep the full navigation reachable on short laptop screens. */
.sidebar {
  overflow-y: auto;
}
/* Reference-inspired visual update: white workspace, emerald controls and product-led flows. */
:root {
  --ink: #112139;
  --muted: #718096;
  --green: #007c59;
  --lime: #dcf6eb;
  --bg: #f6f8f9;
  --line: #e2e8ee;
}
.sidebar {
  background: #fff;
  width: auto;
  padding: 24px 16px;
}
.nav button.active {
  background: #dff6ec;
  color: #006346;
  font-weight: 650;
}
.nav .active .count {
  background: #00845e;
}
.workspace,
.local-note {
  background: #fafcfc;
}
.topbar {
  background: #fff;
}
.metric.featured {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.metric.featured .metric-top,
.metric.featured small {
  color: var(--muted);
}
.metric.featured .icon {
  color: var(--green);
}
.btn.primary {
  background: linear-gradient(115deg, #007c59, #07956d);
}
.metric {
  box-shadow: none;
}
.eyebrow {
  color: #748091;
}
h1 {
  color: #0c182b;
  font-weight: 700;
}
.panel {
  box-shadow: 0 1px 2px #18302903;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.product-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card h3 {
  line-height: 1.6;
}
.product-card .actions {
  margin-top: auto;
}
.product-photo {
  width: 100%;
  height: 170px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f9f9;
}
.product-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #8bada4;
  font-size: 55px;
}
.product-photo small {
  font-size: 11px;
  color: var(--muted);
}
.product-photo.large {
  height: 260px;
  max-width: 240px;
}
.market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10px;
}
.market-chips .market {
  background: #f1f5f8;
  padding: 5px;
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  line-height: 1.7;
}
.checkline input {
  width: auto;
}
.tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs button {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 650;
}
.tabs span {
  background: #edf2f4;
  border-radius: 20px;
  padding: 3px 7px;
  font-size: 10px;
  margin-left: 5px;
}
.label-workspace {
  display: grid;
  grid-template-columns: 160px minmax(250px, 1fr) 285px;
  gap: 14px;
}
.label-workspace .panel {
  margin: 0;
}
.label-thumb {
  padding: 13px 10px;
  display: flex;
  gap: 9px;
  text-align: left;
  font-size: 12px;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.label-thumb.selected {
  background: #e4f7ef;
  box-shadow: inset 3px 0 var(--green);
}
.label-thumb small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0;
}
.label-thumb .page-number {
  width: 30px;
  height: 42px;
  font-size: 16px;
}
.pdf-panel iframe {
  border: 0;
  width: 100%;
  height: 650px;
  background: #eef1f3;
}
.details {
  font-size: 12px;
  line-height: 1.6;
}
.details dt {
  color: var(--muted);
  margin-top: 17px;
}
.details dd {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.badge.Pending {
  background: #fff0cc;
  color: #946724;
}
.badge.Approved {
  background: #def5e8;
  color: #12683f;
}
.station-start {
  max-width: 600px;
  margin: 45px auto;
  padding: 45px;
  text-align: center;
}
.station-start form {
  max-width: 380px;
  margin: 25px auto 0;
  text-align: left;
}
.station-mark {
  font-size: 64px;
  color: var(--green);
  margin-bottom: 24px;
}
.station-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.station-top h1 {
  font-family: ui-monospace, monospace;
  font-size: 24px;
}
.station-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}
.station-items {
  padding: 26px;
}
.station-product {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  margin-bottom: 24px;
}
.station-product:last-child {
  padding-bottom: 0;
  border: 0;
  margin: 0;
}
.station-product h2 {
  font-size: 22px;
  line-height: 1.4;
}
.pack-quantity {
  font-size: 16px;
  color: var(--green);
  margin: 18px 0;
}
.pack-quantity strong {
  display: block;
  font-size: 38px;
  line-height: 1.2;
  color: #043c30;
}
.bin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.station-side iframe {
  width: 100%;
  height: 300px;
  border: 0;
}
.station-controls {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.print-options {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.print-options .field {
  min-width: 200px;
}
.station-confirm {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.station-confirm p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 590px;
}
.station-confirm small {
  display: block;
  color: var(--muted);
}
.station-confirm .btn {
  font-size: 15px;
  padding: 18px 24px;
  min-width: 260px;
}
.station-layout .panel {
  margin-bottom: 18px;
}
#lookup-result {
  margin: 15px 0;
}
body:has(.station-layout) .shell {
  grid-template-columns: 190px 1fr;
}
body:has(.station-layout) .content {
  max-width: 1600px;
  padding: 28px;
}
.product-card img {
  border: 1px solid #f0f2f4;
}
@media (max-width: 1200px) {
  .label-workspace {
    grid-template-columns: 130px 1fr;
  }
  .label-workspace > .panel:last-child {
    grid-column: 1/-1;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .station-product {
    flex-direction: column;
  }
  .station-product .large {
    max-width: 180px;
    height: 180px;
  }
}
@media (max-width: 760px) {
  body:has(.station-layout) .shell {
    grid-template-columns: 1fr;
  }
  body:has(.station-layout) .content {
    padding: 16px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-card {
    padding: 12px;
  }
  .product-photo {
    height: 130px;
  }
  .label-workspace {
    grid-template-columns: 1fr;
  }
  .label-pages {
    display: flex;
    overflow: auto;
  }
  .label-pages .panel-head {
    display: none;
  }
  .label-thumb {
    min-width: 130px;
    width: auto;
  }
  .label-workspace > .panel:last-child {
    grid-column: auto;
  }
  .pdf-panel iframe {
    height: 480px;
  }
  .station-layout {
    grid-template-columns: 1fr;
  }
  .station-side {
    display: none;
  }
  .station-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .station-product {
    align-items: center;
    text-align: center;
  }
  .station-confirm {
    flex-direction: column;
  }
  .station-confirm .btn {
    width: 100%;
  }
  .station-start {
    padding: 28px;
  }
  .station-top h1 {
    font-size: 20px;
  }
}
.invoice-line {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 80px 110px 40px;
  gap: 8px;
  margin: 12px 0;
}
.invoice-line > input {
  min-width: 0;
}
.station-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.station-buttons .btn {
  white-space: normal;
}
.invoice-total {
  font-size: 28px;
  font-weight: 750;
  color: var(--green);
  margin: 18px 0;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.report-card {
  padding: 24px;
}
.report-icon {
  color: var(--green);
  font-size: 30px;
  margin-bottom: 16px;
}
.badge.Paid {
  background: #d9f7e9;
  color: #07603f;
}
.badge.Issued {
  background: #fff0c5;
  color: #87520d;
}
.badge.Void {
  background: #eee;
  color: #68717d;
}
@media (min-width: 1000px) {
  .station-items {
    max-height: calc(100vh - 430px);
    min-height: 260px;
    overflow: auto;
  }
  .station-side iframe {
    height: 210px;
  }
  .station-product .large {
    width: 140px;
    height: 150px;
    min-width: 140px;
  }
  .station-controls {
    position: sticky;
    bottom: 8px;
    z-index: 3;
    box-shadow: 0 -6px 20px #0c31200a;
    padding: 16px;
  }
  .station-product {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .station-items {
    padding: 18px;
  }
  .pack-quantity {
    margin: 12px 0;
  }
}
@media (max-width: 760px) {
  .invoice-line {
    grid-template-columns: minmax(65px, 1fr) minmax(80px, 1fr) 36px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .invoice-line > input:first-child {
    grid-column: 1 / -1;
  }
  .station-buttons {
    width: 100%;
  }
  .station-confirm .station-buttons .btn {
    min-width: 0;
  }
  .station-side {
    display: block;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the full business name readable in the narrow sidebar. */
.sidebar .brand {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.brand img {
  flex-shrink: 0;
}
/* Furqan workspace refresh: compact catalog, clear operational hierarchy. */
:root {
  --bg: #f2f5f8;
  --ink: #15273b;
  --muted: #64748b;
  --green: #087f64;
  --line: #e3eaf0;
}
body {
  background: var(--bg);
}
.content {
  max-width: 1920px;
  margin: auto;
}
.panel {
  border-radius: 16px;
  box-shadow: 0 3px 18px #153b5810;
  overflow: hidden;
}
.heading h1 {
  letter-spacing: -1.1px;
}
.btn {
  border-radius: 9px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn.primary {
  box-shadow: 0 4px 10px #00836522;
}
.nav button {
  border-radius: 10px;
  margin-bottom: 3px;
}
.metric {
  border-radius: 16px;
  background: white;
  box-shadow: 0 3px 16px #153b5808;
  border: 1px solid var(--line);
}
.metric.featured {
  background: linear-gradient(135deg, #e3faf0, #f5fff9);
  color: #075a47;
}
.metric strong {
  letter-spacing: -1px;
}
.workspace-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 30px 36px;
  border-radius: 20px;
  color: white;
  background:
    radial-gradient(ellipse at right bottom, #137d73, transparent 65%),
    linear-gradient(125deg, #152d45, #124e54);
  margin-bottom: 24px;
  overflow: hidden;
}
.workspace-hero h2 {
  font-size: 29px;
  letter-spacing: -0.6px;
  margin: 12px 0;
  color: white;
}
.workspace-hero p {
  color: #c8e3e3;
  margin-bottom: 22px;
}
.hero-kicker {
  font-size: 10px;
  letter-spacing: 2.3px;
  color: #81d9bd;
  font-weight: 700;
}
.hero-button {
  background: #e6fff1;
  color: #075844;
  border: 0;
}
.hero-ghost {
  background: transparent;
  border: 1px solid #ffffff55;
  color: white;
}
.hero-orbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 12px solid #78d9bd55;
  outline: 1px solid #ffffff22;
  outline-offset: 10px;
  width: 155px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff08;
}
.hero-orbit span {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.hero-orbit strong {
  font-size: 40px;
}
.hero-orbit small {
  color: #b7e3da;
  font-size: 10px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.product-card {
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px #21394f08;
  min-width: 0;
}
.product-card .product-photo {
  width: 100%;
  height: 94px;
  border-radius: 9px;
  object-fit: contain;
  background: #f8fafc;
  margin-bottom: 8px;
}
.product-card h3 {
  font-size: 12px;
  line-height: 1.4;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}
.product-card .hint {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.product-card p {
  font-size: 11px;
}
.product-card .market-chips {
  gap: 3px;
  flex-wrap: wrap;
}
.product-card .market {
  font-size: 9px;
  padding: 3px;
}
.product-card .actions {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}
.product-card .link {
  font-size: 10px;
}
.product-card .btn {
  font-size: 10px;
  padding: 6px 4px;
  min-height: 30px;
}
.inventory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stock-warning {
  background: #fff7e9;
}
.inventory-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
}
.inventory-product .product-photo {
  width: 48px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
  border-radius: 8px;
}
.inventory-product strong {
  max-width: 270px;
  display: block;
  font-size: 12px;
}
.stock-status {
  font-size: 10px;
  font-weight: 650;
  color: #007553;
}
.stock-status.low {
  color: #ad6100;
}
.stock-meter {
  height: 4px;
  width: 80px;
  background: #e7edf1;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.stock-meter span {
  display: block;
  height: 100%;
  background: #14ad83;
}
.warehouse-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.warehouse-switch button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: white;
  color: var(--muted);
}
.warehouse-switch button.selected {
  background: #0a765e;
  border-color: #0a765e;
  color: white;
}
.warehouse-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.warehouse-card {
  padding: 24px;
}
.warehouse-card h2 {
  margin: 14px 0 8px;
}
.site-icon {
  background: #e5f8f0;
  color: #08775c;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
}
.site-stats {
  display: flex;
  gap: 24px;
  margin-top: 22px;
}
.site-stats strong {
  font-size: 23px;
  display: block;
}
.site-stats small {
  font-size: 10px;
  color: var(--muted);
}
.assignment-option {
  display: block;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.assignment-option small {
  display: block;
  margin-left: 25px;
  color: var(--muted);
}
.invoice-preview-head {
  display: flex;
  gap: 22px;
  align-items: center;
  border-bottom: 2px solid #087f64;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.invoice-logo {
  max-width: 130px;
  max-height: 65px;
  object-fit: contain;
}
.invoice-payment {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  background: #f6f9fb;
  padding: 18px;
  border-radius: 12px;
  margin: 16px 0;
}
.invoice-payment img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.invoice-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.invoice-upload-preview {
  max-width: 140px;
  max-height: 100px;
  display: block;
  margin: 10px 0;
}
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .warehouse-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-hero {
    padding: 24px;
  }
  .hero-orbit {
    width: 130px;
    height: 130px;
  }
}
@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-metrics,
  .warehouse-cards,
  .invoice-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .workspace-hero {
    padding: 24px;
  }
  .hero-orbit {
    display: none;
  }
  .workspace-hero h2 {
    font-size: 24px;
  }
  .invoice-payment {
    flex-direction: column;
  }
  .site-stats {
    gap: 12px;
  }
}
.catalog-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.catalog-tools .hint {
  font-size: 11px;
}
.station-start form {
  display: grid;
  gap: 12px;
}
.product-card .market-chips {
  display: none;
}
.product-card:hover {
  box-shadow: 0 8px 24px #0b705518;
  transform: translateY(-1px);
}
.product-card {
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

/* Final usability polish: readable controls and visible keyboard navigation. */
button,
input,
select,
textarea {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #159b80;
  outline-offset: 3px;
}
.panel table th {
  background: #f6f9fb;
  color: #52647a;
  font-size: 11px;
  letter-spacing: 0.025em;
}
.panel table tbody tr:hover {
  background: #f2faf7;
}
.product-card {
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.product-card:hover {
  border-color: #95cbbc;
  box-shadow: 0 5px 18px #153b5815;
}
.product-card .actions button {
  min-height: 36px;
}
input,
select,
textarea {
  border-radius: 8px;
}
button:disabled {
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .workspace-hero {
    padding: 22px;
    gap: 18px;
  }
  .workspace-hero h2 {
    font-size: 24px;
  }
  .warehouse-switch button {
    min-height: 44px;
  }
  .product-card .actions button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.inventory-product {
  width: 310px;
  max-width: 310px;
  min-width: 0;
  white-space: normal;
}
.inventory-product > div {
  min-width: 0;
}
.inventory-product strong {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.label-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: contain;
  background: white;
}
.packing-blockers {
  text-align: left;
  max-height: 320px;
  overflow: auto;
  margin: 20px 0;
  padding: 18px;
  background: #fff8ed;
  border: 1px solid #ebd6b3;
  border-radius: 12px;
}
.packing-blockers li {
  font-size: 13px;
  line-height: 1.5;
}

/* Consistent task hierarchy, with the approved homepage hero retained. */
.bulk-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 22px;
}
.bulk-steps > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.bulk-steps b {
  grid-row: span 2;
  color: #087f64;
  background: #e9f7f1;
  border-radius: 10px;
  padding: 8px;
  align-self: center;
}
.bulk-steps small {
  color: var(--muted);
}
.operation-progress {
  padding: 14px 18px;
  background: #eaf6f2;
  color: #175b4b;
  border: 1px solid #c2e1d7;
  border-radius: 10px;
  margin-top: 16px;
  line-height: 1.6;
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: working-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes working-spin {
  to {
    transform: rotate(360deg);
  }
}
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.panel-body {
  padding: 24px;
}
.form-grid {
  gap: 20px;
}
.field label {
  font-weight: 600;
  font-size: 12px;
  color: #43546a;
}
.field input,
.field select,
.field textarea {
  min-height: 44px;
  background: #fbfcfe;
  border-color: #dce5ec;
}
.table-wrap td {
  vertical-align: middle;
}
.table-wrap small {
  line-height: 1.5;
}
.tabs {
  gap: 8px;
}
.tabs button {
  padding: 12px 18px;
}
.station-start {
  max-width: 900px;
}
.heading {
  margin-bottom: 26px;
}
.sidebar .nav button {
  min-height: 44px;
}
@media (max-width: 760px) {
  .bulk-steps {
    grid-template-columns: 1fr;
  }
  .panel-body,
  .panel-head {
    padding: 16px;
  }
  .heading h1 {
    font-size: 28px;
  }
}
