/* ============================================================
   LIVE CATALYST DASHBOARD MOCK — modeled on the real product
   (Delivery view: grouped stat sections + revenue chart)
   ============================================================ */

.cat-mock {
  display: flex; flex-direction: column;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: hsl(220 14% 96%);
  background: hsl(28 8% 8%);             /* warm near-black, like the real app */
  --cat-line: hsl(28 6% 16%);
  --cat-card: hsl(28 8% 11%);
  --cat-card-2: hsl(28 8% 10%);
  --cat-muted: hsl(28 6% 65%);
  --cat-dim: hsl(28 5% 45%);
  --cat-amber: hsl(28 90% 58%);
  --cat-blue: hsl(212 95% 62%);
  --cat-green: hsl(142 70% 50%);
  --cat-yellow: hsl(42 95% 56%);
  --cat-red: hsl(0 78% 60%);
}

/* === Top context bar (inside the app) === */
.cat-mock-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cat-line);
  background: hsl(28 8% 7%);
}
.cat-mock-topbar-side {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px;
  background: hsl(28 8% 14%);
  color: var(--cat-muted);
}
.cat-mock-ctx-label { font-size: 11px; color: var(--cat-dim); }
.cat-mock-ctx-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  background: hsl(28 8% 12%);
  border: 1px solid var(--cat-line);
  border-radius: 4px;
  font-size: 11px;
}
.cat-mock-ctx-chip .globe {
  width: 10px; height: 10px; border-radius: 9999px;
  border: 1.2px solid var(--cat-muted);
}
.cat-mock-spacer { flex: 1; }
.cat-mock-topbar-right { display: flex; align-items: center; gap: 8px; }
.cat-mock-search {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  background: hsl(28 8% 12%);
  border: 1px solid var(--cat-line);
  border-radius: 4px;
  font-size: 11px;
  color: var(--cat-dim);
}
.cat-mock-search-kbd {
  padding: 0 4px; border-radius: 3px;
  background: hsl(28 8% 16%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--cat-muted);
}
.cat-mock-bell {
  position: relative;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cat-muted);
}
.cat-mock-bell-badge {
  position: absolute; top: -3px; right: -5px;
  min-width: 16px; height: 14px; padding: 0 3px;
  border-radius: 9999px;
  background: var(--cat-red);
  color: #fff;
  font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
}

/* === Page header === */
.cat-mock-page {
  padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.cat-mock-page-head {
  display: flex; align-items: center; justify-content: space-between;
}
.cat-mock-page-title {
  font-size: 18px; font-weight: 700; letter-spacing: -.012em;
  margin: 0;
}
.cat-mock-view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 5px;
  border: 1px solid var(--cat-line);
  background: hsl(28 8% 11%);
  font-size: 11px; color: var(--cat-muted);
}

.cat-mock-tabs-row {
  display: inline-flex; padding: 2px;
  background: hsl(28 8% 11%);
  border: 1px solid var(--cat-line);
  border-radius: 6px;
  align-self: flex-start;
  gap: 2px;
}
.cat-mock-tab2 {
  padding: 3px 12px; border-radius: 4px;
  font-size: 11px; color: var(--cat-muted);
}
.cat-mock-tab2.on { background: hsl(28 8% 16%); color: #fff; font-weight: 500; }

/* === Section label === */
.cat-mock-sect {
  display: flex; flex-direction: column; gap: 8px;
}
.cat-mock-sect-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: .04em;
  color: var(--cat-dim);
  padding-left: 4px;
}

/* === Stat grids === */
.cat-mock-statgrid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-mock-statgrid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }

.cat-mock-card2 {
  background: var(--cat-card);
  border: 1px solid var(--cat-line);
  border-radius: 6px;
  padding: 10px 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  min-height: 76px;
}
.cat-mock-card2-lbl {
  font-size: 10px; color: var(--cat-muted);
  letter-spacing: 0;
  display: flex; align-items: center; gap: 4px;
  /* All labels on a single line for consistent value alignment */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  min-height: calc(1.35 * 10px);
}
.cat-mock-card2-lbl .q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 11px; height: 11px;
  border: 1px solid var(--cat-dim);
  border-radius: 9999px;
  font-size: 8px;
  color: var(--cat-dim);
  flex-shrink: 0;
}
.cat-mock-card2-val {
  font-size: 18px; font-weight: 700; letter-spacing: -.012em;
  line-height: 1.15;
  align-self: end;
}
.cat-mock-card2-val.green { color: var(--cat-green); }
.cat-mock-card2-val.red { color: var(--cat-red); }
.cat-mock-card2-val.yellow { color: var(--cat-yellow); }
.cat-mock-card2-sub {
  font-size: 10px; color: var(--cat-dim);
  line-height: 1.35;
}
.cat-mock-card2-sub-2 { font-size: 10px; color: var(--cat-dim); }

/* compact 6-up cards have a slightly smaller value */
.cat-mock-statgrid-6 .cat-mock-card2 { min-height: 64px; padding: 8px 10px; }
.cat-mock-statgrid-6 .cat-mock-card2-val { font-size: 18px; }
/* 6-up labels are short — only need 1 line, but still keep consistent */
.cat-mock-statgrid-6 .cat-mock-card2-lbl { min-height: calc(1.35 * 10px); }

/* === Revenue chart (mini) === */
.cat-mock-chart-card {
  background: var(--cat-card);
  border: 1px solid var(--cat-line);
  border-radius: 6px;
  padding: 12px;
}
.cat-mock-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cat-mock-chart-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
}
.cat-mock-chart-title .sq {
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--cat-blue); opacity: .8;
  display: inline-block;
}
.cat-mock-mini-tabs {
  display: inline-flex; padding: 1px;
  background: hsl(28 8% 9%);
  border: 1px solid var(--cat-line);
  border-radius: 4px;
}
.cat-mock-mini-tab {
  padding: 2px 8px; border-radius: 3px;
  font-size: 10px; color: var(--cat-muted);
}
.cat-mock-mini-tab.on { background: hsl(28 8% 16%); color: #fff; }
.cat-mock-chart-area { width: 100%; height: 64px; }

/* === Status pill for delivery exceeded === */
.cat-mock-pill-status {
  display: inline-flex; padding: 1px 8px;
  border-radius: 9999px;
  font-size: 10px; font-weight: 500;
  background: hsl(142 60% 16%);
  color: var(--cat-green);
  width: fit-content;
  margin-top: 2px;
}
