/**
 * PayfastPOS â€” Carbon Bay / Volt shell (from docs/design/tokens.css)
 */
:root {
  --pf-bg: #12161c;
  --pf-surface: #1c232d;
  --pf-ink: #eef2f6;
  --pf-muted: #9aa7b5;
  --pf-border: #2e3845;
  --pf-primary: #3d4f63;
  --pf-primary-strong: #2a3645;
  --pf-action: #b6ff3b;
  --pf-action-ink: #0b1220;
  --pf-danger: #ff5c5c;
  --pf-focus: #b6ff3b;
  --pf-company-accent: var(--pf-action);
  --pf-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --pf-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --pf-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pf-radius: 10px;
  --pf-radius-sm: 6px;
  --pf-shadow: 0 1px 2px rgb(0 0 0 / 35%);
  --pf-touch-min: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--pf-bg);
  color: var(--pf-ink);
  font-family: var(--pf-font-body);
  line-height: 1.5;
}
a { color: var(--pf-action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .pf-display { font-family: var(--pf-font-display); letter-spacing: 0.02em; margin: 0 0 .5rem; }
.pf-shell { display: flex; flex-direction: column; min-height: 100vh; }
.pf-header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .75rem 1.25rem; background: var(--pf-surface); border-bottom: 1px solid var(--pf-border);
}
.pf-brand { display: flex; align-items: center; gap: .75rem; min-height: var(--pf-touch-min); }
.pf-brand img { max-height: 40px; width: auto; }
.pf-brand-title { font-family: var(--pf-font-display); font-size: 1.35rem; text-transform: uppercase; }
.pf-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
.pf-nav a, .pf-nav button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--pf-touch-min); padding: 0 .9rem;
  border-radius: var(--pf-radius-sm); border: 1px solid var(--pf-border);
  background: var(--pf-primary); color: var(--pf-ink); font: inherit; cursor: pointer;
}
.pf-nav a.is-active, .pf-nav a.pf-action-link { background: var(--pf-action); color: var(--pf-action-ink); border-color: transparent; font-weight: 600; }
.pf-main { flex: 1; padding: 1rem; max-width: 1400px; width: 100%; margin: 0 auto; }
.pf-footer { padding: 1rem; text-align: center; color: var(--pf-muted); font-size: .875rem; border-top: 1px solid var(--pf-border); }
.pf-card {
  background: var(--pf-surface); border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
  padding: 1rem; box-shadow: var(--pf-shadow); margin-bottom: 1rem;
}
.pf-grid { display: grid; gap: 1rem; }
.pf-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pf-grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pf-stat { font-family: var(--pf-font-display); font-size: 2rem; color: var(--pf-action); }
.pf-muted { color: var(--pf-muted); font-size: 1.05rem; }
.pf-label { display: block; font-size: 1.05rem; color: var(--pf-muted); margin-bottom: .35rem; font-weight: 600; }
.pf-field { margin-bottom: .85rem; }
.pf-field .pf-hint,
.pf-field > .pf-muted {
  display: block;
  margin-top: .3rem;
  font-size: 1rem;
  line-height: 1.4;
}
.pf-input, .pf-select, .pf-textarea {
  width: 100%; min-height: var(--pf-touch-min); padding: .65rem .8rem;
  border-radius: var(--pf-radius-sm); border: 1px solid var(--pf-border);
  background: var(--pf-bg); color: var(--pf-ink); font: inherit; font-size: 1.05rem;
}
.pf-textarea { min-height: 96px; resize: vertical; }
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--pf-touch-min); padding: 0 1rem; border-radius: var(--pf-radius-sm);
  border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer;
}
.pf-btn-primary { background: var(--pf-action); color: var(--pf-action-ink); }
.pf-btn-secondary { background: var(--pf-primary); color: var(--pf-ink); border-color: var(--pf-border); }
.pf-btn-danger { background: var(--pf-danger); color: #fff; }
.pf-table-wrap { overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pf-table th, .pf-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--pf-border); text-align: left; vertical-align: top; font-size: 1.05rem; }
.pf-table th { color: var(--pf-muted); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.pf-badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem;
  border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  background: var(--pf-primary-strong); border: 1px solid var(--pf-border);
}
.pf-badge-success { background: #1f3d1a; color: var(--pf-action); border-color: #3a5f2d; }
.pf-badge-warn { background: #4a3a12; color: #ffd56b; }
.pf-badge-danger { background: #4a1f1f; color: var(--pf-danger); }
.pf-subhead-staff {
  font-family: var(--pf-font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 1rem 0 .5rem;
}
.pf-id-waiver-grid {
  display: grid;
  gap: .85rem;
  margin-top: .75rem;
}
@media (min-width: 700px) {
  .pf-id-waiver-grid { grid-template-columns: 1fr 1fr; }
}
.pf-dob-id-row {
  display: flex;
  align-items: flex-end;
  gap: .85rem;
  margin: .5rem 0 .85rem;
}
.pf-dob-id-text { min-width: 0; }
.pf-dob-id-text strong { display: block; margin-top: .15rem; }
.pf-license-thumb-staff {
  flex: 0 0 auto;
  width: 96px;
  text-align: center;
  text-decoration: none;
  color: var(--pf-muted);
}
.pf-license-thumb-staff img {
  display: block;
  width: 96px !important;
  height: 64px !important;
  max-width: 96px !important;
  max-height: 64px !important;
  object-fit: cover !important;
  border-radius: 8px;
  border: 1px solid var(--pf-border);
  background: #0b1220;
}
.pf-license-thumb-staff span {
  display: block;
  margin-top: .25rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pf-action);
}
.pf-license-thumb-staff.is-missing {
  height: 64px;
  border: 1px dashed var(--pf-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-license-thumb-staff.is-missing span { margin: 0; color: var(--pf-muted); }
.pf-waiver-panel {
  margin-top: .5rem;
  padding: .85rem 1rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-bg);
}
.pf-license-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border: 1px dashed var(--pf-border);
  border-radius: 10px;
  color: var(--pf-muted);
  font-size: .9rem;
  background: var(--pf-surface);
}
.pf-waiver-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
  margin: .5rem 0 0;
}
.pf-waiver-meta dt { color: var(--pf-muted); }
.pf-waiver-meta dd { margin: 0; font-weight: 600; }
.pf-flash { padding: .75rem 1rem; border-radius: var(--pf-radius-sm); margin-bottom: 1rem; border: 1px solid var(--pf-border); }
.pf-flash-success { background: #1f3d1a; color: var(--pf-action); }
.pf-flash-error { background: #4a1f1f; color: var(--pf-danger); }
.pf-calendar { display: grid; gap: .75rem; }
.pf-calendar-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.pf-calendar-grid { display: grid; gap: .75rem; }
@media (min-width: 900px) { .pf-calendar-grid { grid-template-columns: 220px 1fr; } }
.pf-resource-list { display: grid; gap: .5rem; }
.pf-resource-chip {
  padding: .65rem .75rem; border-radius: var(--pf-radius-sm); border: 1px solid var(--pf-border);
  background: var(--pf-bg); font-size: .9rem;
}
.pf-resource-chip.is-oos { opacity: .65; border-style: dashed; }
.pf-timeline { position: relative; min-height: 720px; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-sm); overflow: hidden; background: var(--pf-bg); }
.pf-timeline-row { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--pf-border); min-height: 72px; }
.pf-timeline-label { padding: .5rem; font-size: .85rem; background: var(--pf-surface); border-right: 1px solid var(--pf-border); }
.pf-timeline-track { position: relative; min-height: 72px; }
.pf-booking-block {
  position: absolute; top: 6px; bottom: 6px; padding: .35rem .5rem; border-radius: var(--pf-radius-sm);
  background: var(--pf-action); color: var(--pf-action-ink); font-size: .75rem; font-weight: 700; overflow: hidden;
}
.pf-guest-hero { text-align: center; padding: 2rem 1rem; }
.pf-guest-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.pf-inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pf-mono { font-family: var(--pf-font-mono); }
@media (max-width: 640px) {
  .pf-header { padding: .5rem; }
  .pf-nav { width: 100%; margin-left: 0; }
  .pf-nav a { flex: 1 1 calc(50% - .35rem); font-size: .85rem; padding: 0 .5rem; }
  .pf-main { padding: .75rem; }
}

/* â€”â€” Staff app: sidebar | main side-by-side â€”â€” */
.pf-staff-body { min-height: 100vh; margin: 0; }
.pf-staff-app {
  --pf-sidebar-width: 260px;
  --pf-sidebar-collapsed: 76px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  min-height: 100vh;
  background: var(--pf-bg);
}
.pf-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  grid-column: 1;
  grid-row: 1;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 55%);
}
.pf-staff-app.is-nav-open .pf-sidebar-backdrop {
  display: block;
  width: auto;
  height: auto;
}
.pf-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  grid-column: 1;
  grid-row: 1;
  width: min(var(--pf-sidebar-width), 88vw);
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--pf-surface);
  border-right: 1px solid var(--pf-border);
  transform: translateX(-105%);
  transition: transform .2s ease, width .2s ease;
  /* Do not reserve layout space while overlaying */
  justify-self: start;
  align-self: start;
  pointer-events: none;
}
.pf-staff-app.is-nav-open .pf-sidebar {
  transform: translateX(0);
  pointer-events: auto;
}
.pf-sidebar-brand {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem .9rem; border-bottom: 1px solid var(--pf-border); min-height: 64px;
  flex: 0 0 auto;
}
.pf-sidebar-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; flex: 0 0 auto; }
.pf-sidebar-brand-text { min-width: 0; flex: 1; }
.pf-sidebar-title {
  font-family: var(--pf-font-display); font-size: 1.1rem; text-transform: uppercase;
  letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-sidebar-sub { color: var(--pf-muted); font-size: .75rem; }
.pf-sidebar-collapse {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--pf-radius-sm);
  border: 1px solid var(--pf-border); background: var(--pf-primary); color: var(--pf-ink); cursor: pointer;
}
.pf-sidebar-nav {
  flex: 1 1 auto; overflow-y: auto; padding: .75rem .65rem 1rem; min-height: 0;
}
.pf-nav-group { margin-bottom: .85rem; }
.pf-nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  margin: 0 0 .35rem;
  padding: .45rem .55rem;
  border: 0;
  border-radius: var(--pf-radius-sm);
  background: transparent;
  color: var(--pf-ink);
  cursor: pointer;
  text-align: left;
}
.pf-nav-group-toggle:hover { background: var(--pf-primary); }
.pf-nav-group-label {
  font-family: var(--pf-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pf-ink);
  line-height: 1.15;
}
.pf-nav-group-chevron {
  flex: 0 0 auto;
  color: var(--pf-muted);
  transition: transform .15s ease;
}
.pf-nav-group.is-open .pf-nav-group-chevron { transform: rotate(180deg); }
.pf-nav-group:not(.is-open) .pf-nav-group-items { display: none; }
.pf-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.pf-nav-children { margin: .1rem 0 .3rem; padding-left: .35rem; gap: .1rem; }
.pf-nav-link, .pf-nav-button {
  display: flex; align-items: center; gap: .65rem;
  min-height: 38px; padding: 0 .65rem; width: 100%;
  border-radius: var(--pf-radius-sm); border: 1px solid transparent;
  color: var(--pf-ink); background: transparent;
  font-family: var(--pf-font-body);
  font-size: .9rem;
  font-weight: 600;
  text-align: left; cursor: pointer;
  text-decoration: none;
}
.pf-nav-link .pf-nav-text { font-size: .9rem; }
.pf-nav-link.pf-nav-child {
  min-height: 32px; padding-left: 1.35rem; font-size: .82rem; font-weight: 500; color: var(--pf-muted);
}
.pf-nav-link:hover, .pf-nav-button:hover {
  background: var(--pf-primary); text-decoration: none; border-color: var(--pf-border);
}
.pf-nav-link.is-active {
  background: var(--pf-action); color: var(--pf-action-ink); font-weight: 700; border-color: transparent;
}
.pf-nav-link.pf-nav-child.is-active { color: var(--pf-action-ink); }
.pf-nav-icon {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  color: inherit;
}
.pf-nav-icon-svg { display: block; }
.pf-nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sidebar-foot {
  border-top: 1px solid var(--pf-border); padding: .65rem;
  display: grid; gap: .25rem; flex: 0 0 auto;
}
.pf-sidebar-form { margin: 0; }
.pf-staff-frame {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.pf-staff-topbar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .65rem 1rem; background: var(--pf-surface); border-bottom: 1px solid var(--pf-border);
  position: sticky; top: 0; z-index: 20;
}
.pf-staff-topbar-meta { min-width: 0; }
.pf-staff-topbar-company {
  font-family: var(--pf-font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem;
}
.pf-staff-main {
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  margin: 0;
}
.pf-nav-open { gap: .45rem; }

@media (min-width: 960px) {
  .pf-staff-app {
    grid-template-columns: var(--pf-sidebar-width) minmax(0, 1fr);
    align-items: stretch;
  }
  .pf-staff-app.is-nav-collapsed {
    grid-template-columns: var(--pf-sidebar-collapsed) minmax(0, 1fr);
  }
  .pf-sidebar {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    height: 100vh;
    width: 100%;
    max-width: none;
    transform: none;
    grid-column: 1;
    grid-row: 1;
    pointer-events: auto;
    z-index: 2;
  }
  .pf-staff-frame {
    grid-column: 2;
    grid-row: 1;
  }
  .pf-sidebar-collapse { display: inline-flex; }
  .pf-sidebar-backdrop,
  .pf-staff-app.is-nav-open .pf-sidebar-backdrop { display: none !important; }
  .pf-nav-open { display: none !important; }

  /* Collapsed icon bar */
  .pf-staff-app.is-nav-collapsed .pf-sidebar-brand-text,
  .pf-staff-app.is-nav-collapsed .pf-nav-group-toggle,
  .pf-staff-app.is-nav-collapsed .pf-nav-text,
  .pf-staff-app.is-nav-collapsed .pf-nav-children { display: none; }
  .pf-staff-app.is-nav-collapsed .pf-nav-group:not(.is-open) .pf-nav-group-items { display: grid; }
  .pf-staff-app.is-nav-collapsed .pf-sidebar-nav { padding: .65rem .4rem 1rem; }
  .pf-staff-app.is-nav-collapsed .pf-nav-link,
  .pf-staff-app.is-nav-collapsed .pf-nav-button {
    justify-content: center;
    padding: 0;
    min-height: 44px;
    width: 44px;
    margin-inline: auto;
  }
  .pf-staff-app.is-nav-collapsed .pf-sidebar-brand {
    justify-content: center;
    flex-direction: column;
    gap: .45rem;
    padding: .75rem .4rem;
  }
  .pf-staff-app.is-nav-collapsed .pf-sidebar-collapse {
    width: 32px;
    height: 32px;
  }
  .pf-staff-app.is-nav-collapsed .pf-sidebar-collapse svg { transform: rotate(180deg); }
  .pf-staff-app.is-nav-collapsed .pf-sidebar-foot { padding: .5rem .35rem; }
  .pf-staff-app.is-nav-collapsed .pf-nav-group { margin-bottom: .55rem; }
  .pf-staff-topbar { padding-left: 1.25rem; }
}

/* Trial onboarding tour (R1 checklist) */
.pf-tour {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
  padding: 1rem;
}
.pf-tour-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .5rem;
}
.pf-tour-kicker {
  font-size: .75rem;
  color: var(--pf-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pf-tour-title {
  font-family: var(--pf-font-display);
  font-size: 1.35rem;
  margin: .15rem 0 0;
  line-height: 1.15;
}
.pf-tour-close {
  border: 0;
  background: transparent;
  color: var(--pf-muted);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  padding: .25rem;
  white-space: nowrap;
}
.pf-tour-close:hover { color: var(--pf-ink); }
.pf-tour-body { margin: 0 0 .75rem; color: var(--pf-ink); font-size: .95rem; }
.pf-tour-pin-hint {
  margin: 0 0 .75rem;
  padding: .55rem .7rem;
  border-radius: var(--pf-radius-sm);
  background: rgb(182 255 59 / 12%);
  border: 1px solid rgb(182 255 59 / 35%);
  font-size: .9rem;
}
.pf-tour-pin-form { margin-bottom: .85rem; }
.pf-tour-checklist {
  list-style: none;
  margin: 0 0 .85rem;
  padding: 0;
  max-height: 160px;
  overflow: auto;
  border-top: 1px solid var(--pf-border);
  border-bottom: 1px solid var(--pf-border);
}
.pf-tour-checklist li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .4rem 0;
  font-size: .82rem;
  color: var(--pf-muted);
}
.pf-tour-checklist li.is-current { color: var(--pf-ink); font-weight: 600; }
.pf-tour-checklist li.is-done { color: var(--pf-action); }
.pf-tour-dot {
  width: .55rem;
  height: .55rem;
  margin-top: .3rem;
  border-radius: 50%;
  background: var(--pf-border);
  flex: 0 0 auto;
}
.pf-tour-checklist li.is-current .pf-tour-dot { background: var(--pf-action); }
.pf-tour-checklist li.is-done .pf-tour-dot { background: var(--pf-action); opacity: .55; }
.pf-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.pf-tour-reopen-form { margin: 0; }
.pf-tour-help-link {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  min-height: var(--pf-touch-min);
  align-items: center;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-primary);
  color: var(--pf-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: .35rem;
}
.pf-tour-help-link:hover { text-decoration: none; filter: brightness(1.08); }
body.pos-body .pf-tour { z-index: 120; }

/* Repair Center â€” horizontal kanban (PayfastRepairCenter bench: .bench-board / .queue-strip) */
.rc-bench-page { min-width: 0; width: 100%; }
.rc-bench-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.rc-bench-header h1 {
  font-family: var(--pf-font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.rc-lede { margin: 0; max-width: 46rem; line-height: 1.45; }

/* KPI strip â€” box cards, not plain text */
.rc-queue-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.rc-queue-stat {
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--pf-shadow);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rc-queue-stat:hover,
.rc-queue-stat.is-active {
  border-color: rgb(182 255 59 / 55%);
  background: var(--pf-surface);
  text-decoration: none;
}
.rc-queue-stat .pf-muted,
.rc-queue-stat span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pf-muted);
}
.rc-queue-stat strong {
  font-size: 1.5rem;
  font-family: var(--pf-font-display);
  letter-spacing: 0.02em;
  color: var(--pf-ink);
  line-height: 1.1;
}

/* Board + specialties: specialties below board so they never collapse the kanban */
.rc-bench-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  min-width: 0;
}
.rc-bench-main {
  min-width: 0;
  width: 100%;
  /* Do not inherit .pf-card stacking from parents */
  display: block;
}
.rc-specialty-panel {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}
.rc-specialty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.rc-specialty-list li { display: grid; gap: 0.15rem; }
.rc-specialty-list .pf-muted { font-size: 0.85rem; line-height: 1.35; }

/*
 * Horizontal kanban â€” flex row (more reliable than grid-auto-flow when parents are column flex).
 * Desktop: equal-ish columns in one scrollable row. Mobile: stack full-width.
 */
.rc-bench-board {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  min-height: 50vh;
  width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.rc-bench-board > .rc-bench-column {
  flex: 1 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  background: rgb(28 35 45 / 80%);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  min-height: 380px;
  max-height: calc(100vh - 220px);
  margin: 0;
  padding: 0;
  box-shadow: none;
}
/* Desktop / tablet: equal-ish columns in one row (scroll if needed) */
@media (min-width: 700px) {
  .rc-bench-board {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  .rc-bench-board > .rc-bench-column {
    flex: 1 0 220px;
    width: 220px;
    min-width: 220px;
    max-width: 320px;
  }
}
@media (min-width: 1100px) {
  .rc-bench-board > .rc-bench-column {
    flex: 1 1 0;
    width: auto;
    min-width: 180px;
    max-width: none;
  }
}
/* Narrow phones only: stack lanes */
@media (max-width: 699px) {
  .rc-bench-board {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-x: visible;
    overflow-y: visible;
    min-height: 0;
  }
  .rc-bench-board > .rc-bench-column {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none;
    min-height: 160px;
  }
}
.rc-bench-column--waiting_parts { border-color: rgb(255 213 107 / 40%); }
.rc-bench-column--waiting_parts .rc-bench-column-head {
  box-shadow: inset 0 3px 0 #ffd56b;
}
.rc-bench-column--diagnosing .rc-bench-column-head {
  box-shadow: inset 0 3px 0 #9aa7b5;
}
.rc-bench-column--in_progress .rc-bench-column-head {
  box-shadow: inset 0 3px 0 #5b8def;
}
.rc-bench-column--ready {
  border-color: rgb(182 255 59 / 55%);
  box-shadow: 0 0 0 1px rgb(182 255 59 / 18%), var(--pf-shadow);
}
.rc-bench-column--ready .rc-bench-column-head {
  background: linear-gradient(180deg, rgb(182 255 59 / 14%), var(--pf-surface));
  box-shadow: inset 0 3px 0 var(--pf-action);
}
.rc-bench-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--pf-border);
  position: sticky;
  top: 0;
  background: var(--pf-surface);
  border-radius: var(--pf-radius) var(--pf-radius) 0 0;
  z-index: 1;
  flex: 0 0 auto;
}
.rc-bench-column-head h2 {
  margin: 0;
  font-family: var(--pf-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rc-bench-column-body {
  padding: 0.55rem;
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  min-height: 0;
}
.rc-bench-column-body.is-over {
  background: rgb(182 255 59 / 8%);
  box-shadow: inset 0 0 0 1px rgb(182 255 59 / 35%);
}
.rc-bench-card {
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  padding: 0.55rem 0.65rem;
  cursor: grab;
  box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
  flex: 0 0 auto;
}
.rc-bench-card.is-ready {
  border-color: rgb(182 255 59 / 45%);
}
.rc-bench-card.priority-urgent,
.rc-bench-card.priority-high {
  border-color: rgb(255 92 92 / 55%);
  box-shadow: 0 0 0 1px rgb(255 92 92 / 20%), 0 4px 14px rgb(0 0 0 / 22%);
}
.rc-bench-card.is-dragging { opacity: 0.45; }
.rc-bench-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.rc-bench-card-link:hover { text-decoration: none; }
.rc-bench-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.25rem;
}
.rc-bench-card-top code { font-size: 0.8rem; }
.rc-bench-card-device {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}
.rc-bench-card-meta {
  font-size: 0.78rem;
  line-height: 1.3;
}
.rc-bench-card-actions {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--pf-border);
}
.rc-bench-card-actions select {
  width: 100%;
  min-height: 36px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--pf-ink);
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  padding: 0.3rem 0.45rem;
}
.rc-bench-empty-col {
  margin: 0.6rem 0.4rem;
  font-size: 0.85rem;
}
.rc-ticket-row.is-ready td:first-child {
  border-left: 3px solid var(--pf-action);
}
.rc-ticket-row.priority-high td:first-child,
.rc-ticket-row.priority-urgent td:first-child {
  border-left-color: var(--pf-danger);
}
@media (max-width: 700px) {
  .rc-queue-strip { grid-template-columns: 1fr 1fr; }
}

/* ===== PayfastERP bridge: restyle legacy light blades onto Carbon Bay ===== */
.font-display { font-family: var(--pf-font-display) !important; letter-spacing: .02em; text-transform: uppercase; }
.bg-fog, .bg-mist, .bg-white, .bg-white\/90, .bg-red-50, .bg-amber-50, .bg-amber-100 { background: var(--pf-surface) !important; }
.bg-hero-atmosphere { background: var(--pf-bg) !important; }
.min-h-screen { min-height: 100vh; }
.text-pine-deep, .text-pine, .text-ink, .text-red-800, .text-red-900, .text-amber-950 { color: var(--pf-ink) !important; }
.text-ink-soft, .text-white\/60, .text-white\/75, .text-white\/80 { color: var(--pf-muted) !important; }
.text-white { color: var(--pf-ink) !important; }
.border-pine\/10, .border-pine\/15, .border-pine\/20, .border-pine\/30, .border-red-200, .border-amber-200, .border-amber-300, .border-white\/20 { border-color: var(--pf-border) !important; }
.rounded-md, .rounded-lg, .rounded-2xl { border-radius: var(--pf-radius-sm); }
.shadow-xl, .shadow-lg { box-shadow: var(--pf-shadow); }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  background: var(--pf-bg) !important;
  color: var(--pf-ink) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: var(--pf-radius-sm) !important;
  min-height: 44px;
  padding: .65rem .8rem;
  font: inherit;
}
button.rounded-md.bg-pine, a.rounded-md.bg-pine, a.bg-pine, button.bg-pine, .bg-pine, .bg-pine-deep, .hover\:bg-pine-deep:hover, .bg-copper, .hover\:bg-copper-deep:hover {
  background: var(--pf-action) !important;
  color: var(--pf-action-ink) !important;
  border: 1px solid transparent !important;
  font-weight: 600;
}
a.text-pine, .text-pine { color: var(--pf-action) !important; }
table { width: 100%; border-collapse: collapse; }
th { color: var(--pf-muted); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
td, th { border-bottom: 1px solid var(--pf-border); padding: .7rem .75rem; text-align: left; }
main.max-w-6xl, .max-w-6xl, .max-w-3xl, .max-w-2xl, .max-w-lg { max-width: 1400px; }

/* ===== ERP operations screens (Carbon Bay module pages) ===== */
.erp-ops-back {
  margin-bottom: .65rem;
  font-size: .9rem;
}
.erp-ops-back a {
  color: var(--pf-action);
  text-decoration: none;
  font-weight: 600;
}
.erp-ops-back a:hover { text-decoration: underline; }

.erp-ops-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--pf-border);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgb(182 255 59 / 10%), transparent 55%),
    linear-gradient(135deg, #1c232d, #151a22);
}
.erp-ops-head-main { min-width: 0; flex: 1 1 16rem; }
.erp-ops-kicker {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pf-action);
  font-weight: 700;
  margin-bottom: .25rem;
}
.erp-ops-head h1 {
  margin: 0;
  font-family: var(--pf-font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.1;
}
.erp-ops-subtitle {
  margin: .45rem 0 0;
  max-width: 44rem;
  font-size: .95rem;
  line-height: 1.45;
}
.erp-ops-meta {
  margin: .5rem 0 0;
  font-size: .9rem;
  line-height: 1.45;
}

.erp-ops-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.erp-ops-stat {
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  padding: .85rem 1rem;
  display: grid;
  gap: .2rem;
  box-shadow: var(--pf-shadow);
  transition: border-color .15s ease;
}
.erp-ops-stat:hover { border-color: rgb(182 255 59 / 35%); }
.erp-ops-stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pf-muted);
  font-weight: 700;
}
.erp-ops-stat-value {
  font-family: var(--pf-font-display);
  font-size: 1.65rem;
  letter-spacing: .02em;
  color: var(--pf-ink);
  line-height: 1.1;
}

.erp-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.erp-ops-head .erp-ops-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
}
.erp-ops-actions--bar {
  margin-bottom: 1.25rem;
}
.erp-ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.erp-ops-table { min-width: 640px; font-size: .92rem; }
.erp-ops-table th,
.erp-ops-table td { padding: .55rem .65rem; }
.erp-ops-table th {
  font-size: .72rem;
  letter-spacing: .06em;
  background: rgb(11 18 32 / 45%);
  position: sticky;
  top: 0;
  z-index: 1;
}
.erp-ops-table tbody tr:hover { background: rgb(182 255 59 / 4%); }
.erp-ops-table .text-right { text-align: right; }
.erp-ops-table tfoot td,
.erp-ops-table tfoot th {
  font-weight: 700;
  border-top: 2px solid var(--pf-border);
  background: rgb(28 35 45 / 60%);
}
.pf-card .pf-table { min-width: 0; }
.pf-card.pf-table-wrap { padding: 0; overflow: hidden; }
.pf-card.pf-table-wrap .pf-table-wrap { margin: 0; }
.pf-card.pf-table-wrap .pf-table th:first-child,
.pf-card.pf-table-wrap .pf-table td:first-child { padding-left: 1rem; }
.pf-card.pf-table-wrap .pf-table th:last-child,
.pf-card.pf-table-wrap .pf-table td:last-child { padding-right: 1rem; }

.erp-ops-form-grid {
  display: grid;
  gap: .75rem;
}
@media (min-width: 640px) {
  .erp-ops-form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .erp-ops-form-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .erp-ops-form-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.erp-ops-form-grid .pf-field { margin-bottom: 0; }
.erp-ops-form-grid .pf-span-all { grid-column: 1 / -1; }

.erp-ops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.erp-ops-list-item {
  padding: .65rem .85rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-bg);
  font-size: .92rem;
}
.erp-ops-list-item strong { color: var(--pf-ink); }

.erp-ops-disclaimer {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--pf-radius-sm);
  border: 1px solid rgb(255 213 107 / 35%);
  background: rgb(74 58 18 / 45%);
  color: #ffd56b;
  font-size: .9rem;
  line-height: 1.45;
}

.erp-ops-section { margin-top: 1.5rem; }
.erp-ops-section-head {
  margin: 0 0 .75rem;
  font-family: var(--pf-font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.erp-ops-workflow {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 720px) {
  .erp-ops-workflow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .erp-ops-workflow--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .erp-ops-workflow--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.erp-ops-workflow-step {
  position: relative;
  display: grid;
  gap: .35rem;
  padding: .85rem 1rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-bg);
  box-shadow: var(--pf-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.erp-ops-workflow-step:hover {
  border-color: rgb(182 255 59 / 45%);
  transform: translateY(-1px);
}
.erp-ops-workflow-step-num {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pf-action);
  font-weight: 700;
}
.erp-ops-workflow-step-label {
  font-family: var(--pf-font-display);
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1.2;
}
.erp-ops-workflow-step-count {
  font-size: 1.35rem;
  font-family: var(--pf-font-display);
  line-height: 1.1;
}
.erp-ops-workflow-step-meta {
  font-size: .78rem;
  color: var(--pf-muted);
  line-height: 1.35;
}
@media (min-width: 720px) {
  .erp-ops-workflow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -.55rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pf-muted);
    font-size: .85rem;
    z-index: 1;
  }
}

.erp-ops-flow {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.erp-ops-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.erp-ops-flow-step {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--pf-border);
  background: var(--pf-bg);
  font-size: .82rem;
  font-weight: 600;
}
.erp-ops-flow-step.is-done {
  border-color: rgb(182 255 59 / 35%);
  background: rgb(182 255 59 / 8%);
  color: var(--pf-ink);
}
.erp-ops-flow-step.is-current {
  border-color: var(--pf-action);
  box-shadow: 0 0 0 1px rgb(182 255 59 / 25%);
}
.erp-ops-flow-step.is-pending {
  opacity: .65;
}
.erp-ops-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgb(182 255 59 / 6%), transparent 55%),
    var(--pf-bg);
}
.erp-ops-flow-actions-main { flex: 1 1 14rem; min-width: 0; }
.erp-ops-flow-actions-main h2 {
  margin: 0 0 .25rem;
  font-family: var(--pf-font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.erp-ops-flow-actions-main p {
  margin: 0;
  font-size: .88rem;
  color: var(--pf-muted);
  line-height: 1.45;
}
.erp-ops-flow-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.erp-ops-checklist {
  max-height: 12rem;
  overflow-y: auto;
  display: grid;
  gap: .35rem;
  padding: .5rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-bg);
}
.erp-ops-checklist label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  cursor: pointer;
}
.erp-ops-checklist input[type="number"] {
  width: 5rem;
  min-height: 36px;
  margin-left: auto;
}

.erp-ops-pagination { margin-top: 1rem; }
.erp-ops-pagination nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.erp-ops-pagination a,
.erp-ops-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 .65rem;
  border-radius: var(--pf-radius-sm);
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
  color: var(--pf-ink);
  font-size: .85rem;
  text-decoration: none;
}
.erp-ops-pagination a:hover {
  border-color: rgb(182 255 59 / 45%);
  text-decoration: none;
}
.erp-ops-pagination span[aria-current="page"] {
  background: var(--pf-action);
  color: var(--pf-action-ink);
  border-color: transparent;
  font-weight: 700;
}

/* Legacy bridge: pine/Tailwind grids → Carbon Bay ops */
.mt-6.grid, .mt-8.grid, div.grid.gap-3 {
  display: grid !important;
  gap: .75rem !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
}
.mt-6.grid > .rounded-lg,
.mt-8.grid > .rounded-lg,
.mt-6.grid > div,
.grid.gap-3 > .rounded-lg,
.grid.gap-3 > div.rounded-md {
  background: var(--pf-bg) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: var(--pf-radius-sm) !important;
  padding: .85rem 1rem !important;
  box-shadow: var(--pf-shadow);
}
.mt-6.grid p.text-xs,
.grid.gap-3 p.text-xs,
.mt-6.grid .text-ink-soft,
.grid.gap-3 .text-ink-soft {
  font-size: .72rem !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pf-muted) !important;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.mt-6.grid .text-2xl,
.grid.gap-3 .text-2xl,
.mt-6.grid .font-semibold,
.grid.gap-3 .font-semibold {
  font-family: var(--pf-font-display) !important;
  font-size: 1.65rem !important;
  color: var(--pf-ink) !important;
  margin: 0;
  line-height: 1.1;
}
nav.mt-8.flex, nav.flex.flex-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}
nav.mt-8.flex a, nav.flex.flex-wrap a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: var(--pf-touch-min);
  padding: 0 1rem !important;
  border-radius: var(--pf-radius-sm) !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
nav.mt-8.flex a.border, nav.flex.flex-wrap a.border {
  background: var(--pf-primary) !important;
  color: var(--pf-ink) !important;
  border: 1px solid var(--pf-border) !important;
}
table.w-full {
  font-size: .92rem !important;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  overflow: hidden;
}
table.w-full th { padding: .55rem .65rem !important; background: rgb(11 18 32 / 45%); }
table.w-full td { padding: .55rem .65rem !important; }
table.w-full tbody tr:hover { background: rgb(182 255 59 / 4%); }
form.rounded-lg.border, form.space-y-3.rounded-lg, form.space-y-4, article.rounded-lg {
  background: var(--pf-surface) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: var(--pf-radius) !important;
  padding: 1rem !important;
}
.space-y-3 > * + *, .space-y-4 > * + *, .space-y-2 > * + * { margin-top: .75rem; }
.text-sm.font-medium, label.text-sm { display: block; font-size: .9rem; font-weight: 600; color: var(--pf-muted); margin-bottom: .35rem; }
.text-red-700 { color: var(--pf-danger) !important; }
.border-red-300 { border-color: rgb(255 92 92 / 45%) !important; }
.text-red-700, button.text-red-700 { color: var(--pf-danger) !important; }
button.border-red-300 { background: var(--pf-primary) !important; }

.erp-cem-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .75rem;
  color: var(--pf-muted);
}
.erp-cem-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.erp-cem-swatch {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  border-radius: 3px;
}
.erp-cem-swatch--available { background: #22c55e; }
.erp-cem-swatch--reserved { background: #fbbf24; }
.erp-cem-swatch--owned { background: #38bdf8; }
.erp-cem-swatch--occupied { background: #64748b; }
.erp-cem-plot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  color: #fff;
}
.erp-cem-plot--available { background: #22c55e; }
.erp-cem-plot--reserved { background: #fbbf24; color: var(--pf-action-ink); }
.erp-cem-plot--owned { background: #38bdf8; color: var(--pf-action-ink); }
.erp-cem-plot--occupied { background: #64748b; }
.erp-cem-plot-tip {
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  z-index: 10;
  display: none;
  width: 10rem;
  transform: translateX(-50%);
  padding: .25rem .5rem;
  border-radius: var(--pf-radius-sm);
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  font-size: .62rem;
  font-weight: 400;
  color: var(--pf-ink);
  text-align: left;
}
.erp-cem-plot:hover .erp-cem-plot-tip { display: block; }
.erp-cem-lot-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.erp-cem-badge {
  display: inline-block;
  padding: .15rem .4rem;
  border-radius: 4px;
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  font-size: .68rem;
  text-transform: uppercase;
  color: var(--pf-muted);
}
.erp-cem-lot { margin-bottom: 1rem; }

/* mt-6 grid stat cards → Carbon Bay KPI strip */
.mt-6.grid, .mt-8.grid, div.grid.gap-3, div.grid.gap-6 {
  display: grid !important;
  gap: .75rem !important;
}
.sm\:grid-cols-4, .lg\:grid-cols-2, .lg\:grid-cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
}
.mt-6.grid > div, .mt-8.grid > div, div.grid.gap-3 > div, div.grid.gap-6 > div,
.rounded-lg.border.border-pine\/15.bg-white,
.rounded-md.border.border-pine\/15.bg-white {
  background: var(--pf-bg) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: var(--pf-radius-sm) !important;
  padding: .85rem 1rem !important;
  box-shadow: var(--pf-shadow);
}
.mt-6.grid p.text-xs, div.grid.gap-3 p.text-xs, div.grid.gap-3 p.text-ink-soft:first-child {
  font-size: .72rem !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  color: var(--pf-muted) !important;
  margin: 0 0 .2rem !important;
}
.mt-6.grid p.text-2xl, div.grid.gap-3 p.font-semibold, div.grid.gap-3 p.text-2xl {
  font-family: var(--pf-font-display) !important;
  font-size: 1.65rem !important;
  color: var(--pf-ink) !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}
nav.mt-8.flex, .mt-8.flex.flex-wrap, nav.flex.flex-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
  margin-top: 1.25rem !important;
}
nav.mt-8.flex a, nav.flex.flex-wrap a, .flex.flex-wrap.gap-2 a, .flex.flex-wrap.gap-3 a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 .95rem !important;
  border-radius: var(--pf-radius-sm) !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
a.rounded-md.border.border-pine\/30, a.border.border-pine\/30 {
  background: var(--pf-primary) !important;
  color: var(--pf-ink) !important;
  border-color: var(--pf-border) !important;
}
.flex.flex-wrap.gap-2 form, .flex.flex-wrap.gap-3 form { display: inline-flex; gap: .35rem; align-items: center; }

/* ===== PayfastERP ops module chrome (Carbon Bay / Volt) ===== */
.erp-ops-back { margin: 0 0 .65rem; font-size: .88rem; }
.erp-ops-back a { color: var(--pf-action); text-decoration: none; font-weight: 600; }
.erp-ops-back a:hover { text-decoration: underline; }

.erp-ops-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-border);
  background:
    radial-gradient(ellipse 65% 90% at 0% 0%, rgb(182 255 59 / 10%), transparent 55%),
    linear-gradient(135deg, #1c232d, #151a22);
}
.erp-ops-head-main { min-width: 0; flex: 1 1 16rem; }
.erp-ops-kicker {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pf-action);
  font-weight: 700;
  margin-bottom: .25rem;
}
.erp-ops-head h1 {
  margin: 0;
  font-family: var(--pf-font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.1;
}
.erp-ops-subtitle {
  margin: .4rem 0 0;
  max-width: 46rem;
  color: var(--pf-muted);
  font-size: .95rem;
  line-height: 1.45;
}
.erp-ops-meta {
  margin: .5rem 0 0;
  color: var(--pf-muted);
  font-size: .88rem;
  line-height: 1.45;
}

.erp-ops-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.erp-ops-stat {
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  padding: .85rem 1rem;
  display: grid;
  gap: .2rem;
  box-shadow: var(--pf-shadow);
  transition: border-color .15s ease;
}
a.erp-ops-stat {
  color: inherit;
  text-decoration: none;
}
a.erp-ops-stat:hover {
  border-color: rgb(182 255 59 / 45%);
  text-decoration: none;
}
.erp-ops-stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pf-muted);
}
.erp-ops-stat-value {
  font-family: var(--pf-font-display);
  font-size: 1.65rem;
  color: var(--pf-ink);
  line-height: 1.1;
  font-weight: 700;
}

.erp-ops-actions,
.erp-ops-actions--head,
.erp-ops-actions--below {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.erp-ops-actions--head { flex: 0 0 auto; align-self: center; }
.erp-ops-actions--below { margin-bottom: 1.25rem; }

.erp-ops-section {
  margin-top: 1.75rem;
}
.erp-ops-section h2,
.pf-subhead-staff {
  font-family: var(--pf-font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 .65rem;
}

.erp-ops-form {
  display: grid;
  gap: .75rem;
}
.erp-ops-form-grid {
  display: grid;
  gap: .75rem;
}
@media (min-width: 640px) {
  .erp-ops-form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .erp-ops-form-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .erp-ops-form-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .erp-ops-form-grid--4 .erp-ops-form-span-2 { grid-column: span 2; }
  .erp-ops-form-grid--4 .erp-ops-form-span-all { grid-column: 1 / -1; }
}

.erp-ops-table { margin-top: 0; }
.erp-ops-table .pf-table-wrap { border: 1px solid var(--pf-border); border-radius: var(--pf-radius-sm); background: var(--pf-surface); }
.erp-ops-table .pf-table { min-width: 560px; margin: 0; }
.erp-ops-table .pf-table th,
.erp-ops-table .pf-table td {
  padding: .5rem .65rem;
  font-size: .88rem;
  border-bottom: 1px solid var(--pf-border);
}
.erp-ops-table .pf-table th {
  font-size: .72rem;
  letter-spacing: .06em;
  background: rgb(18 22 28 / 60%);
  position: sticky;
  top: 0;
  z-index: 1;
}
.erp-ops-table .pf-table tbody tr:hover td { background: rgb(182 255 59 / 4%); }
.erp-ops-table .pf-table tfoot td,
.erp-ops-table .pf-table tfoot th {
  font-weight: 700;
  border-top: 1px solid var(--pf-border);
  background: var(--pf-bg);
}
.pf-text-right { text-align: right !important; }

.erp-ops-disclaimer {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: var(--pf-radius-sm);
  border: 1px solid rgb(255 213 107 / 35%);
  background: rgb(74 58 18 / 45%);
  color: #ffd56b;
  font-size: .88rem;
  line-height: 1.45;
}
.erp-ops-disclaimer strong { color: #ffe08a; }

.erp-ops-audit-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.erp-ops-audit-item {
  padding: .65rem .85rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-bg);
  font-size: .88rem;
}

.erp-ops-pagination { margin-top: 1rem; }
.erp-ops-pagination nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.erp-ops-pagination a,
.erp-ops-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 .5rem;
  border-radius: var(--pf-radius-sm);
  border: 1px solid var(--pf-border);
  background: var(--pf-primary);
  color: var(--pf-ink);
  font-size: .85rem;
  text-decoration: none;
}
.erp-ops-pagination span[aria-current="page"] {
  background: var(--pf-action);
  color: var(--pf-action-ink);
  border-color: transparent;
  font-weight: 700;
}

.erp-ops-two-col {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .erp-ops-two-col { grid-template-columns: 1fr 1fr; }
}

.erp-ops-scroll-box {
  max-height: 14rem;
  overflow-y: auto;
  padding: .5rem;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-bg);
}
.erp-ops-check-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
  font-size: .88rem;
}
.erp-ops-check-row input[type="checkbox"] { flex: 0 0 auto; }
