:root {
  color-scheme: light;
  --green: #21ad3d;
  --dark-green: #054817;
  --orange: #ed4f24;
  --paper: #f4f8f1;
  --line: #dde7d8;
  --ink: #101510;
  --muted: #61705f;
  --blue: #0aa7ee;
}

* {
  box-sizing: border-box;
}

html[data-environment-marker]::before {
  content: attr(data-environment-marker);
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 999999;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff8ce;
  color: var(--ink);
  font: 1000 13px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(7, 19, 10, 0.18);
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #e8efe4;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

button.primary,
.primary {
  background: var(--orange);
  color: white;
}

.ghostButton {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.danger {
  background: #ffe8e0;
  color: #9d2d11;
}

.appFrame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  background: #062c13;
  color: white;
}

.brand {
  display: inline-block;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.sidebar p {
  margin: 4px 0 24px;
  color: #dff4dd;
  font-weight: 900;
}

.navTabs {
  display: grid;
  gap: 8px;
}

.navTabs button,
.navToolLink {
  justify-content: flex-start;
  width: 100%;
  background: transparent;
  color: #dff4dd;
  text-align: left;
}

.navToolLink {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 1000;
  text-decoration: none;
}

.navToolLink:hover {
  background: rgba(255, 255, 255, 0.12);
}

.navTabs button.active {
  background: white;
  color: #062c13;
}

.navGroup {
  display: grid;
  gap: 7px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid rgba(223, 244, 221, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.navGroup > span {
  color: white;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.navGroup button {
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.navGroup button.active {
  background: white;
}

.navGroup .navToolLink {
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.navGroup .navToolLink:hover {
  background: rgba(255, 255, 255, 0.14);
}


.adminLoginForm {
  display: grid;
  gap: 8px;
}

.adminLoginForm input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(223, 244, 221, 0.35);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.adminLoginForm button,
.adminSessionBox button {
  width: 100%;
  min-height: 38px;
}

.adminLoginForm p {
  min-height: 18px;
  margin: 0;
  color: #ffd6c8;
  font-size: 12px;
  font-weight: 900;
}

.adminSessionBox,
.adminOnlyButtons {
  display: grid;
  gap: 8px;
}

.adminSessionBox span {
  color: #dff4dd;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.adminOnlyButtons button {
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.adminOnlyButtons button.active {
  background: white;
  color: #062c13;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--dark-green), var(--green));
  color: white;
}

.topActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: #fff3e7;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.tabPanel {
  display: none;
}

.tabPanel.active {
  display: block;
}

.statsGrid,
.panelGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.panelGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.twoColumn {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
}

.panel,
.statCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(5, 72, 23, 0.08);
}

.panel {
  padding: 20px;
}

.statCard {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.statCard span,
.sectionHeader p,
label,
.productMeta,
.tableRow span {
  color: var(--muted);
}

.statCard span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.statCard strong {
  margin-top: 6px;
  font-size: 36px;
  line-height: 1;
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.sectionHeader.compactHeader {
  margin-bottom: 4px;
}

.sectionHeader.compactHeader h3 {
  margin: 0;
  font-size: 20px;
}

.sectionHeader p {
  margin: 4px 0 0;
  font-weight: 700;
}

.inlineActions,
.actions,
.rowActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dragOrderHandle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
  cursor: grab;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
}

.dragOrderHandle:active {
  cursor: grabbing;
}

.visibilityToggle {
  min-width: 74px;
}

.visibilityToggle.shown {
  background: #e9f5e7;
  color: var(--green);
}

.visibilityToggle.hidden {
  background: #fff3d8;
  color: #a85b00;
}

.productRow.isHiddenProduct {
  opacity: 0.62;
}

.productRow.isHiddenProduct .productTitle::after {
  content: " Hidden from website";
  margin-left: 8px;
  color: #a85b00;
  font-size: 12px;
  width: 100%;
  font-weight: 1000;
}

.productDragging {
  user-select: none;
}

.productRow.isDragging {
  pointer-events: none;
  opacity: 0.96;
  box-shadow: 0 18px 38px rgba(5, 72, 23, 0.18);
  transform: scale(1.01);
}

.productRow.dragPlaceholder {
  border: 2px dashed rgba(0, 111, 53, 0.32);
  background: rgba(232, 247, 228, 0.72);
  box-shadow: none;
}

.productRow.dragPlaceholder > * {
  visibility: hidden;
}

form,
.formGrid {
  display: grid;
  gap: 14px;
}

.settingsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 14px;
}

.settingsGroup {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.settingsGroup h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1;
}

.settingsColourGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.settingsColourGrid input[type="color"] {
  height: 44px;
  padding: 5px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}

input,
select {
  height: 42px;
  padding: 0 11px;
}

textarea {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

.imagePreview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.imagePreview img {
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 8px;
  background: white;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
}

.imagePreview span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.productLogoEditor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.productLogoEditor > strong {
  font-size: 18px;
  line-height: 1;
}

.productLogoEditor > p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.logoPreview {
  grid-template-columns: 58px minmax(0, 1fr);
}

.logoPreview img {
  width: 58px;
  height: 58px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(33, 173, 61, 0.16);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.productStripStack {
  display: grid;
  gap: 14px;
}

.productStripSet {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdf8;
}

.productStripSetHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.productStripSetHeader::-webkit-details-marker {
  display: none;
}

.productStripSetHeader::after {
  content: "▾";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.productStripSet:not([open]) .productStripSetHeader::after {
  transform: rotate(-90deg);
}

.productStripSetHeader h3 {
  margin: 0;
}

.productStripSetHeader span {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.productStripSetBody {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.productStripSetBody > label {
  max-width: 180px;
}

.productStripEditor {
  display: grid;
  gap: 8px;
}

.productStripRow {
  display: grid;
  grid-template-columns: minmax(128px, 0.7fr) 76px minmax(180px, 1fr) 60px auto minmax(190px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf4;
}

.productStripRow .stripIconCustom {
  text-align: center;
  font-size: 22px;
}

.productStripRow .stripImageUrl {
  min-width: 0;
}

.stripImagePreview {
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
}

.stripImagePreview img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  display: block;
}

.stripUploadButton {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.stripUploadButton input {
  display: none;
}

.stripUploadButton:hover {
  background: #eef8e9;
}

.productStripControls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.productStripControls button {
  min-height: 42px;
}

.productStripControls label {
  max-width: 190px;
}

.speedLineEditor {
  display: grid;
  gap: 12px;
}

.speedLineEditor label {
  margin: 0;
}

.speedLineEditor input[type="number"] {
  max-width: 220px;
}

@media (max-width: 760px) {
  .productStripRow {
    grid-template-columns: 1fr 70px;
  }

  .productStripRow .stripTextInput,
  .productStripRow .stripImageUrl,
  .productStripRow .stripImagePreview,
  .productStripRow .stripUploadButton,
  .productStripRow .stripDeleteButton {
    grid-column: 1 / -1;
  }

  .productStripRow .stripImagePreview {
    width: 100%;
  }
}

.productList,
.editorList,
.simpleTable,
.summaryList,
.quickActions {
  display: grid;
  gap: 10px;
}

.innerTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.innerTabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 9px 14px;
  font-weight: 1000;
  cursor: pointer;
}

.innerTabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.accountsPanel {
  width: 100%;
  max-width: none;
}

.accountsLock,
.accountsContent {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: clamp(12px, 1.6vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.accountsLock h3,
.accountStatusCard strong {
  margin: 0;
  font-size: 22px;
}

.accountsLock p,
.accountStatusCard p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.accountsUnlockForm {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.formMessage {
  min-height: 20px;
  margin: 0;
  color: #9d2d11;
  font-weight: 900;
}

.accountStatusCard {
  display: grid;
  gap: 6px;
}

.accountStatusCard span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.accountProfitCard {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: clamp(14px, 1.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.accountProfitList {
  display: grid;
  gap: 8px;
}

.accountProfitHeader,
.accountProfitRow {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(95px, 0.6fr) minmax(160px, 1fr) minmax(90px, 0.5fr);
  gap: 10px;
  align-items: center;
}

.accountSalesHeader,
.accountSalesRow {
  grid-template-columns: minmax(220px, 1.4fr) minmax(70px, 0.4fr) minmax(110px, 0.7fr) minmax(130px, 0.8fr) minmax(90px, 0.5fr);
}

.purchaseReceiptHeader,
.purchaseReceiptRow {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.4fr) minmax(130px, 0.65fr) minmax(220px, 1.05fr) minmax(95px, 0.45fr);
  gap: 10px;
  align-items: start;
}

.purchaseReceiptHeader {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.purchaseReceiptRow {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.purchaseReceiptRow strong,
.purchaseReceiptRow span,
.purchaseReceiptRow small,
.receiptTrail span,
.receiptItemLine {
  display: block;
}

.purchaseReceiptRow strong,
.purchaseReceiptRow b {
  font-weight: 1000;
}

.purchaseReceiptRow span,
.purchaseReceiptRow small {
  color: var(--muted);
  font-weight: 850;
}

.receiptItems,
.receiptTrail {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.receiptItemsDropdown {
  margin-top: 8px;
}

.receiptItemsDropdown summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  list-style-position: inside;
}

.receiptItemsDropdown summary span,
.receiptItemsDropdown summary strong {
  display: inline;
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.receiptItemLine {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 13px;
}

.receiptItemLine b {
  display: inline-block;
  margin-right: 6px;
  color: var(--green);
}

.receiptItemLine.missing b,
.receiptWarn {
  color: #a43116 !important;
}

.receiptItemLine.pending b,
.receiptTrail .waiting b {
  color: var(--muted);
}

.receiptTrail span {
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}

.receiptTrail .done b {
  color: var(--green);
}

.accountProfitHeader {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.accountProfitRow {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
  font-weight: 900;
}

.accountProfitDealRow {
  border-color: #ffd6c8;
  background: #fff7f3;
}

.accountProfitRow strong,
.accountProfitRow small {
  display: block;
}

.accountProfitRow small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.accountProfitRow b {
  color: var(--green);
}

.stockMeta {
  border-radius: 999px;
  padding: 3px 8px;
  background: #e7f6e7;
  color: #075e28;
  font-weight: 950;
}

.stockMeta.untracked {
  background: #fff1d9;
  color: #8a4b00;
}

.stockSummaryGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.stockSummaryGrid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: var(--paper);
}

.stockSummaryGrid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.stockSummaryGrid strong {
  font-size: 25px;
}

.stockToolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px;
  gap: 10px;
  margin-bottom: 10px;
}

.stockLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.stockHeader,
.stockRow {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(145px, .9fr) minmax(175px, 1fr) minmax(145px, .8fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
}

.stockHeader {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.stockList {
  display: grid;
  gap: 8px;
}

.stockRow {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf6;
}

.stockRow.untracked {
  border-color: #efc98c;
  background: #fffaf0;
}

.stockRow.needsReorder {
  border-left: 6px solid var(--orange);
}

.stockRow > div {
  display: grid;
  gap: 3px;
}

.stockRow small,
.stockRow span {
  color: var(--muted);
  font-size: 12px;
}

.stockQuantities b {
  color: var(--green);
}

.stockActions {
  grid-template-columns: 1fr 1fr;
  gap: 6px !important;
}

.stockActions .danger {
  grid-column: span 2;
}

.stockLots {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.stockLots summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 900;
}

.stockLots > div {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.stockLots b {
  display: inline-block;
  min-width: 42px;
  color: var(--orange);
}

@media (max-width: 1050px) {
  .stockSummaryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stockHeader {
    display: none;
  }

  .stockRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stockActions,
  .stockLots {
    grid-column: 1 / -1;
  }
}

.productRow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.productDepartment,
.productSubcategory {
  display: grid;
  gap: 10px;
}

.productDepartment {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.productDepartmentTitle,
.productSubcategoryTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.productDepartmentTitle h2,
.productSubcategoryTitle h3 {
  margin: 0;
}

.productDepartmentTitle span,
.productSubcategoryTitle span {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  font-weight: 950;
  color: var(--green);
}

.productSubcategory {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.emptyState.compact {
  padding: 10px;
}

.productIcon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: white;
  font-size: 26px;
  overflow: hidden;
}

.productIcon img {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.productTitle {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 950;
}

.productMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.categoryGroupTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.categoryGroupTabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
}

.categoryGroupTabs button.active {
  background: var(--dark-green);
  color: white;
}

.categoryGroupTabs span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(33, 173, 61, 0.14);
  color: inherit;
  font-size: 12px;
}

.shortDatePanel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.shortDateControls {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.shortDateRange {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
  min-width: min(410px, 100%);
}

.sectionHeader.compact {
  margin-bottom: 0;
  align-items: flex-start;
}

.sectionHeader.compact label {
  min-width: 190px;
}

.shortDateList {
  display: grid;
  gap: 8px;
}

.shortDateItem {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.shortDateItem strong,
.shortDateItem span {
  display: block;
}

.shortDateItem span {
  color: var(--muted);
  font-weight: 850;
}

.shortDateBadge,
.sellByMeta {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff2df;
  color: #9a4f00 !important;
  font-weight: 950 !important;
  white-space: nowrap;
}

.shortDateItem.urgent .shortDateBadge {
  background: #ffe3d7;
  color: #a52d12 !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.pill.accent {
  background: #dff7de;
  color: #075a25;
}

.pill.ok {
  background: #dff7de;
  color: #075a25;
}

.pill.warn {
  background: #ffe8dc;
  color: #983514;
}

.printIdPill {
  background: #062b14;
  color: white;
}

.productCode,
.itemCode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.itemCode {
  display: block;
  color: #075a25 !important;
  font-weight: 950 !important;
}

.oldPrice {
  text-decoration: line-through;
}

.editableRow {
  display: grid;
  grid-template-columns: 80px 78px minmax(140px, 1fr) minmax(140px, 1fr) 126px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.subcategoryEditorField textarea {
  min-height: 82px;
}

.editableRow.storyRow {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.storyImageControls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.storyImageField {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.storyImagePreview {
  display: block;
  margin-top: 10px;
}

.storyImagePreview img {
  width: min(100%, 320px);
  height: 150px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

.storyImagePreview small {
  color: var(--muted);
  font-weight: 700;
}

.editorList.compact {
  margin-top: 14px;
}

.tableRow,
.summaryList div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.tableRow div,
.summaryList div {
  min-width: 0;
}

.tableRow strong,
.tableRow span,
.tableRow a,
.summaryList span,
.summaryList strong {
  display: block;
}

.tableRow a {
  color: var(--blue);
  font-weight: 900;
}

.customerDetailRow {
  width: 100%;
  min-height: 0;
  text-align: left;
}

.customerDetailRow:hover {
  border-color: rgba(33, 173, 61, 0.34);
  background: #f7fbf5;
}

.customerEmailStatus {
  margin-top: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.employeeList {
  display: grid;
  gap: 10px;
}

.priceSetContent {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.priceSetBox {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.priceRuleGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.priceRuleCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.priceRuleCard h3 {
  margin: 0;
  font-size: 20px;
}

.priceRuleCard p,
.helperText {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.loyaltyPriceRuleCard {
  margin-top: 0;
}

.employeeGroupGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.employeeGroupCard {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.employeeGroupCard h3 {
  margin: 0;
  font-size: 20px;
}

.employeeGroupTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employeeGroupTitle a {
  min-width: 0;
  overflow-wrap: anywhere;
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.employeeRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.employeeFields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.employeeDropdown {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.employeeDropdown summary {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(90px, auto) minmax(140px, auto) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.employeeDropdown summary::-webkit-details-marker {
  display: none;
}

.employeeDropdown summary::after {
  content: "Open";
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef6ea;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.employeeDropdown[open] summary {
  border-bottom: 1px solid var(--line);
}

.employeeDropdown[open] summary::after {
  content: "Close";
}

.employeeDropdownName {
  font-size: 17px;
  font-weight: 950;
}

.employeeDropdownMeta {
  color: var(--muted);
  font-weight: 900;
}

.employeeDropdownStatus {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbffe6;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.employeeDropdownStatus.disabled {
  background: #ffe3d9;
  color: #a33216;
}

.employeeDropdownFields {
  padding: 12px;
}

.employeeDropdown > .danger {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
}

@media (max-width: 700px) {
  .employeeDropdown summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .employeeDropdown summary::after {
    justify-self: start;
  }
}

.employeeScheduleDropdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.employeeScheduleDropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  font-weight: 950;
  list-style-position: inside;
}

.employeeScheduleDropdown summary strong {
  color: var(--green);
  font-size: 13px;
}

.employeeSchedule {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: white;
}

.employeeScheduleHeader,
.employeeScheduleRow {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 120px) minmax(0, 120px);
  align-items: center;
  gap: 8px;
}

.employeeScheduleHeader {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.employeeScheduleRow input[type="time"] {
  width: 100%;
  min-height: 50px;
  padding: 8px 52px 8px 10px;
  border: 0;
  font-size: 18px;
}

.employeeTimeControl {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.employeeTimeButtons {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  display: grid;
  width: 44px;
  gap: 2px;
}

.employeeTimeButtons button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #edf5ea;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  box-shadow: none;
}

.employeeDayToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.employeeDayToggle input {
  width: 18px;
  height: 18px;
}

.orderRow {
  align-items: flex-start;
}

.orderRow .orderMeta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.displayScreenGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.displayScreenCard {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.displayScreenCard > div:first-child {
  display: grid;
  gap: 6px;
}

.displayScreenCard > div:first-child span {
  color: var(--muted);
  font-weight: 900;
}

.displayScreenCard > div:first-child strong {
  font-size: 44px;
  line-height: 1;
}

.displayScreenCard h3 {
  margin: 0;
  font-size: 24px;
}

.displayScreenList {
  display: grid;
  gap: 8px;
}

.displayScreenList article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.displayScreenList article span {
  color: var(--muted);
  font-weight: 800;
}

.displayScreenList article b {
  color: var(--green);
}

.displayScreenList p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.displayLinkRow {
  display: flex;
  justify-content: flex-end;
}

.pickerStats,
.driverStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pickerStats article,
.driverStats article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pickerStats span,
.driverStats span,
.pickerOrderCard span,
.pickerItem span,
.driverOrderCard span,
.driverItem span {
  color: var(--muted);
  font-weight: 800;
}

.pickerStats strong,
.driverStats strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.pickerOrderList,
.driverOrderList {
  display: grid;
  gap: 14px;
}

.deliveryWorkflowStatus {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.deliveryWorkflowStatus.ready { background: #e6f7e8; color: #126b2b; }
.deliveryWorkflowStatus.blocked { background: #fff0dc; color: #8b4a00; }
.deliveryWorkflowStatus span { font-size: 13px; }

.deliveryDispatchGrid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 16px;
}

.deliveryDispatchCard,
.deliveryManagementRouteCard {
  border: 1px solid #c9dbc6;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.deliveryDispatchCard h3 { margin-top: 0; }
.deliveryEligibleOrders { display: grid; gap: 8px; margin-top: 12px; }
.deliveryOrderChoice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e5d4;
  border-radius: 10px;
  padding: 10px;
}
.deliveryOrderChoice span { display: grid; gap: 3px; }
.deliveryOrderChoice small { overflow-wrap: anywhere; color: #60705d; }
.deliveryRouteSelectionSummary { display: grid; gap: 4px; margin: 14px 0; }
.deliveryRouteSelectionSummary span { color: #60705d; font-size: 13px; }
.deliveryManagementRouteList,
.deliveryManagementStops { display: grid; gap: 12px; }
.deliveryManagementRouteCard > header,
.deliveryManagementStop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.deliveryManagementRouteCard > header > div,
.deliveryManagementStop > div { display: grid; gap: 4px; }
.deliveryManagementRouteCard > header span,
.deliveryManagementStop span { color: #60705d; font-size: 13px; }
.deliveryManagementStops { border-top: 1px solid #d8e5d4; margin-top: 12px; padding-top: 12px; }
.deliveryManagementStop { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.deliveryStopNumber {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #173d20;
  color: #fff !important;
  font-weight: 800;
}

@media (max-width: 800px) {
  .deliveryDispatchGrid { grid-template-columns: 1fr; }
  .deliveryManagementStop { grid-template-columns: auto minmax(0, 1fr); }
  .deliveryManagementStop > .pill,
  .deliveryManagementStop > .inlineActions { grid-column: 2; }
}

.pickerOrderCard,
.driverOrderCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.pickerOrderCard header,
.pickerOrderCard footer,
.pickerItem,
.driverOrderCard header,
.driverOrderCard footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pickerOrderCard header,
.driverOrderCard header {
  align-items: flex-start;
}

.pickerOrderCard header {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(260px, max-content);
  justify-content: start;
  column-gap: 26px;
}

.pickerOrderCard header .pickerOrderMeta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.pickerOrderMeta,
.driverOrderMeta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.pickerItems,
.driverItems {
  display: grid;
  gap: 8px;
}

.pickerItemsDropdown,
.orderItemsDropdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.pickerItemsDropdown summary,
.orderItemsDropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  font-weight: 1000;
  list-style: none;
}

.pickerItemsDropdown summary::-webkit-details-marker,
.orderItemsDropdown summary::-webkit-details-marker {
  display: none;
}

.pickerItemsDropdown summary::after,
.orderItemsDropdown summary::after {
  content: "⌄";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.pickerItemsDropdown[open] summary::after,
.orderItemsDropdown[open] summary::after {
  transform: rotate(180deg);
}

.pickerItemsDropdown .pickerItems,
.orderItemsDropdown .driverItems {
  padding: 0 12px 12px;
}

.pickerOrderCustomer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.driverItem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.pickerItem {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.pickerItem.picked {
  border-color: rgba(33, 173, 61, 0.34);
  background: #f0faee;
}

.pickerItem.missing {
  border-color: rgba(157, 45, 17, 0.22);
  background: #fff1eb;
}

.pickerIssue {
  color: #9d2d11 !important;
}

.pickerItemActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.customerOrderHistory {
  gap: 14px;
}

.customerHistoryCard {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.customerHistoryHeader,
.customerOrderLine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.customerHistoryHeader {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.customerRewardSummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.customerHistoryHeader h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.customerHistoryHeader span,
.customerRewardSummary span:not(.pill),
.customerOrderLine span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.customerRewardSummary strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.customerOrderLine {
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.customerOrderLine > div:last-child {
  text-align: right;
}

.quickActions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emptyState {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.codePreview {
  max-height: 560px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #07130a;
  color: #d9fbe2;
  font-size: 12px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #07130a;
  color: white;
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .appFrame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .navTabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .statsGrid,
  .panelGrid,
  .twoColumn,
  .priceSetContent {
    grid-template-columns: 1fr;
  }

  .editableRow {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 700px) {
  .storyImageControls {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 14px;
  }

  .topbar,
  .sectionHeader,
  .inlineActions {
    align-items: stretch;
    flex-direction: column;
  }

  .navTabs,
  .grid.two,
  .grid.three,
  .settingsGrid,
  .settingsColourGrid,
  .accountsUnlockForm,
  .customerRewardSummary,
  .quickActions,
  .editableRow,
  .priceRuleGrid,
  .employeeGroupGrid,
  .employeeRow,
  .employeeFields,
  .accountProfitHeader,
  .accountProfitRow,
  .shortDateRange,
  .productRow,
  .shortDateItem {
    grid-template-columns: 1fr;
  }

  .shortDateControls {
    justify-content: stretch;
  }

  .accountProfitHeader {
    display: none;
  }

  .rowActions {
    justify-content: stretch;
  }

  .rowActions button {
    flex: 1;
  }
}

@media print {
  body.printingShortDates {
    background: #fff;
  }

  body.printingShortDates .sidebar,
  body.printingShortDates .topbar,
  body.printingShortDates .toast,
  body.printingShortDates .tabPanel:not(#shortDates),
  body.printingShortDates #printShortDatesButton {
    display: none !important;
  }

  body.printingShortDates .appFrame,
  body.printingShortDates .workspace,
  body.printingShortDates #shortDates,
  body.printingShortDates .shortDatePanel {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.printingShortDates .shortDateControls {
    grid-template-columns: repeat(2, 190px) !important;
    margin-bottom: 12px !important;
  }

  body.printingShortDates .shortDateItem {
    grid-template-columns: 2fr 0.7fr 0.8fr 0.7fr !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media print {
  body.printingReorderReport .sidebar,
  body.printingReorderReport .topbar,
  body.printingReorderReport .accountsLock,
  body.printingReorderReport .accountStatusCard,
  body.printingReorderReport .accountSectionTabs,
  body.printingReorderReport .accountAdminTabs,
  body.printingReorderReport .accountProfitCard:not(.stockControlCard),
  body.printingReorderReport .sectionHeader button,
  body.printingReorderReport .stockToolbar,
  body.printingReorderReport .stockLegend,
  body.printingReorderReport .stockActions,
  body.printingReorderReport .stockLots,
  body.printingReorderReport .toast,
  body.printingReorderReport .tabPanel:not(#accounts) {
    display: none !important;
  }

  body.printingReorderReport .appFrame,
  body.printingReorderReport .workspace,
  body.printingReorderReport #accounts,
  body.printingReorderReport .accountsPanel,
  body.printingReorderReport .accountsContent,
  body.printingReorderReport .accountAdminPanels,
  body.printingReorderReport .accountAdminPanel.active,
  body.printingReorderReport .stockControlCard {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  body.printingReorderReport .stockSummaryGrid {
    grid-template-columns: repeat(5, 1fr);
  }

  body.printingReorderReport .stockHeader,
  body.printingReorderReport .stockRow {
    grid-template-columns: 1.4fr .9fr 1fr .8fr;
  }

  body.printingReorderReport .stockRow > :nth-child(5) {
    display: none !important;
  }
}

.sizeVariantEditor {
  display: grid;
  gap: 8px;
}

.sizeVariantHeader,
.sizeVariantRow {
  display: grid;
  grid-template-columns: 42px 86px minmax(90px, 1fr) minmax(130px, 1.4fr);
  gap: 8px;
  align-items: center;
}

.sizeVariantHeader {
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.sizeVariantRow {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.sizeVariantRow input[type="checkbox"] {
  width: 22px;
  height: 22px;
  justify-self: center;
}

.sizeVariantRow input:not([type="checkbox"]) {
  height: 36px;
}

.sizeVariantMeta {
  display: block;
  width: 100%;
}

.preparationEditor,
.multiBuyEditor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.preparationEditor > strong,
.multiBuyEditor > strong {
  font-size: 16px;
  font-weight: 1000;
}

.preparationEditor label,
.multiBuyEditor label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.preparationEditor input[type="checkbox"],
.multiBuyEditor input[type="checkbox"] {
  width: auto;
}

.preparationEditor p,
.multiBuyEditor p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input:disabled {
  color: var(--muted);
  background: #f2f6ef;
  cursor: not-allowed;
}


@media print {
  body.printingAccountsProfit {
    background: #fff;
  }

  body.printingAccountsProfit .sidebar,
  body.printingAccountsProfit .topbar,
  body.printingAccountsProfit .accountsLock,
  body.printingAccountsProfit .accountStatusCard,
  body.printingAccountsProfit .accountAdminTabs,
  body.printingAccountsProfit .accountProfitGroupTabs,
  body.printingAccountsProfit .accountProfitCard:not(.accountProductProfitCard),
  body.printingAccountsProfit .sectionHeader button,
  body.printingAccountsProfit .toast,
  body.printingAccountsProfit .tabPanel:not(#accounts) {
    display: none !important;
  }

  body.printingAccountsProfit .appFrame,
  body.printingAccountsProfit .workspace,
  body.printingAccountsProfit #accounts,
  body.printingAccountsProfit .accountsPanel,
  body.printingAccountsProfit .accountsContent,
  body.printingAccountsProfit .accountAdminPanels,
  body.printingAccountsProfit .accountAdminPanel.active,
  body.printingAccountsProfit .accountProductProfitCard,
  body.printingAccountsProfit .accountReviewPanel {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  body.printingAccountsProfit .accountProfitCard .sectionHeader {
    display: block !important;
    margin-bottom: 12px !important;
  }

  body.printingAccountsProfit .accountProfitCard h3 {
    margin: 0 0 4px !important;
    font-size: 22px !important;
  }

  body.printingAccountsProfit .accountProfitCard p {
    margin: 0 0 12px !important;
    color: #333 !important;
  }

  body.printingAccountsProfit .accountProfitHeader,
  body.printingAccountsProfit .accountProfitRow {
    grid-template-columns: 2fr 0.75fr 1.2fr 0.65fr !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printingAccountsProfit .accountProfitRow {
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
}



.accountSalesSummaryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.accountSalesSummaryGrid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.accountSalesSummaryGrid span,
.accountSalesSummaryGrid strong {
  display: block;
}

.accountSalesSummaryGrid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.accountSalesSummaryGrid strong {
  margin-top: 4px;
  font-size: 20px;
}

@media print {
  body.printingAccountsSalesReview {
    background: #fff;
  }

  body.printingAccountsSalesReview .sidebar,
  body.printingAccountsSalesReview .topbar,
  body.printingAccountsSalesReview .accountsLock,
  body.printingAccountsSalesReview .accountStatusCard,
  body.printingAccountsSalesReview .accountAdminTabs,
  body.printingAccountsSalesReview .accountProfitCard:not(.accountSalesReviewCard),
  body.printingAccountsSalesReview .sectionHeader button,
  body.printingAccountsSalesReview .toast,
  body.printingAccountsSalesReview .tabPanel:not(#accounts) {
    display: none !important;
  }

  body.printingAccountsSalesReview .appFrame,
  body.printingAccountsSalesReview .workspace,
  body.printingAccountsSalesReview #accounts,
  body.printingAccountsSalesReview .accountsPanel,
  body.printingAccountsSalesReview .accountsContent,
  body.printingAccountsSalesReview .accountAdminPanels,
  body.printingAccountsSalesReview .accountAdminPanel.active,
  body.printingAccountsSalesReview .accountSalesReviewCard,
  body.printingAccountsSalesReview .accountReviewPanel {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  body.printingAccountsSalesReview .accountSalesSummaryGrid {
    grid-template-columns: repeat(4, 1fr) !important;
    margin-bottom: 12px !important;
  }

  body.printingAccountsSalesReview .accountProfitHeader,
  body.printingAccountsSalesReview .accountProfitRow {
    grid-template-columns: 2fr 0.45fr 0.75fr 0.9fr 0.55fr !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printingAccountsSalesReview .accountProfitRow {
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
}



.adminUsersCard {
  background: #fff;
}

.adminUsersList {
  display: grid;
  gap: 10px;
}

.adminUserRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) minmax(92px, auto);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.adminUserRow button {
  min-width: 90px;
}

@media (max-width: 900px) {
  .adminUserRow {
    grid-template-columns: 1fr;
  }
}


.accountsSalesRangeControls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 4px;
}

.accountsSalesRangeControls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.accountsSalesRangeControls input[type="date"] {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf5 100%);
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(5, 72, 23, 0.05);
}

.accountsSalesRangeControls input[type="date"]:focus {
  border-color: var(--green);
  outline: 3px solid rgba(33, 173, 61, 0.13);
}

.accountSnapshotNotice {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 700px) {
  .accountsSalesRangeControls,
  .accountSalesSummaryGrid {
    grid-template-columns: 1fr;
  }

  .purchaseReceiptHeader {
    display: none;
  }

  .purchaseReceiptRow {
    grid-template-columns: 1fr;
  }
}

@media print {
  body.printingPurchaseReceipts {
    background: #fff;
  }

  body.printingPurchaseReceipts .sidebar,
  body.printingPurchaseReceipts .topbar,
  body.printingPurchaseReceipts .accountsLock,
  body.printingPurchaseReceipts .accountStatusCard,
  body.printingPurchaseReceipts .accountSectionTabs,
  body.printingPurchaseReceipts .accountAdminTabs,
  body.printingPurchaseReceipts .accountProfitCard:not(.purchaseReceiptsCard),
  body.printingPurchaseReceipts .sectionHeader button,
  body.printingPurchaseReceipts .toast,
  body.printingPurchaseReceipts .tabPanel:not(#accounts) {
    display: none !important;
  }

  body.printingPurchaseReceipts .appFrame,
  body.printingPurchaseReceipts .workspace,
  body.printingPurchaseReceipts #accounts,
  body.printingPurchaseReceipts .accountsPanel,
  body.printingPurchaseReceipts .accountsContent,
  body.printingPurchaseReceipts .accountAdminPanels,
  body.printingPurchaseReceipts .accountAdminPanel.active,
  body.printingPurchaseReceipts .purchaseReceiptsCard {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  body.printingPurchaseReceipts .purchaseReceiptSummaryGrid {
    grid-template-columns: repeat(4, 1fr) !important;
    margin: 8px 0 12px !important;
  }

  body.printingPurchaseReceipts .purchaseReceiptHeader,
  body.printingPurchaseReceipts .purchaseReceiptRow {
    grid-template-columns: 1.05fr 1.6fr 0.7fr 1.15fr 0.45fr !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.printingPurchaseReceipts .purchaseReceiptRow {
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.printingPurchaseReceipts .receiptItemLine,
  body.printingPurchaseReceipts .receiptTrail span {
    padding: 3px 0 !important;
    border: 0 !important;
    background: #fff !important;
  }
}


.accountSectionTabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.accountSectionTabs button {
  min-height: clamp(52px, 4vw, 64px);
  padding: 12px clamp(14px, 1.6vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
  color: var(--ink);
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 1000;
}

.accountSectionTabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.accountAdminTabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.accountAdminTabs button {
  min-height: clamp(44px, 4vw, 56px);
  padding: 10px clamp(12px, 1.3vw, 18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 1000;
}

.accountAdminTabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.accountAdminPanels {
  display: grid;
  gap: 14px;
}

.accountAdminPanel {
  display: none;
  gap: 14px;
}

.accountAdminPanel.active {
  display: grid;
}

.settingsAccountGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}


.accountSectionTabs.isReordering,
.accountAdminTabs.isReordering {
  user-select: none;
}

.accountSectionTabs button,
.accountAdminTabs button {
  touch-action: none;
}

.accountSectionTabs button.isDragging,
.accountAdminTabs button.isDragging {
  cursor: grabbing;
  box-shadow: 0 16px 32px rgba(5, 72, 23, 0.2);
  transform: scale(1.03);
}

.accountTabPlaceholder {
  border: 2px dashed rgba(0, 111, 53, 0.32) !important;
  background: rgba(232, 247, 228, 0.72) !important;
  color: transparent !important;
}

.loginRecordsList {
  display: grid;
  gap: 12px;
}

.loginRecordGroup {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf5;
}

.loginRecordGroupTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loginRecordGroupTitle h3 {
  margin: 0;
}

.loginRecordGroupTitle span {
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 1000;
}

.loginRecordRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.loginRecordRow strong,
.loginRecordRow span {
  display: block;
}

.loginRecordRow span {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 850;
}

.loginRecordRow b {
  color: var(--green);
}


.accountsPanel .sectionHeader,
.accountsPanel .compactHeader,
.accountsPanel .inlineActions,
.accountsPanel .adminUserRow,
.accountsPanel .employeeRow,
.accountsPanel .accountProfitHeader,
.accountsPanel .accountProfitRow,
.accountsPanel .accountSalesSummaryGrid,
.accountsPanel .loginRecordRow {
  min-width: 0;
}

.accountsPanel .sectionHeader,
.accountsPanel .compactHeader {
  flex-wrap: wrap;
}

.accountsPanel input,
.accountsPanel select,
.accountsPanel textarea,
.accountsPanel button {
  max-width: 100%;
}

@media (min-width: 1300px) {
  .accountsContent {
    gap: 18px;
  }

  .accountAdminTabs {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .adminUserRow {
    grid-template-columns: repeat(3, minmax(240px, 1fr)) minmax(110px, auto);
  }
}


.driverPaySettingsCard {
  display: block;
}

.driverPayReviewBlock {
  margin-top: 18px;
  border-top: 1px solid #d8e6d2;
  padding-top: 16px;
}

.driverPayRows {
  display: grid;
  gap: 10px;
}

.driverPayReviewRow {
  border: 1px solid #d8e6d2;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.driverPayReviewRow header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.driverPayReviewRow header div {
  display: grid;
  gap: 4px;
}

.driverPayReviewRow header span {
  color: #61705f;
}

.driverPayChipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.driverPayChipRow span {
  border: 1px solid #d8e6d2;
  border-radius: 999px;
  background: #f4f9f1;
  padding: 5px 9px;
  font-weight: 800;
  color: #243024;
}


.payPrototypePanel {
  background: transparent;
}

.payPrototypeShell {
  display: grid;
  gap: 18px;
}

.payPrototypeHero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #003d1d, #23b545);
  color: #fff;
}

.payPrototypeEyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payPrototypeHero h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: .92;
}

.payPrototypeBadge {
  min-width: 190px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.payPrototypeBadge span,
.payPrototypeStatGrid span,
.payPrototypeRecordCard span,
.payPrototypeProgressBox span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.payPrototypeBadge strong {
  display: block;
  font-size: 34px;
}

.payPrototypeTabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payPrototypeTabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4ea;
  color: var(--ink);
  font-weight: 1000;
}

.payPrototypeTabs button.active {
  border-color: #00853f;
  background: #00853f;
  color: #fff;
}

.payPrototypeView {
  display: none;
}

.payPrototypeView.active {
  display: block;
}

.payPrototypeDashboard {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(320px, 1.05fr);
  gap: 18px;
}

.payPrototypePhonePanel,
.payPrototypeSummaryPanel,
.payPrototypeInfoCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}

.payPrototypePhoneHeader {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 18px;
  background: #07130a;
  color: #fff;
}

.payPrototypePhoneHeader p {
  margin: 0 0 3px;
  color: #b8c9b3;
  font-weight: 900;
}

.payPrototypePhoneHeader h3,
.payPrototypeSummaryPanel h3 {
  margin: 0;
  font-size: 30px;
}

.payPrototypePhoneHeader > span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8ffe9;
  color: #00853f;
  font-size: 13px;
  font-weight: 1000;
}

.payPrototypeOrderList {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.payPrototypeOrderCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f4faf2;
}

.payPrototypeOrderCard strong {
  display: block;
  font-size: 20px;
}

.payPrototypeOrderCard span,
.payPrototypeOrderCard p {
  color: var(--muted);
  font-weight: 900;
}

.payPrototypeMoneyLine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.payPrototypeMoneyLine b {
  color: #00853f;
  font-size: 32px;
}

.payPrototypeChipRow,
.driverPayChipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.payPrototypeChipRow span,
.driverPayChipRow span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.payPrototypeSummaryPanel,
.payPrototypeInfoCard {
  padding: 18px;
}

.payPrototypeSummaryPanel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}

.payPrototypeStatGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.payPrototypeStatGrid article,
.payPrototypeProgressBox,
.payPrototypeRecordCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4faf2;
  padding: 14px;
}

.payPrototypeStatGrid strong,
.payPrototypeRecordCard strong {
  display: block;
  font-size: 26px;
}

.payPrototypeProgressBox {
  margin-top: 14px;
}

.payPrototypeProgressBox div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payPrototypeProgressBox i {
  display: block;
  height: 14px;
  margin-top: 10px;
  border-radius: 999px;
  background: #dce8d7;
  overflow: hidden;
}

.payPrototypeProgressBox b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #00853f;
}

.payPrototypeRecordCard {
  position: relative;
  margin-top: 14px;
}

.payPrototypeRecordCard button {
  position: absolute;
  right: 14px;
  top: 14px;
}

.payPrototypeRecordCard.tint {
  background: #fffaf7;
}

.proofMiniTimeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.proofMiniTimeline article {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f4faf2;
}

.proofMiniTimeline b {
  min-width: 42px;
  color: #00853f;
}

.receiptSettingsPreview {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbf5;
}

.receiptSettingsPreview h3 {
  margin: 0 0 8px;
}

.receiptSettingsPreview ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .payPrototypeTabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payPrototypeDashboard,
  .payPrototypeHero {
    grid-template-columns: 1fr;
    display: grid;
  }
}


.customerReceiptPreviewCard {
  margin-top: 18px;
}

.customerReceiptPreview {
  display: flex;
  justify-content: center;
  padding: 18px;
  background: #f4f8f1;
  border: 1px dashed #cfe1c8;
  border-radius: 10px;
}

.customerReceiptPaper {
  width: min(100%, 380px);
  background: #fff;
  border: 1px solid #d9e6d1;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(6, 55, 20, 0.12);
  color: #07130b;
  padding: 18px;
  font-size: 14px;
}

.customerReceiptPaperHeader {
  text-align: center;
  border-bottom: 2px solid #0c7d34;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.customerReceiptPaperHeader strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.customerReceiptPaperHeader span,
.customerReceiptCustomer span,
.customerReceiptItems span,
.customerReceiptPaper footer {
  color: #5e6d5a;
  font-weight: 800;
}

.customerReceiptMeta {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  color: #5e6d5a;
  font-weight: 900;
}

.customerReceiptCustomer {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f8f1;
  margin-bottom: 12px;
}

.customerReceiptItems {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.customerReceiptItems th,
.customerReceiptItems td {
  border-bottom: 1px solid #e0eadc;
  padding: 8px 4px;
  text-align: left;
  vertical-align: top;
}

.customerReceiptItems th:last-child,
.customerReceiptItems td:last-child {
  text-align: right;
}

.customerReceiptItems strong,
.customerReceiptItems span {
  display: block;
}

.customerReceiptTotals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  border-top: 2px solid #0c7d34;
  padding-top: 10px;
  font-weight: 900;
}

.customerReceiptTotals strong {
  text-align: right;
}

.customerReceiptPaper footer {
  border-top: 1px solid #e0eadc;
  margin-top: 12px;
  padding-top: 10px;
  text-align: center;
}

/* Driver stats row: keep Active runs inline */
#driverStats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  #driverStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.admin-locked .workspace,
body.admin-locked .navTabs > :not(.adminNavGroup),
body.admin-locked .sidebar > .brand,
body.admin-locked .sidebar > p {
  display: none !important;
}

body.admin-locked .appFrame {
  display: grid;
  grid-template-columns: minmax(300px, 460px);
  justify-content: center;
  min-height: 100vh;
}

body.admin-locked .sidebar {
  width: auto;
  min-height: auto;
  align-self: center;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(3, 38, 14, 0.2);
}

body.admin-locked .adminNavGroup > span {
  font-size: 1.05rem;
}

body.admin-locked .adminLoginForm {
  display: grid;
}
