/* 60-roles.css — role-driven surfaces: the appbar role chip (tinted per tier),
 * the delegate/assign tables, the org chart, and the Tech field pane — which is
 * deliberately big-touch for gloved hands on a tablet in the field.
 */

/* ---- role chip per-tier tint (chip carries .role-pm|gf|f|l|tech|client) */
.role-chip.role-pm     { color: var(--accent);  border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.role-chip.role-gf     { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 50%, var(--line)); }
.role-chip.role-f      { color: var(--g-dressed); border-color: color-mix(in srgb, var(--g-dressed) 50%, var(--line)); }
.role-chip.role-l      { color: var(--g-patched); border-color: color-mix(in srgb, var(--g-patched) 50%, var(--line)); }
.role-chip.role-tech   { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.role-chip.role-client { color: var(--ink-dim); border-color: var(--line); }

/* ---- shared status badge -------------------------------------------- */
.status-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--ink-dim); background: var(--surface-2); border: 1px solid var(--line);
}

/* ============================ DELEGATE / ASSIGN ====================== */
.assign-create {
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px; margin-bottom: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.rack-check-list { display: flex; flex-direction: column; gap: 6px; }
.rack-check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
}
.rack-check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.rack-check-name { font-weight: 600; flex: 1; }
.gate-row { display: flex; gap: 6px; flex-wrap: wrap; }

.assign-list-h { font-size: 15px; margin: 8px 0 12px; }
.assign-list { display: flex; flex-direction: column; gap: 8px; }
.assign-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.assign-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.assign-row-to { font-weight: 700; font-size: 14px; }
.assign-row-scope { font-size: 12.5px; }
.assign-row-meta { font-size: 12px; }

/* ============================ ORG CHART ============================== */
.org-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.org-table th {
  text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-dim);
  padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.org-table td {
  padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  vertical-align: middle;
}
.org-table tbody tr:last-child td { border-bottom: none; }
.org-table .ui-select { width: auto; min-width: 150px; }
.org-user { font-family: var(--mono); font-weight: 600; color: var(--ink); }

/* ============================ TECH FIELD PANE ======================== */
/* big-touch: generous targets, high contrast, tablet-first */
.tech-banner {
  padding: 14px 16px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--r);
}
.tech-site { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.tech-h { font-size: 22px; margin: 0 0 16px; }

.tech-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.tech-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tech-where-room { font-size: 20px; font-weight: 800; }
.tech-where-racks { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); margin-top: 2px; }
.tech-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; margin: 12px 0 4px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

.tech-cables { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tech-cable-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
}
.tech-cable-name { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.tech-gate-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* big-touch gate chips in the field pane */
.tech-gate-chips .gate-chip {
  font-size: 13px; padding: 10px 14px; min-height: 40px;
}
.tech-gate-chips .gate-chip::before { width: 9px; height: 9px; }
.blocker-chip { --chip-color: var(--bad); margin-left: auto; }

/* the MARK COMPLETE button — full width, unmissable */
.tech-card > .btn {
  width: 100%; margin-top: 16px;
  font-size: 16px; font-weight: 800; letter-spacing: .06em;
  padding: 16px; justify-content: center; border-radius: var(--r);
}
.tech-await {
  margin-top: 14px; padding: 12px; text-align: center; font-size: 14px;
  color: var(--ok); border: 1px dashed color-mix(in srgb, var(--ok) 45%, var(--line));
  border-radius: var(--r);
}

@media (max-width: 560px) {
  .tech-gate-chips .gate-chip { flex: 1 1 auto; justify-content: center; }
  .org-table { font-size: 13px; }
}
