/* GestLoc Design System V0 (G63) — bibliothèque de composants préfixés gl-, jetons --gl-*.
   PORTÉE : tout est sous `.gl-ds` (racine explicite posée par la coque ou par une page migrée). Aucun sélecteur générique non isolé (.modal, .btn, .table, .form-control, body…).
   Référence graphique : G61 (page Opérations) + fenêtres G60. Contrastes vérifiés par axe-core (voir rapport G63). */
.gl-ds {
  /* — marque */
  --gl-nuit: #1A3B5D; --gl-nuit-900: #0F2239; --gl-nuit-700: #14304c; --gl-nuit-100: #CFDBE8; --gl-nuit-50: #E6EDF5;
  --gl-vert: #7BC043; --gl-vert-texte: #2F6F1A; --gl-vert-50: #EEF7E6;
  /* — neutres */
  --gl-bg: #F8FAFC; --gl-surface: #FFFFFF; --gl-surface-2: #F1F5F9; --gl-ink: #0F172A; --gl-text: #334155; --gl-muted: #5B6B80; --gl-line: #E2E8F0; --gl-line-strong: #8492A6;
  /* — états */
  --gl-ok-bg: #DCFCE7; --gl-ok: #166534; --gl-warn-bg: #FEF3C7; --gl-warn: #92400E; --gl-bad-bg: #FEE2E2; --gl-bad: #991B1B; --gl-info-bg: #DBEAFE; --gl-info: #1E40AF;
  --gl-focus: #1A3B5D; --gl-focus-on-dark: #FFFFFF;
  /* — typographie */
  --gl-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gl-fs-12: 12px; --gl-fs-13: 13px; --gl-fs-14: 14px; --gl-fs-16: 16px; --gl-fs-18: 18px; --gl-fs-20: 20px; --gl-fs-24: 24px; --gl-fs-30: 30px;
  /* — espacement, rayons, ombres */
  --gl-s1: 4px; --gl-s2: 8px; --gl-s3: 12px; --gl-s4: 16px; --gl-s5: 24px; --gl-s6: 32px; --gl-s7: 48px;
  --gl-r1: 6px; --gl-r2: 8px; --gl-r3: 12px; --gl-r4: 14px; --gl-pill: 999px;
  --gl-shadow-1: 0 1px 2px rgba(15,23,42,.06); --gl-shadow-2: 0 10px 28px rgba(15,23,42,.12), 0 1px 3px rgba(15,23,42,.06); --gl-shadow-modal: 0 28px 72px rgba(8,17,32,.55), 0 6px 16px rgba(8,17,32,.25);
  /* — gabarits */
  --gl-nav-h: 64px; --gl-w-reg: min(calc(100vw - 48px), 1480px); --gl-w-form: 920px; --gl-w-dash: 1320px; --gl-w-admin: 1240px; --gl-w-saas: 1320px; --gl-w-bottombar: 60px;
  font-family: var(--gl-font); font-size: var(--gl-fs-14); line-height: 1.5; color: var(--gl-text);
}
.gl-ds *, .gl-ds *::before, .gl-ds *::after { box-sizing: border-box; }
.gl-ds :focus-visible { outline: 2px solid var(--gl-focus); outline-offset: 2px; }
.gl-ds .gl-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gl-ds.gl-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--gl-nuit); padding: 8px 12px; border-radius: var(--gl-r2); z-index: 2000; font-weight: 600; } .gl-ds.gl-skip:focus { left: 8px; }
.gl-ds .gl-ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gl-ds .gl-h1, .gl-ds .gl-h2, .gl-ds .gl-h3 { color: var(--gl-ink); margin: 0; font-weight: 600; line-height: 1.25; } .gl-ds .gl-h1 { font-size: var(--gl-fs-24); letter-spacing: -.01em; } .gl-ds .gl-h2 { font-size: var(--gl-fs-18); } .gl-ds .gl-h3 { font-size: var(--gl-fs-16); }

/* ── largeurs de page (modes) ─────────────────────────────────────── */
.gl-ds .gl-page { width: 100%; margin: 0 auto; padding: var(--gl-s5) 24px var(--gl-s6); }
.gl-ds .gl-page--reg { max-width: var(--gl-w-reg); } .gl-ds .gl-page--form { max-width: var(--gl-w-form); } .gl-ds .gl-page--dash { max-width: var(--gl-w-dash); } .gl-ds .gl-page--admin { max-width: var(--gl-w-admin); } .gl-ds .gl-page--saas { max-width: var(--gl-w-saas); }
.gl-ds .gl-pagehead { display: flex; align-items: center; justify-content: space-between; gap: var(--gl-s3); flex-wrap: wrap; margin-bottom: var(--gl-s4); }
.gl-ds .gl-pagehead__sub { color: var(--gl-muted); font-size: var(--gl-fs-13); margin-top: 2px; } .gl-ds .gl-pagehead__tools { display: flex; gap: var(--gl-s2); flex-wrap: wrap; align-items: center; }
.gl-ds .gl-crumbs { font-size: var(--gl-fs-13); color: var(--gl-muted); margin-bottom: var(--gl-s2); } .gl-ds .gl-crumbs a { color: var(--gl-muted); text-decoration: none; } .gl-ds .gl-crumbs a:hover { text-decoration: underline; }

/* ── boutons ──────────────────────────────────────────────────────── */
.gl-ds .gl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--gl-line-strong); border-radius: var(--gl-r2); background: var(--gl-surface); color: var(--gl-ink); font: 600 var(--gl-fs-13)/1 var(--gl-font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.gl-ds .gl-btn:hover { background: var(--gl-surface-2); }
.gl-ds .gl-btn--primary { background: var(--gl-nuit); border-color: var(--gl-nuit); color: #fff; } .gl-ds .gl-btn--primary:hover { background: var(--gl-nuit-900); border-color: var(--gl-nuit-900); }
.gl-ds .gl-btn--ghost { border-color: transparent; background: transparent; color: var(--gl-nuit); } .gl-ds .gl-btn--ghost:hover { background: var(--gl-nuit-50); }
.gl-ds .gl-btn--danger { background: var(--gl-bad); border-color: var(--gl-bad); color: #fff; } .gl-ds .gl-btn--danger:hover { background: #7F1D1D; border-color: #7F1D1D; }
.gl-ds .gl-btn--danger-o { background: #fff; border-color: #B91C1C; color: var(--gl-bad); } .gl-ds .gl-btn--danger-o:hover { background: var(--gl-bad-bg); }
.gl-ds .gl-btn--sm { min-height: 30px; padding: 0 10px; font-size: var(--gl-fs-12); } .gl-ds .gl-btn--icon { width: 36px; padding: 0; }
.gl-ds .gl-btn[disabled], .gl-ds .gl-btn[aria-disabled="true"] { background: var(--gl-surface-2); border-color: var(--gl-line); color: #64748B; cursor: not-allowed; }
.gl-ds .gl-btn.is-loading { position: relative; color: transparent; pointer-events: none; } .gl-ds .gl-btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid; border-color: var(--gl-nuit) transparent var(--gl-nuit) transparent; border-radius: 50%; animation: gl-spin .8s linear infinite; } .gl-ds .gl-btn--primary.is-loading::after { border-color: #fff transparent #fff transparent; }
@keyframes gl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gl-ds *, .gl-ds *::before, .gl-ds *::after { animation-duration: .001ms !important; transition: none !important; } }

/* ── badges ───────────────────────────────────────────────────────── */
.gl-ds .gl-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--gl-pill); font-size: var(--gl-fs-12); font-weight: 600; line-height: 18px; background: var(--gl-surface-2); color: var(--gl-text); }
.gl-ds .gl-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gl-ds .gl-badge--ok { background: var(--gl-ok-bg); color: var(--gl-ok); } .gl-ds .gl-badge--warn { background: var(--gl-warn-bg); color: var(--gl-warn); } .gl-ds .gl-badge--bad { background: var(--gl-bad-bg); color: var(--gl-bad); } .gl-ds .gl-badge--info { background: var(--gl-info-bg); color: var(--gl-info); } .gl-ds .gl-badge--brand { background: var(--gl-nuit-50); color: var(--gl-nuit); }
.gl-ds .gl-tag { display: inline-block; padding: 0 6px; border: 1px solid var(--gl-line-strong); border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--gl-text); line-height: 16px; }

/* ── cartes, grilles ──────────────────────────────────────────────── */
.gl-ds .gl-card { background: var(--gl-surface); border: 1px solid var(--gl-line); border-radius: var(--gl-r3); box-shadow: var(--gl-shadow-1); }
.gl-ds .gl-card__h { display: flex; align-items: center; justify-content: space-between; gap: var(--gl-s3); padding: 14px 20px; border-bottom: 1px solid var(--gl-line); } .gl-ds .gl-card__h .gl-h2 { font-size: var(--gl-fs-16); }
.gl-ds .gl-card__b { padding: 20px; } .gl-ds .gl-card__f { padding: 12px 20px; border-top: 1px solid var(--gl-line); background: var(--gl-bg); border-radius: 0 0 var(--gl-r3) var(--gl-r3); display: flex; gap: var(--gl-s2); justify-content: flex-end; }
.gl-ds .gl-stack { display: flex; flex-direction: column; gap: var(--gl-s4); }
.gl-ds .gl-grid { display: grid; gap: var(--gl-s4); } .gl-ds .gl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-ds .gl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gl-ds .gl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gl-ds .gl-grid > * { min-width: 0; }

/* ── formulaires ──────────────────────────────────────────────────── */
.gl-ds .gl-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .gl-ds .gl-field--full { grid-column: 1 / -1; }
.gl-ds .gl-label { font-size: var(--gl-fs-13); font-weight: 600; color: var(--gl-ink); } .gl-ds .gl-req { color: var(--gl-bad); }
.gl-ds .gl-input, .gl-ds .gl-select, .gl-ds .gl-textarea { width: 100%; min-height: 40px; padding: 8px 12px; font: 400 var(--gl-fs-14)/1.4 var(--gl-font); color: var(--gl-ink); background: #fff; border: 1px solid var(--gl-line-strong); border-radius: var(--gl-r2); }
.gl-ds .gl-input::placeholder, .gl-ds .gl-textarea::placeholder { color: #64748B; }
.gl-ds .gl-input:focus, .gl-ds .gl-select:focus, .gl-ds .gl-textarea:focus { border-color: var(--gl-nuit); box-shadow: 0 0 0 3px rgba(26,59,93,.18); outline: none; }
.gl-ds .gl-input[disabled], .gl-ds .gl-input[readonly], .gl-ds .gl-select[disabled], .gl-ds .gl-textarea[disabled] { background: var(--gl-surface-2); border-color: var(--gl-line); color: #475569; }
.gl-ds .gl-input.is-invalid, .gl-ds .gl-select.is-invalid, .gl-ds .gl-textarea.is-invalid { border-color: var(--gl-bad); background: #FFFAFA; } .gl-ds .gl-input.is-warning { border-color: #B45309; background: #FFFCF2; }
.gl-ds .gl-hint { font-size: var(--gl-fs-12); color: var(--gl-muted); } .gl-ds .gl-err { font-size: var(--gl-fs-12); font-weight: 600; color: var(--gl-bad); } .gl-ds .gl-warnmsg { font-size: var(--gl-fs-12); font-weight: 600; color: var(--gl-warn); }
.gl-ds .gl-check { display: flex; gap: 8px; align-items: flex-start; } .gl-ds .gl-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gl-nuit); }
.gl-ds .gl-switch { position: relative; width: 44px; height: 24px; flex: none; display: inline-block; } .gl-ds .gl-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; } .gl-ds .gl-switch i { position: absolute; inset: 0; border-radius: 999px; background: #8492A6; transition: .15s; } .gl-ds .gl-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; } .gl-ds .gl-switch input:checked + i { background: var(--gl-nuit); } .gl-ds .gl-switch input:checked + i::after { transform: translateX(20px); } .gl-ds .gl-switch input:focus-visible + i { outline: 2px solid var(--gl-focus); outline-offset: 2px; } .gl-ds .gl-switch input:disabled + i { background: #CBD5E1; cursor: not-allowed; }
.gl-ds .gl-actionbar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: var(--gl-s3); padding: 12px 20px; background: rgba(255,255,255,.97); border: 1px solid var(--gl-line); border-radius: var(--gl-r3); box-shadow: var(--gl-shadow-2); margin-top: var(--gl-s4); }
.gl-ds .gl-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--gl-line); overflow-x: auto; margin-bottom: var(--gl-s4); } .gl-ds .gl-tab { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--gl-muted); font: 600 var(--gl-fs-14) var(--gl-font); cursor: pointer; white-space: nowrap; } .gl-ds .gl-tab[aria-selected="true"] { color: var(--gl-nuit); border-bottom-color: var(--gl-nuit); }

/* ── alertes, notifications, états ────────────────────────────────── */
.gl-ds .gl-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--gl-r2); border: 1px solid; font-size: var(--gl-fs-13); }
.gl-ds .gl-alert--info { background: var(--gl-info-bg); border-color: #93C5FD; color: #1E3A8A; } .gl-ds .gl-alert--warn { background: var(--gl-warn-bg); border-color: #FCD34D; color: var(--gl-warn); } .gl-ds .gl-alert--bad { background: var(--gl-bad-bg); border-color: #FCA5A5; color: var(--gl-bad); } .gl-ds .gl-alert--ok { background: var(--gl-ok-bg); border-color: #86EFAC; color: var(--gl-ok); }
.gl-ds .gl-toast { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; gap: 10px; align-items: center; background: var(--gl-ink); color: #fff; padding: 12px 16px; border-radius: var(--gl-r3); box-shadow: var(--gl-shadow-2); max-width: min(420px, calc(100vw - 32px)); }
.gl-ds .gl-skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #E8EDF3 25%, #F4F7FA 37%, #E8EDF3 63%); background-size: 400% 100%; animation: gl-sk 1.4s ease infinite; min-height: 14px; } @keyframes gl-sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.gl-ds .gl-empty { text-align: center; padding: var(--gl-s7) var(--gl-s4); color: var(--gl-muted); } .gl-ds .gl-empty .gl-ico { width: 36px; height: 36px; color: var(--gl-line-strong); margin-bottom: 8px; } .gl-ds .gl-empty .gl-h3 { margin-bottom: 4px; }
.gl-ds .gl-errorstate { border: 1px solid #FCA5A5; background: #FFFAFA; border-radius: var(--gl-r3); padding: var(--gl-s5); text-align: center; color: var(--gl-bad); }

/* ── registre : outils, tableau, cartes mobiles, pagination ───────── */
.gl-ds .gl-toolbar { display: flex; gap: var(--gl-s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--gl-s3); }
.gl-ds .gl-search { position: relative; flex: 1 1 280px; max-width: 420px; } .gl-ds .gl-search .gl-ico { position: absolute; left: 12px; top: 11px; color: var(--gl-muted); } .gl-ds .gl-search .gl-input { padding-left: 38px; }
.gl-ds .gl-chips { display: flex; gap: 6px; flex-wrap: wrap; } .gl-ds .gl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--gl-line-strong); border-radius: var(--gl-pill); background: #fff; font: 500 var(--gl-fs-13) var(--gl-font); color: var(--gl-text); cursor: pointer; } .gl-ds .gl-chip[aria-pressed="true"] { background: var(--gl-nuit); border-color: var(--gl-nuit); color: #fff; } .gl-ds .gl-chip b { font-weight: 700; }
.gl-ds .gl-tablewrap { background: var(--gl-surface); border: 1px solid var(--gl-line); border-radius: var(--gl-r3); box-shadow: var(--gl-shadow-1); overflow-x: auto; }
.gl-ds .gl-table { width: 100%; border-collapse: collapse; font-size: var(--gl-fs-13); }
.gl-ds .gl-table th { text-align: left; padding: 10px 12px; font-size: var(--gl-fs-12); font-weight: 600; color: var(--gl-ink); background: var(--gl-surface-2); border-bottom: 1px solid var(--gl-line); white-space: nowrap; }
.gl-ds .gl-table td { padding: 10px 12px; border-bottom: 1px solid var(--gl-line); vertical-align: middle; } .gl-ds .gl-table tr:last-child td { border-bottom: 0; } .gl-ds .gl-table tbody tr:hover { background: #F8FBFE; } .gl-ds .gl-table tbody tr.is-selected { background: var(--gl-nuit-50); } .gl-ds .gl-table tbody tr.is-muted td { color: var(--gl-muted); }
.gl-ds .gl-table .gl-num { text-align: right; font-variant-numeric: tabular-nums; } .gl-ds .gl-l1 { font-weight: 600; color: var(--gl-ink); display: block; } .gl-ds .gl-l2 { color: var(--gl-muted); font-size: var(--gl-fs-12); display: block; }
.gl-ds .gl-sort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; } .gl-ds .gl-sort[aria-sort="ascending"]::after { content: "▲"; font-size: 9px; } .gl-ds .gl-sort[aria-sort="descending"]::after { content: "▼"; font-size: 9px; }
.gl-ds .gl-rowact { display: inline-flex; border: 1px solid var(--gl-line-strong); border-radius: var(--gl-r2); overflow: hidden; } .gl-ds .gl-rowact .gl-btn { border: 0; border-radius: 0; min-height: 32px; width: 34px; padding: 0; } .gl-ds .gl-rowact .gl-btn + .gl-btn { border-left: 1px solid var(--gl-line-strong); }
.gl-ds .gl-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--gl-s3); flex-wrap: wrap; padding: var(--gl-s3) 0; color: var(--gl-muted); font-size: var(--gl-fs-13); }
.gl-ds .gl-pages { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; } .gl-ds .gl-pages a { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--gl-line-strong); border-radius: var(--gl-r2); background: #fff; color: var(--gl-text); text-decoration: none; font-weight: 600; } .gl-ds .gl-pages a[aria-current="page"] { background: var(--gl-nuit); border-color: var(--gl-nuit); color: #fff; }

/* ── tableau de bord ──────────────────────────────────────────────── */
.gl-ds .gl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gl-s4); margin-bottom: var(--gl-s4); }
.gl-ds .gl-kpi { padding: 16px 18px; } .gl-ds .gl-kpi__k { font-size: var(--gl-fs-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gl-muted); } .gl-ds .gl-kpi__v { font-size: var(--gl-fs-30); font-weight: 700; color: var(--gl-ink); line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; } .gl-ds .gl-kpi__d { font-size: var(--gl-fs-12); margin-top: 2px; color: var(--gl-muted); }
.gl-ds .gl-dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gl-s4); }
.gl-ds .gl-list { list-style: none; margin: 0; padding: 0; } .gl-ds .gl-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--gl-s3); padding: 10px 20px; border-bottom: 1px solid var(--gl-line); } .gl-ds .gl-list li:last-child { border-bottom: 0; }

/* ── administration et SaaS ───────────────────────────────────────── */
.gl-ds .gl-admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gl-s5); align-items: start; }
.gl-ds .gl-sidenav { position: sticky; top: calc(var(--gl-nav-h) + 16px); display: flex; flex-direction: column; gap: 2px; } .gl-ds .gl-sidenav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--gl-r2); color: var(--gl-text); text-decoration: none; font-weight: 500; } .gl-ds .gl-sidenav a:hover { background: var(--gl-surface-2); } .gl-ds .gl-sidenav a[aria-current="page"] { background: var(--gl-nuit-50); color: var(--gl-nuit); font-weight: 700; }
.gl-ds .gl-sidenav .gl-sidenav__t { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gl-muted); padding: 12px 12px 4px; font-weight: 700; margin: 0; }
.gl-ds .gl-row { display: flex; justify-content: space-between; align-items: center; gap: var(--gl-s4); padding: 14px 0; border-bottom: 1px solid var(--gl-line); } .gl-ds .gl-row:last-child { border-bottom: 0; } .gl-ds .gl-row__t { font-weight: 600; color: var(--gl-ink); } .gl-ds .gl-row__d { color: var(--gl-muted); font-size: var(--gl-fs-13); }
.gl-ds .gl-danger { border: 1px solid #FCA5A5; border-radius: var(--gl-r3); background: #fff; } .gl-ds .gl-danger .gl-card__h { background: var(--gl-bad-bg); border-radius: var(--gl-r3) var(--gl-r3) 0 0; border-bottom-color: #FCA5A5; } .gl-ds .gl-danger .gl-card__h .gl-h2 { color: var(--gl-bad); }
.gl-ds .gl-confirm { border: 2px solid var(--gl-bad); border-radius: var(--gl-r3); background: #fff; padding: var(--gl-s4); } .gl-ds .gl-confirm .gl-h3 { color: var(--gl-bad); margin-bottom: 6px; }
.gl-ds .gl-ctx { display: flex; gap: var(--gl-s3); align-items: center; flex-wrap: wrap; padding: 10px 16px; background: var(--gl-nuit-900); color: #fff; font-size: var(--gl-fs-13); } .gl-ds .gl-ctx b { color: #fff; } .gl-ds .gl-ctx .gl-badge { background: rgba(255,255,255,.14); color: #fff; } .gl-ds .gl-ctx--tenant { background: var(--gl-nuit); } .gl-ds .gl-ctx--global { background: #3B1D5A; }
.gl-ds .gl-matrix { width: 100%; border-collapse: collapse; font-size: var(--gl-fs-13); } .gl-ds .gl-matrix th, .gl-ds .gl-matrix td { padding: 8px 10px; border-bottom: 1px solid var(--gl-line); text-align: center; } .gl-ds .gl-matrix th:first-child, .gl-ds .gl-matrix td:first-child { text-align: left; } .gl-ds .gl-matrix th { background: var(--gl-surface-2); font-size: var(--gl-fs-12); }
.gl-ds .gl-yes { color: var(--gl-ok); font-weight: 700; } .gl-ds .gl-no { color: #64748B; }

/* ── fenêtres et panneaux (G60) ───────────────────────────────────── */
.gl-ds .gl-modal-bd { position: fixed; inset: 0; background: rgba(11,22,38,.62); display: grid; place-items: center; z-index: 1300; padding: 24px; }
.gl-ds .gl-modal { width: min(560px, 100%); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: #fff; border: 1px solid #64748B; border-radius: var(--gl-r4); box-shadow: var(--gl-shadow-modal); overflow: hidden; }
.gl-ds .gl-modal__h { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #EAF0F7; border-top: 4px solid var(--gl-nuit); border-bottom: 1px solid #B6C4D6; } .gl-ds .gl-modal__b { padding: 18px 20px; overflow: auto; } .gl-ds .gl-modal__f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; background: var(--gl-surface-2); border-top: 1px solid #B6C4D6; }
/* compatibilité Bootstrap : une fenêtre `.modal` placée DANS `.gl-ds` reçoit l'habillage G60 sans toucher aux fenêtres hors `.gl-ds` */
.gl-ds .modal-content { border: 1px solid #64748B; border-radius: var(--gl-r4); box-shadow: var(--gl-shadow-modal); overflow: hidden; }
.gl-ds .modal-header { background: #EAF0F7; border-top: 4px solid var(--gl-nuit); border-bottom: 1px solid #B6C4D6; } .gl-ds .modal-footer { background: var(--gl-surface-2); border-top: 1px solid #B6C4D6; }
.gl-ds .gl-pop { width: 340px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #94A3B8; border-radius: var(--gl-r3); box-shadow: 0 16px 40px rgba(15,23,42,.28); overflow: hidden; } .gl-ds .gl-pop__h { padding: 8px 14px; background: var(--gl-surface-2); border-bottom: 1px solid #CBD5E1; font-weight: 700; color: var(--gl-ink); } .gl-ds .gl-pop__b { padding: 10px 14px; }

/* ── responsive des composants ────────────────────────────────────── */
@media (max-width: 991.98px) { .gl-ds .gl-grid--4, .gl-ds .gl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-ds .gl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-ds .gl-dash, .gl-ds .gl-admin { grid-template-columns: 1fr; } .gl-ds .gl-sidenav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; } .gl-ds .gl-sidenav .gl-sidenav__t { display: none; } .gl-ds .gl-sidenav a { white-space: nowrap; } }
@media (max-width: 575.98px) {
  .gl-ds .gl-page { padding: var(--gl-s4) 16px 24px; } .gl-ds .gl-grid--2, .gl-ds .gl-grid--3, .gl-ds .gl-grid--4, .gl-ds .gl-kpis { grid-template-columns: 1fr; } .gl-ds .gl-h1 { font-size: var(--gl-fs-20); }
  .gl-ds .gl-btn, .gl-ds .gl-input, .gl-ds .gl-select, .gl-ds .gl-chip { min-height: 44px; } .gl-ds .gl-input, .gl-ds .gl-select, .gl-ds .gl-textarea { font-size: 16px; }
  .gl-ds .gl-actionbar { flex-direction: column-reverse; align-items: stretch; } .gl-ds .gl-modal-bd { padding: 8px; align-items: end; }
  .gl-ds .gl-table--cards thead { display: none; } .gl-ds .gl-table--cards tr { display: block; padding: 12px; border-bottom: 1px solid var(--gl-line); } .gl-ds .gl-table--cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; } .gl-ds .gl-table--cards td::before { content: attr(data-l); font-weight: 600; color: var(--gl-muted); text-align: left; }
}

/* G63 : code en ligne lisible (contraste AA) */
.gl-ds code { color: var(--gl-ink); background: var(--gl-surface-2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
