/* assets/css/dashboards/leads_console.css — demo access requests (MYC-9).
 *
 * A LINKED stylesheet, not an inline <style> block. The SPA injector carries
 * only link[rel=stylesheet] into the shell, so styles written inline in a
 * layout are silently dropped and the page renders unstyled (VERITAS-108).
 */

.lc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lc-sub {
  color: var(--myceo-text-secondary);
  font-size: 13px;
  margin-top: 4px;
  max-width: 60ch;
}

.lc-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Both controls set `color` explicitly. Giving a control a dark background
 * without also setting its ink leaves the browser default - near-black text on
 * a near-black surface - which is how these first rendered: two white boxes
 * with text nobody could read. */
.lc-controls select,
.lc-controls .btn {
  padding: 8px 12px;
  border: 1px solid var(--myceo-border-mid);
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--myceo-surface-1);
  color: var(--myceo-text-primary);
  cursor: pointer;
}

.lc-controls .btn:hover,
.lc-controls select:hover { border-color: var(--myceo-accent-blue); }

.lc-controls .btn:focus-visible,
.lc-controls select:focus-visible {
  outline: 2px solid var(--myceo-accent-blue);
  outline-offset: 2px;
}

/* ── The funnel, as stat tiles ──────────────────────────────────────────────
 * Counts, not a chart. Five numbers whose job is to be read and compared to
 * each other is a job for tiles; a bar chart of five bars adds axes, a legend
 * and a colour decision to say exactly the same thing. */
.lc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.lc-tile {
  background: var(--myceo-surface-1);
  border: 1px solid var(--myceo-border-mid);
  border-radius: 10px;
  padding: 16px;
}

.lc-tile-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--myceo-text-secondary);
}

.lc-tile-value {
  font-size: 28px;
  font-weight: 600;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* The stage that means "we turned someone away" earns its own colour. It is
 * the number that decides whether the gate is too tight, so it should not
 * have to be hunted for among four identical tiles. */
.lc-tile.is-blocked .lc-tile-value { color: var(--myceo-status-critical); }
.lc-tile.is-in .lc-tile-value      { color: var(--myceo-status-good); }

.lc-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Status is never colour alone — the pill carries its own word. */
.lc-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid var(--myceo-border-mid);
  white-space: nowrap;
}

.lc-pill.approved             { color: var(--myceo-status-good); border-color: currentColor; }
.lc-pill.verified             { color: var(--myceo-accent-blue); border-color: currentColor; }
.lc-pill.pending_verification { color: var(--myceo-text-secondary); }
.lc-pill.rejected             { color: var(--myceo-status-critical); border-color: currentColor; }

.lc-empty {
  text-align: center;
  color: var(--myceo-text-secondary);
  padding: 28px 0;
}

.lc-email { word-break: break-all; }

.lc-cta {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--myceo-text-secondary);
  text-transform: uppercase;
}

/* Tables carry contact details and overflow narrow screens sooner than the
 * page does; scroll the table, never the page body. */
.lc-table-wrap { overflow-x: auto; }
.lc-table-wrap table { min-width: 760px; }

.lc-privacy {
  color: var(--myceo-text-secondary);
  font-size: 12px;
  margin-top: 10px;
  max-width: 72ch;
}

/* Erasure is destructive and irreversible, so the control looks like what it
   does - but stays quiet until reached for, because the common reason to open
   this page is to read it, not to delete from it. */
.lc-erase {
  background: none;
  border: 1px solid var(--myceo-border-mid);
  color: var(--myceo-text-secondary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.lc-erase:hover:not(:disabled) {
  border-color: var(--myceo-status-critical);
  color: var(--myceo-status-critical);
}

.lc-erase:disabled { opacity: 0.5; cursor: default; }
