:root {
  --cr-primary: #bc0a7f;
  --cr-primary-600: #a6066e;
  --cr-primary-700: #8a0459;
  --cr-primary-soft: #f4abb6;
  --cr-primary-tint: #fde5ec;
  --cr-primary-faint: #fff5f8;
  --cr-accent: #f4abb6;
  --cr-accent-soft: #ffd2db;

  --cr-ink: #1b0d18;
  --cr-ink-soft: #4a3b45;
  --cr-ink-mute: #7a6a72;
  --cr-line: #ecd9e1;
  --cr-line-soft: #f7e6ec;
  --cr-bg: #fff9fb;
  --cr-surface: #ffffff;
  --cr-surface-muted: #fff3f6;

  --cr-success: #2b7a4b;
  --cr-success-bg: #dff3e7;
  --cr-warning: #b87d00;
  --cr-warning-bg: #fff2cf;
  --cr-danger: #b61e4b;
  --cr-danger-bg: #ffe3ec;
  --cr-info: #1f6fa6;
  --cr-info-bg: #d9ecf8;

  --cr-shadow-sm: 0 1px 2px rgba(60, 7, 40, 0.06), 0 1px 1px rgba(60, 7, 40, 0.04);
  --cr-shadow-md: 0 8px 24px -12px rgba(188, 10, 127, 0.28), 0 3px 8px rgba(60, 7, 40, 0.06);
  --cr-shadow-lg: 0 24px 48px -16px rgba(188, 10, 127, 0.35), 0 8px 24px rgba(60, 7, 40, 0.08);

  --cr-radius-xs: 6px;
  --cr-radius-sm: 10px;
  --cr-radius: 14px;
  --cr-radius-lg: 20px;
  --cr-radius-xl: 28px;

  --cr-gradient: linear-gradient(135deg, #bc0a7f 0%, #e43e99 50%, #f4abb6 100%);
  --cr-gradient-soft: linear-gradient(135deg, #fde5ec 0%, #fff5f8 100%);
}
/* ---------- Admin Shell ---------- */
.admin-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: #faf9f6;
  font-family: "DM Sans", "Inter", -apple-system, sans-serif;
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid #e8e5df;
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Brand header */
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  min-height: 64px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-name {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  line-height: 1.1;
}
.brand-name .title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  color: #1f1d1a;
  font-size: 17px;
  line-height: 21px;
  letter-spacing: -0.17px;
  white-space: nowrap;
}
.brand-name .subtitle {
  font-size: 10px;
  color: #a19d94;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 12.5px;
}

/* Nav sections */
.sidebar-nav {
  flex: 1 1 auto;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto;
}
.nav-section {
  display: flex; flex-direction: column; gap: 4px;
}

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #a19d94;
  letter-spacing: 0.12em;
  padding: 4px 12px 6px;
  font-weight: 500;
}

.nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 11px;
  border-radius: 10px;
  color: #1f1d1a;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  transition: background .15s ease, color .15s ease;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; color: #6b6862; }
.nav-link:hover { background: #f4f2ed; color: #1f1d1a; }
.nav-link.is-active {
  background: #fdf2f7;
  color: #72243e;
  font-weight: 500;
  box-shadow: none;
}
.nav-link.is-active svg { color: #b53d67; }
.nav-link.is-active:hover { background: #fbe6ee; color: #72243e; }

.nav-link .spacer { flex: 1 1 auto; }
.nav-link .badge {
  background: #f4f2ed;
  color: #6b6862;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: 0;
  line-height: 16.5px;
}
.nav-link.is-active .badge {
  background: rgba(181, 61, 103, 0.12);
  color: #b53d67;
}

/* Footer (user + logout) */
.sidebar-footer {
  padding: 12px 12px 16px;
  border-top: 0;
}
.user-card {
  background: #f4f2ed;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex; align-items: center; gap: 9px;
}
.user-card > form.button_to { display: contents; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #b07fe8 0%, #7c5bd0 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 500; font-size: 12px;
  flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.user-meta .name {
  font-weight: 500; font-size: 13px; color: #1f1d1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 19.5px;
}
.user-meta .role {
  font-size: 11px; color: #6b6862; line-height: 16.5px;
}
.sign-out-btn {
  background: transparent; border: none; cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 6px;
  color: #6b6862;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.sign-out-btn:hover { background: rgba(31, 29, 26, 0.06); color: #1f1d1a; }

/* ---------- Main ---------- */
.admin-main {
  padding: 28px 35px 40px;
  min-width: 0;
  background: #faf9f6;
}

/* ---------- Entrance animation ---------- */
@keyframes cr-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.admin-main .page-header,
.admin-main .filter-bar,
.admin-main .table-wrap {
  animation: cr-fade-up 0.35s ease-out both;
}
.admin-main .page-header { animation-delay: 0ms; }
.admin-main .filter-bar  { animation-delay: 80ms; }
.admin-main .table-wrap  { animation-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .admin-main .page-header,
  .admin-main .filter-bar,
  .admin-main .table-wrap { animation: none; }
}

/* ---------- Mobile topbar + sidebar drawer ---------- */
.mobile-topbar { display: none; }
.sidebar-backdrop { display: none; }
.sidebar-close-btn { display: none; }

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  /* Sidebar devient un drawer qui glisse depuis la gauche */
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; max-width: 85vw;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    height: 100vh;
  }
  .admin-sidebar.is-open { transform: translateX(0); }

  /* Backdrop au dessus du contenu quand le drawer est ouvert */
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 99;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
  }
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  body.sidebar-open { overflow: hidden; }

  /* Bouton fermer dans le drawer */
  .sidebar-close-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    margin-left: auto;
    transition: background .15s ease, color .15s ease;
  }
  .sidebar-close-btn:hover { background: #fdf2f8; color: #e60076; }

  /* Barre supérieure mobile avec le bouton hamburger */
  .mobile-topbar {
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 50;
    background: #ffffff;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    min-height: 60px;
  }
  .mobile-menu-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #1a1a2e;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
  }
  .mobile-menu-btn:hover { background: #fdf2f8; color: #e60076; }
  .mobile-brand {
    height: 36px; width: auto; object-fit: contain; display: block;
  }

  /* Espacement main plus compact */
  .admin-main { padding: 18px 16px 48px; }

  /* Header de page empilé */
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-header h1 { font-size: 22px; line-height: 30px; }
  .page-header .subtitle { font-size: 14px; line-height: 20px; }
  .page-header .actions { width: 100%; }
  .page-header .actions .btn,
  .page-header .actions .btn-primary { width: 100%; justify-content: center; }

  /* Grids empilés */
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 18px; min-height: 0; }

  .chart-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .chart-card { padding: 18px; }
  .chart-card.is-fill { min-height: 460px; }
  .chart-card-tall { min-height: 520px; }

  .detail-grid { grid-template-columns: 1fr !important; gap: 16px; }

  /* Filter bar */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filter-bar .search-box,
  .filter-bar .filter-dropdown,
  .filter-bar select { width: 100%; max-width: none; flex: none; }

  /* Table scrolle horizontalement au besoin */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data-table { min-width: 640px; }

  /* Pagination */
  .pagination { flex-direction: column; align-items: stretch; gap: 12px; }

  /* ---------- Map ---------- */
  .map-wrap {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    gap: 12px;
  }
  .map-sidebar {
    order: 2;
    max-height: none;
  }
  .map-sidebar .list { max-height: 300px; }
  .map-container {
    order: 1;
    height: 56vh;
    min-height: 360px;
  }

  /* ---------- Detail (show structure) ---------- */
  .detail-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .detail-actions { flex-wrap: wrap; }
  .detail-actions > * { flex: 1 1 140px; justify-content: center; }
}

/* Tout petit écran : typographie et espacement encore plus compacts */
@media (max-width: 480px) {
  .admin-main { padding: 14px 12px 40px; }
  .stat-card .value { font-size: 26px; line-height: 28px; }
  .page-header h1 { font-size: 20px; line-height: 28px; }
  .map-container { height: 52vh; min-height: 320px; }
}

.page-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; margin-bottom: 22px;
  position: relative; z-index: 10;
}
.page-header h1 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 42px;
  color: #1a1a2e;
  letter-spacing: 0;
}
.page-header .subtitle {
  color: #6b7280;
  font-size: 15px;
  line-height: 22.5px;
  margin-top: 2px;
}
.page-header .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Pink gradient CTA aligned on the figma design */
.page-header .btn-primary {
  background: linear-gradient(90deg, #f6339a 0%, #ec003f 100%);
  border-radius: 16px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  box-shadow: 0 10px 15px 0 #fccee8, 0 4px 6px 0 #fccee8;
}
.page-header .btn-primary:hover { filter: brightness(1.04); }

/* Dashboard-specific header overrides (Fraunces, finer button) */
.dash-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 33.6px;
  color: #1f1d1a;
  letter-spacing: -0.56px;
}
.dash-header .subtitle {
  font-size: 14px;
  line-height: 21px;
  color: #6b6862;
  margin-top: 2px;
}
.dash-header .btn-primary {
  background: linear-gradient(166deg, #d4537e 0%, #b53d67 100%);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  line-height: 19.5px;
  border: 1px solid transparent;
  box-shadow: 0 1px 1.5px rgba(212, 83, 126, 0.25);
}
.dash-header .btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 10px rgba(181, 61, 103, 0.28);
}
.dash-header .btn-primary svg { width: 14px; height: 14px; }

/* ---------- Action dropdown ---------- */
.action-dropdown { position: relative; }
.action-dropdown > .btn { gap: 8px; }
.action-dropdown > .btn svg:last-child { width: 12px; height: 12px; opacity: .7; margin-left: -2px; }
.action-dropdown-menu {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 6px);
  min-width: 210px;
  background: #fff;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31,29,26,.10), 0 2px 6px rgba(31,29,26,.06);
  padding: 6px;
  z-index: 110;
}
.action-dropdown-menu.is-open { display: block; }
.action-dropdown-menu .dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: #1f1d1a;
  text-decoration: none;
  transition: background .12s;
}
.action-dropdown-menu .dd-item:hover { background: #f4f2ed; }
.action-dropdown-menu .dd-item svg { width: 15px; height: 15px; color: #6b6862; flex-shrink: 0; }
.action-dropdown-menu .dd-sep { height: 1px; background: #e8e5df; margin: 4px 8px; }

/* ---------- Share modal ---------- */
.share-modal-size { width: min(500px, 100%); }
.share-desc { font-size: 13.5px; color: #6b6862; line-height: 1.5; margin: 0 0 22px; }
.share-field { margin-bottom: 16px; }
.share-field label { display: block; font-size: 12px; font-weight: 600; color: #6b6862; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.share-input-row { display: flex; gap: 8px; }
.share-input {
  flex: 1; padding: 9px 12px; border: 1px solid #e8e5df; border-radius: 8px;
  font-size: 13px; color: #1f1d1a; background: #faf9f6;
  outline: none;
}
.share-input:focus { border-color: #d4537e; box-shadow: 0 0 0 3px rgba(212,83,126,.1); }
.share-input-mono { font-family: "SF Mono", "Fira Code", monospace; font-size: 15px; letter-spacing: .08em; font-weight: 600; }
.share-input-row .btn { white-space: nowrap; flex-shrink: 0; }
.share-input-row .btn.is-copied { border-color: #009966; color: #009966; }

/* ---------- Shared layout ---------- */
.shared-shell { min-height: 100vh; background: #faf9f6; font-family: "DM Sans", "Inter", sans-serif; }
.shared-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  background: #fff; border-bottom: 1px solid #e8e5df;
}
.shared-logo { width: 34px; height: 34px; object-fit: contain; }
.shared-brand { display: flex; flex-direction: column; gap: 1px; }
.shared-brand-title { font-family: "Fraunces", Georgia, serif; font-size: 16px; color: #1f1d1a; line-height: 1.2; }
.shared-brand-sub { font-size: 10px; color: #a19d94; text-transform: uppercase; letter-spacing: .08em; }
.shared-main { max-width: 1120px; margin: 0 auto; padding: 28px 28px 48px; }
.shared-dash-header { margin-bottom: 22px; }
.shared-dash-header h1 { font-family: "Inter", sans-serif; font-weight: 500; font-size: 26px; color: #1a1a2e; margin: 0; }
.shared-dash-header .subtitle { color: #6b7280; font-size: 14px; margin-top: 2px; }

/* Shared login */
.shared-login-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 70px); padding: 24px; }
.shared-login-card {
  background: #fff; border-radius: 16px; padding: 36px 32px;
  max-width: 400px; width: 100%;
  border: 1px solid #e8e5df;
  box-shadow: 0 4px 16px rgba(31,29,26,.06);
}
.shared-login-header { text-align: center; margin-bottom: 28px; }
.shared-login-logo { width: 56px; height: 56px; margin-bottom: 16px; }
.shared-login-header h1 { font-family: "Inter", sans-serif; font-size: 20px; font-weight: 600; color: #1f1d1a; margin: 0 0 8px; }
.shared-login-header p { font-size: 13.5px; color: #6b6862; line-height: 1.5; margin: 0; }
.shared-login-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px;
}
.shared-login-field { margin-bottom: 20px; }
.shared-login-field label { display: block; font-size: 13px; font-weight: 500; color: #1f1d1a; margin-bottom: 6px; }
.shared-login-input {
  width: 100%; padding: 10px 14px; border: 1px solid #e8e5df; border-radius: 10px;
  font-size: 14px; color: #1f1d1a; background: #faf9f6; outline: none;
  box-sizing: border-box;
}
.shared-login-input:focus { border-color: #d4537e; box-shadow: 0 0 0 3px rgba(212,83,126,.1); }
.shared-login-btn {
  width: 100%; justify-content: center;
  background: linear-gradient(166deg, #d4537e 0%, #b53d67 100%);
  border-radius: 10px; padding: 11px 20px;
  font-size: 14px; font-weight: 500; color: #fff;
  border: none; cursor: pointer;
}
.shared-login-btn:hover { filter: brightness(1.05); }

/* ---------- Stat grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #e8e5df;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  min-height: 138px;
  box-shadow: none;
}
.stat-card .content {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
}
.stat-card .label {
  font-size: 11px;
  font-weight: 500;
  color: #6b6862;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 16.5px;
  margin: 0;
}
.stat-card .value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  line-height: 32px;
  font-weight: 400;
  letter-spacing: -0.64px;
  color: #1f1d1a;
  margin: 22px 0 14px;
}
.stat-card .value .unit {
  font-size: 16px;
  line-height: 16px;
  color: #a19d94;
  letter-spacing: 0;
  margin-left: 1px;
}
.stat-card .trend {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px;
  line-height: 18px;
  color: #6b6862;
}
.stat-card .trend strong { font-weight: 500; color: inherit; }
.stat-card .trend .dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: currentColor;
  flex-shrink: 0;
}
.stat-card .trend-success { color: #0f6e56; }
.stat-card .trend-warning { color: #854f0b; }
.stat-card .trend-danger  { color: #a32d2d; }
.stat-card .trend-neutral { color: #6b6862; }
.stat-card .trend-neutral .dot { background: #b53d67; }

.stat-card .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fdf2f7;
  color: #b53d67;
  flex-shrink: 0;
  box-shadow: none;
}
.stat-card .icon svg { width: 16px; height: 16px; }

/* Variants — pastel tinted icon tiles à la Figma */
.stat-card.coral  .icon { background: #e1f5ee; color: #0f6e56; }
.stat-card.coral  .value { color: #0f6e56; }
.stat-card.teal   .icon { background: #e6f1fb; color: #0c447c; }
.stat-card.purple .icon { background: #eeedfe; color: #534ab7; }

/* ---------- Chart blocks ---------- */
.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1000px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 25px;
  box-shadow: none;
}
.chart-card .card-title {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #1a1a2e;
}
.chart-card canvas { max-width: 100%; }
.chart-card.is-fill { display: flex; flex-direction: column; }
.chart-card.is-fill > [data-controller="chart"] { flex: 1; position: relative; min-height: 0; }
.chart-card.is-fill > [data-controller="chart"] > canvas { width: 100% !important; height: 100% !important; max-height: none !important; }

/* Taller card for charts that need to show every label (e.g. all regions). */
.chart-card-tall { min-height: 520px; }

/* ---------- Recent structures list ---------- */
.recent-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.recent-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition: background .15s ease;
}
.recent-item:hover { background: #fdf2f8; }
.recent-item .thumb {
  width: 36px; height: 36px;
  background: #fdf2f8;
  color: #e60076;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.recent-item .thumb svg { width: 16px; height: 16px; }
.recent-item .body { flex: 1; min-width: 0; }
.recent-item .name {
  font-size: 14px; line-height: 21px; color: #1a1a2e;
  font-weight: 400; text-decoration: none;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-item .meta {
  font-size: 12px; line-height: 18px; color: #6b7280;
  display: flex; align-items: center; gap: 6px;
  margin-top: 1px;
}
.recent-item .meta svg { width: 12px; height: 12px; flex-shrink: 0; }
.recent-item .pill {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Pills tuned to Figma (neutral backgrounds) */
.pill-status-to_recall  { background: #eff6ff; color: #155dfc; }
.pill-status-verified   { background: #ecfdf5; color: #009966; }
.pill-status-pending    { background: #fff7ed; color: #d97706; }
.pill-status-incomplete { background: #f3e8ff; color: #7c3aed; }
.pill-status-unverified { background: #fef2f2; color: #dc2626; }

/* Activity empty state (pink icon tile) */
.activity-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  padding: 60px 0;
  color: #6b7280;
}
.activity-empty .tile {
  width: 64px; height: 64px;
  background: #fdf2f8;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #e60076;
}
.activity-empty .tile svg { width: 28px; height: 28px; }
.activity-empty p {
  margin: 0;
  font-size: 14px; line-height: 21px;
  color: #6b7280;
  text-align: center;
}

.activity-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.activity-list li { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.activity-list li:last-child { border-bottom: 0; }

/* ---------- Structures list ---------- */
.filter-bar {
  display: flex; flex-wrap: nowrap; gap: 8px; align-items: center;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 17px;
  margin-bottom: 24px;
  box-shadow: none;
}
.filter-bar .search-box,
.filter-bar .filter-dropdown { position: relative; display: block; min-width: 0; }
.filter-bar .search-box { flex: 1 1 200px; }
.filter-bar .filter-dropdown { flex: 1 1 140px; }
.filter-bar .search-box input,
.filter-bar .filter-dropdown select { width: 100%; }

@media (max-width: 900px) {
  .filter-bar { flex-wrap: wrap; }
  .filter-bar .search-box { flex: 1 1 100%; }
  .filter-bar .filter-dropdown { flex: 1 1 calc(50% - 4px); }
}

.filter-bar .search-box > svg,
.filter-bar .filter-dropdown > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #6b7280;
  width: 16px; height: 16px;
  pointer-events: none;
}

.filter-bar input[type="search"],
.filter-bar input[type="text"],
.filter-bar select {
  height: 43px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px 16px 10px 44px;
  font-size: 14px;
  color: #1a1a2e;
  box-shadow: none;
  line-height: 1.3;
}
.filter-bar input::placeholder { color: rgba(26, 26, 46, 0.5); }
.filter-bar select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 3px var(--cr-primary-tint);
}

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 400;
  line-height: 18px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-verified   { background: #ecfdf5; color: #009966; border-color: #d0fae5; }
.pill-pending    { background: #faf5ff; color: #9810fa; border-color: #f3e8ff; }
.pill-to_recall  { background: #eff6ff; color: #155dfc; border-color: #dbeafe; }
.pill-incomplete { background: #fef3c7; color: #e17100; border-color: #fde68a; }
.pill-unverified { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Alias with `pill-status-*` prefix (dashboard / other consumers). */
.pill-status-verified   { background: #ecfdf5; color: #009966; border: 1px solid #d0fae5; }
.pill-status-pending    { background: #faf5ff; color: #9810fa; border: 1px solid #f3e8ff; }
.pill-status-to_recall  { background: #eff6ff; color: #155dfc; border: 1px solid #dbeafe; }
.pill-status-incomplete { background: #fef3c7; color: #e17100; border: 1px solid #fde68a; }
.pill-status-unverified { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ---------- Show page (palette cream/pink/Fraunces) ---------- */
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #b53d67;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  padding: 4px 0;
  margin-bottom: 18px;
  background: none;
  border: 0;
  text-decoration: none;
}
.detail-back:hover { color: #8a0459; }
.detail-back svg { width: 16px; height: 16px; }

.detail-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.detail-head .title {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 33.6px;
  letter-spacing: -0.56px;
  color: #1f1d1a;
}
.detail-head .meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px;
  font-size: 13.5px;
  line-height: 21px;
  color: #6b6862;
}
.detail-head .meta .location {
  display: inline-flex; align-items: center; gap: 6px;
}
.detail-head .meta .location svg { width: 14px; height: 14px; color: #6b6862; }
.detail-head .meta .muted { color: #a19d94; }

.detail-actions {
  display: flex; gap: 8px; align-items: stretch;
  flex-shrink: 0;
}
.detail-actions form { display: inline-flex; margin: 0; }
.detail-actions form .btn-danger-soft { width: 100%; justify-content: center; }

.btn-outline-soft {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff;
  color: #1f1d1a;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
}
.btn-outline-soft:hover { background: #f4f2ed; border-color: #d6d2c9; color: #1f1d1a; }
.btn-outline-soft svg { width: 14px; height: 14px; }

.btn-danger-soft {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fcebeb;
  color: #a32d2d;
  border: 1px solid #f1c5c5;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-danger-soft:hover { background: #fbdcdc; border-color: #e29a9a; color: #8a1f1f; }
.btn-danger-soft svg { width: 14px; height: 14px; }

/* Layout */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-stack {
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}

/* Card */
.detail-card {
  background: #ffffff;
  border: 1px solid #e8e5df;
  border-radius: 14px;
  padding: 21px 23px;
  box-shadow: none;
}
.detail-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.detail-icon-badge {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fdf2f7;
  display: inline-flex; align-items: center; justify-content: center;
  color: #b53d67;
  flex-shrink: 0;
}
.detail-icon-badge svg { width: 18px; height: 18px; }
.detail-card-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 23.8px;
  letter-spacing: -0.17px;
  color: #1f1d1a;
}

.detail-card p {
  margin: 0;
  font-size: 14px;
  line-height: 22.75px;
  color: #6b6862;
}
.detail-card .description {
  white-space: pre-wrap;
  margin-bottom: 16px;
  color: #1f1d1a;
}

/* Info rows (label + value) */
.info-list {
  display: flex; flex-direction: column; gap: 12px;
}
.info-row {
  display: flex; gap: 12px; align-items: flex-start;
}
.info-row .label {
  flex-shrink: 0;
  width: 144px;
  padding-top: 2px;
  font-size: 12.5px;
  line-height: 19.5px;
  color: #6b6862;
  display: inline-flex; align-items: center; gap: 6px;
}
.info-row .label svg { width: 14px; height: 14px; color: #a19d94; }
.info-row .value {
  flex: 1; min-width: 0;
  font-size: 13.5px;
  line-height: 22px;
  color: #1f1d1a;
  word-break: break-word;
}

/* Category chips (brand pink) */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip-category {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: #fdf2f7;
  border: 1px solid #fce7ef;
  color: #b53d67;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-category svg { width: 14px; height: 14px; }

/* Contact / Localisation rows with icon box */
.contact-list {
  display: flex; flex-direction: column; gap: 12px;
}
.contact-row {
  display: flex; gap: 12px; align-items: flex-start;
}
.contact-row .icon-box {
  flex-shrink: 0;
  width: 32px; height: 32px;
  margin-top: 2px;
  background: #f4f2ed;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #6b6862;
}
.contact-row .icon-box svg { width: 16px; height: 16px; }
.contact-row .body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.contact-row .body .label {
  font-size: 11px;
  line-height: 16.5px;
  color: #a19d94;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-row .body .value {
  font-size: 13.5px;
  line-height: 21px;
  color: #1f1d1a;
  word-break: break-word;
}
.contact-row .body .value a { color: #1f1d1a; text-decoration: none; }
.contact-row .body .value a:hover { color: #b53d67; }
.contact-row .body .value.link { color: #b53d67; }
.contact-row .body .value.link a { color: #b53d67; }

/* Footer sub-row inside a card (Contact référent / Coordonnées / Régions d'intervention) */
.detail-subrow {
  border-top: 1px solid #e8e5df;
  padding-top: 13px;
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.detail-subrow .label {
  font-size: 11px;
  line-height: 16.5px;
  color: #a19d94;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.detail-subrow .value {
  font-size: 13.5px;
  line-height: 21px;
  color: #1f1d1a;
}
.detail-subrow .coords {
  font-size: 13px;
  line-height: 19.5px;
  color: #1f1d1a;
}

.maps-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #b53d67;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  text-decoration: none;
  margin-top: 2px;
}
.maps-link:hover { color: #8a0459; }
.maps-link svg { width: 14px; height: 14px; }

/* Day chips (opening) */
.day-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.day-chip {
  display: inline-flex; align-items: center;
  padding: 4.5px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  background: #f4f2ed;
  border: 1px solid #e8e5df;
  color: #6b6862;
  white-space: nowrap;
}
.day-chip.is-open {
  background: #e6f4ec;
  border-color: #c5e5d2;
  color: #0f6e56;
}

/* Region pill (intervention) */
.pill-region {
  display: inline-flex; align-items: center;
  padding: 2.5px 10px;
  background: #e6f1fb;
  color: #0c447c;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

/* Activity list on detail page */
.activity-log-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.activity-log-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8e5df;
  font-size: 13.5px;
  line-height: 20.25px;
  color: #1f1d1a;
}
.activity-log-list li:last-child { border-bottom: 0; }
.activity-log-list .time {
  font-size: 12px;
  color: #a19d94;
  white-space: nowrap;
  flex-shrink: 0;
}
.activity-log-list li .time {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Pill inside detail header (inherit status colors from .pill-*) */
.detail-head .pill {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 18px;
}

/* Fallback for old .kv utility still used elsewhere */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 0.9rem; }
.kv dt { color: var(--cr-ink-mute); font-weight: 500; }
.kv dd { margin: 0; color: var(--cr-ink); word-break: break-word; }

/* ---------- Map ---------- */
.map-wrap {
  display: grid;
  grid-template-columns: 471px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) { .map-wrap { grid-template-columns: 1fr; } }

.map-sidebar {
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}

.map-sidebar .filters {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 17px;
  display: flex; flex-direction: column; gap: 12px;
}

.map-sidebar .filters .search-box,
.map-sidebar .filters .filter-dropdown {
  position: relative; display: block;
}
.map-sidebar .filters .search-box > svg,
.map-sidebar .filters .filter-dropdown > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #6b7280;
  width: 16px; height: 16px;
  pointer-events: none;
}
.map-sidebar .filters input[type="search"],
.map-sidebar .filters select {
  width: 100%;
  height: 43px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px 16px 10px 40px;
  font-size: 14px;
  color: #1a1a2e;
  box-shadow: none;
  line-height: 1.3;
}
.map-sidebar .filters input::placeholder { color: rgba(26, 26, 46, 0.5); }
.map-sidebar .filters select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  cursor: pointer;
}
.map-sidebar .filters input:focus,
.map-sidebar .filters select:focus {
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 3px var(--cr-primary-tint);
  outline: none;
}
.map-sidebar .filters .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-sidebar .results-count {
  padding-left: 4px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.map-sidebar .list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
  margin: 0;
}

.map-sidebar .list-item {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 16px 17px;
  cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.map-sidebar .list-item:hover {
  border-color: #fbcfe8;
  box-shadow: 0 1px 3px rgba(230, 0, 118, 0.06);
}
.map-sidebar .list-item.is-active {
  border-color: #f6339a;
  background: #fdf2f8;
}

.map-sidebar .list-item .list-item-dot {
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 5px;
  border-radius: 50%;
}

.map-sidebar .list-item .list-item-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}

.map-sidebar .list-item .list-item-title {
  font-size: 14px;
  line-height: 21px;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-sidebar .list-item .list-item-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}
.map-sidebar .list-item .list-item-meta svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
}
.map-sidebar .list-item .list-item-meta .meta-chunk {
  display: inline-flex; align-items: center; gap: 4px;
  min-width: 0;
}
.map-sidebar .list-item .list-item-meta .sep { color: #6b7280; }

.map-column {
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}

.map-container {
  position: relative;
  border-radius: var(--cr-radius-lg);
  border: 1px solid var(--cr-line-soft);
  overflow: hidden;
  box-shadow: var(--cr-shadow-sm);
  background: linear-gradient(180deg, #f6f8fc 0%, #e9edf6 100%);
  min-height: 520px;
}

/* D3 map canvas */
.cr-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
}
.cr-map-svg:active { cursor: grabbing; }

.cr-region {
  stroke: #c97aa8;
  stroke-width: 0.9;
  stroke-linejoin: round;
  transition: fill 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}
.cr-region.is-hover { fill: #ffd6ea !important; filter: brightness(1.02); }
.cr-region.is-active {
  fill: #f9b3d4 !important;
  stroke: var(--cr-primary);
  stroke-width: 1.8;
}

.cr-region-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: #6b0c4e;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
  stroke-linejoin: round;
  letter-spacing: 0.2px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cr-marker {
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.cr-marker:hover { opacity: 1 !important; }

/* Tooltip */
.cr-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  padding: 8px 11px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(188, 10, 127, 0.12);
  font-size: 12px;
  z-index: 5;
  max-width: 220px;
  line-height: 1.35;
  transform: translateZ(0);
}
.cr-tip-title {
  font-weight: 600;
  color: var(--cr-ink);
  font-size: 13px;
  margin-bottom: 2px;
}
.cr-tip-sub {
  color: var(--cr-ink-mute);
  font-size: 11px;
}

/* Zoom controls */
.map-zoom-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}
.map-zoom-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--cr-primary);
  border: 1px solid var(--cr-line-soft);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--cr-shadow-sm);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.map-zoom-btn:hover {
  background: var(--cr-primary-tint);
  transform: translateY(-1px);
}
.map-zoom-btn:active { transform: translateY(0); }

/* ---------- Map legend ---------- */
.map-legend {
  margin: 0;
  padding: 17px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: none;
}
.map-legend-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 18px;
}
.map-legend-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
}
@media (max-width: 900px) {
  .map-legend-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}
.map-legend-swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-legend-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Map modal: structure card (harmonisé avec /admin/structures/show) ---------- */
.mc {
  display: flex; flex-direction: column;
  gap: 20px;
  line-height: 1.5;
  color: #1f1d1a;
}

.mc > .description {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: #6b6862;
}

.mc-section {
  padding-top: 18px;
  border-top: 1px solid #e8e5df;
}
.mc-section:first-of-type { padding-top: 0; border-top: 0; }

.mc .detail-card-header { margin-bottom: 12px; }
.mc .detail-card-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 21px;
  letter-spacing: -0.15px;
  color: #1f1d1a;
}
.mc .detail-icon-badge {
  background: #fdf2f7;
  color: #b53d67;
}

/* Modal body — overrides for the structure card content */
.modal-body {
  padding: 22px 24px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: #1f1d1a;
}
.modal-body.is-loading { opacity: .5; pointer-events: none; }

/* ---------- Login page ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #faf9f6;
  font-family: "DM Sans", "Inter", -apple-system, sans-serif;
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }

/* ----- Hero (left panel) ----- */
.auth-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(137.65deg, #e47aa1 0%, #d4537e 45%, #b53d67 100%);
}
.auth-hero::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  top: -250px; right: -264px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}
.auth-hero::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  bottom: -250px; left: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.auth-hero .hero-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-hero .brand-logo {
  width: 156px;
  height: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.auth-hero .hero-body {
  position: relative;
  z-index: 1;
  margin-top: 50px;
  max-width: 480px;
}
.auth-hero .hero-body h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 52.5px;
  letter-spacing: -1.25px;
  color: #ffffff;
  margin: 0 0 22px;
}
.auth-hero .hero-body h1 em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}
.auth-hero .hero-body p {
  margin: 0;
  max-width: 460px;
  font-size: 15.5px;
  line-height: 24.8px;
  color: rgba(255, 255, 255, 0.88);
}

.auth-hero .hero-pin {
  position: absolute;
  right: -24px;
  bottom: 56px;
  width: 240px; height: 240px;
  z-index: 1;
  pointer-events: none;
}
.auth-hero .hero-pin svg { width: 100%; height: 100%; display: block; }

/* ----- Form panel (right) ----- */
.auth-form-panel {
  background: #faf9f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 60px;
}
.auth-form {
  width: 100%;
  max-width: 380px;
  font-family: "DM Sans", "Inter", sans-serif;
}
.auth-form h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 42px;
  letter-spacing: -0.6px;
  color: #1f1d1a;
  margin: 0 0 8px;
}
.auth-form p.lede {
  font-size: 14px;
  line-height: 21px;
  color: #6b6862;
  margin: 0 0 32px;
}

.auth-form .form-row {
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.auth-form .label-row {
  display: flex; align-items: center; justify-content: space-between;
}
.auth-form .field-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 18.75px;
  color: #1f1d1a;
}
.auth-form .forgot-link {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #b53d67;
  text-decoration: none;
}
.auth-form .forgot-link:hover { color: #8a0459; }

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #1f1d1a;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-form input::placeholder { color: rgba(31, 29, 26, 0.5); }
.auth-form input:focus {
  outline: none;
  border-color: #d4537e;
  box-shadow: 0 0 0 3px rgba(212, 83, 126, 0.18);
}

.auth-form .password-wrap { position: relative; }
.auth-form .password-wrap input { padding-right: 44px; }
.auth-form .password-toggle {
  position: absolute;
  right: 4px; top: 4px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #6b6862;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.auth-form .password-toggle:hover { background: rgba(31, 29, 26, 0.04); color: #1f1d1a; }
.auth-form .password-toggle svg { width: 16px; height: 16px; }

.auth-form .btn-login {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(173deg, #d4537e 0%, #b53d67 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  cursor: pointer;
  box-shadow: 0 1px 1.5px rgba(212, 83, 126, 0.25);
  transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
}
.auth-form .btn-login:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(181, 61, 103, 0.3);
}
.auth-form .btn-login:active { transform: translateY(1px); }
.auth-form .btn-login svg { width: 14px; height: 14px; }

.auth-form .auth-help {
  margin: 24px 0 0;
  padding: 14px 16px;
  background: #fdf2f7;
  border-radius: 10px;
  text-align: center;
  font-size: 12.5px;
  line-height: 18.75px;
  color: #72243e;
}
.auth-form .auth-help a {
  color: #72243e;
  font-weight: 500;
  text-decoration: underline;
}
.auth-form .auth-help a:hover { color: #b53d67; }

@media (max-width: 900px) {
  .auth-hero {
    padding: 36px 28px 56px;
  }
  .auth-hero .hero-body { margin-top: 28px; }
  .auth-hero .hero-body h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.8px; }
  .auth-hero .hero-pin { display: none; }
  .auth-form-panel { padding: 36px 24px 56px; }
}

/* ---------- Structure form wizard (new / edit) ---------- */
.form-page-header {
  margin: 0 auto 24px;
  max-width: 940px;
}
/* Centrage du lien de retour uniquement quand il précède une page form
   (new/edit) dont le contenu est centré sur 940 px. Sur une page show,
   le lien garde son alignement naturel à gauche (inline-flex). */
.admin-main > .detail-back:has(+ .form-page-header) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.form-page-header .title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 500;
  line-height: 42px;
  color: #1a1a2e;
  letter-spacing: -0.2px;
}
.form-page-header .subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 22.5px;
  color: #6b7280;
}

.form-wizard {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 940px;
  margin: 0 auto;
  width: 100%;
}

/* Tab bar card */
.wizard-tabbar {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 17px;
  display: flex; flex-direction: column; gap: 12px;
}
.wizard-tabs {
  display: flex; gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: -4px;
  padding: 4px;
  scrollbar-width: thin;
}
.wizard-tab {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: inherit;
  font-size: 13px;
  line-height: 19.5px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}
.wizard-tab:hover { color: #1a1a2e; }
.wizard-tab .tab-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.wizard-tab .tab-icon svg { width: 14px; height: 14px; }
.wizard-tab.is-active {
  background: #fdf2f8;
  border-color: #fccee8;
  color: #e60076;
  padding: 8px 13px;
}
.wizard-tab.is-active .tab-icon {
  background: #f6339a;
  color: #ffffff;
}
.wizard-tab.is-complete .tab-icon {
  background: #fdf2f8;
  color: #e60076;
}

/* Progress bar */
.wizard-progress {
  position: relative;
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}
.wizard-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(90deg, #f6339a 0%, #ff2056 100%);
  border-radius: 999px;
  transition: width .25s ease;
}

/* Content card */
.wizard-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 25px;
}

.wizard-step { display: none; flex-direction: column; gap: 20px; }
.wizard-step.is-active { display: flex; }

.wizard-step-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid #f3f4f6;
}
.wizard-step-header .icon-badge {
  width: 40px; height: 40px;
  background: #f9fafb;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1a1a2e;
  flex-shrink: 0;
}
.wizard-step-header .icon-badge svg { width: 20px; height: 20px; }
.wizard-step-header .title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 25.5px;
  color: #1a1a2e;
}
.wizard-step-header .subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 19.5px;
  color: #6b7280;
}

/* Notice encart (ex. étape Vérification) */
.wizard-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 14px;
  color: #1a1a2e;
  font-size: 13.5px;
  line-height: 20px;
}
.wizard-notice strong { color: #be185d; font-weight: 600; }
.wizard-notice-icon {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  background: #fbcfe8;
  color: #be185d;
  flex-shrink: 0;
}

/* Fields */
.wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.wizard-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .wizard-grid { grid-template-columns: 1fr; } }

.wizard-field {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.wizard-field > label,
.wizard-field .field-label {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  color: #1a1a2e;
}
.wizard-field .required { color: #f6339a; }
.wizard-field .help {
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}

.wizard-field input[type="text"],
.wizard-field input[type="email"],
.wizard-field input[type="tel"],
.wizard-field input[type="url"],
.wizard-field input[type="number"],
.wizard-field input[type="search"],
.wizard-field select,
.wizard-field textarea {
  width: 100%;
  height: 43px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  line-height: 21px;
  color: #1a1a2e;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.wizard-field textarea {
  height: auto;
  min-height: 106px;
  line-height: 21px;
  resize: vertical;
}
.wizard-field input::placeholder,
.wizard-field textarea::placeholder { color: rgba(26, 26, 46, 0.5); }
.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #f6339a;
  box-shadow: 0 0 0 3px #fce7f3;
}

.wizard-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* Chip selector */
.wizard-chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.wizard-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6.5px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  user-select: none;
  white-space: nowrap;
}
.wizard-chip:hover { border-color: #fccee8; color: #be185d; }
.wizard-chip input[type="checkbox"] { display: none; }
.wizard-chip.is-active {
  background: #fdf2f8;
  border-color: #fccee8;
  color: #e60076;
}
.wizard-chip svg { width: 14px; height: 14px; }

/* Checkbox (single boolean) */
.wizard-switch {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  line-height: 21px;
  color: #1a1a2e;
  cursor: pointer;
}
.wizard-switch input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #e60076;
  cursor: pointer;
}

/* Wizard actions */
.wizard-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
}
.wizard-actions form { margin: 0; display: inline-flex; }

.btn-step-prev,
.btn-step-next,
.btn-step-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.btn-step-prev {
  background: #ffffff;
  color: #1a1a2e;
  border: 1px solid #f3f4f6;
}
.btn-step-prev:hover { border-color: #e5e7eb; background: #fafafa; }
.btn-step-prev:disabled,
.btn-step-prev[aria-disabled="true"] {
  color: #d1d5dc;
  border-color: #f3f4f6;
  background: #ffffff;
  cursor: not-allowed;
}
.btn-step-prev svg { width: 16px; height: 16px; }

.btn-step-next {
  background: #f3f4f6;
  color: #99a1af;
  border: 1px solid #f3f4f6;
}
.btn-step-next.is-ready,
.btn-step-next:hover {
  background: linear-gradient(90deg, #f6339a 0%, #ff2056 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 6px 0 #fccee8, 0 2px 4px 0 #fccee8;
}
.btn-step-next svg { width: 16px; height: 16px; }

.btn-step-submit {
  background: linear-gradient(90deg, #f6339a 0%, #ff2056 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 4px 6px 0 #fccee8, 0 2px 4px 0 #fccee8;
}
.btn-step-submit:hover { filter: brightness(1.04); }
.btn-step-submit svg { width: 16px; height: 16px; }

/* Error banner tuned for wizard */
.form-wizard .error-banner {
  border-left: 4px solid #e7000b;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
}

/* ---------- Admin users table — mobile cards ---------- */
@media (max-width: 720px) {
  .data-table.admin-users-table,
  .data-table.admin-users-table thead,
  .data-table.admin-users-table tbody,
  .data-table.admin-users-table tr,
  .data-table.admin-users-table td { display: block; min-width: 0; }

  .data-table.admin-users-table thead { display: none; }

  .data-table.admin-users-table tbody {
    display: flex; flex-direction: column; gap: 12px;
  }

  .data-table.admin-users-table tr {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .data-table.admin-users-table td {
    padding: 8px 0;
    border: none !important;
    text-align: left !important;
    white-space: normal !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #1a1a2e;
  }

  .data-table.admin-users-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    flex: 0 0 auto;
  }

  /* Identity row: no label, name occupies the whole card header */
  .data-table.admin-users-table td.cell-identity {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f3f4f6 !important;
    justify-content: flex-start;
  }
  .data-table.admin-users-table td.cell-identity::before { display: none; }

  /* E-mail wraps and aligns right */
  .data-table.admin-users-table td.cell-email {
    word-break: break-all;
    text-align: right !important;
  }

  /* Actions row: full-width button */
  .data-table.admin-users-table td.cell-actions {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #f3f4f6 !important;
    justify-content: flex-end;
  }
  .data-table.admin-users-table td.cell-actions::before { display: none; }
  .data-table.admin-users-table td.cell-actions .btn-outline-soft {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Dashboard cards (Figma node 3195:449)
   Cream background + Fraunces titles + cream-bordered cards
   ========================================================================== */

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: #ffffff;
  border: 1px solid #e8e5df;
  border-radius: 14px;
  padding: 21px 23px;
  box-shadow: none;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.dash-card.is-fill { min-height: 420px; }
.dash-card.is-fill .dash-card-body {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
}
.dash-card.is-fill .dash-card-body > canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}
.dash-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.dash-card-head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 23.8px;
  letter-spacing: -0.17px;
  color: #1f1d1a;
}
.dash-link {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #b53d67;
  text-decoration: none;
}
.dash-link:hover { color: #8a0459; }
.dash-eyebrow {
  font-size: 12px;
  line-height: 18px;
  color: #a19d94;
}

/* ---------- Categories: horizontal bar list ---------- */
.cat-bars {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cat-row {
  display: grid;
  grid-template-columns: minmax(0, 180px) 1fr 40px;
  align-items: center;
  gap: 12px;
  min-height: 19.5px;
}
.cat-name {
  font-size: 13px;
  line-height: 19.5px;
  color: #1f1d1a;
  word-break: break-word;
}
.cat-track {
  height: 8px;
  background: #f4f2ed;
  border-radius: 4px;
  overflow: hidden;
}
.cat-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #d4537e 0%, #b53d67 100%);
  transition: width .3s ease;
}
.cat-fill.bar-pink   { background: linear-gradient(90deg, #d4537e 0%, #b53d67 100%); }
.cat-fill.bar-rose   { background: linear-gradient(90deg, #993556 0%, #b53d67 100%); }
.cat-fill.bar-green  { background: linear-gradient(90deg, #1d9e75 0%, #0f6e56 100%); }
.cat-fill.bar-amber  { background: linear-gradient(90deg, #ba7517 0%, #854f0b 100%); }
.cat-fill.bar-violet { background: linear-gradient(90deg, #7f77dd 0%, #534ab7 100%); }
.cat-fill.bar-red    { background: linear-gradient(90deg, #e24b4a 0%, #a32d2d 100%); }
.cat-count {
  font-size: 12.5px;
  line-height: 18.75px;
  color: #6b6862;
  text-align: right;
}

/* ---------- Recent rows (À traiter / Dernières structures) ---------- */
.row-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.row-item { border-top: 1px solid #e8e5df; }
.row-item:first-child { border-top: 0; }
.row-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
  border-radius: 6px;
}
.row-link:hover { background: rgba(244, 242, 237, 0.55); }
.row-thumb {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #fdf2f7;
  color: #b53d67;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.row-thumb svg { width: 14px; height: 14px; }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 20.25px;
  color: #1f1d1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  line-height: 17.25px;
  color: #a19d94;
  flex-wrap: wrap;
}
.row-meta svg { width: 12px; height: 12px; flex-shrink: 0; }
.row-meta .sep { color: #d6d2c9; }
.row-chevron { color: #a19d94; flex-shrink: 0; }

/* ---------- Activity feed ---------- */
.activity-feed {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.activity-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 0 12px;
  border-top: 1px solid #e8e5df;
}
.activity-row:first-child { border-top: 0; padding-top: 0; }
.av-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
  flex-shrink: 0;
}
.av-avatar.av-pink   { background: #f4c0d1; color: #72243e; }
.av-avatar.av-violet { background: #cecbf6; color: #3c3489; }
.av-avatar.av-green  { background: #9fe1cb; color: #085041; }
.av-avatar.av-amber  { background: #fac775; color: #633806; }
.av-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.av-line {
  margin: 0;
  font-size: 13.5px;
  line-height: 19.5px;
  color: #1f1d1a;
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.av-line strong { font-weight: 500; }
.av-verb { color: #6b6862; font-weight: 400; }
.av-chip {
  display: inline-flex; align-items: center;
  background: #f4f2ed;
  color: #6b6862;
  font-size: 12.5px;
  line-height: 18.125px;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden; text-overflow: ellipsis;
}
.av-meta {
  margin: 0;
  font-size: 11.5px;
  line-height: 17.25px;
  color: #a19d94;
}

/* Tighter responsiveness for cards */
@media (max-width: 720px) {
  .admin-main { padding: 18px 16px 40px; }
  .dash-card { padding: 18px; }
  .cat-row { grid-template-columns: minmax(0, 140px) 1fr 36px; gap: 10px; }
}

/* ==========================================================================
   /admin/admin_users — Comptes administrateurs (Figma node 3195:1773)
   ========================================================================== */

.admins-header .btn-primary {
  background: linear-gradient(168deg, #d4537e 0%, #b53d67 100%);
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  line-height: 19.5px;
  border: 1px solid transparent;
  box-shadow: 0 1px 1.5px rgba(212, 83, 126, 0.25);
}
.admins-header .btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 10px rgba(181, 61, 103, 0.28);
}
.admins-header .btn-primary svg { width: 14px; height: 14px; }

/* Toolbar */
.admins-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.admins-search {
  position: relative;
  flex: 1 1 auto;
  display: block;
}
.admins-search > svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #6b6862;
  pointer-events: none;
}
.admins-search input[type="search"],
.admins-search input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 9px 14px 9px 36px;
  background: #ffffff;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  font-size: 13.5px;
  color: #1f1d1a;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: none;
}
.admins-search input::placeholder { color: rgba(31, 29, 26, 0.5); }
.admins-search input:focus {
  outline: none;
  border-color: #d4537e;
  box-shadow: 0 0 0 3px rgba(212, 83, 126, 0.15);
}

/* Table card */
.admins-card {
  background: #ffffff;
  border: 1px solid #e8e5df;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}

table.admins-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.admins-table thead th {
  background: #faf9f6;
  border-bottom: 1px solid #e8e5df;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 500;
  color: #6b6862;
  letter-spacing: 0.06em;
  line-height: 17.25px;
  padding: 11px 16px;
  text-align: left;
}
table.admins-table thead th.col-actions { text-align: right; }
table.admins-table tbody tr { border-top: 1px solid #e8e5df; }
table.admins-table tbody tr:first-child { border-top: 0; }
table.admins-table tbody tr:hover { background: #fdf7f3; }
table.admins-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  color: #1f1d1a;
}

/* Identity cell */
.admins-table .cell-identity {
  display: flex; align-items: center; gap: 10px;
  min-width: 240px;
}
.row-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: #ffffff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #b07fe8 0%, #7c5bd0 100%);
}
.row-avatar.av-violet { background: linear-gradient(135deg, #b07fe8 0%, #7c5bd0 100%); }
.row-avatar.av-pink   { background: linear-gradient(135deg, #f4a8c4 0%, #d4537e 100%); }
.row-avatar.av-amber  { background: linear-gradient(135deg, #fac775 0%, #ba7517 100%); }
.row-avatar.av-green  { background: linear-gradient(135deg, #9fe1cb 0%, #1d9e75 100%); }
.row-avatar.av-rose   { background: linear-gradient(135deg, #ed93b1 0%, #993556 100%); }

.identity-body {
  display: inline-flex; flex-direction: column; line-height: 1.2; min-width: 0;
}
.identity-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 20.25px;
  color: #1f1d1a;
}
.identity-self {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #a19d94;
}
.identity-email {
  font-size: 12px;
  color: #6b6862;
  line-height: 18px;
}

/* Dot pills (role + status) */
.dot-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.dot-pill .dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

.dot-pill.role-superadmin {
  background: #efe7fb; color: #6e47c9; border-color: #dccbf7;
}
.dot-pill.role-admin {
  background: #fdf2f7; color: #72243e; border-color: #fce7ef;
}
.dot-pill.role-verifier {
  background: #fff3dc; color: #8a5a00; border-color: #fbe3b0;
}
.dot-pill.role-reader {
  background: #e6f1fb; color: #0c447c; border-color: #cfe1f3;
}

.dot-pill.status-active {
  background: #e6f4ec; color: #0f6e56; border-color: #c5e5d2;
}
.dot-pill.status-invited {
  background: #faeeda; color: #854f0b; border-color: #f2d9a9;
}
.dot-pill.status-disabled {
  background: #f4f2ed; color: #6b6862; border-color: #e8e5df;
}

/* Date cells */
.admins-table .cell-last-seen { font-size: 13px; color: #1f1d1a; }
.admins-table .cell-created { font-size: 13px; color: #6b6862; }
.admins-table .muted { color: #a19d94; }

/* Actions cell */
.admins-table .cell-actions {
  text-align: right;
  white-space: nowrap;
}
.admins-table .cell-actions .row-action,
.admins-table .cell-actions a.row-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: transparent;
  color: #6b6862;
  text-decoration: none;
  border: 0;
  margin-left: 2px;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.admins-table .cell-actions .row-action:hover {
  background: #f4f2ed;
  color: #1f1d1a;
}
.admins-table .cell-actions .row-action.is-disabled {
  color: #d6d2c9;
  cursor: default;
}
.admins-table .cell-actions .row-action.is-disabled:hover { background: transparent; }

/* Responsive — mobile cards */
@media (max-width: 720px) {
  .admins-toolbar { flex-direction: column; align-items: stretch; }
  .admins-search { flex: 0 0 auto; }

  table.admins-table,
  table.admins-table thead,
  table.admins-table tbody,
  table.admins-table tr,
  table.admins-table td { display: block; min-width: 0; }
  table.admins-table thead { display: none; }

  table.admins-table tbody {
    display: flex; flex-direction: column; gap: 12px;
    padding: 12px;
  }
  table.admins-table tbody tr {
    background: #ffffff;
    border: 1px solid #e8e5df;
    border-radius: 12px;
    padding: 14px 16px;
  }
  table.admins-table tbody td {
    padding: 8px 0;
    border: 0 !important;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    text-align: left !important;
    white-space: normal !important;
  }
  table.admins-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a19d94;
    flex: 0 0 auto;
  }
  table.admins-table tbody td.cell-identity {
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f4f2ed !important;
    justify-content: flex-start;
  }
  table.admins-table tbody td.cell-identity::before { display: none; }
  table.admins-table tbody td.cell-actions {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #f4f2ed !important;
    justify-content: flex-end;
  }
  table.admins-table tbody td.cell-actions::before { display: none; }
}


*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cr-ink);
  background: var(--cr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--cr-ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: 1.9rem; line-height: 1.2; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

a {
  color: var(--cr-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--cr-primary-700); }

p { margin: 0 0 0.9em; }

::selection { background: var(--cr-primary-tint); color: var(--cr-primary-700); }

/* Utility */
.text-mute { color: var(--cr-ink-mute); }
.text-sm { font-size: 0.86rem; }
.text-xs { font-size: 0.76rem; }
.mono { font-family: "JetBrains Mono", "SF Mono", Menlo, monospace; }
.center { display: flex; align-items: center; justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { flex: 1 1 auto; }
.hidden { display: none !important; }

.flash {
  position: fixed; top: 18px; right: 18px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.flash > div {
  padding: 12px 18px;
  border-radius: var(--cr-radius);
  background: var(--cr-surface);
  box-shadow: var(--cr-shadow-lg);
  pointer-events: auto;
  min-width: 260px;
}
.flash .notice { border-left-color: var(--cr-success); color: var(--cr-success); }
.flash .alert  { color: var(--cr-danger);  }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cr-surface);
  color: var(--cr-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
}
.btn:hover { box-shadow: var(--cr-shadow-md); }
.btn:active { transform: translateY(1px); }

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--cr-gradient);
  color: white;
  border: none;
  box-shadow: 0 10px 24px -12px rgba(188, 10, 127, 0.6);
}
.btn-primary:hover { color: white; filter: brightness(1.05); }

.btn-ghost {
  background: transparent;
  color: var(--cr-primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--cr-primary-tint); color: var(--cr-primary-700); }

.btn-secondary {
  background: var(--cr-primary-tint);
  color: var(--cr-primary-700);
  border: none;
}
.btn-secondary:hover { background: var(--cr-primary-faint); color: var(--cr-primary-700); }

.btn-outline {
  background: var(--cr-surface);
  color: var(--cr-ink);
  border-color: var(--cr-line);
}
.btn-outline:hover { border-color: var(--cr-primary); color: var(--cr-primary); }

.btn-danger {
  background: var(--cr-danger-bg);
  color: var(--cr-danger);
  border: none;
}
.btn-danger:hover { background: var(--cr-danger); color: white; }

.btn-icon {
  width: 38px; height: 38px; padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.btn-sm { padding: 7px 12px; font-size: 0.86rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--cr-surface);
  border-radius: var(--cr-radius-lg);
  box-shadow: var(--cr-shadow-sm);
  border: 1px solid var(--cr-line-soft);
  padding: 22px;
}
.card-pad-lg { padding: 28px; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.card-title { font-size: 1.05rem; font-weight: 600; color: var(--cr-ink); margin: 0; }

/* ---------- Badges / Chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  font-size: 0.75rem; font-weight: 500;
  border-radius: 999px;
  background: var(--cr-primary-tint);
  color: var(--cr-primary-700);
  letter-spacing: 0.02em;
}
.badge-success { background: var(--cr-success-bg); color: var(--cr-success); }
.badge-warning { background: var(--cr-warning-bg); color: var(--cr-warning); }
.badge-danger  { background: var(--cr-danger-bg);  color: var(--cr-danger); }
.badge-info    { background: var(--cr-info-bg);    color: var(--cr-info); }
.badge-muted   { background: #f1e7ec; color: var(--cr-ink-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--cr-ink-soft);
  border: 1px solid #e5e7eb;
}
.chip-primary {
  background: var(--cr-primary-tint); color: var(--cr-primary-700); border-color: transparent;
}

/* ---------- Forms ---------- */
.form-row { margin-bottom: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 20px;
}
.form-row-full { grid-column: 1 / -1; }

label.field-label, .field-label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--cr-ink-soft); margin-bottom: 6px;
}
.field-hint { display: block; font-size: 0.76rem; color: var(--cr-ink-mute); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cr-line);
  border-radius: 12px;
  background: var(--cr-surface);
  color: var(--cr-ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 4px var(--cr-primary-tint);
}

textarea { min-height: 90px; resize: vertical; }

input[type="checkbox"] {
  accent-color: var(--cr-primary);
  width: 16px; height: 16px;
}

.check-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--cr-line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--cr-ink-soft);
  background: var(--cr-surface);
  transition: all .15s ease;
  user-select: none;
}
.check-item:hover { border-color: var(--cr-primary); color: var(--cr-primary); }
.check-item input { display: none; }
.check-item.is-active {
  background: var(--cr-primary);
  color: white; border-color: var(--cr-primary);
  box-shadow: var(--cr-shadow-md);
}

.field-error { color: var(--cr-danger); font-size: 0.78rem; margin-top: 4px; }
.error-banner {
  background: var(--cr-danger-bg); color: var(--cr-danger);
  border-left: 4px solid var(--cr-danger);
  padding: 12px 16px; border-radius: var(--cr-radius-sm);
  margin-bottom: 16px; font-size: 0.9rem;
}

/* ---------- Table ---------- */
.table-wrap {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 16px 20px;
  vertical-align: middle;
}
table.data-table thead th {
  background: #ffffff;
  font-weight: 700; font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-bottom: 1px solid #f3f4f6;
  padding: 14px 20px;
  line-height: 18px;
}
table.data-table tbody tr { border-top: 1px solid #f9fafb; }
table.data-table tbody tr:first-child { border-top: 0; }
table.data-table tbody tr:hover { background: #fdf2f8; }
table.data-table tbody tr.is-clickable { cursor: pointer; }

.table-cell-strong { font-weight: 500; color: #1a1a2e; }

/* Cells tuned for the structures index (matches Figma). */
.cell-structure {
  display: flex; align-items: center; gap: 12px;
  min-width: 260px;
}
.cell-structure .thumb {
  width: 36px; height: 36px;
  background: #fdf2f8;
  color: #e60076;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cell-structure .thumb svg { width: 16px; height: 16px; }
.cell-structure .info { min-width: 0; }
.cell-structure .info .name {
  font-size: 14px; color: #1a1a2e;
  text-decoration: none; display: block;
  line-height: 21px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}
.cell-structure .info .sub {
  font-size: 12px; color: #6b7280; line-height: 18px;
}

.cell-region .line {
  display: flex; align-items: center; gap: 6px;
  color: #6b7280; font-size: 13px; line-height: 19.5px;
}
.cell-region .line svg { width: 14px; height: 14px; flex-shrink: 0; color: #6b7280; }
.cell-region .sub {
  font-size: 11px; color: rgba(107, 114, 128, 0.6);
  line-height: 16.5px; margin-top: 2px;
}

.cell-categories {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
}
.cell-categories .cat-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  color: #6b7280;
  border-radius: 999px;
  font-size: 11px; line-height: 16.5px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden; text-overflow: ellipsis;
}

.cell-contact {
  display: flex; flex-direction: column; gap: 4px;
}
.cell-contact .line {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6b7280; line-height: 18px;
  max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cell-contact .line svg { width: 12px; height: 12px; flex-shrink: 0; color: #6b7280; }
.cell-contact .line a { color: #6b7280; text-decoration: none; }
.cell-contact .line a:hover { color: #e60076; }

/* ---------- Pagination / Empty ---------- */
.empty-state {
  padding: 48px 24px; text-align: center; color: var(--cr-ink-mute);
}
.empty-state svg { width: 96px; height: 96px; margin: 0 auto 16px; display: block; }

.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
  font-size: 13px; color: #6b7280;
}
.pagination .summary { line-height: 19.5px; }
.pagination .pages {
  display: inline-flex; gap: 4px; align-items: center;
}
.pagination .page-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: #6b7280;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pagination .page-btn:hover { background: #fdf2f8; color: #e60076; }
.pagination .page-btn.is-active {
  background: #f6339a;
  color: #ffffff;
}
.pagination .page-btn.is-active:hover { background: #e60076; color: #ffffff; }
.pagination .page-btn.is-disabled {
  color: #d1d5db; pointer-events: none;
}
.pagination .page-ellipsis {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 13px;
}

/* ---------- Modal (Carte Rose — palette cream/pink) ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(31, 29, 26, 0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  /* Must outrank Leaflet's panes (up to 700) and controls (~1000). */
  z-index: 9999;
  animation: fadeIn .2s ease;
}

.modal {
  background: #ffffff;
  border: 1px solid #e8e5df;
  border-radius: 14px;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  box-shadow:
    0 24px 48px -16px rgba(31, 29, 26, 0.18),
    0 8px 24px rgba(31, 29, 26, 0.08);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: "DM Sans", "Inter", -apple-system, sans-serif;
  animation: slideUp .25s cubic-bezier(.2,.9,.3,1);
}

.modal-header {
  padding: 20px 24px 16px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e8e5df;
  background: #ffffff;
}
.modal-header h2 {
  margin: 4px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.4px;
  color: #1f1d1a;
}
.modal-header .text-xs.text-mute {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a19d94;
  line-height: 17px;
}

.modal-body {
  padding: 22px 24px;
  overflow: auto;
  color: #1f1d1a;
}

.modal-footer {
  padding: 14px 18px;
  border-top: 1px solid #e8e5df;
  background: #faf9f6;
  display: flex; justify-content: flex-end; gap: 8px;
}
.modal-footer .btn {
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
}
.modal-footer .btn svg { width: 14px; height: 14px; }
.modal-footer .btn-outline {
  background: #ffffff;
  color: #1f1d1a;
  border: 1px solid #e8e5df;
}
.modal-footer .btn-outline:hover {
  background: #f4f2ed;
  border-color: #d6d2c9;
  color: #1f1d1a;
  box-shadow: none;
}
.modal-footer .btn-primary {
  background: linear-gradient(166deg, #d4537e 0%, #b53d67 100%);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 1px 1.5px rgba(212, 83, 126, 0.25);
}
.modal-footer .btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 10px rgba(181, 61, 103, 0.28);
}

.modal-close {
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: #6b6862;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: #f4f2ed; color: #1f1d1a; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .modal-header, .modal-body, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .modal-footer > * { width: 100%; justify-content: center; }
}
/*
 * Carte Rose Admin stylesheet.
 *


 */
