/* Location file-migration admin page (M-316) — the "Migrate files to …" trigger, the live-progress panel and
   the run-history grid. Page-local presentation only (the form controls, cards, buttons and grid are shared
   components); values come from design tokens so the page re-skins with the theme (coding-standards §4/§12).
   Behaviour lives in js/controllers/location_migration_controller.js; no inline styles/scripts. */

/* Scoped alert boxes for the queued/refused flash (page-local — mirrors the self-updater's). */
.platform-location-migration__alert {
    margin-top: var(--platform-space-md);
    padding: var(--platform-space-md);
    border-radius: var(--platform-radius-md);
    border: 1px solid transparent;
}

.platform-location-migration__alert--danger {
    color: var(--platform-color-error-text);
    background: var(--platform-color-error-surface);
    border-color: var(--platform-color-error);
}

.platform-location-migration__alert--info {
    background: var(--platform-color-surface-muted);
    border-color: var(--platform-color-border);
}

/* The migrate form: fields stacked with breathing room, mobile-first (single column) — the shared
   .platform-form__* controls already size themselves, so this only spaces them. */
.platform-location-migration__form {
    display: flex;
    flex-direction: column;
    gap: var(--platform-space-md);
}

.platform-location-migration__hint {
    margin: var(--platform-space-xs) 0 0;
    color: var(--platform-color-text-muted);
    font-size: 0.9em;
}

.platform-location-migration__actions {
    margin-top: var(--platform-space-sm);
}

/* Live progress panel — the status line takes the run's tone, the counts read beneath it. */
.platform-location-migration__status {
    margin: 0;
    font-weight: 600;
}

.platform-location-migration__progress[data-state="running"] .platform-location-migration__status {
    color: var(--platform-color-accent-strong);
}

.platform-location-migration__progress[data-state="success"] .platform-location-migration__status {
    color: var(--platform-color-ok);
}

.platform-location-migration__progress[data-state="failed"] .platform-location-migration__status {
    color: var(--platform-color-error-text);
}

.platform-location-migration__counts {
    margin: var(--platform-space-sm) 0 0;
    color: var(--platform-color-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Heading above the run-history grid, stacked under the progress panel. */
.platform-location-migration__runs-title {
    margin: var(--platform-space-lg, 1.5rem) 0 var(--platform-space-sm, 0.5rem);
    font-size: var(--platform-font-size-md, 1rem);
    font-weight: 600;
}
