/* app/admin/admin.css — the platform console (0070).
   Chrome (tokens, topbar, tabs, wrap) comes from directory.css, which
   this page links first. Only console-specific rules live here. */

/* ---- the counts strip ---------------------------------------------- */
.sa-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px; margin: 18px 0 22px;
}
.sa-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; min-width: 0;
}
.sa-stat-n { display: block; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.sa-stat-k {
  display: block; margin-top: 3px; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}

/* ---- panels --------------------------------------------------------- */
.sa-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 20px; overflow: hidden;
}
.sa-panel-h {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--border); background: #fafbfc;
}
.sa-panel-h h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.sa-count {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  background: #eef0f2; border-radius: 10px; padding: 2px 8px;
}

/* ---- tables --------------------------------------------------------- */
.sa-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sa-table th {
  text-align: left; padding: 9px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.sa-table td { padding: 10px 12px; border-bottom: 1px solid #f1f3f5; vertical-align: top; }
.sa-table tr:last-child td { border-bottom: 0; }
.sa-table code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; color: #4b5563; }
.sa-sub { color: var(--muted); font-size: 11px; }

/* ---- bits inside cells ---------------------------------------------- */
.sa-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.sa-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px;
  border-radius: 10px; background: #eef3e9; color: #3f4a2e; border: 1px solid #d7e2c9;
}
.sa-chip .x { cursor: pointer; opacity: .55; font-size: 13px; }
.sa-chip .x:hover { opacity: 1; color: #b91c1c; }
.sa-badge {
  margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 8px; background: #1a1a1a; color: #fff;
}
.sa-role {
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 1px 5px; border-radius: 6px; background: #eef0f2; color: #4b5563;
}
.sa-role.invited { background: #fef3c7; color: #92400e; }
.sa-role.revoked { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.sa-warn { color: #b91c1c; font-size: 11px; font-style: italic; }

/* ---- forms ---------------------------------------------------------- */
.sa-table select, .sa-table input, .sa-add input, .sa-add select {
  font: inherit; font-size: 11.5px; padding: 5px 8px;
  border: 1px solid #d1d5db; border-radius: 6px; background: #fff; max-width: 100%;
}
/* 0073: the organisation name is editable in place. Styled as text
   until it is touched, so the column still reads as a name rather than
   as a form — the row is for looking at far more often than for typing
   in, and a grid of boxes is harder to scan. */
.sa-table input.sa-org-name {
  font-size: 12px; font-weight: 700; color: var(--navy); width: 100%;
  border-color: transparent; background: transparent; padding: 4px 7px;
}
.sa-table input.sa-org-name:hover { border-color: #e5e7eb; background: #fff; }
.sa-table input.sa-org-name:focus {
  border-color: var(--accent); background: #fff; outline: 0;
  box-shadow: 0 0 0 3px rgba(99, 121, 71, .14);
}
.sa-add { display: flex; gap: 8px; flex-wrap: wrap; padding: 13px 18px; border-top: 1px solid var(--border); background: #fafbfc; }
.sa-add input { flex: 1; min-width: 180px; }
.sa-note { padding: 10px 18px 14px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.sa-panel-h + .sa-note { border-top: 0; }

/* 0084: see chrome.css. admin.html and developer.html do not link it. */
.tab[hidden] { display: none; }
