/* ================= Admin: Organizations, Teams & Boards hierarchy layout =================
   Adds only what alt-admin.css doesn't re-skin: the summary/detail host card and the Organizations
   selected-row treatment. Master-detail layout itself is `.a-admin-master` in alt-admin.css. Scoped
   `.alt-app` at (0,2,0) like alt-admin.css. */

/* `.a-hier-card` is the renderers' own host (summary, detail, review). It is never a `.sec-section`;
   inside a band it takes no chrome of its own, and as the master-detail card it is the one raised
   card (the band already is the panel, so nothing nests a third box). */
.alt-app .a-hier-card{ min-width:0; padding:0; background:transparent; border:none; }
.alt-app .a-admin-master-detail .a-hier-card{
  padding:var(--a-sp-12) var(--a-pad-body); background:var(--a-raised); border:1px solid var(--a-line-soft); border-radius:var(--a-r);
}
.alt-app .a-hier-card h3{
  margin:0 0 var(--a-sp-8); font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); color:var(--a-text);
}
.alt-app .a-admin-figures-band{ padding:12px 16px; }
.alt-app .a-admin-figures-band .a-stats{ grid-template-columns:repeat(auto-fit, minmax(136px, 1fr)); gap:var(--a-2); }
.alt-app .a-admin-figures-band .a-hier-card h3{ margin-bottom:var(--a-2); }
.alt-app .a-admin-master-list{ min-width:0; display:flex; flex-direction:column; gap:var(--a-2); }
/* The summary's tiles are not destinations — reuses admin-overview.js's own `.a-stats`/`.a-stat`
   components with their non-interactive cursor, not a second stat-tile component. */
.alt-app #hierarchySummary .a-stats{ margin-top:0; }

/* Matches admin-team-detail.js's own `.a-admin-p` measure and `.sec-note` warning line — no new
   colour or type scale, only the layout this card needed. */
.alt-app .a-hier-safeguards .a-admin-p{ margin:0 0 var(--a-3); max-width:78ch; }

/* ---------- Organizations list single-select rows ----------
   A real <button> styled like the `.row` a <div> would draw; only UA defaults are reset. */
.alt-app .row.entity-row{
  width:100%; font:inherit; text-align:left; cursor:pointer; -webkit-appearance:none;
}
.alt-app .row.entity-row .badge{ margin-left:auto; }
.alt-app .row.entity-row.is-selected{
  border-color:var(--a-blue); background:var(--a-blue-soft);
}
.alt-app .row.entity-row:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }
