/* Storefront manager — light linen theme, iPad landscape. */

body.storefront {
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(111, 125, 99, 0.08), transparent 55%),
    var(--cream);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px 1fr;
}

/* ---------- sidebar ---------- */
.side {
  background: #fffdf8;
  border-right: 1px solid rgba(49, 45, 38, 0.09);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
}

.side .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 2px;
}

.side .brand em { font-style: italic; color: var(--terra); }

.side .brand small {
  display: block;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.nav { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; }

.nav button {
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav button.on {
  background: rgba(111, 125, 99, 0.13);
  color: var(--terra-deep);
}

.nav .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.55; }

.side .foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ---------- main ---------- */
.main { padding: 26px 30px; overflow-y: auto; }

.main-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.main-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
}

.main-head .date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
}

/* stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  animation: rise 0.45s ease both;
}

.stat {
  background: #fffdf8;
  border: 1px solid rgba(49, 45, 38, 0.09);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(49, 45, 38, 0.04);
}

.stat h4 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.stat .v {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums lining-nums;
  margin-top: 4px;
}

.stat .sub { font-size: 11px; font-weight: 700; color: var(--terra); margin-top: 2px; }
.stat .sub.dim { color: var(--ink-faint); }

/* two-column body */
.cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-top: 14px;
  animation: rise 0.5s 0.06s ease both;
}

.panel {
  background: #fffdf8;
  border: 1px solid rgba(49, 45, 38, 0.09);
  border-radius: 18px;
  padding: 17px 18px;
  box-shadow: 0 4px 16px rgba(49, 45, 38, 0.04);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.panel-head small { font-size: 11px; font-weight: 700; color: var(--ink-faint); }

/* menu 86 list */
.mrow {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(49, 45, 38, 0.07);
}

.mrow:last-child { border-bottom: none; }

.mrow img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }

.mrow .nm { font-size: 13.5px; font-weight: 800; }
.mrow .nm small { display: block; font-weight: 600; color: var(--ink-faint); font-size: 11px; }
.mrow .pr { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.mrow.off img { filter: grayscale(1); opacity: 0.5; }
.mrow.off .nm { color: var(--ink-faint); }

/* toggle */
.tgl {
  width: 42px;
  height: 25px;
  border-radius: 999px;
  background: rgba(49, 45, 38, 0.16);
  position: relative;
  transition: background 0.18s ease;
}

.tgl::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 1px 3px rgba(49, 45, 38, 0.25);
  transition: left 0.18s ease;
}

.tgl.on { background: var(--terra); }
.tgl.on::after { left: 20px; }

/* regulars panel */
.reg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(49, 45, 38, 0.07);
}

.reg:last-child { border-bottom: none; }

.reg .who { font-size: 13.5px; font-weight: 800; }
.reg .who small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-faint); margin-top: 1px; }
.reg .who small b { color: var(--terra-deep); }

.reg button {
  white-space: nowrap;
  background: rgba(111, 125, 99, 0.13);
  color: var(--terra-deep);
  font-size: 10.5px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
}

.reg button.sent { background: var(--terra); color: var(--cream); }

/* wallet charge cta */
.charge-cta {
  margin-top: 14px;
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  gap: 9px;
}

/* ---------- demo links (sidebar) ---------- */
.demo-links {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(49, 45, 38, 0.09);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-links small {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.demo-links a {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  padding: 11px 10px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--terra);
  color: var(--cream);
  box-shadow: 0 3px 10px rgba(87, 100, 78, 0.25);
  transition: transform 0.12s ease;
}

.demo-links a:active { transform: scale(0.97); }

.demo-links a + a {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 3px 10px rgba(49, 45, 38, 0.2);
}

/* ---------- orders view ---------- */
.orow {
  display: grid;
  grid-template-columns: 52px 1fr 96px 76px 64px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(49, 45, 38, 0.07);
}

.orow:last-child { border-bottom: none; }
.orow .onum { font-size: 12.5px; font-weight: 800; color: var(--ink-faint); }
.orow .nm { font-size: 13.5px; font-weight: 800; }
.orow .nm small { display: block; font-weight: 600; color: var(--ink-faint); font-size: 11px; }
.orow .otime { font-size: 12px; font-weight: 700; color: var(--ink-faint); text-align: right; }
.orow .pr { text-align: right; }

.chip-status {
  justify-self: start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.chip-status.new { background: rgba(169, 140, 107, 0.2); color: #7d6748; }
.chip-status.making { background: rgba(169, 140, 107, 0.35); color: #6a5638; }
.chip-status.ready { background: rgba(111, 125, 99, 0.2); color: var(--terra-deep); }
.chip-status.done { background: rgba(49, 45, 38, 0.07); color: var(--ink-faint); }

/* ---------- regulars view ---------- */
.rmeta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
  white-space: nowrap;
}

.foot-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- charts ---------- */
:root { --chart-1: #1d8062; --chart-2: #c07f28; }

.chart-svg { width: 100%; height: auto; display: block; }

.stat .spark { margin-top: 8px; }

.split {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
  margin-top: 10px;
}

.split i { display: block; height: 100%; }
.split .a { background: var(--chart-1); border-radius: 4px 0 0 4px; }
.split .b { background: var(--chart-2); border-radius: 0 4px 4px 0; }

.legend {
  display: flex;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  margin-top: 7px;
}

.legend .sw {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: -1px;
}

.chart-tip {
  position: fixed;
  pointer-events: none;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 90;
  white-space: nowrap;
}

.chart-tip.on { opacity: 1; }

.bar-hit { fill: transparent; cursor: pointer; }
.bar-hit:hover + .bar-mark, .bar-mark.hot { opacity: 0.82; }
