/* Team + performance.
 *
 * Imtiaz, 2026-09-26: after the activity log, "same with team sales, marketing
 * performance, calender etc".
 *
 * Activity answers what happened. This answers who is producing, which is the
 * harder conversation and the one an owner with commission staff actually pays
 * for. Modelled on the real Good Yield Team screen, whose funnel columns run
 * from a marketing action through to a negotiation. Every name here is invented.
 */

.tm { padding: 0 0 16px; }

/* the stat bar across the top, divided into cells */
.tm-bar { display: flex; border-bottom: 1px solid var(--os-line); background: #fff; }
.tm-bar div {
  flex: 1; padding: 12px 16px; border-right: 1px solid var(--os-line); min-width: 0;
}
.tm-bar div:last-child { border-right: 0; }
.tm-bar b {
  font-family: var(--os-serif); font-size: 22px; font-weight: 500;
  display: block; letter-spacing: -.01em; line-height: 1.1;
}
.tm-bar small {
  display: block; font-size: 8px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--os-mute); margin-top: 2px;
}

.tm-tabs {
  display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 16px 0;
  border-bottom: 1px solid var(--os-line); background: #fff;
  font-size: 11px; color: var(--os-mute);
}
.tm-tabs span { padding-bottom: 8px; white-space: nowrap; }
.tm-tabs b {
  color: var(--os-ink); font-weight: 600; padding-bottom: 8px; white-space: nowrap;
  box-shadow: inset 0 -2px 0 var(--os-accent);
}

.tm-mo {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px;
  font-size: 12.5px; font-weight: 600;
}
.tm-mo i {
  width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--os-line);
  display: grid; place-items: center; font-style: normal; font-size: 10px;
  color: var(--os-mute);
}

.tm table { width: 100%; border-collapse: collapse; }
.tm th {
  text-align: right; font-size: 8px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--os-mute);
  padding: 0 16px 7px 0; border-bottom: 1px solid var(--os-line);
}
.tm th:first-child { text-align: left; padding-left: 16px; }
.tm td {
  text-align: right; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--os-line);
  font-variant-numeric: tabular-nums; font-size: 12px;
}
.tm td:first-child { text-align: left; padding-left: 16px; font-weight: 600; }
.tm tr:last-child td { border-bottom: 0; }
/* a zero is the whole point of the screen, so it is shown, not hidden */
.tm td.z { color: #C3C7C0; }
.tm td b { font-weight: 700; }

/* a quiet bar behind the leading column, so the shape reads at a glance */
.tm-b { position: relative; }
.tm-b i {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  height: 15px; background: var(--os-accent); opacity: .11; border-radius: 3px;
  display: block; pointer-events: none;
}

@media (max-width: 760px) {
  .tm-bar { flex-wrap: wrap; }
  .tm-bar div { flex: 1 1 50%; border-bottom: 1px solid var(--os-line); }
  /* A funnel table cannot be made narrow without losing the columns that ARE
     the argument, so it scrolls sideways inside its own box. The page never
     scrolls sideways; only the table does. */
  .tm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tm table { min-width: 460px; }
  .tm th, .tm td { padding-right: 12px; font-size: 11px; }
  .tm th:first-child, .tm td:first-child { padding-left: 12px; }
  .tm-tabs { gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap; }
  .tm-tabs::-webkit-scrollbar { display: none; }
}
