@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-latin-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #171719;
  --side: #111113;
  --panel: #202022;
  --line: #39393b;
  --muted: #b4b2b1;
  --ink: #f3f1ed;
  --accent: #ddcab0;
  --soft: #29292c;
  --dim: #8f8d8e;
  --radius: 15px;
  font-family: Manrope, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
a:hover {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}
button,
input,
select,
textarea {
  font-size: 14px;
}
input,
select,
textarea {
  background: #18181a;
  border: 1px solid #4b4b4e;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 40px;
}
input::placeholder {
  color: #979498;
}
select:focus {
  color: var(--ink);
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
label input,
label select {
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 22;
  padding: 12px;
  background: var(--accent);
  color: #221e1a;
}
i[data-icon] {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: none;
}
i svg {
  width: 100%;
  height: 100%;
}
.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--side);
  border-right: 1px solid #2c2c2e;
  padding: 32px 18px 22px;
}
.brand {
  display: block;
  align-self: start;
  margin-left: 12px;
  font-size: 29px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.085em;
  color: #f3f1ed;
}
.brand span {
  color: var(--accent);
  margin-left: 2px;
}
.brand-sub {
  margin: 9px 0 44px 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.045em;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 8px;
  color: #c2c0be;
  font-size: 13px;
  font-weight: 600;
}
.sidebar nav a:hover,
.sidebar footer a:hover {
  background: #252527;
  color: var(--ink);
}
.sidebar nav a[aria-current] {
  background: #332f2b;
  color: var(--accent);
}
.nav-count {
  margin-left: auto;
  border: 1px solid #504c47;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 10px;
  min-width: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sidebar footer {
  margin: auto 9px 0;
  padding-top: 22px;
}
.sidebar footer .local {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}
.local span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.sidebar footer p {
  margin: 7px 0 18px;
  line-height: 1.6;
  font-size: 11px;
  color: var(--muted);
  max-width: 150px;
}
.sidebar footer a {
  border-top: 1px solid var(--line);
  padding: 14px 0 2px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.surface {
  min-width: 0;
}
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3.3vw, 48px);
  border-bottom: 1px solid #2f2f32;
  background: #18181a;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar,
.store-link {
  font-size: 12px;
}
.crumb-brand {
  font-weight: 770;
  letter-spacing: -0.025em;
}
.slash {
  color: #828082;
}
.topbar #crumb {
  color: var(--muted);
}
.store-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
}
.store-link i {
  width: 15px;
  height: 15px;
}
.menu-button,
.nav-shade {
  display: none;
}
main {
  outline: none;
  padding: 36px clamp(18px, 3.3vw, 48px) 56px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head #today {
  color: var(--muted);
  line-height: 1.3;
  font-size: 12px;
  margin-bottom: 7px;
}
.page-head h1 {
  font-size: clamp(31px, 3.4vw, 50px);
  letter-spacing: -0.065em;
  line-height: 1.09;
  font-weight: 600;
}
.head-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}
.control-label {
  font-size: 10px;
  letter-spacing: 0.015em;
}
.control-label select {
  border-color: var(--line);
  background: var(--panel);
  min-width: 134px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 15px;
  border: 1px solid #4d4b4c;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  background: #2c2b2d;
  line-height: 1.3;
}
.button:hover {
  background: #39373a;
  color: var(--ink);
}
.button.accent {
  background: var(--accent);
  color: #241f19;
  border-color: var(--accent);
}
.button.accent:hover {
  background: #eddecd;
}
.toolbar,
#date-range {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar label:has(input[type='search']) {
  flex: 1;
  max-width: 425px;
  min-width: min(230px, 100%);
}
.toolbar label select {
  min-width: 145px;
}
.toolbar .button {
  margin-left: auto;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 18px;
}
.metric {
  min-width: 0;
  padding: 21px clamp(14px, 1.8vw, 26px);
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: 0;
}
.metric p {
  font-size: 12px;
  color: #d4d2cf;
  font-weight: 600;
}
.metric strong {
  display: block;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2.9vw, 42px);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -0.055em;
  margin: 6px 0;
}
.metric span,
.panel-note,
.count-text {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 1.65vw, 25px);
  min-width: 0;
}
.panel-head,
.order-intro,
.order-intro > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head {
  margin-bottom: 15px;
}
.panel h2 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 640;
  letter-spacing: -0.04em;
}
.sub-link,
.back-link,
.link-button {
  font-size: 12px;
  font-weight: 600;
}
.sub-link,
.link-button,
.table-link {
  color: var(--accent);
}
.sub-link {
  white-space: nowrap;
}
.sub-link:hover,
.link-button:hover,
.table-link:hover {
  text-decoration: underline;
}
.link-button {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chart-summary strong {
  font-size: clamp(24px, 2.3vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1.1;
  font-weight: 550;
}
.chart-summary span,
.axis,
.ticks {
  color: var(--muted);
  font-size: 10px;
}
.chart {
  display: flex;
  height: 123px;
  gap: 9px;
}
.ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  line-height: 1;
  flex: none;
  min-width: 36px;
}
.plot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(2px, 0.55vw, 9px);
  padding: 0 3px;
  background: repeating-linear-gradient(to top, #414143 0 1px, transparent 1px calc(50% - 0.5px));
}
.chart-bar {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  padding: 0;
  position: relative;
}
.chart-bar span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 2px;
  height: var(--height);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, #968c81, #d9cdbb);
}
.chart-bar:hover span,
.chart-bar:focus-visible span {
  background: var(--accent);
}
.axis {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 0 48px;
}
.product-ranking,
.stock-list,
.packing,
.timeline {
  padding: 0;
  list-style: none;
}
.product-ranking li,
.stock-list li,
.packing li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.product-ranking li:first-child,
.stock-list li:first-child,
.packing li:first-child {
  border: 0;
  padding-top: 0;
}
.product-ranking li:last-child,
.stock-list li:last-child,
.packing li:last-child {
  padding-bottom: 0;
}
.rank {
  color: #9e9a9c;
  font-size: 10px;
  min-width: 15px;
}
.thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 47px;
  border-radius: 6px;
  flex: 0 0 auto;
  background: #161618;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-empty {
  color: var(--dim);
}
.product-ranking li > div,
.stock-list li > div,
.packing li > div {
  flex: 1;
  min-width: 0;
}
.product-ranking a,
.stock-list a,
.packing a {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  display: inline-block;
}
.product-ranking small,
.stock-list small,
.packing small,
.customer-card small,
.person small,
.timeline small,
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 450;
  line-height: 1.45;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.rank-value {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.rank-value small {
  display: inline;
  font-size: 10px;
}
.section-kpi {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 10px;
}
.section-kpi b {
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.035em;
}
.section-kpi span {
  font-size: 11px;
  color: var(--muted);
}
.stock-badge,
.status-badge {
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}
.stock-badge {
  color: #e9be80;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 6px 8px;
  background: #343435;
  color: #dedcda;
}
.status-badge i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.status-badge[data-status='Processing'] {
  color: #c5b7f1;
  background: #342d42;
}
.status-badge[data-status='Unfulfilled'] {
  color: #f0bf78;
  background: #3d3426;
}
.status-badge[data-status='Dispatched'] {
  color: #b7d59f;
  background: #2c3928;
}
.status-badge[data-status='Cancelled'] {
  color: #e9ada1;
  background: #3d2d28;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  line-height: 1.45;
}
thead th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
td,
th {
  border-top: 1px solid var(--line);
  padding: 11px 8px;
  vertical-align: middle;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
td.number,
th.number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
td small {
  margin-top: 2px;
}
.table-link {
  white-space: nowrap;
  font-weight: 700;
}
.empty {
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.report-panel {
  margin-bottom: 18px;
}
.report-panel .panel-note {
  margin: -4px 0 14px;
}
.report-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.back-link {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 16px;
}
.order-intro {
  margin-bottom: 16px;
}
.order-intro > div,
.order-intro span:not(.status-badge) {
  font-size: 12px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
}
.detail-grid > div {
  min-width: 0;
}
.detail-grid .panel {
  margin-bottom: 16px;
}
.packing {
  margin: 2px 0 12px;
}
.packing li {
  padding: 12px 0;
}
.packing strong {
  font-size: 13px;
}
.details {
  font-size: 12px;
}
.details > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.details dt {
  color: var(--muted);
  flex: 0 0 auto;
}
.details dd {
  text-align: right;
  overflow-wrap: anywhere;
}
.receipt-totals > div:last-child {
  font-weight: 700;
}
.receipt-totals > div:last-child dt {
  color: var(--ink);
}
.customer-card,
.person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.customer-card {
  margin-bottom: 16px;
}
.customer-card strong,
.customer-card a,
.person {
  font-weight: 650;
  font-size: 13px;
}
.avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #36322f;
  color: var(--accent);
  border: 1px solid #514a43;
  border-radius: 50%;
  font-size: 12px;
  flex: none;
}
.feature-person .avatar {
  width: 46px;
  height: 46px;
}
.feature-person strong {
  font-size: 17px;
}
.gift {
  padding: 11px;
  background: #2b2927;
  border-radius: 7px;
  line-height: 1.5;
}
.gift h3,
.gift p,
.fulfilment {
  font-size: 12px;
}
.gift p {
  white-space: pre-line;
  margin-top: 5px;
}
.timeline li {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 15px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li > i {
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.timeline li:not(:last-child):before {
  content: '';
  position: absolute;
  left: 3px;
  top: 14px;
  bottom: -6px;
  border-left: 1px solid #524b44;
}
.timeline strong {
  font-size: 12px;
}
.fulfilment label,
.fulfilment .panel-note {
  margin-bottom: 12px;
}
.error {
  color: #f4ada3;
}
.error:not(:empty) {
  margin: 8px 0;
}
#workspace-status {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 30;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #241f19;
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
#workspace-status.shown {
  opacity: 1;
  transform: none;
}
@media (min-width: 1800px) {
  .app-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .dashboard-grid,
  .report-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .dashboard-grid > .panel {
    padding: 15px;
  }
  .rank {
    display: none;
  }
  .panel-head {
    gap: 8px;
  }
  .sub-link {
    font-size: 11px;
  }
  .metric span {
    font-size: 10px;
  }
  .metric {
    padding-inline: 14px;
  }
}
@media (max-width: 920px) {
  .dashboard-grid,
  .report-split,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics:not(.three) .metric:nth-child(2) {
    border-right: 0;
  }
  .metrics:not(.three) .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .chart {
    height: 145px;
  }
  .product-ranking li {
    padding-block: 10px;
  }
  .rank {
    display: block;
  }
  .thumb {
    width: 41px;
    height: 48px;
  }
}
@media (max-width: 760px) {
  .app-layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(276px, 83vw);
    min-height: 0;
    z-index: 12;
    transform: translateX(-101%);
    visibility: hidden;
    overflow: auto;
  }
  .menu-open {
    overflow: hidden;
  }
  .menu-open .sidebar {
    transform: none;
    visibility: visible;
  }
  .nav-shade:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 11;
    background: #0009;
    border: 0;
  }
  .menu-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 0;
  }
  .topbar {
    padding: 0 16px;
    height: 56px;
  }
  .topbar > div {
    gap: 8px;
  }
  .topbar .slash {
    display: none;
  }
  .topbar #crumb {
    display: none;
  }
  main {
    padding: 24px 15px 40px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 18px;
  }
  .page-head h1 {
    font-size: 34px;
  }
  .page-head #today {
    font-size: 10px;
  }
  .head-actions .control-label {
    font-size: 9px;
  }
  .control-label select {
    min-width: 0;
    max-width: 124px;
    padding-left: 8px;
  }
  .metrics {
    margin-bottom: 12px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 28px;
  }
  .dashboard-grid,
  .detail-grid {
    gap: 12px;
  }
  .panel {
    padding: 16px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input,
  .toolbar select {
    max-width: 100%;
  }
  .toolbar label {
    min-width: 0;
  }
  .toolbar label:has(input[type='search']) {
    max-width: none;
  }
  .toolbar label select {
    min-width: 0;
  }
  .toolbar .button {
    margin-left: 0;
  }
  .metrics.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metrics.three .metric {
    padding: 9px;
  }
  .metrics.three .metric strong {
    font-size: 21px;
  }
  .metrics.three .metric p {
    font-size: 10px;
  }
  .metrics.three .metric span {
    font-size: 9px;
  }
  .sidebar footer {
    padding-top: 30px;
  }
  .order-intro {
    align-items: start;
    flex-wrap: wrap;
  }
  .order-intro > div {
    flex-wrap: wrap;
  }
  .person .avatar {
    display: none;
  }
  td,
  th {
    padding: 9px 5px;
  }
  .detail-grid .panel {
    margin-bottom: 12px;
  }
  #workspace-status {
    left: 15px;
    right: 15px;
    text-align: center;
  }
}
@media (max-width: 380px) {
  main {
    padding-inline: 10px;
  }
  .page-head h1 {
    font-size: 29px;
  }
  .control-label select {
    max-width: 108px;
  }
  .panel {
    padding: 12px;
  }
  .status-badge {
    padding: 5px;
    font-size: 9px;
  }
  .table-scroll table {
    font-size: 11px;
  }
  .section-kpi span {
    font-size: 10px;
  }
  .toolbar label:has(input[type='search']) {
    min-width: 100%;
  }
  .toolbar label:not(:has(input[type='search'])) {
    flex: 1;
  }
  .product-ranking li {
    gap: 9px;
  }
}
.drawer-close,
.mobile-demo {
  display: none;
}
@media (max-width: 760px) {
  .drawer-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 16px;
    right: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    color: var(--ink);
    width: 35px;
    height: 35px;
    font-size: 24px;
    line-height: 1;
  }
  .mobile-demo {
    display: inline;
    font-size: 10px;
    color: var(--muted);
  }
}
