:root,
[data-bs-theme="light"] {
  --app-bg: #f5f7fb;
  --app-bg-soft: #eef3ff;
  --app-card: rgba(255, 255, 255, 0.96);
  --app-card-solid: #ffffff;
  --app-border: rgba(15, 23, 42, 0.10);
  --app-border-strong: rgba(15, 23, 42, 0.16);
  --app-title: #0f172a;
  --app-text: #1e293b;
  --app-muted: #64748b;
  --app-primary: #4f46e5;
  --app-primary-2: #4338ca;
  --app-info: #0891b2;
  --app-success: #059669;
  --app-warning: #d97706;
  --app-danger: #dc2626;
  --app-radius: 22px;
  --app-radius-md: 18px;
  --app-radius-sm: 14px;
  --app-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --app-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --app-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);
  --app-max-width: 1680px;

  --commentaire: #0ea5e9;
  --maj: #94a3b8;

  --bs-primary: var(--app-primary);
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: var(--app-primary);
  --bs-link-hover-color: var(--app-primary-2);
  --bs-border-radius: 1rem;
  --bs-border-radius-sm: .85rem;
  --bs-border-radius-lg: 1.15rem;
  --bs-focus-ring-color: rgba(79, 70, 229, 0.16);
}

[data-bs-theme="dark"] {
  --app-bg: #0b1220;
  --app-bg-soft: #101a30;
  --app-card: rgba(15, 23, 42, 0.94);
  --app-card-solid: #0f172a;
  --app-border: rgba(148, 163, 184, 0.16);
  --app-border-strong: rgba(148, 163, 184, 0.28);
  --app-title: #e2e8f0;
  --app-text: #dbe4f0;
  --app-muted: #94a3b8;
  --app-shadow-sm: 0 14px 30px rgba(0, 0, 0, 0.30);
  --app-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  --app-shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.45);
  --bs-link-color: #a5b4fc;
  --bs-link-hover-color: #c7d2fe;
  --bs-focus-ring-color: rgba(165, 180, 252, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--app-text);
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(14, 165, 233, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.20)),
    var(--app-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.page-login {
  background:
    radial-gradient(1000px 600px at 0% 0%, rgba(79,70,229,.14), transparent 55%),
    radial-gradient(900px 600px at 100% 100%, rgba(14,165,233,.10), transparent 48%),
    var(--app-bg);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:not(.btn) {
  color: var(--bs-link-color);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:not(.btn):hover {
  color: var(--bs-link-hover-color);
}

::selection {
  background: rgba(79, 70, 229, 0.16);
}

* {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, var(--app-max-width));
  margin: 0 auto;
}

.app-main {
  width: min(100%, var(--app-max-width));
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.app-main-wide {
  max-width: none;
}

.app-main-regular {
  max-width: 1580px;
}

.app-flash {
  margin-bottom: 1rem;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

[data-bs-theme="dark"] .app-navbar {
  background: rgba(11, 18, 32, 0.82);
}

.app-brand {
  min-width: 0;
  text-decoration: none;
}

.app-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,70,229,.16), rgba(14,165,233,.16));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79,70,229,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  overflow: hidden;
  flex: 0 0 auto;
}

.app-brand-mark-fallback {
  color: var(--app-primary);
  font-size: 1.25rem;
}

.app-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-brand-title {
  color: var(--app-title);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.app-brand-subtitle {
  color: var(--app-muted);
  font-size: 0.79rem;
  font-weight: 700;
}

.app-navbar-toggler {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  padding: .45rem .7rem;
  box-shadow: none !important;
}

.app-navbar-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .85rem;
}

.app-navbar-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.app-navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

.app-menu-btn {
  border-radius: 999px;
  font-weight: 800;
  padding: .62rem .9rem;
  letter-spacing: .01em;
  white-space: nowrap;
}

.app-menu-btn i {
  font-size: 1rem;
}

.app-menu-btn-active {
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.14);
}


.crm-mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 16px;
  padding: .7rem .95rem;
  border: 1px solid rgba(79,70,229,.14);
  background: #fff;
  color: var(--app-title);
  box-shadow: 0 12px 24px rgba(15,23,42,.08);
  font-weight: 800;
}

.crm-mobile-toggle:hover,
.crm-mobile-toggle:focus {
  background: rgba(79,70,229,.06);
  border-color: rgba(79,70,229,.22);
  color: var(--app-primary-2);
}

.crm-mobile-toggle i {
  font-size: 1.15rem;
  line-height: 1;
}

.app-mobile-menu {
  width: min(92vw, 380px);
  border-left: 1px solid rgba(148,163,184,.18);
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(79,70,229,.10), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)),
    #fff;
}

.app-mobile-menu-header {
  padding: 1.1rem 1rem .8rem;
  border-bottom: 1px solid rgba(148,163,184,.16);
}

.app-mobile-menu-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-bottom: .25rem;
}

.app-mobile-menu-brand h5 {
  font-weight: 900;
  color: var(--app-title);
}

.app-mobile-menu-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.app-mobile-user-chip {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(79,70,229,.10), rgba(14,165,233,.08));
  border: 1px solid rgba(79,70,229,.12);
  box-shadow: var(--app-shadow-sm);
}

.app-mobile-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.86);
  color: var(--app-primary);
  font-size: 1.45rem;
  flex: 0 0 auto;
}

.app-mobile-user-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-mobile-user-copy strong {
  color: var(--app-title);
  font-size: .98rem;
}

.app-mobile-user-copy span {
  color: var(--app-muted);
  font-size: .82rem;
  font-weight: 700;
}

.app-mobile-menu-extra {
  display: grid;
  gap: .7rem;
}

.app-mobile-menu-extra .btn {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
}

.app-mobile-nav {
  display: grid;
  gap: .75rem;
}

.app-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  padding: .92rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.86);
  color: var(--app-title);
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.app-mobile-nav-link:hover,
.app-mobile-nav-link:focus {
  transform: translateY(-1px);
  color: var(--app-title);
  border-color: rgba(79,70,229,.22);
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}

.app-mobile-nav-link.is-active {
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(14,165,233,.08));
  border-color: rgba(79,70,229,.24);
  box-shadow: 0 16px 30px rgba(79,70,229,.10);
}

.app-mobile-nav-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,.08);
  color: var(--app-primary);
  font-size: 1.08rem;
  flex: 0 0 auto;
}

.app-mobile-nav-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .1rem;
}

.app-mobile-nav-copy strong {
  color: var(--app-title);
  font-size: .97rem;
  line-height: 1.25;
}

.app-mobile-nav-copy small {
  color: var(--app-muted);
  font-size: .78rem;
  font-weight: 700;
}

.app-mobile-nav-arrow {
  margin-left: auto;
  color: var(--app-muted);
  font-size: .95rem;
}

.app-mobile-nav-link.crm-nav-primary .app-mobile-nav-icon {
  background: rgba(79,70,229,.10);
  color: var(--app-primary);
}

.app-mobile-nav-link.crm-nav-secondary .app-mobile-nav-icon {
  background: rgba(30,41,59,.08);
  color: #334155;
}

.app-mobile-nav-link.crm-nav-warning .app-mobile-nav-icon {
  background: rgba(245,158,11,.12);
  color: #b45309;
}

.app-mobile-nav-link.crm-nav-danger .app-mobile-nav-icon {
  background: rgba(239,68,68,.12);
  color: #b91c1c;
}

.app-menu-btn.btn-outline-primary.app-menu-btn-active {
  background: rgba(79, 70, 229, 0.10);
  border-color: rgba(79, 70, 229, 0.34);
  color: var(--app-primary-2);
}

.app-menu-btn.btn-outline-secondary.app-menu-btn-active,
.app-menu-btn.btn-outline-warning.app-menu-btn-active,
.app-menu-btn.btn-outline-danger.app-menu-btn-active {
  background: rgba(15, 23, 42, 0.04);
}

.card,
.ticket-card,
.cardx,
.dashboard-card,
.table-container,
.app-card,
.form-card,
.report-container,
.dash-card,
.filter-bar {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  box-shadow: var(--app-shadow-sm);
}

.card,
.app-card,
.form-card,
.report-container,
.dash-card,
.filter-bar {
  overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(148,163,184,.18);
}

.form-label {
  font-weight: 700;
  color: var(--app-title);
}

.form-control,
.form-select,
.input-group-text,
.form-check-input {
  border-radius: 14px;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 46px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(var(--bs-primary-rgb), .45);
  box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}

.form-control::placeholder {
  color: rgba(100,116,139,.78);
}

.btn {
  border-radius: 14px;
  font-weight: 700;
}

.btn-primary,
.btn-action {
  box-shadow: 0 12px 26px rgba(79,70,229,.18);
}

.btn-primary:hover,
.btn-action:hover {
  transform: translateY(-1px);
}

.alert {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: var(--app-shadow-sm);
}

.table-container,
.table-responsive {
  border-radius: inherit;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: rgba(248,250,252,.88);
  color: var(--app-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .74rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(226,232,240,.9);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(241,245,249,.95);
}

.table tbody tr:hover {
  background: rgba(79, 70, 229, 0.04);
}

.user-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 900;
  border: 1px solid rgba(var(--bs-primary-rgb), .18);
  background: rgba(var(--bs-primary-rgb), .08);
  color: var(--bs-primary);
}

.role-badge,
.status-pill,
.badgetype,
.badgevis {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 800;
  font-size: .72rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(248,250,252,.85);
  color: rgba(51,65,85,.95);
}

.timeline-wrap {
  position: relative;
  padding: 8px 6px 6px 6px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(148,163,184,.35), rgba(148,163,184,.10));
  border-radius: 999px;
}

.titem {
  position: relative;
  padding: 12px 0;
}

.tdot {
  position: absolute;
  left: 2px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--app-card-solid);
  border: 2px solid var(--maj);
  box-shadow: 0 6px 14px rgba(15,23,42,.10);
}

.tdot.commentaire {
  border-color: var(--commentaire);
}

.tcard {
  margin-left: 12px;
  background: var(--app-card);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--app-radius-sm);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

body.page-login .card {
  max-width: 560px;
  margin: 3vh auto 0;
  border-radius: 24px;
  box-shadow: var(--app-shadow-lg);
}

body.page-login .card-body {
  padding: clamp(1.4rem, 3vw, 2rem);
}

body.page-login h1 {
  font-weight: 900;
  color: var(--app-title);
}

body.page-index .app-main {
  padding-top: 1rem;
}

body.page-index .report-shell {
  padding-inline: 0;
}

body.page-index .page-header h1 {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

body.page-index .report-container {
  border-radius: 28px;
  box-shadow: var(--app-shadow-lg);
}

body.page-index .mairie-pill {
  border-radius: 999px;
  box-shadow: var(--app-shadow);
}

.modal-photo-view .modal-content {
  background: transparent;
  border: none;
}

#modalImage {
  border-radius: var(--app-radius);
  max-height: 85vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.modal-backdrop.show {
  opacity: .85;
}

@media (max-width: 1199.98px) {
  .app-navbar-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 0 .25rem;
  }

  .app-navbar-meta,
  .app-navbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .app-main {
    padding: 1rem .85rem 1.6rem;
  }

  .app-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .app-brand-title {
    font-size: .98rem;
  }

  .app-brand-subtitle {
    font-size: .74rem;
  }

  .app-navbar-actions {
    gap: .55rem;
  }

  .app-menu-btn {
    width: 100%;
    justify-content: center;
  }

  .crm-mobile-toggle {
    padding: .66rem .85rem;
  }

  .table thead th,
  .table tbody td {
    padding: .85rem .75rem;
  }

  .mapbox {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   SIGNALMOI — thème global unique
   ========================================================= */

.app-main {
  width: min(100%, var(--app-max-width));
}

.crm-layout {
  display: block;
  min-height: 100vh;
}

.crm-sidebar {
  width: 304px;
  min-width: 304px;
  flex-direction: column;
  gap: 1.2rem;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 1.4rem 1.1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(15,23,42,.98) 0%, rgba(17,24,39,.96) 100%);
  border-right: 1px solid rgba(148,163,184,.16);
  box-shadow: 24px 0 60px rgba(15,23,42,.16);
  z-index: 1031;
}

.crm-sidebar-top {
  padding: .15rem .2rem .2rem;
}

.crm-sidebar .app-brand {
  color: #fff;
  text-decoration: none;
}

.crm-sidebar .app-brand-title {
  color: #fff;
}

.crm-sidebar .app-brand-subtitle {
  color: rgba(226,232,240,.72);
}

.crm-sidebar .app-brand-mark {
  background: linear-gradient(135deg, rgba(79,70,229,.32), rgba(14,165,233,.24));
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.crm-user-chip {
  display: flex;
  align-items: center;
  gap: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: .95rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.crm-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79,70,229,.28), rgba(14,165,233,.22));
  color: #fff;
  font-size: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}

.crm-user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.crm-user-copy strong {
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}

.crm-user-copy span {
  color: rgba(226,232,240,.72);
  font-size: .79rem;
  font-weight: 600;
}

.crm-nav {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .35rem;
}

.crm-nav-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  border-radius: 18px;
  padding: .95rem 1rem;
  text-decoration: none;
  font-weight: 800;
  color: rgba(226,232,240,.84);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
  position: relative;
}

.crm-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
  transform: translateX(2px);
}

.crm-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(79,70,229,.28), rgba(79,70,229,.18));
  border-color: rgba(129,140,248,.38);
  box-shadow: 0 18px 34px rgba(79,70,229,.18);
}

.crm-nav-link.crm-nav-secondary.is-active {
  background: linear-gradient(135deg, rgba(30,41,59,.72), rgba(51,65,85,.56));
  border-color: rgba(148,163,184,.24);
  box-shadow: 0 18px 34px rgba(15,23,42,.22);
}

.crm-nav-link.crm-nav-warning.is-active {
  background: linear-gradient(135deg, rgba(245,158,11,.26), rgba(217,119,6,.18));
  border-color: rgba(251,191,36,.28);
  box-shadow: 0 18px 34px rgba(180,83,9,.18);
}

.crm-nav-link.crm-nav-danger.is-active {
  background: linear-gradient(135deg, rgba(239,68,68,.24), rgba(220,38,38,.14));
  border-color: rgba(248,113,113,.28);
  box-shadow: 0 18px 34px rgba(153,27,27,.18);
}

.crm-nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 1rem;
  flex: 0 0 auto;
}

.crm-nav-link.is-active .crm-nav-icon {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
}

.crm-nav-label {
  min-width: 0;
  font-size: .95rem;
}

.crm-sidebar-footer {
  margin-top: auto;
  border-radius: 20px;
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
}

.crm-sidebar-footer-title {
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .25rem;
}

.crm-sidebar-footer-text {
  color: rgba(226,232,240,.74);
  font-size: .8rem;
  line-height: 1.45;
}

.crm-content {
  min-width: 0;
}

.crm-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 88px;
  margin-left: 304px;
  padding: 1.2rem 1.6rem 0;
  background: linear-gradient(180deg, rgba(245,247,251,.95), rgba(245,247,251,.78) 78%, rgba(245,247,251,0));
  backdrop-filter: blur(16px);
}

[data-bs-theme="dark"] .crm-topbar {
  background: linear-gradient(180deg, rgba(11,18,32,.95), rgba(11,18,32,.78) 78%, rgba(11,18,32,0));
}

.crm-topbar-title h1 {
  margin: 0;
  color: var(--app-title);
  font-size: clamp(1.45rem, 1vw + 1rem, 2.15rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.crm-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--app-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}

.crm-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

.layout-crm .app-main {
  margin-left: 304px;
  width: calc(100% - 304px);
  max-width: none;
  padding: .85rem 1.6rem 2rem;
}

.layout-public .app-main {
  padding-top: 1rem;
}

.app-flash {
  margin-bottom: 1rem;
}

.page-index .app-main {
  padding-top: 1.1rem;
}

.page-index .report-container {
  border-radius: 28px;
  box-shadow: var(--app-shadow-lg);
}

.page-index .page-header h1,
.page-index h1.h2,
.page-index h1 {
  font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.8rem);
  letter-spacing: -.03em;
}

.page-index .page-header p {
  font-size: 1rem;
}

.page-login .app-navbar .app-brand-subtitle {
  display: none;
}

.page-login .app-main {
  padding-top: 2rem;
}

body.page-offline {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

body.page-offline .wrap {
  width: min(100%, 540px);
}

body.page-offline .card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 28px;
  box-shadow: var(--app-shadow-lg);
  text-align: center;
}

body.page-offline h1 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 900;
  color: var(--app-title);
}

body.page-offline .muted {
  color: var(--app-muted);
  margin-bottom: 1.25rem;
}

body.page-offline button {
  border: 0;
  border-radius: 14px;
  padding: .9rem 1.15rem;
  font-weight: 800;
  background: var(--app-primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(79,70,229,.22);
}

.table-stack-mobile td[data-label=""]::before,
.table-stack-mobile td[data-label=" "]::before {
  display: none;
}

@media (min-width: 992px) {
  .layout-public .app-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .layout-public .app-navbar .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .crm-layout,
  .crm-content {
    display: block;
  }

  .layout-crm .app-main {
    width: 100%;
    margin-left: 0;
    padding: 1rem .85rem 1.75rem;
  }

  .app-navbar .container-fluid {
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .app-main {
    padding: 1rem .85rem 1.5rem;
  }

  .app-menu-btn {
    width: auto;
    justify-content: center;
  }

  .table-stack-mobile,
  .table-stack-mobile tbody,
  .table-stack-mobile tr,
  .table-stack-mobile td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .table-stack-mobile thead {
    display: none;
  }

  .table-stack-mobile tbody {
    display: grid;
    gap: .85rem;
  }

  .table-stack-mobile tbody tr {
    background: var(--app-card);
    border: 1px solid var(--app-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--app-shadow-sm);
    box-sizing: border-box;
  }

  .table-stack-mobile tbody td {
    display: block;
    min-width: 0;
    padding: .9rem 1rem;
    border: 0;
    border-top: 1px solid rgba(148,163,184,.14);
    white-space: normal !important;
    text-align: left !important;
  }

  .table-stack-mobile tbody td:first-child {
    border-top: 0;
    background: rgba(79,70,229,.05);
  }

  .table-stack-mobile tbody td::before {
    content: attr(data-label);
    display: block;
    min-width: 0;
    margin-bottom: .35rem;
    color: var(--app-muted);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.45;
  }

  .table-stack-mobile tbody td > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .table-stack-mobile tbody td > .badge,
  .table-stack-mobile tbody td > .status-chip,
  .table-stack-mobile tbody td > .status-badge,
  .table-stack-mobile tbody td .badge,
  .table-stack-mobile tbody td .status-chip,
  .table-stack-mobile tbody td .status-badge {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    white-space: normal;
    vertical-align: top;
  }

  .table-stack-mobile tbody td > .btn,
  .table-stack-mobile tbody td .btn {
    max-width: 100%;
    white-space: normal;
  }

  .table-stack-mobile tbody td .btn-group,
  .table-stack-mobile tbody td .d-flex,
  .table-stack-mobile tbody td .dropdown,
  .table-stack-mobile tbody td .input-group {
    max-width: 100%;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .dataTables_wrapper .row {
    gap: .5rem 0;
  }

  .dataTables_wrapper .col-md-6 {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
  }
}


/* ===== Hérité de admin.php ===== */
html.admin-fullwidth .wrap,
  html.admin-fullwidth .app-wrap{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.admin-fullwidth main.container,
  html.admin-fullwidth main.container-fluid,
  html.admin-fullwidth main.container-sm,
  html.admin-fullwidth main.container-md,
  html.admin-fullwidth main.container-lg,
  html.admin-fullwidth main.container-xl,
  html.admin-fullwidth main.container-xxl,
  html.admin-fullwidth .container,
  html.admin-fullwidth .container-sm,
  html.admin-fullwidth .container-md,
  html.admin-fullwidth .container-lg,
  html.admin-fullwidth .container-xl,
  html.admin-fullwidth .container-xxl{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.admin-fullwidth main.container,
  html.admin-fullwidth main.container-fluid{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  @media (min-width: 992px){
    html.admin-fullwidth main.container,
    html.admin-fullwidth main.container-fluid{
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  }

  #ticketsTable{ width:100% !important; }

  .img-thumb-admin{
    width:50px;height:50px;object-fit:cover;border-radius:12px;border:1px solid #e6edf5;display:block;
  }

  /* ========= ✅ MODAL PHOTOS — DARK / UNIFIÉ ========= */
  .modal-photo-view .modal-dialog{ height:100%; }
  .modal-photo-view .modal-content{
    position:relative;
    border:0;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 28px 80px rgba(2,6,23,.45);
    background:#0b1220;
    height:100%;
  }
  .modal-photo-view .modal-body{
    position:relative;
    padding:0;
    background:#0b1220;
    height:100%;
  }
  #photoModalImg{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    background:#0b1220;
    user-select:none;
    -webkit-user-drag:none;
  }

  .photo-toolbar{
    position:absolute;
    left:0; right:0; bottom:0;
    padding:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background: linear-gradient(180deg, rgba(11,18,32,0) 0%, rgba(11,18,32,.78) 65%, rgba(11,18,32,.92) 100%);
  }
  .photo-toolbar .btn,
  .photo-close-top .btn{
    border-radius:999px;
    backdrop-filter: blur(8px);
    box-shadow:0 12px 30px rgba(2,6,23,.35);
  }
  .modal-photo-view .btn-light{
    background:rgba(255,255,255,.92);
    border-color:rgba(255,255,255,.22);
  }
  .modal-photo-view .btn-outline-light{
    border-color:rgba(255,255,255,.35);
    color:#fff;
  }
  .modal-photo-view .btn-outline-light:hover{
    background:rgba(255,255,255,.12);
  }
  .photo-toolbar .meta{
    color: rgba(255,255,255,.78);
    font-size: .9rem;
    text-align:center;
    flex:1;
    min-width: 120px;
    padding: 0 8px;
  }
  .photo-close-top{
    position:absolute;
    top:14px;
    right:14px;
    z-index: 5;
  }

  @media (max-width: 576px){
    .modal-photo-view .modal-dialog{ padding:0 !important; }
    .modal-photo-view .modal-content{ border-radius:0; }
    .photo-toolbar{ padding:12px; }
    .photo-toolbar .meta{ font-size:.85rem; }
  }
  /* ========= /MODAL ========= */

/* ===== Hérité de dashboard.php ===== */
html.admin-fullwidth .wrap,
  html.admin-fullwidth .app-wrap{ max-width:100%!important; width:100%!important; }
  html.admin-fullwidth main.container,
  html.admin-fullwidth main.container-fluid,
  html.admin-fullwidth .container,
  html.admin-fullwidth .container-fluid{ max-width:100%!important; width:100%!important; }

  .dash-card{
    background:#fff;
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    box-shadow:0 10px 28px rgba(2,6,23,.06);
  }
  .kpi{
    border-radius:18px;
    background:linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(255,255,255,1) 70%);
    border:1px solid rgba(15,23,42,.10);
    padding:16px;
  }
  .kpi .label{ color:#64748b; font-weight:700; font-size:.75rem; letter-spacing:.04em; text-transform:uppercase; }
  .kpi .value{ font-size:1.8rem; font-weight:900; color:#0f172a; line-height:1.05; }
  .kpi .sub{ color:#64748b; font-size:.9rem; }
  .progress{ height:10px; border-radius:999px; background:rgba(15,23,42,.08); }
  .progress-bar{ border-radius:999px; }
  .chart-wrap{ height:280px; position:relative; }
  .table thead th{ color:#475569; font-size:.85rem; }
  .truncate{ max-width:520px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .filter-bar{
    background:#fff;
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    padding:12px;
  }

/* ===== Hérité de index.php ===== */
:root{
    --app-bg: #f6f8fb;
    --app-card: rgba(255,255,255,.92);
    --app-border: rgba(15,23,42,.10);
    --app-title: #0f172a;
    --app-muted: #64748b;

    --app-primary: #4f46e5;
    --app-primary-2:#4338ca;

    --app-radius: 18px;
    --app-radius-sm: 14px;
    --app-shadow: 0 14px 35px rgba(2,6,23,.08);
    --app-shadow-sm: 0 10px 20px rgba(2,6,23,.06);
  }

  body{
    background:
      radial-gradient(1200px 800px at 15% 10%, rgba(79,70,229,.10), transparent 60%),
      radial-gradient(900px 600px at 85% 20%, rgba(14,165,233,.10), transparent 55%),
      var(--app-bg);
    color: var(--app-title);
  }

  .report-shell{ padding-top: 10px; padding-bottom: 80px; }

  .page-header{ margin: 14px 0 18px; }
  .page-header h1{
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  }

  .report-container{
    background: var(--app-card);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: clamp(14px, 2.5vw, 22px);
    backdrop-filter: blur(10px);
  }

  .mairie-pill{
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-sm);
    margin: 10px 0 16px;
  }
  .mairie-pill .fw-semibold{ color: var(--app-title); }

  .form-label{ font-weight: 700; color: var(--app-title); }

  .form-control, .form-select{
    border-radius: var(--app-radius-sm);
    border: 1px solid rgba(15,23,42,.14);
    padding: .70rem .85rem;
  }
  .form-control:focus, .form-select:focus{
    border-color: rgba(79,70,229,.55);
    box-shadow: 0 0 0 .25rem rgba(79,70,229,.12);
  }

  .upload-zone{
    border: 2px dashed rgba(79,70,229,.35);
    background: rgba(79,70,229,.05);
    border-radius: var(--app-radius);
    min-height: 120px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 6px;
    cursor:pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
    user-select:none;
  }
  .upload-zone:hover{
    transform: translateY(-1px);
    background: rgba(79,70,229,.07);
    border-color: rgba(79,70,229,.55);
  }

  .thumb-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin-top: 12px;
  }
  .thumb-grid img{
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 10px 18px rgba(2,6,23,.05);
  }

  #geoStatus{
    border-radius: var(--app-radius-sm);
    border: 1px solid rgba(15,23,42,.10) !important;
  }

  .mapbox{
    height: 330px;
    border-radius: var(--app-radius);
    overflow:hidden;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: var(--app-shadow-sm);
    background: #e2e8f0;
  }

  .btn-primary{
    background: var(--app-primary);
    border-color: var(--app-primary);
    font-weight: 800;
    letter-spacing: .01em;
    border-radius: 16px;
    box-shadow: 0 14px 26px rgba(79,70,229,.18);
  }
  .btn-primary:hover{
    background: var(--app-primary-2);
    border-color: var(--app-primary-2);
  }
  .btn-outline-primary{
    border-radius: 14px;
    font-weight: 700;
  }

  .fixed-bottom-mobile{ position: static; }
  @media (max-width: 576px){
    .fixed-bottom-mobile{
      position: sticky;
      bottom: 0;
      padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
      background: linear-gradient(to top, rgba(246,248,251,.95), rgba(246,248,251,.65), rgba(246,248,251,0));
      backdrop-filter: blur(10px);
      z-index: 20;
    }
  }

  .spacer-bottom{ height: 14px; }
  @media (max-width: 576px){ .spacer-bottom{ height: 6px; } }

  .muted-mini{ color: var(--app-muted); font-size: .86rem; }

  #compressStatus{
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.85);
    padding: 10px 12px;
  }

/* ===== Hérité de mairies.php ===== */
/* ✅ Full width (uniquement mairies.php) */
  html.mairies-fullwidth .wrap,
  html.mairies-fullwidth .app-wrap{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.mairies-fullwidth main.container,
  html.mairies-fullwidth main.container-fluid,
  html.mairies-fullwidth main.container-sm,
  html.mairies-fullwidth main.container-md,
  html.mairies-fullwidth main.container-lg,
  html.mairies-fullwidth main.container-xl,
  html.mairies-fullwidth main.container-xxl,
  html.mairies-fullwidth .container,
  html.mairies-fullwidth .container-sm,
  html.mairies-fullwidth .container-md,
  html.mairies-fullwidth .container-lg,
  html.mairies-fullwidth .container-xl,
  html.mairies-fullwidth .container-xxl{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.mairies-fullwidth main.container{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  @media (min-width: 992px){
    html.mairies-fullwidth main.container{
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  }

  html.mairies-fullwidth .table-container,
  html.mairies-fullwidth .dashboard-card{
    width: 100%;
    max-width: 100%;
  }

  /* =========================
     Annuaire (scopé)
     ========================= */
  .annuaire .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
  .annuaire .small-mono { font-size: .85rem; }
  .annuaire .url { word-break: break-all; font-size: .9em; }
  .annuaire td { vertical-align: top; }

  /* ✅ Empêche le tableau de déborder */
  .annuaire .card, .annuaire .card-body { overflow: hidden; }
  .annuaire .dataTables_wrapper { max-width: 100% !important; overflow: hidden !important; }
  .annuaire table.dataTable { width: 100% !important; max-width: 100% !important; table-layout: fixed; }
  .annuaire table.dataTable td,
  .annuaire table.dataTable th{
    white-space: normal !important;
    word-break: break-word;
  }

  /* ✅ ligne filtres */
  .annuaire #tbl thead tr.filters th { padding: .35rem .5rem; }
  .annuaire #tbl thead tr.filters input,
  .annuaire #tbl thead tr.filters select { min-width: 110px; }

/* ===== Hérité de mairies_parametrages.php ===== */
html.taxo-fullwidth .wrap,
  html.taxo-fullwidth .app-wrap{ max-width:100% !important; width:100% !important; }
  html.taxo-fullwidth main.container,
  html.taxo-fullwidth main.container-fluid,
  html.taxo-fullwidth .container{ max-width:100% !important; width:100% !important; }
  html.taxo-fullwidth main.container{ padding-left:1rem !important; padding-right:1rem !important; }
  @media (min-width:992px){
    html.taxo-fullwidth main.container{ padding-left:1.5rem !important; padding-right:1.5rem !important; }
  }

  .card-soft{ background:#fff; border:1px solid #e6edf5; border-radius:16px; box-shadow:0 6px 18px rgba(15,23,42,.04); }
  .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; }
  .badge-soft{ background:#f8fafc; border:1px solid #e6edf5; border-radius:999px; }
  .small-muted{ color:#64748b; font-size:.9rem; }
  .tabbtn{ border-radius:999px; }

/* ===== Hérité de mairie_edit.php ===== */
html.mairie-edit-fullwidth .wrap,
  html.mairie-edit-fullwidth .app-wrap{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.mairie-edit-fullwidth main.container,
  html.mairie-edit-fullwidth main.container-fluid,
  html.mairie-edit-fullwidth main.container-sm,
  html.mairie-edit-fullwidth main.container-md,
  html.mairie-edit-fullwidth main.container-lg,
  html.mairie-edit-fullwidth main.container-xl,
  html.mairie-edit-fullwidth main.container-xxl,
  html.mairie-edit-fullwidth .container,
  html.mairie-edit-fullwidth .container-sm,
  html.mairie-edit-fullwidth .container-md,
  html.mairie-edit-fullwidth .container-lg,
  html.mairie-edit-fullwidth .container-xl,
  html.mairie-edit-fullwidth .container-xxl{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.mairie-edit-fullwidth main.container{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  @media (min-width: 992px){
    html.mairie-edit-fullwidth main.container{
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  }
  html.mairie-edit-fullwidth .form-card{
    width: 100%;
    max-width: 100%;
  }

  /* petit preview logo */
  .logo-preview{
    width: 92px;
    height: 92px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.9);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
  }
  .logo-preview img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display:block;
  }

/* ===== Hérité de prospection.php ===== */
/* ✅ Full width (uniquement prospection.php) */
  .pros-fullwidth .wrap,
  .pros-fullwidth .app-wrap{
    max-width: 100% !important;
    width: 100% !important;
  }
  .pros-fullwidth main.container,
  .pros-fullwidth main.container-fluid,
  .pros-fullwidth main.container-sm,
  .pros-fullwidth main.container-md,
  .pros-fullwidth main.container-lg,
  .pros-fullwidth main.container-xl,
  .pros-fullwidth main.container-xxl,
  .pros-fullwidth .container,
  .pros-fullwidth .container-sm,
  .pros-fullwidth .container-md,
  .pros-fullwidth .container-lg,
  .pros-fullwidth .container-xl,
  .pros-fullwidth .container-xxl{
    max-width: 100% !important;
    width: 100% !important;
  }
  .pros-fullwidth main.container{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  @media (min-width: 992px){
    .pros-fullwidth main.container{
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  }

  /* --- même esprit que ticket.php (cards, soft borders, radius, shadow léger) --- */
  .dashboard-card{ background:#fff; border:1px solid #e6edf5; border-radius:16px; box-shadow:0 6px 18px rgba(15,23,42,.04); }
  .filter-bar{ background:#fff; }
  .filter-label{ letter-spacing:.08em; }
  .filter-select{ min-width:160px; }

  .ticket-id{ font-weight:800; color:#0f172a; }
  .truncate-multiline{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .italic{ font-style:italic; }

  .img-thumb-admin{ width:52px; height:52px; object-fit:cover; border-radius:12px; border:1px solid #e6edf5; display:block; }
  .photo-wrap{ position:relative; display:inline-block; }
  .photo-count{
    position:absolute; right:-6px; bottom:-6px;
    font-size:.72rem; padding:.25rem .45rem;
    border-radius:999px; border:1px solid rgba(255,255,255,.6);
    box-shadow:0 6px 18px rgba(0,0,0,.12);
  }

  .action-btn{
    border-radius: 999px;
    font-weight: 800;
  }

  /* ========= ✅ MODAL PHOTOS — DARK / UNIFIÉ ========= */
  .modal-photo-view .modal-dialog{ height:100%; }
  .modal-photo-view .modal-content{
    position:relative;
    border:0;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 28px 80px rgba(2,6,23,.45);
    background:#0b1220;
    height:100%;
  }
  .modal-photo-view .modal-body{
    position:relative;
    padding:0;
    background:#0b1220;
    height:100%;
  }
  #photoModalImg{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    background:#0b1220;
    user-select:none;
    -webkit-user-drag:none;
  }

  .photo-toolbar{
    position:absolute;
    left:0; right:0; bottom:0;
    padding:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background: linear-gradient(180deg, rgba(11,18,32,0) 0%, rgba(11,18,32,.78) 65%, rgba(11,18,32,.92) 100%);
  }
  .photo-toolbar .btn,
  .photo-close-top .btn{
    border-radius:999px;
    backdrop-filter: blur(8px);
    box-shadow:0 12px 30px rgba(2,6,23,.35);
  }
  .modal-photo-view .btn-light{
    background:rgba(255,255,255,.92);
    border-color:rgba(255,255,255,.22);
  }
  .modal-photo-view .btn-outline-light{
    border-color:rgba(255,255,255,.35);
    color:#fff;
  }
  .modal-photo-view .btn-outline-light:hover{
    background:rgba(255,255,255,.12);
  }
  .photo-toolbar .meta{
    color: rgba(255,255,255,.78);
    font-size: .9rem;
    text-align:center;
    flex:1;
    min-width: 120px;
    padding: 0 8px;
  }
  .photo-close-top{
    position:absolute;
    top:14px;
    right:14px;
    z-index: 5;
  }

  @media (max-width: 576px){
    .modal-photo-view .modal-dialog{ padding:0 !important; }
    .modal-photo-view .modal-content{ border-radius:0; }
    .photo-toolbar{ padding:12px; }
    .photo-toolbar .meta{ font-size:.85rem; }
  }
  /* ========= /MODAL ========= */

  /* ✅ MODAL CARTE : full width + full height (sans marges/arrondis) */
  #mapModal .modal-dialog{
    margin:0 !important;
    max-width:100vw;
    width:100vw;
    height:100vh;
  }
  #mapModal .modal-content{
    height:100vh;
    border-radius:0 !important;
  }
  #mapModal .modal-body{
    height:calc(100vh - 56px); /* ~ header bootstrap */
    padding:0 !important;
  }
  #mapModal #map{
    width:100%;
    height:100%;
  }

  /* mobile-friendly table labels */
  @media (max-width: 768px){
    #prosTable thead{ display:none; }

    #prosTable tbody tr{
      display:block;
      background:#fff;
      margin: 10px 10px;
      border:1px solid #e6edf5;
      border-radius: 16px;
      box-shadow:0 8px 18px rgba(15,23,42,.05);
      overflow:hidden;
    }

    #prosTable tbody td{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
      padding:10px 14px;
      border-top:1px solid #eef2f7;
      white-space: normal;
    }
    #prosTable tbody tr td:first-child{
      border-top:0;
      padding-top:14px;
      padding-bottom:12px;
    }

    #prosTable tbody td::before{
      content: attr(data-label);
      font-weight:900;
      color:#64748b;
      margin-right:12px;
      flex:0 0 38%;
      max-width: 38%;
      text-transform: uppercase;
      letter-spacing: .06em;
      font-size: .72rem;
      line-height: 1.2;
      padding-top: 2px;
    }

    /* Valeurs sur plusieurs lignes */
    #prosTable tbody td > *{
      flex: 1 1 auto;
      min-width: 0;
    }

    /* Action bouton en grand */
    #prosTable .js-lead{
      width: 100%;
      justify-content: center;
      padding: 10px 14px;
      border-radius: 999px;
    }

    .img-thumb-admin{ width:64px; height:64px; border-radius:14px; }
    .photo-count{ right:-8px; bottom:-8px; }
  }

  /* ✅ Optimisations “téléphone” (≤576px) */
  @media (max-width: 576px){
    .container-fluid.py-4{ padding-top: .9rem !important; padding-bottom: .9rem !important; }
    .container-fluid.px-2{ padding-left: .65rem !important; padding-right: .65rem !important; }

    h1.h3{ font-size: 1.25rem; }
    .breadcrumb{ gap: 6px; }

    /* barre filtres en pile */
    .filter-bar{
      padding: 12px !important;
      gap: 10px !important;
    }
    .filter-bar form{
      width: 100%;
      flex-wrap: wrap;
    }
    .filter-bar .filter-label{
      width: 100%;
      margin-bottom: 2px;
      font-size: .72rem;
      font-weight: 900;
    }
    .filter-bar input.form-control{
      min-width: 0 !important;
      width: 100%;
      height: 44px;
      border-radius: 14px;
    }
    .filter-bar select.form-select{
      width: 100%;
      height: 44px;
      border-radius: 14px;
    }
    .filter-bar button{
      height: 44px;
      padding: 0 16px;
      border-radius: 999px;
      width: 100%;
    }

    /* Bouton "Vue Carte" plus “tap friendly” */
    .action-btn{
      min-height: 44px;
      padding: 10px 14px;
    }

    /* Pagination centrée */
    .pagination{ justify-content:center; flex-wrap: wrap; gap: 6px; }
    .pagination .page-link{ border-radius: 12px; padding: 8px 12px; }
  }

/* ===== Hérité de ticket.php ===== */
.ticket-fullwidth .wrap,
  .ticket-fullwidth .app-wrap{
    max-width: 100% !important;
    width: 100% !important;
  }
  .ticket-fullwidth main.container,
  .ticket-fullwidth main.container-fluid,
  .ticket-fullwidth .container{
    max-width: 100% !important;
    width: 100% !important;
  }
  .ticket-fullwidth main.container{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  @media (min-width: 992px){
    .ticket-fullwidth main.container{
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  }

  .ticket-card{
    background:#fff;
    border:1px solid #e6edf5;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(15,23,42,.04);
    margin-bottom:16px;
  }
  .section-label{
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    font-size:.78rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#64748b;
    font-weight:800;
    margin-bottom:.5rem;
  }
  .description-box{
    border:1px solid #e6edf5;
    background:#f8fafc;
    border-radius:14px;
    padding:14px 14px;
    line-height:1.45;
  }
  .mapbox{
    height:320px;
    border-radius:16px;
    border:1px solid #e6edf5;
    overflow:hidden;
  }

  .thumb-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap:12px;
  }
  .thumb-btn{
    border:0;
    padding:0;
    background:transparent;
    position:relative;
    cursor:pointer;
  }
  .thumb-btn img{
    width:100%;
    height:92px;
    object-fit:cover;
    border-radius:14px;
    border:1px solid #e6edf5;
    display:block;
  }

  /* ========= ✅ MODAL PHOTOS — EXACT style admin.php ========= */
  .modal-photo-view .modal-dialog{ height:100%; }
  .modal-photo-view .modal-content{
    position:relative;
    border:0;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 28px 80px rgba(2,6,23,.45);
    background:#0b1220;
    height:100%;
  }
  .modal-photo-view .modal-body{
    position:relative;
    padding:0;
    background:#0b1220;
    height:100%;
  }
  #photoModalImg{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    background:#0b1220;
    user-select:none;
    -webkit-user-drag:none;
  }

  .photo-toolbar{
    position:absolute;
    left:0; right:0; bottom:0;
    padding:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background: linear-gradient(180deg, rgba(11,18,32,0) 0%, rgba(11,18,32,.78) 65%, rgba(11,18,32,.92) 100%);
  }
  .photo-toolbar .btn,
  .photo-close-top .btn{
    border-radius:999px;
    backdrop-filter: blur(8px);
    box-shadow:0 12px 30px rgba(2,6,23,.35);
  }
  .modal-photo-view .btn-light{
    background:rgba(255,255,255,.92);
    border-color:rgba(255,255,255,.22);
  }
  .modal-photo-view .btn-outline-light{
    border-color:rgba(255,255,255,.35);
    color:#fff;
  }
  .modal-photo-view .btn-outline-light:hover{
    background:rgba(255,255,255,.12);
  }
  .photo-toolbar .meta{
    color: rgba(255,255,255,.78);
    font-size: .9rem;
    text-align:center;
    flex:1;
    min-width: 120px;
    padding: 0 8px;
  }
  .photo-close-top{
    position:absolute;
    top:14px;
    right:14px;
    z-index: 5;
  }

  @media (max-width: 576px){
    .modal-photo-view .modal-dialog{ padding:0 !important; }
    .modal-photo-view .modal-content{ border-radius:0; }
    .photo-toolbar{ padding:12px; }
    .photo-toolbar .meta{ font-size:.85rem; }
  }
  /* ========= /MODAL ========= */

  /* ========= ✅ Timeline — style track.php ========= */
  .timeline-wrap{ position: relative; padding: 8px 6px 6px 6px; }
  .timeline{ position: relative; margin: 0; padding: 0 0 0 22px; list-style: none; }
  .timeline::before{
    content:"";
    position:absolute;
    left: 10px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(148,163,184,.35), rgba(148,163,184,.10));
    border-radius: 99px;
  }
  .titem{ position: relative; padding: 12px 0; }
  .tdot{
    position:absolute; left: 2px; top: 18px;
    width: 18px; height: 18px; border-radius: 99px;
    background: #fff; border: 2px solid #94a3b8;
    box-shadow: 0 6px 14px rgba(15,23,42,.10);
  }
  .tdot.comment{ border-color: #0ea5e9; }
  .tdot.update{ border-color: #94a3b8; }
  .tcard{
    margin-left: 12px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
  }
  .tmeta{
    display:flex; align-items:flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 6px; flex-wrap: wrap;
  }
  .tleft{ display:flex; align-items:center; gap:8px; flex-wrap: wrap; }
  .tright{ display:flex; align-items:center; gap:10px; flex-wrap: wrap; justify-content: flex-end; }
  .badgetype{
    font-size:.70rem; font-weight:900; letter-spacing:.06em;
    border-radius:999px; padding: 4px 10px;
    border:1px solid #e6edf5; background:#f8fafc; color:#334155;
    text-transform: uppercase;
  }
  .badgetype.comment{ background: rgba(14,165,233,.10); border-color: rgba(14,165,233,.20); color:#075985; }
  .badgetype.update{ background: rgba(148,163,184,.18); border-color: rgba(148,163,184,.28); color:#334155; }
  .ttime{ font-size:.78rem; color:#64748b; white-space: nowrap; font-weight: 800; }
  .tname{ font-weight:900; color:#0f172a; font-size:.9rem; }
  .tbody{ margin-top: 8px; font-size:.95rem; color:#0f172a; white-space: pre-wrap; line-height: 1.45; }
  .timeline-empty{ color:#64748b; font-size: .95rem; padding: 10px 0; }
  .badgevis{
    font-size:.72rem; font-weight:800; padding:.25rem .55rem;
    border-radius:999px; border:1px solid #e6edf5; background:#fff;
  }
  .badgevis.public{ border-color:rgba(16,185,129,.35); color:#065f46; background:rgba(16,185,129,.10); }
  .badgevis.private{ border-color:rgba(100,116,139,.35); color:#334155; background:rgba(100,116,139,.10); }
  .pub-label{ font-size:.8rem; color:#64748b; }
  .btn-del{ font-size:.8rem; }

/* ===== Hérité de track.php ===== */
:root{
  --bg:#f6f8fb;
  --card:#fff;
  --border:#e6edf5;
  --muted:#64748b;
  --title:#0f172a;

  --primary:#0ea5e9;
  --slate:#94a3b8;

  --comment:#0ea5e9; /* commentaire */
  --update:#94a3b8;  /* mise à jour */

  --shadow: 0 10px 25px rgba(15,23,42,.06);
}

body{
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--title);
}

.wrap{
  max-width: 1280px; /* ✅ plus large */
  margin: 0 auto;
}

.cardx{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.section-label{
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .75rem;
  display:block;
}

.kv{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 16px;
  color:#0f172a;
  font-size: .92rem;
}
.kv .item{
  display:flex;
  gap:8px;
  align-items:baseline;
  min-width: 220px;
}
.kv .k{
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.kv .v{
  font-weight: 800;
}

.desc{
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  line-height: 1.55;
}

.mapbox{
  height: 320px;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
}

.thumb-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:10px;
}
.thumb-grid img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(15,23,42,.10);
  transition: transform .15s ease, filter .15s ease;
}
.thumb-grid img:hover { transform: translateY(-2px); filter: brightness(.95); }

/* mini stats pills */
.stat-row{ display:flex; flex-wrap:wrap; gap:10px; }
.stat-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: .80rem;
  font-weight: 900;
  color: #334155;
}
.stat-pill.blue{ background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.20); color:#075985; }
.stat-pill.gray{ background: rgba(148,163,184,.15); border-color: rgba(148,163,184,.25); color:#334155; }

/* ========= Timeline ========= */
.timeline-wrap{ position: relative; padding: 8px 6px 6px 6px; }
.timeline{
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(148,163,184,.35), rgba(148,163,184,.1));
  border-radius: 99px;
}
.titem{ position: relative; padding: 12px 0; }
.tdot{
  position:absolute;
  left: 2px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--slate);
  box-shadow: 0 6px 14px rgba(15,23,42,.10);
}
.tdot.comment{ border-color: var(--comment); }
.tdot.update{ border-color: var(--update); }

.tcard{
  margin-left: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

.tmeta{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.badgetype{
  font-size:.70rem;
  font-weight:900;
  letter-spacing:.06em;
  border-radius:999px;
  padding: 4px 10px;
  border:1px solid var(--border);
  background:#f8fafc;
  color:#334155;
}
.badgetype.comment{ background: rgba(14,165,233,.10); border-color: rgba(14,165,233,.20); color:#075985; }
.badgetype.update{ background: rgba(148,163,184,.18); border-color: rgba(148,163,184,.28); color:#334155; }

.ttime{
  font-size:.78rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 800;
}

.tbody{
  font-size:.95rem;
  color:#0f172a;
  white-space: pre-wrap;
  line-height: 1.45;
}

.timeline-empty{ color: var(--muted); font-size: .95rem; padding: 10px 0; }

/* Modal Photo */
.modal-photo-view .modal-content { background: transparent; border: none; }
#modalImage { border-radius: 14px; max-height: 85vh; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.modal-backdrop.show { opacity: 0.85; }

/* ===== Hérité de users.php ===== */
/* ✅ Full width (uniquement users.php) */
  html.users-fullwidth .wrap,
  html.users-fullwidth .app-wrap{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.users-fullwidth main.container,
  html.users-fullwidth main.container-fluid,
  html.users-fullwidth main.container-sm,
  html.users-fullwidth main.container-md,
  html.users-fullwidth main.container-lg,
  html.users-fullwidth main.container-xl,
  html.users-fullwidth main.container-xxl,
  html.users-fullwidth .container,
  html.users-fullwidth .container-sm,
  html.users-fullwidth .container-md,
  html.users-fullwidth .container-lg,
  html.users-fullwidth .container-xl,
  html.users-fullwidth .container-xxl{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.users-fullwidth main.container{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  @media (min-width: 992px){
    html.users-fullwidth main.container{
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  }

/* ===== Hérité de user_edit.php ===== */
/* ✅ Full width (uniquement user_edit.php) — même style que mairie_edit.php */
  html.useredit-fullwidth .wrap,
  html.useredit-fullwidth .app-wrap{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.useredit-fullwidth main.container,
  html.useredit-fullwidth main.container-fluid,
  html.useredit-fullwidth main.container-sm,
  html.useredit-fullwidth main.container-md,
  html.useredit-fullwidth main.container-lg,
  html.useredit-fullwidth main.container-xl,
  html.useredit-fullwidth main.container-xxl,
  html.useredit-fullwidth .container,
  html.useredit-fullwidth .container-sm,
  html.useredit-fullwidth .container-md,
  html.useredit-fullwidth .container-lg,
  html.useredit-fullwidth .container-xl,
  html.useredit-fullwidth .container-xxl{
    max-width: 100% !important;
    width: 100% !important;
  }
  html.useredit-fullwidth main.container,
  html.useredit-fullwidth main.container-fluid{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  @media (min-width: 992px){
    html.useredit-fullwidth main.container,
    html.useredit-fullwidth main.container-fluid{
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  }

  /* ✅ Le formulaire prend toute la largeur */
  html.useredit-fullwidth .form-card{
    width: 100%;
    max-width: 100%;
  }

  :root {
      --admin-bg: #f4f7fa;
      --primary-indigo: #4f46e5;
      --radius-lg: 12px;
  }
  body { background-color: var(--admin-bg); font-family: 'Inter', system-ui, sans-serif; }

  .form-card {
      background: white; border: none; border-radius: var(--radius-lg);
      box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); padding: 2rem;
  }

  .form-section-title {
      font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.05em; color: var(--primary-indigo);
      margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px;
  }
  .form-section-title::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

  .form-label { font-weight: 600; color: #334155; font-size: 0.9rem; }

  .form-control, .form-select {
      padding: 0.75rem 1rem; border-radius: 8px; border: 1.5px solid #e2e8f0;
      transition: all 0.2s;
  }
  .form-control:focus, .form-select:focus {
      border-color: var(--primary-indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  }

  .btn-action { font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 8px; transition: all 0.2s; }

  .status-box {
      background: #f8fafc; border: 1px solid #e2e8f0;
      padding: 1rem; border-radius: 8px;
  }

  .input-group-text { background-color: #f8fafc; border-color: #e2e8f0; color: #64748b; }
  .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* ===== Hérité de offline.html ===== */
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; margin:0; background:#f6f8fb; color:#0f172a}
    .wrap{max-width:720px; margin:10vh auto; padding:24px}
    .card{background:#fff; border:1px solid rgba(15,23,42,.10); border-radius:16px; padding:18px; box-shadow:0 10px 30px rgba(15,23,42,.06)}
    .muted{color:#64748b}
    button{border:0; background:#4F46E5; color:#fff; padding:10px 14px; border-radius:12px; cursor:pointer}


/* ===== Fix débordements mobile cards / dashboard ===== */
html, body {
  overflow-x: hidden;
}

.row > [class*="col-"] {
  min-width: 0;
}

.dash-card,
.kpi,
.filter-bar,
.dashboard-card,
.table-responsive,
.dataTables_wrapper,
.dataTables_wrapper .row,
.dataTables_wrapper .col-sm-12,
.dataTables_wrapper .col-md-6,
.chart-wrap {
  min-width: 0;
  max-width: 100%;
}

.chart-wrap canvas {
  max-width: 100% !important;
}

@media (max-width: 767.98px) {
  .dash-card,
  .kpi,
  .filter-bar,
  .dashboard-card {
    overflow: hidden;
  }

  .table-responsive {
    overflow-x: hidden;
  }

  .table-stack-mobile tbody td,
  .table-stack-mobile tbody td > *,
  .table-stack-mobile tbody td .small,
  .table-stack-mobile tbody td .fw-semibold,
  .table-stack-mobile tbody td .fw-bold,
  .table-stack-mobile tbody td .truncate,
  .table-stack-mobile tbody td .truncate-multiline,
  .table-stack-mobile tbody td img {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .table-stack-mobile tbody td .truncate,
  .table-stack-mobile tbody td .truncate-multiline {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
  }

  .table-stack-mobile tbody td .badge,
  .table-stack-mobile tbody td .status-chip,
  .table-stack-mobile tbody td .status-badge {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .table-stack-mobile tbody td > .btn,
  .table-stack-mobile tbody td .btn {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .table-stack-mobile tbody td .btn-group,
  .table-stack-mobile tbody td .d-flex,
  .table-stack-mobile tbody td .dropdown,
  .table-stack-mobile tbody td .input-group {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .dataTables_filter,
  .dataTables_filter label,
  .dataTables_filter input,
  .dataTables_length,
  .dataTables_length label,
  .dataTables_length select {
    max-width: 100%;
  }

  .dataTables_filter input,
  .dataTables_length select {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* ===== Fix complémentaire DataTables mobile (rows/gutters) ===== */
@media (max-width: 767.98px) {
  .dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .dataTables_wrapper > .row,
  .dataTables_wrapper .row {
    --bs-gutter-x: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  .dataTables_wrapper > .row > [class*="col-"],
  .dataTables_wrapper .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .dataTables_wrapper table,
  .dataTables_wrapper .table,
  .table-stack-mobile,
  .table-stack-mobile tbody,
  .table-stack-mobile tbody tr,
  .table-stack-mobile tbody td {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .table-stack-mobile {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }
}
