/* ═══════════════════════════════════════════════════════════════════════════
   InfraX QMS — generic-proc-module.css  v6
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Panel ────────────────────────────────────────────────────────────────── */
#generic-proc-panel { position:fixed; inset:0; background:#f7f8fa; z-index:300; display:flex; flex-direction:column; overflow:hidden; }
#generic-proc-panel.hidden { display:none !important; }

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.gpm-topbar { display:flex; align-items:center; justify-content:space-between; height:56px; padding:0 20px; background:#e72c85 !important; border-bottom:1.5px solid rgba(255,255,255,.18); box-shadow:0 2px 12px rgba(0,0,0,.18); flex-shrink:0; gap:12px; }
.gpm-topbar-left { display:flex; align-items:center; gap:8px; flex:1; min-width:0; overflow:hidden; }
.gpm-btn-back, .gpm-btn-home { display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border:none; border-radius:6px; background:transparent; font-size:13px; font-weight:500; color:rgba(255,255,255,.84); cursor:pointer; white-space:nowrap; flex-shrink:0; transition:background .12s,color .12s; font-family:inherit; }
.gpm-btn-back:hover, .gpm-btn-home:hover { background:rgba(255,255,255,.15); color:#fff; }
.gpm-topbar-sep { width:1px; height:18px; background:rgba(255,255,255,.28); flex-shrink:0; }
.gpm-proc-badge { display:inline-flex; align-items:center; padding:2px 8px; background:rgba(255,255,255,.2); color:#fff; border-radius:4px; font-size:10px; font-weight:700; letter-spacing:.5px; font-family:var(--mono,'DM Mono',monospace); white-space:nowrap; flex-shrink:0; }
.gpm-topbar-title { font-size:15px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:-.2px; }
.gpm-topbar-brand { display:flex; align-items:center; gap:6px; flex-shrink:0; color:#fff; }
.gpm-topbar-brand svg { color:#fff; stroke:currentColor; }
/* ── Corps ────────────────────────────────────────────────────────────────── */
.gpm-body { display:flex; flex:1; overflow:hidden; min-height:0; }

/* ── Sidebar navigation ───────────────────────────────────────────────────── */
.gpm-sidebar { width:240px; flex-shrink:0; background:#fff; border-right:1.5px solid #ececec; display:flex; flex-direction:column; overflow-y:auto; padding:10px 6px 24px; gap:1px; }
.gpm-sidebar-loading { display:flex; justify-content:center; padding:24px 0; }
.gpm-nav-section-label { font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#b0b7c3; padding:8px 10px 3px; }
.gpm-nav-item { display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:7px; border:none; background:transparent; font-size:13px; font-weight:500; color:#4b5563; cursor:pointer; text-align:left; width:100%; transition:background .1s,color .1s; font-family:inherit; min-width:0; flex-shrink:0; }
.gpm-nav-item:hover  { background:#f5f3ff; color:#3730a3; }
.gpm-nav-item.active { background:#ede9fe; color:#4338ca; font-weight:700; }
.gpm-nav-item.active svg { stroke:#4338ca; }
.gpm-nav-doc-label { display:flex; flex-direction:column; flex:1; min-width:0; gap:1px; }
.gpm-nav-doc-ref   { font-family:var(--mono,'DM Mono',monospace); font-size:11px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gpm-nav-doc-title { font-size:10.5px; font-weight:400; color:#9ca3af; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gpm-nav-item.active .gpm-nav-doc-title { color:#7c6ec4; }
.gpm-nav-fr-badge  { flex-shrink:0; background:#f0f0f0; color:#9ca3af; border-radius:10px; font-size:10px; font-weight:700; padding:1px 7px; min-width:20px; text-align:center; }
.gpm-nav-item.active .gpm-nav-fr-badge { background:#c4b5fd; color:#4338ca; }
.gpm-nav-sep { height:1px; background:#f3f4f6; margin:6px 4px; flex-shrink:0; }

/* ── Content ──────────────────────────────────────────────────────────────── */
.gpm-content { flex:1; overflow-y:auto; padding:28px 32px 48px; background:#f7f8fa; min-width:0; }
.gpm-loading-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; height:200px; color:#9ca3af; font-size:13px; }

/* Vue FR : pas de padding, overflow hidden → split gère le scroll */
.gpm-content:has(.gpm-fr-split-view) { padding:0; overflow:hidden; }

/* ── View header ──────────────────────────────────────────────────────────── */
.gpm-view-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:24px; gap:16px; flex-wrap:wrap; }
.gpm-view-title { font-size:20px; font-weight:800; color:#1e1b4b; margin:0 0 5px; line-height:1.2; }
.gpm-view-sub   { font-size:13px; color:#6b7280; margin:0; }

/* ── KPI ──────────────────────────────────────────────────────────────────── */
.gpm-kpi-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:14px; margin-bottom:30px; }
.gpm-kpi-card { background:#fff; border:1.5px solid #ececec; border-radius:12px; padding:18px 20px; position:relative; overflow:hidden; transition:transform .12s,box-shadow .12s; }
.gpm-kpi-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.07); }
.gpm-kpi-card.gpm-kpi-primary { background:#ede9fe; border-color:#c4b5fd; }
.gpm-kpi-value { font-size:34px; font-weight:800; color:#1e1b4b; line-height:1; margin-bottom:5px; }
.gpm-kpi-primary .gpm-kpi-value { color:#4338ca; }
.gpm-kpi-label { font-size:12px; color:#6b7280; font-weight:500; }
.gpm-kpi-primary .gpm-kpi-label { color:#5b21b6; }
.gpm-kpi-icon  { position:absolute; right:14px; top:14px; font-size:22px; opacity:.25; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.gpm-section { margin-bottom:32px; }
.gpm-section-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.7px; color:#374151; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.gpm-count-pill { background:#f0f0f0; color:#6b7280; border-radius:10px; font-size:10px; font-weight:700; padding:1px 8px; text-transform:none; letter-spacing:0; }

/* ── Doc meta bar ─────────────────────────────────────────────────────────── */
.gpm-doc-meta-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 14px; background:#fafafa; border:1.5px solid #ececec; border-radius:8px; margin-bottom:12px; font-size:13px; }

/* ── Embed ────────────────────────────────────────────────────────────────── */
.gpm-embed-wrap { border-radius:10px; overflow:hidden; border:1.5px solid #ececec; background:#fff; }
.gpm-doc-embed { display:block; width:100%; height:640px; border:none; background:#f9f9f9; }
.gpm-doc-embed-sm { height:420px; }

/* ── Non validé ───────────────────────────────────────────────────────────── */
.gpm-not-validated { display:flex; align-items:center; gap:16px; padding:18px 22px; background:#fffbeb; border:1.5px solid #fde68a; border-left:4px solid #f59e0b; border-radius:10px; flex-wrap:wrap; }
.gpm-not-validated-icon { font-size:24px; flex-shrink:0; }
.gpm-not-validated-body { flex:1; min-width:200px; }
.gpm-not-validated-title { font-size:14px; font-weight:700; color:#92400e; margin-bottom:3px; }
.gpm-not-validated-sub   { font-size:12px; color:#b45309; line-height:1.5; }

/* ── Drive fallback ───────────────────────────────────────────────────────── */
.gpm-drive-fallback { display:flex; align-items:center; gap:16px; padding:20px 24px; background:#f8f9fa; border:1.5px solid #e5e7eb; border-radius:10px; flex-wrap:wrap; }
.gpm-drive-fallback-icon  { font-size:32px; flex-shrink:0; }
.gpm-drive-fallback-body  { flex:1; min-width:200px; }
.gpm-drive-fallback-title { font-size:15px; font-weight:700; color:#1e1b4b; }
.gpm-drive-fallback-sub   { font-size:12px; color:#9ca3af; margin-top:4px; }

/* ── Cartes document ──────────────────────────────────────────────────────── */
.gpm-doc-row { display:flex; flex-direction:column; gap:10px; }
.gpm-doc-card { display:flex; align-items:center; gap:14px; padding:14px 18px; background:#fff; border:1.5px solid #ececec; border-radius:10px; cursor:pointer; transition:border-color .12s,background .12s,transform .1s; text-align:left; }
.gpm-doc-card:hover { border-color:#6366f1; background:#fafaff; transform:translateX(2px); }
.gpm-doc-card-fr { border-left:4px solid #6366f1; }
.gpm-doc-card-wi { border-left:4px solid #f59e0b; }
.gpm-doc-card-icon { font-size:22px; flex-shrink:0; }
.gpm-doc-card-body { flex:1; min-width:0; }
.gpm-doc-card-ref  { font-family:var(--mono,monospace); font-size:10px; color:#9ca3af; font-weight:600; margin-bottom:2px; }
.gpm-doc-card-title{ font-size:14px; font-weight:600; color:#1e1b4b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gpm-doc-card-meta { display:flex; align-items:center; gap:8px; margin-top:5px; flex-wrap:wrap; }
.gpm-doc-card-open { flex-shrink:0; font-size:12px; font-weight:600; color:#6366f1; padding:4px 12px; border:1.5px solid #c4b5fd; border-radius:6px; white-space:nowrap; transition:background .1s; }
.gpm-doc-card:hover .gpm-doc-card-open { background:#ede9fe; }
.gpm-doc-version   { font-size:10px; font-weight:600; font-family:var(--mono,monospace); padding:1px 6px; background:#f3f4f6; border-radius:4px; color:#6b7280; }
.gpm-doc-none      { padding:14px 18px; background:#fafafa; border:1.5px dashed #e5e7eb; border-radius:10px; font-size:13px; color:#9ca3af; display:flex; align-items:center; gap:10px; }
.gpm-pdf-pill      { font-size:10px; font-weight:700; padding:2px 7px; background:#f0fdf4; color:#15803d; border:1px solid #86efac66; border-radius:4px; white-space:nowrap; }
.gpm-notvalid-pill { font-size:10px; font-weight:700; padding:2px 7px; background:#fffbeb; color:#92400e; border:1px solid #fde68a; border-radius:4px; white-space:nowrap; }
.gpm-drive-pill    { font-size:10px; font-weight:600; padding:2px 7px; background:#f3f4f6; color:#6b7280; border:1px solid #e5e7eb; border-radius:4px; white-space:nowrap; }
.gpm-pdf-dot       { font-size:11px; }

/* ── Logigramme ───────────────────────────────────────────────────────────── */
.gpm-flowchart-container { border-radius:10px; overflow:hidden; border:1.5px solid #e8cdd9; min-height:300px; }

/* ── Status ───────────────────────────────────────────────────────────────── */
.gpm-status-badge { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; background:#f3f4f6; color:#374151; white-space:nowrap; }
.gpm-status-badge-approved           { background:#f0fdf4; color:#15803d; }
.gpm-status-badge-in_review          { background:#eff6ff; color:#1d4ed8; }
.gpm-status-badge-pending_approval   { background:#fef9c3; color:#a16207; }
.gpm-status-badge-under_change       { background:#fff7ed; color:#c2410c; }
.gpm-status-badge-draft              { background:#f9fafb; color:#9ca3af; }
.gpm-status-badge-obsolete           { background:#1f2937; color:#d1d5db; }
.gpm-status-dot { font-size:11px; font-weight:600; color:#374151; white-space:nowrap; }

/* ── Liens & refs ─────────────────────────────────────────────────────────── */
.gpm-link { color:#6366f1; text-decoration:none; font-weight:600; font-size:12px; }
.gpm-link:hover { text-decoration:underline; opacity:.8; }
.gpm-link-pdf { color:#15803d !important; }
.gpm-ref-badge { display:inline-block; font-family:var(--mono,monospace); font-size:11px; font-weight:700; padding:2px 8px; background:#ede9fe; color:#5b21b6; border-radius:4px; white-space:nowrap; }
.gpm-ref-sm    { font-family:var(--mono,monospace); font-size:10.5px; color:#9ca3af; padding:1px 5px; background:#f3f4f6; border-radius:3px; }

/* ── Tableau EN (dashboard) ───────────────────────────────────────────────── */
.gpm-en-table-wrap { overflow-x:auto; border-radius:10px; border:1.5px solid #ececec; background:#fff; }
.gpm-en-table { width:100%; border-collapse:collapse; font-size:13px; min-width:400px; }
.gpm-en-table thead tr { border-bottom:1.5px solid #f3f4f6; background:#fafafa; }
.gpm-en-table th { padding:10px 14px; text-align:left; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.55px; color:#9ca3af; white-space:nowrap; }
.gpm-en-table td { padding:10px 14px; border-bottom:1px solid #f9fafb; color:#374151; vertical-align:middle; }
.gpm-en-table tbody tr:hover { background:#f5f3ff; cursor:pointer; }
.gpm-en-table tbody tr:last-child td { border-bottom:none; }

/* ═══════════════════════════════════════════════════════════════════════════
   VUE FR — SPLIT STYLE CAPA
═══════════════════════════════════════════════════════════════════════════ */
.gpm-fr-split-view { display:flex; flex-direction:column; height:100%; overflow:hidden; }

.gpm-fr-split-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; background:#fff; border-bottom:1.5px solid #ececec; flex-shrink:0; flex-wrap:wrap; }
.gpm-fr-split-title  { font-size:14px; font-weight:800; color:#1e1b4b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.gpm-fr-split-body { display:flex; flex:1; overflow:hidden; min-height:0; }

/* ── Liste EN (colonne gauche) ───────────────────────────────────────────── */
.gpm-en-list-col { width:220px; min-width:220px; flex-shrink:0; background:#fafafa; border-right:1.5px solid #ececec; display:flex; flex-direction:column; overflow:hidden; }
.gpm-en-list-search { display:flex; align-items:center; gap:6px; padding:8px 10px; border-bottom:1px solid #ececec; background:#fff; flex-shrink:0; }
.gpm-en-list-search svg { color:#9ca3af; flex-shrink:0; }
.gpm-en-list-search input { flex:1; border:none; outline:none; font-size:12px; color:#374151; background:transparent; font-family:inherit; }
#gpm-en-list-items { flex:1; overflow-y:auto; }

.gpm-en-list-item { padding:10px 12px; cursor:pointer; border-bottom:1px solid #f0f0f0; border-left:3px solid transparent; transition:background .1s; }
.gpm-en-list-item:hover { background:#f5f3ff; }
.gpm-en-list-item.selected { background:#fdf2f8; border-left-color:#d54084; }
.gpm-en-list-item-top { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-bottom:3px; }
.gpm-en-list-ref    { font-size:11px; font-weight:800; color:#5b21b6; font-family:var(--mono,monospace); letter-spacing:.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gpm-en-list-status { font-size:12px; flex-shrink:0; }
.gpm-en-list-title  { font-size:11px; color:#374151; line-height:1.35; margin-bottom:4px; }
.gpm-en-list-meta   { display:flex; align-items:center; gap:5px; font-size:10px; color:#9ca3af; }
.gpm-en-list-empty  { padding:20px; text-align:center; font-size:12px; color:#9ca3af; line-height:1.5; }

/* ── Détail EN (colonne droite) ──────────────────────────────────────────── */
.gpm-en-detail-col   { flex:1; display:flex; overflow:hidden; min-width:0; }
.gpm-en-detail-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#9ca3af; text-align:center; padding:40px; }
.gpm-en-detail-loading { flex:1; display:flex; align-items:center; justify-content:center; }

.gpm-en-detail-inner { display:flex; flex-direction:column; flex:1; overflow:hidden; }

.gpm-en-detail-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 16px; background:#fff; border-bottom:1.5px solid #ececec; flex-shrink:0; flex-wrap:wrap; }
.gpm-en-detail-bar-left  { display:flex; align-items:center; gap:8px; min-width:0; flex:1; overflow:hidden; }
.gpm-en-detail-bar-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.gpm-en-detail-bar-title { font-size:13px; font-weight:600; color:#1e1b4b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── Bouton toggle méta ──────────────────────────────────────────────────── */
.gpm-btn-meta-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, border-color .12s, color .12s;
}
.gpm-btn-meta-toggle:hover { border-color:#6366f1; color:#4338ca; background:#f5f3ff; }
.gpm-btn-meta-toggle.active { background:#ede9fe; border-color:#c4b5fd; color:#4338ca; }

/* ── Contenu : iframe + panneau méta collapsible ─────────────────────────── */
.gpm-en-detail-content { display:flex; flex:1; overflow:hidden; min-height:0; }

.gpm-en-detail-preview { flex:1; overflow:hidden; display:flex; flex-direction:column; min-width:0; }
.gpm-en-embed { display:block; width:100%; flex:1; border:none; background:#f9f9f9; min-height:0; }

/* Panneau méta : replié par défaut (width:0, overflow:hidden) */
.gpm-en-detail-meta {
  width: 0;
  flex-shrink: 0;
  overflow: hidden;
  background: #f7f8fa;
  border-left: 0 solid #ececec;
  transition: width .22s ease, border-left-width .22s ease, padding .22s ease;
  display: flex;
  flex-direction: column;
}
.gpm-en-detail-meta-inner { display:flex; flex-direction:column; gap:12px; padding:0; opacity:0; transition:opacity .15s ease .1s; width:260px; }

/* Panneau méta ouvert */
.gpm-en-detail-content.meta-open .gpm-en-detail-meta {
  width: 260px;
  border-left-width: 1.5px;
  overflow-y: auto;
}
.gpm-en-detail-content.meta-open .gpm-en-detail-meta-inner {
  opacity: 1;
  padding: 14px;
}

/* ── Bouton "Nouvel enregistrement" (compact) ─────────────────────────────── */
.gpm-btn-generate-sm { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; background:#6366f1; color:#fff; border:none; border-radius:7px; font-size:12px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap; transition:background .12s; }
.gpm-btn-generate-sm:hover { background:#4f46e5; }

/* ── Boutons génériques ───────────────────────────────────────────────────── */
.gpm-btn-sm { display:inline-flex; align-items:center; gap:5px; padding:5px 13px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; transition:background .1s,border-color .1s,color .1s; white-space:nowrap; text-decoration:none; }
.gpm-btn-outline { background:#fff; border:1.5px solid #e5e7eb; color:#374151; }
.gpm-btn-outline:hover { border-color:#6366f1; color:#4338ca; background:#f5f3ff; }
.gpm-btn-primary-outline { background:#fff; border:1.5px solid #6366f1; color:#4338ca; font-weight:700; }
.gpm-btn-primary-outline:hover { background:#ede9fe; }

/* ── Empty states ─────────────────────────────────────────────────────────── */
.gpm-empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:64px 32px; color:#9ca3af; text-align:center; }
.gpm-empty-icon  { font-size:38px; opacity:.55; }
.gpm-empty-title { font-size:15px; font-weight:700; color:#6b7280; }
.gpm-empty-sub   { font-size:13px; color:#9ca3af; max-width:320px; line-height:1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   VUE DR — lecteur 2 colonnes (sans nav bar)
═══════════════════════════════════════════════════════════════════════════ */
.gpm-view-reader { display:flex; flex-direction:column; }
.gpm-reader-title { font-size:18px; font-weight:800; color:#1e1b4b; margin-bottom:20px; }
.gpm-reader-layout { display:grid; grid-template-columns:1fr 300px; gap:24px; align-items:start; }
@media (max-width:1000px) { .gpm-reader-layout { grid-template-columns:1fr; } }
.gpm-reader-preview { min-width:0; }
.gpm-reader-meta { display:flex; flex-direction:column; gap:16px; position:sticky; top:0; }
.gpm-reader-section { background:#fff; border:1.5px solid #ececec; border-radius:10px; padding:16px 18px; }
.gpm-reader-section-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:#374151; margin-bottom:12px; }
.gpm-meta-list { display:flex; flex-direction:column; gap:8px; }
.gpm-meta-row  { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-size:12px; }
.gpm-meta-label { color:#9ca3af; font-weight:500; white-space:nowrap; flex-shrink:0; }
.gpm-meta-val   { color:#374151; font-weight:600; text-align:right; min-width:0; word-break:break-word; }
.gpm-version-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid #f3f4f6; font-size:12px; }
.gpm-version-row:last-child { border-bottom:none; }
.gpm-version-row.current { background:#fafafa; border-radius:6px; padding:8px 10px; margin:-2px; }
.gpm-version-reason { flex:1; color:#374151; }
.gpm-version-date   { color:#9ca3af; white-space:nowrap; }
.gpm-audit-list { display:flex; flex-direction:column; gap:8px; }
.gpm-audit-row  { display:flex; align-items:flex-start; gap:10px; }
.gpm-audit-dot  { width:8px; height:8px; border-radius:50%; background:#6366f1; flex-shrink:0; margin-top:4px; }
.gpm-audit-body { flex:1; min-width:0; }
.gpm-audit-action { font-size:12px; font-weight:600; color:#374151; }
.gpm-audit-meta   { font-size:11px; color:#9ca3af; margin-top:1px; }

/* Vue DR : même comportement que FR (full-height, pas de padding) */
.gpm-content:has(.gpm-dr-view) { padding:0; overflow:hidden; }

.gpm-dr-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARTES PROCESS-DASH génériques
═══════════════════════════════════════════════════════════════════════════ */
.proc-module-card-generic { cursor:pointer; position:relative; }
.proc-module-card-generic::after { content:'Générique'; position:absolute; top:8px; right:8px; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; padding:2px 6px; background:#f5f3ff; color:#7c3aed; border:1px solid #c4b5fd; border-radius:4px; }
.proc-modules-section-sep { grid-column:1/-1; display:flex; align-items:center; gap:10px; padding:8px 0 4px; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:#9ca3af; }
.proc-modules-section-sep::before,.proc-modules-section-sep::after { content:''; flex:1; height:1px; background:#ececec; }
/* ════════════════════════════════════════════════════════════════
   Bannière d'intégrité documentaire
   ════════════════════════════════════════════════════════════════ */
.gpm-integrity-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  background: #fffbeb;
  border-bottom: 2px solid #f59e0b;
  font-size: 12px;
  color: #92400e;
  z-index: 10;
  flex-shrink: 0;
}
.gpm-integrity-banner.hidden { display: none; }
.gpm-integrity-banner-warn {
  background: #fffbeb;
  border-color: #f59e0b;
}
.gpm-integrity-banner-error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
.gpm-integrity-icon { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.gpm-integrity-body { flex: 1; min-width: 0; }
.gpm-integrity-title { font-weight: 700; margin-bottom: 2px; }
.gpm-integrity-detail { line-height: 1.6; }
.gpm-integrity-close {
  background: none; border: none; cursor: pointer; font-size: 16px;
  color: #92400e; padding: 0 4px; flex-shrink: 0; line-height: 1;
  opacity: 0.7;
}
.gpm-integrity-close:hover { opacity: 1; }

/* Badge d'intégrité sur un titre FR */
.gpm-integrity-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
  cursor: default;
}