/* Sales-floor view (static/sales.js). Reuses the shared design-system tokens
   (--surface, --fg, --line, --green, --red, --amber, .kpi, .chip, .pill-cat,
   .modal-overlay, .leads-card, .pnl-table). Only Sales-specific chrome lives
   here. */

.sales-loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

#sales-table-wrap {
  overflow-x: auto;
}

table.sales-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.sales-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  padding: 9px 12px;
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

table.sales-table thead th.col-left {
  text-align: left;
}

table.sales-table thead th:hover {
  color: var(--fg);
}

table.sales-table tbody td {
  padding: 9px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.sales-table tbody td.col-left {
  text-align: left;
}

table.sales-table tbody tr:hover {
  background: var(--surface-2);
}

.sales-name {
  font-weight: 600;
  color: var(--fg-strong);
}

/* Hot flags */
.sales-hot {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  vertical-align: middle;
}

.sales-hot--new {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.sales-hotcancel {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red);
  vertical-align: middle;
}

/* Lead-source bucket badge (not a real industry). Muted, low-emphasis. */
.sales-source {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-3);
  border: 1px solid var(--line);
  vertical-align: middle;
}

/* Partial-day / in-progress caveat in the window note. */
.sales-partial {
  color: var(--amber);
  font-weight: 600;
}

/* Action-classification badges (Scale / Fix pricing / Cut / Get markets) —
   used in the Campaigns table and campaign detail. */
.act-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.act-scale { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.act-fix { color: var(--amber); background: var(--amber-soft); border-color: var(--amber); }
.act-cut { color: var(--red); background: var(--red-soft); border-color: var(--red); }
.act-markets { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.act-none { color: var(--muted); background: var(--surface-3); border-color: var(--line); }
.act-lown {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.75;
  margin-left: 3px;
  vertical-align: middle;
}

/* Clickable close / cancel counts */
.sales-count {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 4px;
}

.sales-count:hover {
  background: var(--accent-soft);
  text-decoration: underline;
}

.sales-count--cancel {
  color: var(--red);
}

.sales-count--cancel:hover {
  background: var(--red-soft);
}

#sales-help code {
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
