:root {
  --jm-green: #075e54;
  --jm-green-dark: #03483f;
  --jm-green-soft: #eaf6f2;
  --jm-gold: #d8b657;
  --jm-gold-soft: #fbf5e4;
  --jm-ink: #13213a;
  --jm-muted: #697386;
  --jm-soft: #f5f7f7;
  --jm-card: #ffffff;
  --jm-line: #e3e9e8;
  --jm-danger: #c83d4d;
  --jm-danger-soft: #fff0f2;
  --jm-blue: #2f73d9;
  --jm-blue-soft: #edf4ff;
  --jm-purple: #7a4ee8;
  --jm-purple-soft: #f2edff;
  --jm-amber: #e79a10;
  --jm-amber-soft: #fff6df;
  --jm-shadow: 0 8px 24px rgba(18, 45, 54, 0.055);
  --jm-shadow-hover: 0 14px 34px rgba(18, 45, 54, 0.09);
  --jm-radius: 16px;
  --jm-radius-sm: 14px;
  --jm-display: "Playfair Display", Georgia, serif;
  --jm-body: "DM Sans", Arial, sans-serif;
  --jm-ui: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--jm-soft); }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.dashboard-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background:
    radial-gradient(circle at 30% -5%, rgba(216, 182, 87, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfcfc 0%, var(--jm-soft) 100%);
  color: var(--jm-ink);
  font-family: var(--jm-body);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px 18px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--jm-line);
  box-shadow: 10px 0 30px rgba(31, 54, 61, 0.025);
  z-index: 50;
}

.sidebar-header { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.sidebar-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  color: var(--jm-green-dark);
  background: linear-gradient(145deg, #fff, var(--jm-gold-soft));
  border: 1px solid rgba(216, 182, 87, 0.42);
  font-family: var(--jm-display);
  font-size: 23px;
  font-weight: 700;
}
.brand-copy { display: grid; line-height: 1.15; min-width: 0; }
.brand-copy strong { color: var(--jm-green-dark); font-family: var(--jm-display); font-size: 22px; white-space: nowrap; }
.brand-copy small { margin-top: 2px; color: var(--jm-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.sidebar-close { display: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 12px; background: var(--jm-soft); color: var(--jm-ink); cursor: pointer; }

.sidebar-profile {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--jm-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 45%, #f6faf9);
}
.sidebar-avatar { position: relative; width: 62px; height: 62px; }
.sidebar-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; object-position: center bottom; background: var(--jm-green-soft); border: 1px solid var(--jm-line); }
.presence-dot { position: absolute; right: 0; bottom: 4px; width: 15px; height: 15px; border-radius: 50%; background: #10a36e; border: 3px solid #fff; }
.sidebar-profile-copy { min-width: 0; display: grid; }
.sidebar-profile-copy strong { overflow: hidden; color: var(--jm-ink); font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-copy > span { overflow: hidden; margin-top: 2px; color: var(--jm-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-copy small { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; color: #0b8c60; font-size: 10.5px; font-weight: 800; }
.sidebar-profile-copy small i { width: 7px; height: 7px; border-radius: 50%; background: #10a36e; }

.sidebar-section-label { margin: 3px 10px -5px; color: #98a1ad; font-size: 9px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #596579;
  font-size: 12.5px;
  font-weight: 700;
  transition: 0.18s ease;
}
.sidebar-nav a svg { width: 19px; height: 19px; }
.sidebar-nav a:hover { color: var(--jm-green-dark); background: #f1f6f4; transform: translateX(2px); }
.sidebar-nav a.active { color: #fff; background: linear-gradient(135deg, var(--jm-green), var(--jm-green-dark)); box-shadow: 0 13px 26px rgba(7, 94, 84, 0.2); }
.sidebar-nav a b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: rgba(7, 94, 84, 0.1); color: var(--jm-green); font-size: 9px; }
.sidebar-nav a.active b { background: rgba(255, 255, 255, 0.18); color: #fff; }

.sidebar-footer { display: grid; gap: 5px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--jm-line); }
.sidebar-footer a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 11px; border-radius: 12px; color: var(--jm-muted); font-size: 11.5px; font-weight: 700; }
.sidebar-footer a:hover { background: var(--jm-soft); color: var(--jm-green-dark); }
.sidebar-footer .logout-link:hover { color: var(--jm-danger); background: var(--jm-danger-soft); }
.sidebar-footer svg { width: 18px; height: 18px; }

.sidebar-overlay { display: none; }
.dashboard-main { min-width: 0; padding: 26px clamp(22px, 2.8vw, 44px) 48px; }
.dashboard-content { width: 100%; max-width: 1660px; margin: 0 auto; }

.dashboard-topbar {
  width: 100%;
  max-width: 1660px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.topbar-heading { display: flex; align-items: flex-start; gap: 15px; min-width: 0; }
.menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-top: 4px;
  border: 1px solid var(--jm-line);
  border-radius: 13px;
  background: #fff;
  color: var(--jm-ink);
  box-shadow: 0 8px 22px rgba(18, 45, 54, 0.06);
  cursor: pointer;
}
.page-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--jm-green); font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.page-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 999px; background: var(--jm-gold); }
.dashboard-topbar h1 { margin: 4px 0 5px; color: var(--jm-ink); font-family: var(--jm-ui); font-weight: 800; font-size: clamp(22px, 1.7vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
.dashboard-topbar p { max-width: 720px; margin: 0; color: var(--jm-muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-top: 4px; }
.date-chip, .notification-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--jm-line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--jm-ink);
  box-shadow: 0 9px 24px rgba(18, 45, 54, 0.05);
}
.date-chip { gap: 9px; padding: 0 15px; border-radius: 13px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.date-chip svg { width: 17px; height: 17px; color: var(--jm-green); }
.notification-button { position: relative; width: 44px; border-radius: 13px; }
.notification-button:hover { color: var(--jm-green); border-color: rgba(7, 94, 84, 0.3); }
.notification-button b { position: absolute; top: -6px; right: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f0445b; color: #fff; border: 2px solid #fff; font-size: 9px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s ease;
}
.button svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--jm-green), var(--jm-green-dark)); box-shadow: 0 10px 24px rgba(7, 94, 84, 0.18); }
.button-primary:hover { box-shadow: 0 14px 28px rgba(7, 94, 84, 0.24); }
.button-secondary { color: var(--jm-green-dark); border-color: var(--jm-line); background: #fff; }
.button-secondary:hover { border-color: rgba(7, 94, 84, 0.28); background: var(--jm-green-soft); }
.button-danger { color: #fff; background: var(--jm-danger); box-shadow: 0 10px 22px rgba(200, 61, 77, 0.18); }
.button-danger-soft { color: var(--jm-danger); border-color: rgba(200, 61, 77, 0.18); background: var(--jm-danger-soft); }
.button-small { min-height: 35px; padding: 0 12px; border-radius: 10px; font-size: 10.5px; }
.button-icon { width: 36px; min-width: 36px; padding: 0; }

/* Actions de l’en-tête : texte sur ordinateur, icône compacte sur mobile. */
.topbar-page-action { white-space: nowrap; }
.topbar-page-action-label { display: inline; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.flash-stack { width: 100%; max-width: 1660px; margin: -8px auto 20px; display: grid; gap: 9px; }
.flash-message { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border: 1px solid rgba(7, 94, 84, 0.18); border-radius: 13px; background: var(--jm-green-soft); color: var(--jm-green-dark); font-size: 12px; font-weight: 700; }
.flash-message.error { border-color: rgba(200, 61, 77, 0.2); background: var(--jm-danger-soft); color: var(--jm-danger); }
.flash-message.warning { border-color: rgba(231, 154, 16, 0.24); background: var(--jm-amber-soft); color: #9c6705; }
.flash-message button { border: 0; background: transparent; color: currentColor; font-size: 20px; line-height: 1; cursor: pointer; }

.panel {
  border: 1px solid var(--jm-line);
  border-radius: var(--jm-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--jm-shadow);
}
.panel-padding { padding: 23px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-title-wrap { min-width: 0; }
.panel-title { margin: 0; color: var(--jm-ink); font-family: var(--jm-ui); font-weight: 800; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.panel-subtitle { margin: 5px 0 0; color: var(--jm-muted); font-size: 11.5px; }
.panel-count { display: inline-grid; place-items: center; min-width: 29px; height: 29px; padding: 0 8px; border-radius: 999px; color: var(--jm-green); background: var(--jm-green-soft); font-size: 10px; font-weight: 800; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; color: var(--jm-green); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.panel-link:hover { color: var(--jm-green-dark); }

/* Formulaires repliables -------------------------------------------------- */
.collapsible-form-panel {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.collapsible-form-panel.is-open {
  border-color: rgba(7, 94, 84, .16);
}
.collapsible-form-panel:not(.is-open) {
  background: linear-gradient(145deg, #fff 55%, #f8fbfa);
  box-shadow: 0 10px 28px rgba(18, 45, 54, .045);
}
.collapsible-form-panel > .panel-header {
  align-items: center;
  transition: margin-bottom .2s ease;
}
.collapsible-form-panel:not(.is-open) > .panel-header { margin-bottom: 0; }
.form-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 102px;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(7, 94, 84, .18);
  border-radius: 12px;
  color: var(--jm-green-dark);
  background: var(--jm-green-soft);
  font-family: var(--jm-ui);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.form-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 94, 84, .34);
  background: #e0f2ed;
  box-shadow: 0 9px 20px rgba(7, 94, 84, .09);
}
.form-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(7, 94, 84, .10);
}
.form-toggle-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(7, 94, 84, .10);
}
.form-toggle-icon::before,
.form-toggle-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.form-toggle-icon::after { transform: rotate(90deg); }
.collapsible-form-panel.is-open .form-toggle {
  color: #755711;
  border-color: rgba(216, 182, 87, .34);
  background: var(--jm-gold-soft);
}
.collapsible-form-panel.is-open .form-toggle-icon::after {
  opacity: 0;
  transform: rotate(0deg);
}
.collapsible-form-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows .22s ease, opacity .18s ease, transform .22s ease;
}
.collapsible-form-inner {
  min-height: 0;
  overflow: hidden;
}
.collapsible-form-panel.is-open .collapsible-form-content {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}
.collapsible-form-panel.is-open .collapsible-form-inner { overflow: visible; }
.collapsible-form-panel .ui-form { padding-top: 1px; }

@media (prefers-reduced-motion: reduce) {
  .collapsible-form-panel, .collapsible-form-panel > .panel-header,
  .form-toggle, .form-toggle-icon::before, .form-toggle-icon::after,
  .collapsible-form-content { transition: none !important; }
}

.notice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(216, 182, 87, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf7, var(--jm-gold-soft));
  color: #6d5a25;
}
.notice-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; color: #a77d10; border: 1px solid rgba(216, 182, 87, 0.25); }
.notice strong { display: block; margin-bottom: 2px; color: #5b4818; font-size: 12px; }
.notice p { margin: 0; font-size: 11.5px; }

.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.stat-card {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--jm-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 45, 54, 0.045);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 45, 54, 0.08); }
.stat-card::after { content: ""; position: absolute; right: -30px; bottom: -42px; width: 90px; height: 90px; border-radius: 50%; background: var(--stat-soft, var(--jm-green-soft)); opacity: 0.4; }
.stat-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: var(--stat-color, var(--jm-green)); background: var(--stat-soft, var(--jm-green-soft)); }
.stat-card-copy { position: relative; z-index: 1; min-width: 0; }
.stat-card-copy span { display: block; min-height: 30px; color: var(--jm-muted); font-size: 10.5px; font-weight: 700; line-height: 1.35; }
.stat-card-copy strong { display: block; margin-top: 1px; color: var(--jm-ink); font-family: var(--jm-display); font-size: 30px; line-height: 0.9; }
.stat-card-copy small { display: block; margin-top: 7px; color: var(--stat-color, var(--jm-green)); font-size: 9.5px; font-weight: 800; }
.stat-green { --stat-color: #0b9869; --stat-soft: #e3f8ef; }
.stat-purple { --stat-color: var(--jm-purple); --stat-soft: var(--jm-purple-soft); }
.stat-blue { --stat-color: var(--jm-blue); --stat-soft: var(--jm-blue-soft); }
.stat-amber { --stat-color: var(--jm-amber); --stat-soft: var(--jm-amber-soft); }
.stat-pink { --stat-color: #e44762; --stat-soft: #fff0f3; }
.stat-gold { --stat-color: #a97810; --stat-soft: var(--jm-gold-soft); }

.home-top-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr); gap: 18px; margin-bottom: 18px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid var(--jm-line);
  border-radius: 14px;
  background: #fbfcfc;
  color: var(--jm-ink);
  transition: 0.18s ease;
}
.quick-action:hover { border-color: rgba(7, 94, 84, 0.25); background: var(--jm-green-soft); transform: translateY(-1px); }
.quick-action-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--qa-color, var(--jm-green)); background: var(--qa-soft, var(--jm-green-soft)); }
.quick-action strong { display: block; font-size: 11.5px; }
.quick-action small { display: block; margin-top: 2px; color: var(--jm-muted); font-size: 9.5px; }
.quick-action > svg { width: 16px; color: #9aa3ae; }
.qa-green { --qa-color: #0b9869; --qa-soft: #e3f8ef; }
.qa-purple { --qa-color: var(--jm-purple); --qa-soft: var(--jm-purple-soft); }
.qa-blue { --qa-color: var(--jm-blue); --qa-soft: var(--jm-blue-soft); }
.qa-amber { --qa-color: var(--jm-amber); --qa-soft: var(--jm-amber-soft); }
.qa-pink { --qa-color: #e44762; --qa-soft: #fff0f3; }

.profile-summary { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 21px; align-items: center; }
.profile-summary-photo { width: 120px; height: 120px; overflow: hidden; border-radius: 50%; background: var(--jm-green-soft); border: 2px solid rgba(216, 182, 87, 0.55); }
.profile-summary-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.profile-summary-copy h3 { margin: 0; color: var(--jm-ink); font-family: var(--jm-display); font-size: 26px; }
.profile-summary-copy > span { display: block; margin: 1px 0 8px; color: var(--jm-green); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.profile-summary-copy p { margin: 0; color: var(--jm-muted); font-size: 11.5px; }
.profile-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--jm-line); }
.profile-metrics div { padding: 0 13px; border-right: 1px solid var(--jm-line); }
.profile-metrics div:first-child { padding-left: 0; }
.profile-metrics div:last-child { border-right: 0; }
.profile-metrics small { display: block; color: var(--jm-muted); font-size: 9px; }
.profile-metrics strong { display: block; margin-top: 2px; font-family: var(--jm-display); font-size: 22px; }

.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.compact-list { display: grid; }
.compact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 57px;
  padding: 9px 0;
  border-bottom: 1px solid var(--jm-line);
}
.compact-row:last-child { border-bottom: 0; }
.compact-row:hover .compact-row-title { color: var(--jm-green); }
.compact-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--jm-blue); background: var(--jm-blue-soft); }
.compact-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.compact-row-copy { min-width: 0; }
.compact-row-title { display: block; overflow: hidden; color: var(--jm-ink); font-size: 10.8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.compact-row-meta { display: block; overflow: hidden; margin-top: 2px; color: var(--jm-muted); font-size: 9.3px; text-overflow: ellipsis; white-space: nowrap; }
.compact-row-side { display: grid; justify-items: end; gap: 3px; color: var(--jm-muted); font-size: 9px; white-space: nowrap; }

.workspace-grid { display: grid; grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }
.workspace-grid.wide-form { grid-template-columns: minmax(420px, 520px) minmax(0, 1fr); }
.sticky-panel { position: sticky; top: 20px; }
.content-stack { display: grid; gap: 18px; }
.two-panel-grid { display: grid; grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr); gap: 18px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 18px; align-items: start; }

.ui-form { margin: 0; }
.ui-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.field-group { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #344054; font-size: 10.5px; font-weight: 800; }
.required-mark { color: var(--jm-danger); }
.form-control {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #dce3e2;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--jm-ink);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.form-control:hover { border-color: #c9d5d2; }
.form-control:focus { border-color: rgba(7, 94, 84, 0.62); box-shadow: 0 0 0 4px rgba(7, 94, 84, 0.08); }
.form-control::placeholder { color: #a4acb7; }
textarea.form-control { min-height: 112px; resize: vertical; }
.field-large textarea.form-control { min-height: 180px; }
select.form-control { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #7d8794 50%), linear-gradient(135deg, #7d8794 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input[type="file"].form-control { min-height: 47px; padding: 6px; color: var(--jm-muted); }
input[type="file"].form-control::file-selector-button { height: 33px; margin-right: 10px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--jm-green-dark); background: var(--jm-green-soft); font-size: 10px; font-weight: 800; cursor: pointer; }
.field-help { display: block; margin-top: 5px; color: #8a94a2; font-size: 9.4px; line-height: 1.45; }
.field-error { margin: 5px 0 0; padding: 0; list-style: none; color: var(--jm-danger); font-size: 9.5px; font-weight: 700; }
.form-errors { margin-bottom: 15px; padding: 12px 14px; border: 1px solid rgba(200, 61, 77, 0.2); border-radius: 12px; color: var(--jm-danger); background: var(--jm-danger-soft); font-size: 10.5px; }
.form-errors ul { margin: 0; padding-left: 17px; }

.toggle-field { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 10px 12px; border: 1px solid var(--jm-line); border-radius: 12px; background: #fbfcfc; cursor: pointer; }
.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { position: relative; width: 38px; height: 22px; flex: 0 0 38px; border-radius: 999px; background: #ccd4d4; transition: 0.18s ease; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16); transition: 0.18s ease; }
.toggle-field input:checked + .toggle-ui { background: var(--jm-green); }
.toggle-field input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle-copy { min-width: 0; }
.toggle-copy strong { display: block; color: var(--jm-ink); font-size: 10.5px; }
.toggle-copy small { display: block; margin-top: 1px; color: var(--jm-muted); font-size: 9px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--jm-line); }
.form-section-note { margin: -3px 0 17px; color: var(--jm-muted); font-size: 10.5px; }

.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.search-form { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(160px, 0.5fr) auto; gap: 9px; width: 100%; }
.inline-filter { min-width: 190px; }
.inline-filter .form-control { min-height: 39px; }

.orders-panel-header { align-items: center; }
.order-status-filter { flex: 0 0 auto; }
.orders-panel .empty-state { min-height: 230px; align-content: center; }

.item-list { display: grid; }
.item-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--jm-line);
}
.item-row:last-child { border-bottom: 0; }
.item-thumb { display: grid; place-items: center; width: 54px; height: 54px; overflow: hidden; border-radius: 13px; color: var(--jm-green); background: var(--jm-green-soft); border: 1px solid rgba(7, 94, 84, 0.08); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-copy { min-width: 0; }
.item-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.item-title { overflow: hidden; color: var(--jm-ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.item-description { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--jm-muted); font-size: 9.8px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: #86909d; font-size: 9px; }
.item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.item-actions { display: flex; align-items: center; gap: 6px; }
.icon-action { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--jm-line); border-radius: 10px; background: #fff; color: var(--jm-muted); transition: 0.16s ease; }
.icon-action svg { width: 15px; height: 15px; }
.icon-action:hover { color: var(--jm-green); border-color: rgba(7, 94, 84, 0.25); background: var(--jm-green-soft); }
.icon-action.danger:hover { color: var(--jm-danger); border-color: rgba(200, 61, 77, 0.2); background: var(--jm-danger-soft); }

.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 8.5px; font-weight: 800; white-space: nowrap; }
.badge-green, .status-delivered, .status-sent { color: #08744f; background: #e1f7ec; }
.badge-blue, .status-confirmed { color: #2360b8; background: #e8f1ff; }
.badge-purple { color: #6840c9; background: #f0eaff; }
.badge-amber, .status-contacted, .status-draft { color: #a76900; background: #fff1d2; }
.badge-red, .status-cancelled, .status-failed { color: #b83243; background: #ffeaed; }
.badge-gray, .status-new { color: #596579; background: #eef1f3; }
.badge-gold { color: #8b6815; background: var(--jm-gold-soft); }

.empty-state { display: grid; justify-items: center; padding: 35px 18px; text-align: center; color: var(--jm-muted); }
.empty-state-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 10px; border-radius: 15px; color: var(--jm-green); background: var(--jm-green-soft); }
.empty-state strong { color: var(--jm-ink); font-size: 12px; }
.empty-state p { max-width: 360px; margin: 5px 0 0; font-size: 10px; }

.folder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.folder-card { position: relative; min-height: 118px; padding: 15px; border: 1px solid var(--jm-line); border-radius: 15px; background: linear-gradient(145deg, #fff, #fafcfc); }
.folder-card-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 11px; color: var(--jm-blue); background: var(--jm-blue-soft); }
.folder-card strong { display: block; overflow: hidden; color: var(--jm-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.folder-card span { display: block; margin-top: 3px; color: var(--jm-muted); font-size: 9px; }
.folder-delete { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #9aa3ae; }
.folder-delete:hover { color: var(--jm-danger); background: var(--jm-danger-soft); }

.data-list { display: grid; }
.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 69px;
  padding: 12px 0;
  border-bottom: 1px solid var(--jm-line);
}
.data-row:last-child { border-bottom: 0; }
.data-row:hover .data-title { color: var(--jm-green); }
.data-main { min-width: 0; }
.data-title-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.unread-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #ef415a; box-shadow: 0 0 0 4px rgba(239, 65, 90, 0.08); }
.data-title { overflow: hidden; color: var(--jm-ink); font-size: 11.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.data-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 4px; color: var(--jm-muted); font-size: 9.4px; }
.data-side { color: var(--jm-muted); font-size: 9.5px; text-align: right; white-space: nowrap; }
.data-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #98a1ad; background: var(--jm-soft); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--jm-line); }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--jm-line); border-radius: 9px; background: #fff; color: var(--jm-muted); font-size: 9.5px; font-weight: 800; }
.pagination .current { color: #fff; border-color: var(--jm-green); background: var(--jm-green); }

.detail-card { padding: 24px; }
.detail-hero { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--jm-line); }
.detail-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--jm-green); background: var(--jm-green-soft); font-family: var(--jm-display); font-size: 24px; font-weight: 700; }
.detail-hero h2 { margin: 0; font-family: var(--jm-ui); font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.detail-hero p { margin: 4px 0 0; color: var(--jm-muted); font-size: 10px; }
.detail-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.info-cell { padding: 12px 13px; border: 1px solid var(--jm-line); border-radius: 12px; background: #fbfcfc; }
.info-cell.wide { grid-column: 1 / -1; }
.info-cell small { display: block; color: var(--jm-muted); font-size: 8.8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.info-cell strong, .info-cell p { display: block; margin: 4px 0 0; color: var(--jm-ink); font-size: 10.8px; font-weight: 700; overflow-wrap: anywhere; }
.info-cell p { font-weight: 500; line-height: 1.55; }
.message-content { margin-top: 18px; padding: 18px; border: 1px solid var(--jm-line); border-radius: 15px; background: #fbfcfc; color: #39465a; font-size: 12px; line-height: 1.75; }
.message-content p:first-child { margin-top: 0; }
.message-content p:last-child { margin-bottom: 0; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.contact-actions .button { width: 100%; }

.delete-shell { max-width: 620px; margin: 40px auto 0; }
.delete-card { padding: 34px; text-align: center; }
.delete-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px; color: var(--jm-danger); background: var(--jm-danger-soft); }
.delete-card h2 { margin: 0; color: var(--jm-ink); font-family: var(--jm-ui); font-weight: 800; font-size: 22px; }
.delete-card p { margin: 8px auto 0; color: var(--jm-muted); font-size: 11.5px; }
.delete-object { margin: 18px 0; padding: 13px; border-radius: 12px; color: var(--jm-ink); background: var(--jm-soft); font-weight: 800; }
.delete-card .form-actions { justify-content: center; }

.login-body {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  overflow-x: hidden;
  color: var(--jm-ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(217, 184, 86, 0.18), transparent 26%),
    radial-gradient(circle at 93% 88%, rgba(12, 70, 60, 0.12), transparent 28%),
    linear-gradient(145deg, #fdfdfc 0%, #f3f7f5 100%);
  font-family: var(--jm-body);
}
.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(7, 94, 84, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 94, 84, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(410px, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid rgba(7, 94, 84, 0.11);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(20, 52, 48, 0.16);
}
.login-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px clamp(42px, 5vw, 70px);
  background: rgba(255,255,255,.98);
}
.login-form-brand {
  position: absolute;
  top: 34px;
  left: clamp(42px, 5vw, 70px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.login-form-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center bottom;
  border: 2px solid #e7efec;
  background: var(--jm-green-soft);
  box-shadow: 0 10px 24px rgba(7,94,84,.10);
}
.login-form-brand strong {
  display: block;
  color: var(--jm-green-dark);
  font-family: var(--jm-display);
  font-size: 22px;
  line-height: 1;
}
.login-form-brand small {
  display: block;
  margin-top: 5px;
  color: var(--jm-muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.login-intro { margin-top: 50px; }
.login-intro .page-eyebrow { margin-bottom: 12px; }
.login-intro h1 {
  max-width: 430px;
  margin: 0;
  color: var(--jm-ink);
  font-family: var(--jm-display);
  font-size: clamp(40px, 4.4vw, 55px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.login-intro > p {
  max-width: 420px;
  margin: 14px 0 28px;
  color: var(--jm-muted);
  font-size: 13px;
  line-height: 1.7;
}
.login-fields { display: grid; gap: 17px; }
.login-card .field-label {
  margin-bottom: 7px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}
.login-input-wrap { position: relative; }
.login-input-wrap > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: #81908d;
  transform: translateY(-50%);
  pointer-events: none;
}
.login-input-wrap .form-control {
  min-height: 54px;
  padding: 12px 16px 12px 48px;
  border-radius: 13px;
  border-color: #dbe5e2;
  background: #fbfcfc;
  font-size: 13px;
}
.login-input-wrap .form-control::placeholder { color: #a3aca9; }
.login-input-wrap .form-control:focus {
  border-color: rgba(7,94,84,.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7,94,84,.08);
}
.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--jm-muted);
  font-size: 10px;
}
.login-security {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.login-security svg { width: 15px; height: 15px; color: var(--jm-green); }
.login-card .button {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border-radius: 13px;
  font-size: 12.5px;
}
.login-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--jm-green);
  font-size: 11px;
  font-weight: 800;
}
.login-back svg { width: 15px; height: 15px; }
.login-back:hover { color: var(--jm-green-dark); }
.login-visual {
  position: relative;
  min-height: 680px;
  padding: 52px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(241, 203, 97, .32), transparent 28%),
    linear-gradient(145deg, #032f2a 0%, #075e54 58%, #0a4352 100%);
}
.login-visual::before {
  content: "";
  position: absolute;
  width: 570px;
  height: 570px;
  right: -170px;
  top: -170px;
  border: 1px solid rgba(241,203,97,.42);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.018);
}
.login-visual::after {
  content: "JM";
  position: absolute;
  left: 36px;
  bottom: -52px;
  color: rgba(255,255,255,.035);
  font-family: var(--jm-display);
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
}
.login-visual-content {
  position: relative;
  z-index: 3;
  max-width: 470px;
}
.login-visual .visual-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--jm-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.login-visual .visual-kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.login-visual h2 {
  max-width: 500px;
  margin: 16px 0 14px;
  color: #fff;
  font-family: var(--jm-display);
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.login-visual p {
  max-width: 410px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.7;
}
.login-module-row {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.login-module-row span {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  font-weight: 700;
}
.login-portrait {
  position: absolute;
  right: -8px;
  bottom: -20px;
  z-index: 2;
  width: min(72%, 530px);
  max-height: 545px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.30));
}
.login-visual-badge {
  position: absolute;
  right: 42px;
  bottom: 38px;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(2,40,36,.56);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.login-visual-badge strong { color: #fff; font-size: 11px; }
.login-visual-badge small { color: rgba(255,255,255,.64); font-size: 9px; }

@media (max-width: 1480px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-grid > :last-child { grid-column: 1 / -1; }
  .folder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1220px) {
  .dashboard-body { grid-template-columns: 245px minmax(0, 1fr); }
  .dashboard-sidebar { padding-left: 14px; padding-right: 14px; }
  .brand-copy strong { font-size: 20px; }
  .home-top-grid, .workspace-grid, .workspace-grid.wide-form, .two-panel-grid, .detail-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .profile-summary { grid-template-columns: 100px minmax(0, 1fr); }
  .profile-summary-photo { width: 100px; height: 100px; }
}

@media (max-width: 1024px) {
  .dashboard-body { display: block; }
  .dashboard-sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); height: 100vh; transform: translateX(-104%); transition: transform 0.22s ease; box-shadow: 20px 0 55px rgba(18, 45, 54, 0.16); }
  .sidebar-open .dashboard-sidebar { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-overlay { position: fixed; inset: 0; display: block; z-index: 40; background: rgba(10, 26, 35, 0.42); opacity: 0; visibility: hidden; transition: 0.2s ease; }
  .sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
  .menu-button { display: grid; }
  .dashboard-main { padding-top: 20px; }
  .dashboard-topbar { align-items: center; }
  .dashboard-topbar h1 { font-size: 26px; }
  .desktop-only { display: none !important; }
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell { grid-template-columns: 1fr; width: min(620px, 100%); min-height: auto; }
  .login-visual { order: 1; min-height: 235px; padding: 30px 34px; }
  .login-visual h2 { max-width: 350px; font-size: 38px; }
  .login-visual p { max-width: 330px; font-size: 11.5px; }
  .login-module-row { margin-top: 18px; }
  .login-portrait { width: 43%; max-height: 245px; right: 8px; bottom: -6px; }
  .login-visual-badge { display: none; }
  .login-card { order: 2; min-height: auto; padding: 105px 48px 44px; }
  .login-form-brand { top: 28px; left: 48px; }
}

@media (max-width: 760px) {
  .dashboard-main { padding: 14px 12px 34px; }

  /* Une rangée réservée aux icônes, puis le titre sur toute la largeur.
     Cela évite que les boutons chevauchent les grands titres Playfair. */
  .dashboard-topbar {
    position: relative;
    display: block;
    min-height: 112px;
    margin-bottom: 18px;
    padding-top: 58px;
  }
  .topbar-heading { display: block; min-width: 0; }
  .topbar-heading > div { min-width: 0; }
  .menu-button {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
  .page-eyebrow { font-size: 8px; letter-spacing: 0.11em; }
  .page-eyebrow::before { width: 18px; }
  .dashboard-topbar h1 {
    max-width: 100%;
    margin-top: 5px;
    overflow-wrap: anywhere;
    font-size: clamp(21px, 6.4vw, 25px);
    line-height: 1.15;
    letter-spacing: -0.045em;
  }
  .dashboard-topbar p { display: none; }
  .topbar-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 58px);
    padding: 0;
  }
  .date-chip { display: none; }
  .notification-button,
  .topbar-actions > .topbar-page-action {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
  }
  .topbar-actions > .topbar-page-action {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--jm-green), var(--jm-green-dark));
    box-shadow: 0 10px 24px rgba(7, 94, 84, .16);
  }
  .topbar-actions > .topbar-page-action.button-secondary {
    color: var(--jm-green-dark);
    border-color: var(--jm-line);
    background: #fff;
    box-shadow: 0 9px 24px rgba(18, 45, 54, .06);
  }
  .topbar-actions > .topbar-page-action svg { width: 19px; height: 19px; }
  .topbar-page-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .orders-panel { padding: 18px; }
  .orders-panel-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
  }
  .orders-panel-header .panel-title-wrap { width: 100%; }
  .orders-panel-header .panel-title {
    max-width: 100%;
    font-size: 19px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
  }
  .orders-panel-header .panel-subtitle {
    max-width: 31rem;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.5;
  }
  .order-status-filter { width: 100%; min-width: 0; }
  .order-status-filter .form-control { width: 100%; min-height: 47px; }
  .orders-panel .empty-state { min-height: 245px; padding: 28px 10px; }
  .orders-panel .empty-state strong { font-size: 13px; }
  .orders-panel .empty-state p { font-size: 10.5px; line-height: 1.5; }
  .panel-padding, .detail-card { padding: 18px; }
  .panel-title { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 100px; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 13px; }
  .stat-icon { width: 40px; height: 40px; border-radius: 13px; }
  .stat-card-copy span { min-height: 27px; font-size: 9.5px; }
  .stat-card-copy strong { font-size: 27px; }
  .home-top-grid, .recent-grid { grid-template-columns: 1fr; }
  .recent-grid > :last-child { grid-column: auto; }
  .quick-grid { grid-template-columns: 1fr; }
  .profile-summary { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .profile-summary-photo { width: 70px; height: 70px; }
  .profile-summary-copy h3 { font-size: 22px; }
  .profile-metrics { grid-column: 1 / -1; }
  .ui-form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .search-form { grid-template-columns: 1fr; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .item-row { grid-template-columns: 46px minmax(0, 1fr); }
  .item-thumb { width: 46px; height: 46px; }
  .item-actions { grid-column: 1 / -1; justify-content: flex-end; padding-left: 59px; }
  .folder-grid { grid-template-columns: 1fr; }
  .data-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .data-side { grid-row: 2; text-align: left; }
  .data-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .info-cell.wide { grid-column: auto; }
  .contact-actions { grid-template-columns: 1fr; }
  .form-actions .button { flex: 1 1 150px; }
  .login-body { padding: 14px; }
  .login-shell { border-radius: 23px; }
  .login-visual { min-height: 190px; padding: 24px; }
  .login-visual h2 { max-width: 270px; margin-top: 11px; font-size: 31px; }
  .login-visual p, .login-module-row { display: none; }
  .login-portrait { width: 48%; max-height: 195px; right: -2px; }
  .login-card { padding: 96px 24px 30px; }
  .login-form-brand { top: 24px; left: 24px; }
  .login-form-brand img { width: 46px; height: 46px; }
  .login-form-brand strong { font-size: 20px; }
  .login-intro { margin-top: 24px; }
  .login-intro h1 { font-size: 37px; }
  .login-intro > p { margin-bottom: 23px; font-size: 12px; }
  .login-input-wrap .form-control { min-height: 52px; }
  .login-meta { align-items: flex-start; flex-direction: column; }
  .login-card .button { min-height: 50px; }
}

@media (max-width: 380px) {
  .dashboard-main { padding-left: 10px; padding-right: 10px; }
  .dashboard-topbar h1 { font-size: 22px; }
  .orders-panel { padding: 16px; }
  .orders-panel-header .panel-title { font-size: 17px; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 84px; }
  .stat-card-copy span { min-height: auto; }
  .profile-metrics { grid-template-columns: 1fr; gap: 9px; }
  .profile-metrics div { padding: 0 0 9px; border-right: 0; border-bottom: 1px solid var(--jm-line); }
  .profile-metrics div:last-child { border-bottom: 0; }
}


@media (max-width: 760px) {
  .collapsible-form-panel { padding: 16px; }
  .collapsible-form-panel > .panel-header { gap: 12px; }
  .collapsible-form-panel .panel-title { font-size: 16px; }
  .collapsible-form-panel .panel-subtitle { max-width: 92%; font-size: 10.5px; line-height: 1.45; }
  .form-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 13px;
  }
  .form-toggle-icon { width: 20px; height: 20px; flex-basis: 20px; }
  .form-toggle-icon::before, .form-toggle-icon::after { left: 5px; top: 9px; width: 10px; }
  .form-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .collapsible-form-panel.is-open > .panel-header { margin-bottom: 16px; }
  .collapsible-form-panel .ui-form-grid { gap: 13px; }
  .collapsible-form-panel .form-actions { align-items: stretch; flex-direction: column; }
  .collapsible-form-panel .form-actions .button { width: 100%; flex: 0 0 auto; }
}

/* Activités à venir / passées et albums photos */
.activity-workspace-grid {
  grid-template-columns: minmax(330px, .78fr) minmax(0, 1.42fr);
  align-items: start;
}
.activity-lists-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.activity-form-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.activity-form-guide > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--jm-line);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f7faf9);
}
.activity-form-guide strong,
.activity-form-guide span {
  display: block;
}
.activity-form-guide strong {
  margin-bottom: 4px;
  color: var(--jm-green);
  font-size: 12px;
}
.activity-form-guide span {
  color: var(--jm-muted);
  font-size: 10px;
  line-height: 1.45;
}
.activity-item-row {
  align-items: center;
}
.activity-thumb {
  width: 66px;
  height: 76px;
  border-radius: 14px;
}
.activity-thumb img {
  object-fit: cover;
}
.photo-count {
  color: var(--jm-green) !important;
  font-weight: 700;
}
[data-field-name="gallery_images"][hidden] {
  display: none !important;
}
[data-field-name="gallery_images"].is-gallery-available {
  padding: 16px;
  border: 1px dashed rgba(7, 88, 73, .28);
  border-radius: 16px;
  background: rgba(9, 112, 92, .035);
}
.activity-gallery-panel {
  overflow: hidden;
}
.activity-gallery-warning {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(221, 157, 24, .28);
  border-radius: 13px;
  color: #8a5a00;
  background: rgba(255, 185, 55, .09);
  font-size: 11px;
  font-weight: 700;
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-gallery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--jm-line);
  border-radius: 16px;
  background: #fff;
}
.admin-gallery-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.admin-gallery-card form {
  padding: 8px;
}
.gallery-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(195, 49, 49, .18);
  border-radius: 10px;
  color: #a82d2d;
  background: rgba(195, 49, 49, .05);
  font-size: 10px;
  font-weight: 800;
}
.gallery-delete-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compact-empty-state {
  min-height: 155px;
}

@media (max-width: 1180px) {
  .activity-workspace-grid { grid-template-columns: 1fr; }
  .activity-workspace-grid .sticky-panel { position: static; }
  .admin-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .activity-form-guide { grid-template-columns: 1fr; }
  .activity-thumb { width: 48px; height: 56px; }
  .admin-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* Sélections multiples : pièces jointes et archives */
.file-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.file-selection-list[hidden] { display: none; }
.file-selection-list span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 27px;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid rgba(7, 94, 84, 0.12);
  border-radius: 999px;
  color: var(--jm-green-dark);
  background: var(--jm-green-soft);
  font-size: 9.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .file-selection-list { display: grid; grid-template-columns: minmax(0, 1fr); }
  .file-selection-list span { width: 100%; border-radius: 9px; }
}

/* Prix facultatif des œuvres */
.badge-price{color:#0b594d!important;background:#e6f4ef!important;border-color:#b9ddd1!important;font-weight:800!important}

/* Loader, messagerie et upload cumulatif */
.page-loader{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:rgba(248,250,247,.88);backdrop-filter:blur(8px)}
.page-loader[hidden]{display:none}.page-loader-card{min-width:210px;padding:24px;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(5,59,51,.18);display:grid;justify-items:center;gap:8px}.loader-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(5,59,51,.15)}.loader-mark img{display:block;width:100%;height:100%;object-fit:cover}.loader-spinner{width:30px;height:30px;border:3px solid #dbe7e2;border-top-color:#c8a94b;border-radius:50%;animation:jmspin .8s linear infinite}@keyframes jmspin{to{transform:rotate(360deg)}}
.mail-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px}.mail-sidebar{align-self:start;position:sticky;top:18px}.mail-folders{display:grid;gap:5px;margin:16px 0}.mail-folders a{display:flex;justify-content:space-between;padding:11px 12px;border-radius:12px;color:inherit}.mail-folders a.active{background:#e8f2ee;color:#06443a;font-weight:700}.mail-folders b{min-width:24px;text-align:center}.mail-list{margin-top:14px;border-top:1px solid #e7ece9}.mail-row{display:grid;grid-template-columns:42px minmax(140px,220px) minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 4px;border-bottom:1px solid #edf1ef;color:inherit}.mail-row.unread{background:#f5faf7}.mail-row.unread strong{font-weight:800}.mail-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e4efe9;font-weight:800;color:#075044}.mail-sender{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-subject{display:grid;min-width:0}.mail-subject strong,.mail-subject small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-subject small{color:#66746f}.mail-reader-head{display:flex;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #e7ece9}.mail-reader-head div{display:grid;gap:5px}.mail-reader-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.mail-reader-body{line-height:1.75;overflow-wrap:anywhere}.multi-file-picker{margin-top:8px}.multi-file-drop{border:1.5px dashed #9bb9ae;border-radius:16px;padding:22px;display:grid;justify-items:center;gap:6px;background:#f8fbf9;text-align:center}.multi-file-drop.dragging{border-color:#c8a94b;background:#fffaf0}.multi-file-list{display:grid;gap:8px;margin-top:10px}.selected-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:#f3f7f5}.selected-file span{display:grid;min-width:0}.selected-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-file small{color:#66746f}.selected-file button{border:0;background:#fff0ef;color:#b42318;width:30px;height:30px;border-radius:50%;font-size:20px;cursor:pointer}.is-submitting{opacity:.7;cursor:wait}
@media(max-width:760px){.mail-layout{grid-template-columns:1fr}.mail-sidebar{position:static}.mail-folders{grid-template-columns:1fr 1fr}.mail-row{grid-template-columns:38px minmax(0,1fr) auto}.mail-sender{grid-column:2}.mail-subject{grid-column:2/4}.mail-row time{grid-column:3;grid-row:1}.mail-reader-head{display:grid}}

.mailbox-address-preview{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:14px 16px;margin-bottom:16px;border:1px solid rgba(28,66,107,.14);border-radius:12px;background:rgba(28,66,107,.05)}
.mailbox-address-preview span{font-size:.9rem;color:var(--muted,#64748b)}
.mailbox-address-preview strong{font-size:1rem;word-break:break-all}
.mailbox-account-list .status-badge{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;font-size:.7rem;background:rgba(22,163,74,.12);color:#166534}
.icon-action.danger{color:#b42318}
.form-help{margin-top:12px;font-size:.85rem;line-height:1.55;color:var(--muted,#64748b)}
.notice-card{padding:14px 16px;border-radius:12px;background:#fff8e8;color:#7a4b00}


/* Mailbox account cards: readable action buttons on desktop and mobile */
.mailbox-account-list {
  display: grid;
  gap: 12px;
}
.mailbox-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.mailbox-account-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.mailbox-account-copy > strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  overflow-wrap: anywhere;
}
.mailbox-account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}
.mailbox-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: auto;
  padding: 9px 14px;
  border: 1px solid var(--jm-line);
  border-radius: 11px;
  background: #fff;
  color: var(--jm-green);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.mailbox-action-button:hover {
  background: var(--jm-green-soft);
  border-color: rgba(7, 94, 84, .28);
  color: var(--jm-green);
  transform: translateY(-1px);
}
.mailbox-action-danger {
  color: var(--jm-danger);
  border-color: rgba(200, 61, 77, .22);
}
.mailbox-action-danger:hover {
  color: var(--jm-danger);
  background: var(--jm-danger-soft);
  border-color: rgba(200, 61, 77, .34);
}
@media (max-width: 760px) {
  .mailbox-account-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .mailbox-account-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .mailbox-action-button {
    flex: 1 1 auto;
    min-width: 120px;
  }
}
@media (max-width: 420px) {
  .mailbox-account-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mailbox-action-button {
    width: 100%;
  }
}

/* Photo des adresses email */
.mailbox-profile-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jm-green-soft, #eaf6f3);
  border: 1px solid rgba(7, 94, 84, 0.16);
  color: var(--jm-green, #075e54);
  font-weight: 800;
}

.mailbox-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Champ mot de passe avec œil Font Awesome */
.password-field-wrap {
  position: relative;
  width: 100%;
}

.password-field-wrap .form-control,
.password-field-wrap input {
  width: 100%;
  padding-right: 48px !important;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: rgba(7, 94, 84, 0.08);
  color: var(--jm-green, #075e54);
  outline: none;
}

.login-input-wrap .password-field-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.login-input-wrap .password-field-wrap input {
  padding-left: 0 !important;
}

@media (max-width: 760px) {
  .mailbox-profile-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

/* Messagerie : actions compactes et pièces jointes */
.mailbox-action-button i{font-size:14px}.mail-status-chip{font-size:10px;font-weight:800;color:#7a4b00;background:#fff4d8;border-radius:999px;padding:4px 8px}
.mail-attachments{margin-top:24px;padding-top:20px;border-top:1px solid var(--jm-line)}.mail-attachments h3{margin:0 0 12px}.attachment-grid{display:grid;gap:10px}.attachment-card{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--jm-line);border-radius:13px;background:#f9fbfa}.attachment-card>strong{overflow-wrap:anywhere}.attachment-card>div{display:flex;gap:7px;flex-wrap:wrap}
@media(max-width:760px){.mailbox-account-actions{display:flex!important;width:auto!important;gap:8px!important}.mailbox-action-button{width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;border-radius:12px!important;flex:0 0 42px!important}.mailbox-action-button span{display:none}.mailbox-action-button i{font-size:15px}.attachment-card{grid-template-columns:28px minmax(0,1fr)}.attachment-card>div{grid-column:1/3}.attachment-card .button{flex:1 1 120px}}

/* Lecture propre et structurée des emails */
.mail-reader-modern{max-width:1100px;margin-inline:auto}
.mail-reader-head-modern{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;align-items:center;padding-bottom:20px;border-bottom:1px solid #e5ebe8}
.mail-reader-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e8f3ef;color:#075044;font-size:1.15rem;font-weight:800;border:1px solid #cfe2db}
.mail-reader-identity{display:grid;gap:5px;min-width:0}.mail-reader-identity strong{font-size:1rem;overflow-wrap:anywhere}.mail-reader-identity span{color:#687670;font-size:.9rem;overflow-wrap:anywhere}.mail-reader-head-modern time{color:#687670;font-size:.9rem;white-space:nowrap}
.mail-message-sheet{margin-top:10px;padding:28px 30px;border:1px solid #e5ebe8;border-radius:18px;background:#fff;box-shadow:0 10px 34px rgba(14,49,42,.05)}
.mail-message-content{font-size:1rem;line-height:1.8;color:#18231f;white-space:normal;overflow-wrap:anywhere}
.mail-quoted-history{margin-top:24px;border-top:1px solid #edf1ef;padding-top:16px}.mail-quoted-history summary{display:inline-flex;align-items:center;gap:9px;cursor:pointer;color:#52635e;font-weight:700;list-style:none}.mail-quoted-history summary::-webkit-details-marker{display:none}.mail-quoted-history summary i{width:34px;height:28px;border-radius:999px;display:grid;place-items:center;background:#edf4f1}.mail-quoted-history>div{margin-top:14px;padding:18px;border-left:3px solid #cbd9d4;background:#f7faf9;border-radius:0 12px 12px 0;color:#5e6b66;line-height:1.65;font-size:.92rem}
.mail-attachments{margin-top:24px;padding-top:20px;border-top:1px solid #e5ebe8}.mail-attachments h3{display:flex;align-items:center;gap:9px;margin:0 0 14px}.attachment-grid{display:grid;gap:10px}.attachment-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e2e9e6;border-radius:14px;background:#fbfdfc}.attachment-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#e9f3ef;color:#075044}.attachment-copy{display:grid;gap:3px;min-width:0}.attachment-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-copy small{color:#718079}.attachment-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.mail-reader-head-modern{grid-template-columns:44px minmax(0,1fr)}.mail-reader-avatar{width:44px;height:44px}.mail-reader-head-modern time{grid-column:2}.mail-message-sheet{padding:20px 18px}.attachment-card{grid-template-columns:40px minmax(0,1fr)}.attachment-actions{grid-column:1/-1}.attachment-actions .button{flex:1}.mail-reader-actions .button{font-size:0}.mail-reader-actions .button i{font-size:1rem}.mail-reader-actions .button::after{font-size:.88rem}.mail-reader-actions a:first-child::after{content:'Répondre'}.mail-reader-actions a:nth-child(2)::after{content:'Transférer'}.mail-reader-actions form button::after{content:'Corbeille'}}


/* Historique des emails : carte blanche claire et structurée */
.mail-quoted-history{margin-top:26px;padding-top:18px;border-top:1px solid #edf1ef}
.mail-quoted-history summary{display:flex;align-items:center;gap:12px;width:100%;padding:10px 4px;cursor:pointer;color:#40534d;font-weight:800;list-style:none}
.mail-quoted-history summary::-webkit-details-marker{display:none}
.mail-history-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#edf5f2;color:#526a62;flex:0 0 auto}
.mail-history-chevron{margin-left:auto;font-size:.8rem;transition:transform .2s ease}
.mail-quoted-history[open] .mail-history-chevron{transform:rotate(180deg)}
.mail-history-panel{margin-top:10px;padding:14px;border:1px solid #e2eae6;border-radius:16px;background:#f3f7f5}
.mail-history-label{display:flex;align-items:center;gap:8px;margin:0 2px 10px;color:#687871;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.mail-history-message{padding:22px 24px;border:1px solid #e7ece9;border-radius:13px;background:#fff;color:#40504a;line-height:1.75;font-size:.94rem;overflow-wrap:anywhere;box-shadow:0 8px 24px rgba(14,49,42,.05)}
@media(max-width:600px){.mail-history-panel{padding:9px}.mail-history-message{padding:17px 15px}.mail-quoted-history summary{font-size:.9rem}}

/* Historique email : métadonnées hors du conteneur blanc, contenu seul dans la carte */
.mail-history-thread{display:grid;gap:16px}
.mail-history-entry{display:grid;gap:7px}
.mail-history-meta{padding:0 4px;color:#66756f;font-size:.82rem;font-weight:700;line-height:1.45}
.mail-history-entry .mail-history-message{margin:0;background:#fff;color:#24332e;border:1px solid #e2e9e6;border-radius:14px;padding:18px 20px;line-height:1.72;box-shadow:0 7px 20px rgba(14,49,42,.045)}
@media(max-width:600px){.mail-history-thread{gap:13px}.mail-history-meta{font-size:.76rem}.mail-history-entry .mail-history-message{padding:15px 14px;border-radius:12px}}


/* Protection anti-spam */
.spam-chip{display:inline-flex;padding:2px 7px;border-radius:999px;background:#fff0d9;color:#9b5200;font-size:.7rem;font-weight:800;vertical-align:middle}
.spam-warning{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;padding:14px 16px;border:1px solid #f1c16f;border-radius:14px;background:#fff8e8;color:#6f4300}
.spam-warning i{margin-top:3px}.spam-warning strong{display:block}.spam-warning p{margin:3px 0 0}
.button-warning{background:#fff8e8;border:1px solid #efc46f;color:#7a4800}.button-danger{background:#fff;border:1px solid #efb7bd;color:#b51f32}
@media(max-width:760px){.mail-reader-actions form,.mail-reader-actions .button{width:100%}.mail-reader-actions button{justify-content:center}}

/* Sélections multiples et filtres */
.bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0}.bulk-toolbar .form-control{width:auto;min-width:210px}.bulk-select-all{display:inline-flex;align-items:center;gap:8px;font-weight:700}.bulk-count{font-size:.85rem;color:var(--jm-muted)}.bulk-row-wrap{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;border-bottom:1px solid var(--jm-line)}.bulk-row-wrap>.mail-row,.bulk-row-wrap>.data-row{border-bottom:0;width:100%}.bulk-checkbox{width:18px;height:18px;accent-color:var(--jm-green);justify-self:center}.mail-filter-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(190px,280px) auto;gap:10px}.mail-subject em{display:block;margin-top:3px;font-size:.72rem;font-style:normal;color:var(--jm-muted)}.detail-danger-action{display:flex;justify-content:flex-end;margin-bottom:12px}.button-danger{background:#fff;color:#c62828;border:1px solid rgba(198,40,40,.25)}.button-danger:hover{background:#fff4f4}
@media(max-width:760px){.mail-filter-form{grid-template-columns:1fr}.mail-filter-form .button{width:100%}.bulk-toolbar{align-items:stretch}.bulk-toolbar .form-control,.bulk-toolbar .button{width:100%}.bulk-row-wrap{grid-template-columns:30px minmax(0,1fr)}}

/* Messagerie : boîte repliable dans un conteneur à défilement interne */
.mail-workspace-container{
  overflow:hidden;
  border:1px solid var(--jm-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 44px rgba(14,49,42,.06);
}
.mail-workspace-summary{
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 20px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  background:linear-gradient(180deg,#fff 0%,#f8fbfa 100%);
  border-bottom:1px solid transparent;
}
.mail-workspace-summary::-webkit-details-marker{display:none}
.mail-workspace-container[open]>.mail-workspace-summary{border-bottom-color:var(--jm-line)}
.mail-workspace-summary-icon{
  width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;
  border-radius:13px;background:#eaf4f1;color:var(--jm-green);font-size:1rem;
}
.mail-workspace-summary-copy{display:grid;gap:2px;min-width:0;flex:1}
.mail-workspace-summary-copy strong{font-size:1rem;color:var(--jm-ink)}
.mail-workspace-summary-copy small{font-size:.78rem;color:var(--jm-muted)}
.mail-workspace-summary-action{display:inline-flex;align-items:center;gap:8px;color:var(--jm-green);font-size:.82rem;font-weight:800}
.mail-workspace-summary-action i{transition:transform .2s ease}
.mail-workspace-container[open] .mail-workspace-summary-action i{transform:rotate(180deg)}
.mail-workspace-close-label{display:none}
.mail-workspace-container[open] .mail-workspace-open-label{display:none}
.mail-workspace-container[open] .mail-workspace-close-label{display:inline}
.mail-workspace-body{
  max-height:72vh;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:16px;
}
.mail-workspace-body .mail-layout{margin:0}
.mail-workspace-body .mail-sidebar{position:sticky;top:0;align-self:start}
@media(max-width:760px){
  .mail-workspace-container{border-radius:18px}
  .mail-workspace-summary{padding:13px 14px;gap:10px}
  .mail-workspace-summary-icon{width:38px;height:38px;flex-basis:38px;border-radius:11px}
  .mail-workspace-summary-copy small{font-size:.7rem}
  .mail-workspace-summary-action>span{display:none!important}
  .mail-workspace-body{max-height:68vh;padding:10px}
  .mail-workspace-body .mail-sidebar{position:static}
}

/* ===== Messagerie 2026 — desktop / tablette / mobile ===== */
.mailbox-pro-shell{--mb-green:#006b57;--mb-soft:#eef8f4;--mb-line:#e5ebe8;--mb-ink:#102544;--mb-muted:#687792;background:#fff;border:1px solid var(--mb-line);border-radius:20px;overflow:hidden;box-shadow:0 14px 45px rgba(15,42,35,.055)}
.mailbox-pro-grid{display:grid;grid-template-columns:230px minmax(360px,520px) minmax(420px,1fr);min-height:720px}.mailbox-pro-nav{padding:18px 14px;border-right:1px solid var(--mb-line);background:#fbfdfc}.mailbox-new-btn{display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,#08745f,#005646);color:#fff;border-radius:9px;padding:12px;font-weight:800}.mailbox-nav-label{display:block;margin:24px 8px 8px;color:#7b899e;text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;font-weight:800}.mailbox-pro-nav nav,.mailbox-accounts-mini{display:grid;gap:3px}.mailbox-pro-nav nav a,.mailbox-accounts-mini a{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;border-radius:8px;color:#31445f;font-size:.82rem}.mailbox-pro-nav nav a.active,.mailbox-accounts-mini a.active{background:#eaf5f1;color:#075d4c;font-weight:800}.mailbox-pro-nav nav b{font-size:.72rem;min-width:22px;text-align:center}.mailbox-accounts-mini span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailbox-accounts-mini em{font-size:.62rem;font-style:normal;color:#08745f;background:#e8f7f1;border-radius:999px;padding:3px 6px}.mailbox-sync-btn{width:100%;margin-top:16px;border:1px solid var(--mb-line);background:#fff;border-radius:9px;padding:9px;color:#37516b;font-weight:700}
.mailbox-list-pane{min-width:0;border-right:1px solid var(--mb-line);background:#fff}.mailbox-list-header{display:flex;justify-content:space-between;align-items:center;padding:20px 18px 12px}.mailbox-list-header h2{margin:0;color:var(--mb-ink);font-size:1.12rem}.mailbox-list-header span{font-size:.76rem;color:var(--mb-muted)}.unread-pill{background:#e9f7f1!important;color:#08705c!important;border-radius:999px;padding:5px 8px;font-weight:800}.mailbox-search{display:grid;grid-template-columns:28px 1fr minmax(125px,180px) 34px;align-items:center;margin:0 16px 10px;border:1px solid var(--mb-line);border-radius:10px;padding:4px 7px;background:#fff}.mailbox-search>i{color:#7b879b}.mailbox-search input,.mailbox-search select{border:0;outline:0;background:transparent;min-width:0;padding:8px 4px;color:#34455e}.mailbox-search select{font-size:.74rem}.mailbox-search button{border:0;background:transparent;color:#37516b}.mailbox-folder-chips{display:none}.mailbox-bulkbar{display:flex;align-items:center;gap:8px;padding:8px 16px;border-top:1px solid #f4f6f5;border-bottom:1px solid var(--mb-line);font-size:.75rem}.mailbox-bulkbar label{display:flex;gap:5px;align-items:center}.mailbox-bulkbar select,.mailbox-bulkbar button{border:1px solid var(--mb-line);background:#fff;border-radius:8px;padding:7px 8px;color:#43556d}.mailbox-bulkbar span:last-child{margin-left:auto;color:var(--mb-muted)}
.mailbox-message-list{display:grid}.mailbox-message-row{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;border-bottom:1px solid #edf1ef;transition:.16s ease}.mailbox-message-row:hover,.mailbox-message-row.selected{background:#f2f9f6}.mailbox-message-row.selected{box-shadow:inset 3px 0 0 var(--mb-green)}.mailbox-message-row.unread .mailbox-message-copy strong,.mailbox-message-row.unread .mailbox-message-copy b{font-weight:850}.mailbox-message-row>.bulk-checkbox{justify-self:center}.mailbox-message-link{display:grid;grid-template-columns:42px minmax(0,1fr) auto 20px;gap:10px;align-items:center;padding:13px 12px 13px 0;color:inherit;min-width:0}.mailbox-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e8f3ef;color:#0b6655;font-weight:800;border:1px solid #d9e9e3;flex:0 0 auto}.mailbox-avatar.large{width:48px;height:48px}.mailbox-message-copy{display:grid;min-width:0;gap:2px}.mailbox-message-copy strong,.mailbox-message-copy b,.mailbox-message-copy small,.mailbox-message-copy em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailbox-message-copy strong{font-size:.78rem;color:#183252}.mailbox-message-copy b{font-size:.76rem;color:#142c4e}.mailbox-message-copy small{font-size:.72rem;color:#687792}.mailbox-message-copy em{font-size:.65rem;font-style:normal;color:#8290a2}.mailbox-message-link time{font-size:.69rem;color:#60708a;align-self:start}.mailbox-star{color:#71809a;align-self:center}
.mailbox-reader-pane{min-width:0;background:#fff;padding:0 18px 18px}.mailbox-reader-topbar{height:58px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--mb-line)}.mailbox-reader-topbar>a{font-size:.78rem;font-weight:750;color:#334c68}.mailbox-reader-topbar>div{display:flex;gap:10px}.mailbox-reader-topbar>div a{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:#314b67}.mailbox-reader-card{padding:22px 4px}.mailbox-reader-card>header{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:12px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--mb-line)}.mailbox-reader-card h2{margin:0 0 9px;color:#102544;font-size:1.25rem;line-height:1.2}.mailbox-reader-card header strong,.mailbox-reader-card header small{display:block;color:#39516d;font-size:.76rem;overflow-wrap:anywhere}.mailbox-reader-card header small{color:#748298}.mailbox-reader-card header time{font-size:.72rem;color:#60708a;align-self:start}.mailbox-reader-content{padding:24px 2px;color:#243b59;font-size:.9rem;line-height:1.8;overflow-wrap:anywhere}.mailbox-reader-attachments{border-top:1px dashed #d8e2de;padding-top:18px}.mailbox-reader-attachments h3{font-size:.82rem;color:#243b59}.mailbox-attachment{display:grid;grid-template-columns:34px minmax(0,1fr) 32px 32px;gap:9px;align-items:center;border:1px solid var(--mb-line);border-radius:10px;padding:10px;margin-top:8px}.mailbox-attachment>i{color:#1b76d1}.mailbox-attachment span{display:grid;min-width:0}.mailbox-attachment strong{font-size:.73rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailbox-attachment small{font-size:.65rem;color:#748298}.mailbox-attachment a{width:30px;height:30px;display:grid;place-items:center;color:#0a6d58}.mailbox-reader-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:24px}.mailbox-reader-actions>a,.mailbox-reader-actions button{width:100%;height:42px;border:1px solid var(--mb-line);border-radius:9px;background:#fff;color:#213d5d;font-weight:750;font-size:.75rem}.mailbox-reader-actions>a{display:flex;align-items:center;justify-content:center;gap:8px}.mailbox-reader-actions .primary{background:linear-gradient(135deg,#08745f,#005646);color:#fff;border:0}.mailbox-reader-empty{height:100%;min-height:500px;display:grid;place-content:center;text-align:center;color:#748298;padding:30px}.mailbox-reader-empty>i{font-size:2rem;margin-bottom:12px}.mailbox-reader-empty strong{color:#2c4662}.mailbox-reader-empty p{font-size:.8rem;max-width:280px}.mailbox-mobile-heading,.mailbox-mobile-summary{display:none}.mailbox-address-section{margin-top:18px}.mailbox-account-list{margin-top:18px}
@media(max-width:1280px){.mailbox-pro-grid{grid-template-columns:minmax(340px,44%) minmax(0,56%)}.mailbox-pro-nav{display:none}.mailbox-folder-chips{display:flex;gap:7px;overflow:auto;padding:0 16px 10px}.mailbox-folder-chips a{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;border:1px solid var(--mb-line);border-radius:9px;padding:8px 10px;color:#2f4663;font-size:.72rem;font-weight:700}.mailbox-folder-chips a.active{border-color:#0a6d58;background:#edf8f4;color:#0a6d58}.mailbox-folder-chips .fa-circle{font-size:.48rem;color:#7eb9a9}.mailbox-search{grid-template-columns:28px 1fr 34px}.mailbox-search select{display:none}.mailbox-reader-actions{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.mailbox-pro-shell{border:0;box-shadow:none;background:transparent;overflow:visible}.mailbox-mobile-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.mailbox-mobile-heading>div{display:grid}.mailbox-mobile-kicker{font-family:Georgia,serif;font-size:1.5rem;font-weight:800;color:#102544}.mailbox-mobile-heading strong{font-size:.8rem;color:#687792}.mailbox-compose-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:#08705c;color:#fff;font-size:1.1rem}.mailbox-mobile-summary{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dce8e4;border-radius:15px;padding:15px;margin-bottom:16px;background:#fff}.mailbox-summary-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#eef8f4;color:#08705c}.mailbox-mobile-summary>div{display:grid}.mailbox-mobile-summary strong{font-family:Georgia,serif;color:#102544;font-size:1.05rem}.mailbox-mobile-summary strong em{font-family:inherit;font-style:normal;font-size:.68rem;background:#eaf7f1;color:#08705c;border-radius:999px;padding:4px 6px;margin-left:6px}.mailbox-mobile-summary small{color:#687792;font-size:.76rem;margin-top:3px}.mailbox-pro-grid{display:block;min-height:0}.mailbox-list-pane{border:1px solid var(--mb-line);border-radius:16px;overflow:hidden}.mailbox-list-header{display:none}.mailbox-search{margin:14px;grid-template-columns:28px 1fr 34px}.mailbox-folder-chips{padding:0 14px 14px}.mailbox-bulkbar{padding:8px 14px;overflow:auto}.mailbox-bulkbar select{min-width:145px}.mailbox-bulkbar span:last-child{display:none}.mailbox-message-row{grid-template-columns:32px minmax(0,1fr)}.mailbox-message-link{grid-template-columns:42px minmax(0,1fr) auto 18px;padding:12px 10px 12px 0}.mailbox-message-copy small{max-width:52vw}.mailbox-message-copy em{display:none}.mailbox-reader-pane{display:none}.mailbox-reader-pane.has-message{display:block;position:fixed;z-index:80;left:10px;right:10px;bottom:10px;max-height:62vh;overflow:auto;background:#fff;border:1px solid #dce7e3;border-radius:20px;padding:0 14px 14px;box-shadow:0 20px 60px rgba(10,35,30,.22)}.mailbox-reader-pane.has-message::before{content:'';display:block;width:52px;height:5px;border-radius:999px;background:#c7d0cd;margin:8px auto 3px}.mailbox-reader-topbar{height:45px}.mailbox-reader-card{padding:12px 0}.mailbox-reader-card>header{grid-template-columns:42px minmax(0,1fr) auto;gap:9px}.mailbox-reader-card h2{font-size:1rem}.mailbox-reader-card header time{font-size:.64rem}.mailbox-reader-content{padding:16px 0;font-size:.86rem;line-height:1.65}.mailbox-reader-actions{grid-template-columns:1fr 1fr;position:sticky;bottom:0;background:#fff;padding-top:8px}.mailbox-reader-actions>a,.mailbox-reader-actions button{height:44px}.mailbox-address-section{margin-top:16px}.mailbox-account-row{padding:14px 0}}

/* ===================================================================
   Aspect « application mobile de messagerie » (façon Gmail) — coquille
   commune à tout l'espace admin : navigation, avatars, listes, action
   flottante et lecture plein écran. S'applique au bureau et au mobile.
   =================================================================== */

/* Palette d'avatars colorés à initiale, comme les contacts dans Gmail. */
.avatar-hue-0 { color: #0b6b53 !important; background: #dcf3ea !important; }
.avatar-hue-1 { color: #1d5fae !important; background: #e0edfc !important; }
.avatar-hue-2 { color: #8a4bce !important; background: #f1e6fb !important; }
.avatar-hue-3 { color: #b4650f !important; background: #fdecd6 !important; }
.avatar-hue-4 { color: #c23a5a !important; background: #fbe3ea !important; }
.avatar-hue-5 { color: #0a8286 !important; background: #dcf4f4 !important; }
.avatar-hue-6 { color: #8a6d10 !important; background: #f8edd2 !important; }
.avatar-hue-7 { color: #34519a !important; background: #e4e9fb !important; }

/* Menu latéral : items pleinement arrondis, façon liste d'app mobile. */
.sidebar-nav a { border-radius: 999px; padding-left: 16px; padding-right: 14px; }
.sidebar-nav a:hover { transform: none; }
.sidebar-nav { margin-bottom: 4px; }

/* Avatar de compte dans la barre du haut, façon icône de profil Gmail. */
.topbar-account-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--jm-green-soft);
  box-shadow: 0 0 0 1px var(--jm-line), 0 9px 22px rgba(18, 45, 54, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.topbar-account-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.topbar-account-avatar:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(7, 94, 84, 0.32), 0 12px 26px rgba(18, 45, 54, 0.12); }

/* Barres de recherche façon "pilule" grise, comme dans une app mobile. */
.mailbox-search { border-radius: 999px; border-color: transparent; background: #eef2f1; }
.mailbox-search:focus-within { background: #fff; border-color: rgba(7, 94, 84, 0.35); box-shadow: 0 0 0 4px rgba(7, 94, 84, 0.08); }
.search-form { display: flex; flex-wrap: wrap; gap: 8px; padding: 7px; border: 1px solid var(--jm-line); border-radius: 18px; background: #f3f5f4; }
.search-form .form-control { flex: 1 1 200px; background: #fff; }
.search-form .button { flex: 0 0 auto; }
@media (max-width: 760px) { .search-form { flex-direction: column; } .search-form .form-control, .search-form .button { flex: 1 1 auto; width: 100%; } }

/* Retour tactile façon app native sur les lignes de listes. */
.item-row, .data-row, .compact-row, .mailbox-message-link, .quick-action, .folder-card, .mailbox-account-row {
  transition: background-color 0.14s ease, transform 0.1s ease;
}
a.data-row:active, a.compact-row:active, .mailbox-message-link:active, a.quick-action:active { transform: scale(0.99); }

/* Action principale de la page : sur mobile, devient un bouton flottant
   circulaire façon "Nouveau message" de Gmail, ancré en bas à droite. */
@media (max-width: 760px) {
  .topbar-page-action.button-primary {
    position: fixed;
    right: 20px;
    bottom: 26px;
    z-index: 70;
    width: 60px;
    height: 60px;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(7, 94, 84, 0.32), 0 6px 14px rgba(7, 94, 84, 0.24);
  }
  .topbar-page-action.button-primary svg { width: 23px; height: 23px; }
  .topbar-page-action.button-primary i { font-size: 20px; }
  .topbar-page-action.button-primary:active { transform: scale(0.94); }

  /* Bouton « Retour » : ancré en haut à gauche à la place du menu,
     comme la flèche de retour d'une vue de détail Gmail. */
  .dashboard-topbar:has(.topbar-page-action.button-secondary:not(.desktop-only)) .menu-button { display: none; }
  .topbar-page-action.button-secondary:not(.desktop-only) {
    position: fixed;
    top: 14px;
    left: 12px;
    z-index: 70;
    margin: 0;
  }
}

/* Historique/messages : lecture plein écran sur mobile, façon app mail,
   avec une légère entrée en fondu-glissé au chargement de la page. */
@keyframes jmSheetIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .mailbox-reader-pane.has-message {
    position: fixed;
    inset: 0;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    border-radius: 0;
    padding: 0 16px 16px;
    animation: jmSheetIn 0.2s ease both;
  }
  .mailbox-reader-pane.has-message::before { display: none; }
  .mailbox-reader-topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: env(safe-area-inset-top, 0px);
    background: #fff;
  }
}



/* Messagerie: distinction messages non lus */
.mailbox-message-row.unread {
  background: #eef6ff;
  border-left: 4px solid #2563eb;
}
.mailbox-message-row.unread .mailbox-message-sender,
.mailbox-message-row.unread .mailbox-message-subject {
  font-weight: 700;
}
