/* ============================================================================
   Maya's Data (2026-10-29). The managers' dashboard for what Maya's database holds. It wears the Leads dashboard's root classes
   (.inbox .leadhub) for the dark ground, the --ig-* tokens, .hub-card tiles, .hub-panel glass panels and .chip colors, and adds only what
   charts need. All scoped under .mayadata. Color rules kept: green means a paying client and nothing else (so no bar and no "good" dot is
   green: good is steel), the one red is "a problem or a goodbye", amber is "look at this".
   ========================================================================== */
.mayadata{ --ig-dim-fill:rgba(255,255,255,.30); }
.mayadata .tone-gray{ --tone:var(--ig-gray); }
.mayadata .tone-dim{ --tone:var(--ig-dim-fill); }

.mayadata .md-tiles{ grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); }
.mayadata .hub-card.plain{ cursor:default; }
.mayadata .hub-card.plain:hover{ transform:none; background:linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0) 55%), var(--ig-panel-bg); }

.mayadata .md-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; align-items:stretch; }
.mayadata .md-panel{ display:flex; flex-direction:column; gap:12px; min-width:0; }
.mayadata .md-sub{ margin:8px 0 0; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ig-ink-dim); }
.mayadata .md-note{ margin:0; margin-top:auto; font-size:12px; line-height:1.5; color:var(--ig-ink-dim); }
.mayadata .md-key{ display:inline-block; width:9px; height:9px; margin-right:7px; border-radius:3px; background:var(--ig-steel); }

/* bars: a label, a track filled to the share of the biggest, the number. A button when it opens a list. */
.mayadata .md-bars{ display:grid; gap:2px; }
.mayadata .md-bar{ display:grid; grid-template-columns:minmax(120px, 190px) minmax(0, 1fr) minmax(56px, auto); align-items:center; gap:12px; width:100%; padding:6px 8px;
  border:0; border-radius:10px; background:none; color:inherit; font:inherit; text-align:left; }
.mayadata button.md-bar{ cursor:pointer; }
.mayadata button.md-bar:hover{ background:rgba(255,255,255,.07); }
.mayadata .md-bl{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; color:var(--ig-ink-dim); }
.mayadata .md-track{ height:10px; overflow:hidden; border-radius:6px; background:rgba(255,255,255,.08); }
.mayadata .md-track i{ display:block; height:100%; border-radius:6px; background:var(--tone); }
.mayadata .md-bar b{ font-family:var(--font-mono, monospace); font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums; text-align:right; color:var(--ig-ink); }

/* the one long bar: how much we know about everyone, with its legend */
.mayadata .md-stack{ display:flex; gap:3px; height:30px; }
.mayadata .md-seg{ min-width:6px; padding:0; border:0; border-radius:5px; background:var(--tone); cursor:pointer; opacity:.92; }
.mayadata .md-seg:hover{ opacity:1; filter:brightness(1.12); }
.mayadata .md-legend{ display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:2px 12px; }
.mayadata .md-lg{ display:grid; grid-template-columns:12px minmax(0, 1fr) auto 44px; align-items:center; gap:8px; padding:6px 8px; border:0; border-radius:10px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.mayadata .md-lg:hover{ background:rgba(255,255,255,.07); }
.mayadata .md-lg i{ width:10px; height:10px; border-radius:3px; background:var(--tone); }
.mayadata .md-lg span{ font-size:13px; color:var(--ig-ink-dim); }
.mayadata .md-lg b{ font-family:var(--font-mono, monospace); font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums; }
.mayadata .md-lg em{ font-style:normal; font-size:11.5px; font-variant-numeric:tabular-nums; text-align:right; color:var(--ig-ink-dim); }

/* the safety checks: one row each, a dot and a word so color is never the only signal */
.mayadata .md-safe{ display:grid; gap:8px; margin-top:12px; }
.mayadata .md-row{ display:grid; grid-template-columns:14px minmax(0, 1fr) auto; align-items:start; gap:12px; padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid var(--ig-hairline); }
.mayadata .md-row > div > b{ display:block; font-size:14px; font-weight:700; color:var(--ig-ink); }
.mayadata .md-row p{ margin:3px 0 0; max-width:80ch; font-size:13px; line-height:1.5; color:var(--ig-ink-dim); }
.mayadata .md-row p b{ font-family:var(--font-mono, monospace); font-weight:600; font-variant-numeric:tabular-nums; color:var(--ig-ink); }
.mayadata .md-dot{ width:9px; height:9px; margin-top:6px; border-radius:50%; background:var(--ig-steel); }
.mayadata .md-dot.warn{ background:var(--ig-amber); }
.mayadata .md-dot.bad{ background:var(--ig-ruby); }
.mayadata .md-state{ padding:3px 10px; border-radius:999px; border:1px solid var(--ig-steel-border); background:var(--ig-steel-soft); font-size:11px; font-weight:700; letter-spacing:.04em; color:#a9cbe8; }
.mayadata .md-state.warn{ border-color:var(--ig-amber-border); background:var(--ig-amber-soft); color:#fbcc63; }
.mayadata .md-state.bad{ border-color:var(--ig-ruby-border); background:var(--ig-ruby-soft); color:#ff8f9b; }

@media (max-width:900px){
  .mayadata .md-grid{ grid-template-columns:minmax(0, 1fr); }
}
@media (max-width:640px){
  .mayadata .md-bar{ grid-template-columns:minmax(0, 1fr) auto; row-gap:5px; }
  .mayadata .md-bar .md-track{ grid-column:1 / -1; grid-row:2; }
  .mayadata .md-lg{ grid-template-columns:12px minmax(0, 1fr) auto 40px; }
  .mayadata .md-row{ grid-template-columns:14px minmax(0, 1fr); }
  .mayadata .md-state{ grid-column:2; justify-self:start; }
}

.mayadata .md-t{ font-weight:700; color:var(--ig-ink); }
.mayadata .md-t.bad{ color:#ff8f9b; }
.mayadata .md-t.warn{ color:#fbcc63; }
.mayadata .md-t.ok{ color:#a9cbe8; }
/* the house's faintest grey is about 4:1 on glass; small lines on this page use the dim ink (about 7:1) */
.mayadata .hc-foot, .mayadata .hub-group-head p, .mayadata .inbox-sync{ color:var(--ig-ink-dim); }
