/* Administration Preview pages (omni237 A1 guided onboarding, A2 assisted import): layout only, on
   pack tokens. The components are SM360.UI's; nothing here restyles one. Class names start adm- so
   they cannot meet another Preview family's rules. */
.adm { display: flex; flex-direction: column; gap: 16px; }
.adm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 0.8125rem; color: var(--sm360-text-muted); }
.adm-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.adm-two { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.adm-two > * { min-width: 0; }
.adm-actions > * + * { margin-inline-start: 8px; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.adm-hint { font-size: 0.8125rem; color: var(--sm360-text-muted); }
.adm-cell-name { display: block; font-weight: 500; font-size: 0.875rem; }
.adm-cell-sub { display: block; font-size: 0.75rem; color: var(--sm360-text-muted); }
.adm-link { color: var(--sm360-link, var(--sm360-action, var(--sm360-primary))); text-decoration: underline; }
.adm-link-row { margin: 0 0 12px; font-size: 0.875rem; }

/* The step strip: seven tiles (A1), four (A2). Each is a state, never a button. */
.adm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.adm-steps-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-step { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid var(--sm360-border-primary); border-radius: 8px; background: var(--sm360-bg-primary); font-size: 0.8125rem; }
.adm-step[data-current="true"] { border-color: var(--sm360-action, var(--sm360-primary)); font-weight: 600; }
.adm-step[data-done="true"] .adm-step-no { background: var(--sm360-success, var(--sm360-border-primary)); color: var(--sm360-bg-primary); }
.adm-step-no { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; background: var(--sm360-bg-secondary); }
.adm-step-name { min-width: 0; overflow-wrap: anywhere; }

/* The current step's progress and the gates list. */
.adm-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 6px; }
.adm-progress progress { flex: 1 1 200px; height: 8px; accent-color: var(--sm360-success, var(--sm360-action, var(--sm360-primary))); }
.adm-progress-label { font-family: var(--sm360-font-mono, ui-monospace, monospace); font-size: 0.8125rem; }
.adm-gates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm-gate { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sm360-border-primary); }
.adm-gate:last-child { border-bottom: 0; }
.adm-gate-mark { flex: 0 0 18px; font-weight: 600; }
.adm-gate[data-met="true"] .adm-gate-mark { color: var(--sm360-success, var(--sm360-text-primary)); }
.adm-gate-body { flex: 1 1 auto; min-width: 0; }

/* The four counts of the import check (A2). */
.adm-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.adm-kpi { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-kpi-value { font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-table { min-width: 0; }
.adm-table .sm360-table-container { overflow-x: auto; }
.adm-table th { white-space: nowrap; }
.adm-table .sm360-num, .adm-table .sm360-num * { white-space: nowrap; }

@media (max-width: 960px) {
    .adm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-steps-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .adm-two { grid-template-columns: minmax(0, 1fr); }
}
