/* ==========================================================================
   ELITE GROUP · views-admin.css  (vendors, projects, users, activity, settings)
   Colours come only from the CSS variables of app.css, so the dark theme works.
   ========================================================================== */

/* "Show deactivated / archived" tick in a filter bar */
.adm-toggle { min-height: 42px; font-size: 13.5px; font-weight: 650; color: var(--muted); gap: 8px; white-space: nowrap; }
.filterbar .adm-toggle input, .adm-toggle input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; }

.adm-name { min-width: 0; }
.adm-user { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.adm-mini .stat { min-width: 0; }
.adm-meter { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.adm-meter .progress { flex: 1 1 auto; }

/* tick lists in forms (sites of a user, people of a site) */
.adm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 16px; }
.adm-checks .check { min-height: 48px; font-weight: 600; }
/* partner rows: tick a project (or partner), then share % and the approval right under it */
.adm-pterms { display: flex; flex-direction: column; gap: 4px; }
.adm-pterm { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 12px; background: var(--surface); }
.adm-pterm > .check { min-height: 48px; font-weight: 600; }
.adm-pterm-body { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 0 0 10px 30px; }
.adm-pterm-body .field { margin: 0; }
.adm-pterm-body .check { min-height: 44px; font-weight: 500; }
.adm-pterm-body[hidden] { display: none; }
.adm-rolehelp { margin-top: -6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); }
.adm-rolehelp:empty { display: none; }
.adm-addon-btn { cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; min-width: 64px; color: var(--ink); }
.adm-addon-btn:active { transform: scale(.97); }

/* project cards */
.adm-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.adm-project { display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.adm-project:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.adm-project.is-archived { opacity: .72; }
.adm-project .card-head { align-items: flex-start; }
.adm-project .card-foot { margin-top: auto; flex-wrap: wrap; }
.adm-project .stack-sm { margin-bottom: 14px; }
.adm-code { flex: none; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-2); color: var(--accent-2);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.adm-people .eyebrow { margin-bottom: 6px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 650; color: var(--ink); }
.adm-person.is-off { color: var(--faint); text-decoration: line-through; }
.adm-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; }

/* activity log */
.adm-act { width: 100%; min-width: 0; text-align: left; }
.adm-details { margin-top: 6px; }
.adm-details > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; font-weight: 700; color: var(--blue); }
.adm-details > summary::-webkit-details-marker { display: none; }
.adm-details > summary svg.icon { transition: transform .2s var(--ease); }
.adm-details[open] > summary svg.icon { transform: rotate(90deg); }
.adm-details[open] > .changes { margin-top: 6px; animation: adm-fade .22s var(--ease) both; }
.adm-details .change { font-weight: 400; }

/* "Is my data safe?" */
.adm-safe { border-top: 4px solid var(--tone, var(--accent)); }
.adm-safe-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.adm-shield { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--tone-bg, var(--accent-soft)); color: var(--tone, var(--accent));
  animation: adm-pop .5s var(--ease) both; }
.adm-shield svg.icon { width: 32px; height: 32px; }
.adm-checklist { display: flex; flex-direction: column; }
.adm-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.adm-check-dot { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--tone-bg, var(--gray-bg)); color: var(--tone, var(--gray)); }
.adm-check-dot svg.icon { stroke-width: 2.6; vertical-align: 0; }
.adm-check .linkbtn { padding-left: 0; }

.adm-plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.adm-plain.mono { list-style: none; padding-left: 0; }
.adm-steps { margin: 0; padding: 0; list-style: none; counter-reset: adm-step; display: flex; flex-direction: column; gap: 10px; }
.adm-steps > li { counter-increment: adm-step; position: relative; padding-left: 40px; min-height: 28px; line-height: 1.5; overflow-wrap: anywhere; }
.adm-steps > li::before { content: counter(adm-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-2); color: var(--accent-2); font-weight: 800; font-size: 13px; }
.adm-inline { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.adm-inline .field { flex: 1 1 260px; margin: 0; }
.adm-inline .field:has(.hint) + .btn { margin-bottom: 24px; }
.adm-danger { border: 1.5px solid var(--red-bg); }

@keyframes adm-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes adm-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .adm-projects { grid-template-columns: minmax(0, 1fr); }
  .adm-checks { grid-template-columns: minmax(0, 1fr); }
  .adm-pterm-body { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .adm-safe-head { gap: 12px; }
  .adm-shield { width: 48px; height: 48px; border-radius: 14px; }
  .adm-shield svg.icon { width: 26px; height: 26px; }
  .adm-toggle { order: 6; flex: 1 1 100%; }
  .adm-inline .btn, .adm-inline .field:has(.hint) + .btn { flex: 1 1 100%; margin-bottom: 0; }
  .adm-meter { min-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-shield, .adm-details[open] > .changes { animation: none; }
  .adm-project { transition: none; }
}
