/* «Команда» (team.js, 0100). Layout comes from customers.css (cu-*) and
   catalog.css (ct-*): the list and the profile are built like «Клиенты». */

.tm-chip-lead { background: var(--accent-weak); color: var(--accent-ink); }
.tm-chip-field { background: var(--green-weak); color: var(--green); }
.tm-chip-now { background: var(--green-weak); color: var(--green); font-weight: 600; }

.tm-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tm-alert {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--red);
}
.tm-alert h3 { color: var(--red); }
.tm-deps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.tm-deps li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.tm-deps li a { color: var(--ink); font-weight: 500; }
.tm-deps li.now a { color: var(--green); }
.tm-dep-t { flex-basis: 100%; color: var(--ink-2); }

.tm-table td { vertical-align: top; }
.tm .cu-two { align-items: start; }
.tm-seen { margin-top: 8px; }

.tm-form { display: flex; flex-direction: column; gap: 12px; }
.tm-form .field { margin: 0; }
.tm-form .field .muted { display: block; margin-top: 4px; }
.tm-inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.tm-inline input { flex: 1 1 220px; }
.tm-role-pick { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }

.tm-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; margin-top: 10px; }
.tm-perm-g h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle); }
.tm-perm-g ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tm-perm-g li { display: flex; gap: 6px; align-items: flex-start; }
.tm-perm-g li .ic { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 1px; }
.tm-perm-g li.off { color: var(--subtle); }
.tm-off { width: 15px; text-align: center; flex: none; }

.tm-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tm-acts li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; }
.tm-acts li:last-child { border-bottom: 0; }
.tm-act-t { color: var(--subtle); font-variant-numeric: tabular-nums; }

.tm-bars { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.tm-bars li { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr 36px; gap: 10px; align-items: center; }
.tm-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.tm-bar { height: 8px; border-radius: 4px; background: var(--divider); overflow: hidden; }
.tm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

@media (max-width: 760px) {
  .tm-acts li { grid-template-columns: 1fr; gap: 2px; }
  .tm-board { grid-template-columns: 1fr; }
}
