/* ─────────────────────────────────────────────────────────────────────────
   CSV export's field picker (crm/partials/_export_fields.html, METIS-pub#857):
   the checkboxes, two columns wide where there is room, and Download CSV. The
   same form in the side panel beside the list and on the export page, so
   loaded on every page as the export panels' stylesheet
   (metis_apps/metis/side_panels.py). Replaces the two export templates'
   inline <style>.

   Tokens only; no literal colour, size, radius or duration.
   ───────────────────────────────────────────────────────────────────────── */

@layer base {
  .export-page {
    max-width: 40rem;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
  }

  .export-fields__select {
    display: flex;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
  }

  .export-fields__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: var(--space-2) var(--space-6);
    margin-bottom: var(--space-6);
  }

  .export-fields__field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    cursor: pointer;
  }

  .export-fields__field input {
    accent-color: var(--color-accent);
  }

  .export-fields__actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
  }
}
