/* Campagne SMS — rafraîchissement 2026 (csms-302). Généré depuis le Design System « Campagne SMS — Design System ».
   À charger APRÈS logged20200509.css (espace client) et connection/inscription/forgotten_password*.css (pages de connexion). */
/* Police Inter auto-hébergée (asset/fonts/, licence SIL OFL 1.1 : asset/fonts/Inter-OFL.txt), sous-ensemble latin. */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/inter-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/inter-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/inter-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url('../../fonts/inter-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url('../../fonts/inter-latin-800-normal.woff2') format('woff2')}
:root{
  --brand: #2a8450; /* retour de Yoni du 2026-11-29 : vert un peu plus clair et adouci (UX : #157f3c) ; texte blanc 4,65:1 */
  --brand-hover: #1f6b3f;
  --brand-bright: #16a34a;
  --brand-soft: #ecf8ec;
  --brand-soft-strong: #c9e9c9;
  --accent-sky: #0284c7;
  --on-brand: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --line: #e2e8f0;
  --line-strong: #94a3b8;
  --surface: #ffffff;
  --surface-page: #f8fafc;
  --surface-muted: #f1f5f9;
  --info: #0369a1;
  --info-soft: #f0f9ff;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --success: var(--brand);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-pop: 0 12px 32px rgba(15, 23, 42, 0.14);
  --shadow-focus: 0 0 0 3px rgba(22, 163, 74, 0.35);
  --font-sans: "Inter var", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


/* Campagne SMS — feuille de style du rafraîchissement.
   Chaque règle cible une classe ou un id qui existe déjà dans les vues de client.campagnesms.com
   (gabarit Bootstrap 3 + jQuery UI + icônes icon-*), pour que l'application change d'apparence
   sans toucher à la logique PHP ni aux noms de champs. */

body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 22px; color: var(--ink); background: var(--surface-page); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn { box-sizing: border-box; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 40px; padding: 0 20px; font: 600 14px/1 var(--font-sans); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; text-decoration: none; }
.btn:hover { background: var(--surface-muted); color: var(--ink); text-decoration: none; }
.btn:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }
.btn-primary, .btn-octo-green, .btn-success { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover, .btn-octo-green:hover, .btn-success:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--on-brand); }
.btn-link { border-color: transparent; background: transparent; color: var(--brand); padding: 0 var(--space-2); }
.btn-link:hover { background: var(--brand-soft); color: var(--brand-hover); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-group { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Champs ---------- */
.form-group { margin-bottom: var(--space-4); }
.form-group > label, label.control-label { display: block; margin-bottom: var(--space-1); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.form-control { box-sizing: border-box; width: 100%; height: 40px; padding: 0 var(--space-3); font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); transition: border-color .15s, box-shadow .15s; }
select.form-control { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; text-overflow: ellipsis; }
textarea.form-control { height: auto; min-height: 120px; padding: 10px var(--space-3); resize: vertical; }
.form-control::placeholder { color: var(--ink-subtle); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }
.form-control[disabled], .form-control[readonly] { background: var(--surface-muted); color: var(--ink-muted); }
.help-block { display: block; margin-top: var(--space-1); font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.has-error .form-control { border-color: var(--danger); background: var(--danger-soft); }
.has-error .help-block, .has-error label { color: var(--danger); }

/* ---------- Champ secret (clé API) : masqué, œil pour l'afficher ---------- */
.cs-secret { position: relative; display: flex; align-items: center; }
.cs-secret .form-control { padding-right: 48px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .02em; }
.cs-secret-toggle { position: absolute; right: 4px; display: inline-flex; width: 36px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); cursor: pointer; }
.cs-secret-toggle:hover { background: var(--surface-muted); color: var(--ink); }
.cs-secret-toggle:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.cs-secret-toggle svg { width: 18px; height: 18px; }
.cs-secret-toggle .eye-off, .cs-secret-toggle[aria-pressed="true"] .eye-on { display: none; }
.cs-secret-toggle[aria-pressed="true"] .eye-off { display: inline; }

/* ---------- Cartes (gabarit : .widget-box) ---------- */
.widget-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: var(--space-5); overflow: hidden; }
.widget-title { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.widget-title .icon { color: var(--brand-bright); }
.widget-title h5 { margin: 0; font: inherit; }
.widget-title .btn { margin-left: auto; }
.widget-content { padding: var(--space-5); }
.widget-content.nopadding { padding: 0; }

/* ---------- Tableaux ---------- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; background: var(--surface); }
.table th { padding: 10px var(--space-3); text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-muted); background: var(--surface-muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px var(--space-3); border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.table-bordered th, .table-bordered td { border-left: 0; border-right: 0; }
.table-striped tbody tr:nth-child(even) td { background: var(--surface-page); }
.table-hover tbody tr:hover td { background: var(--brand-soft); }
.table .aright, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td, .table tr.total td { font-weight: 600; background: var(--surface-muted); }

/* ---------- Alertes ---------- */
.alert { position: relative; display: block; padding: var(--space-3) var(--space-4); padding-right: 40px; margin-bottom: var(--space-4); border: 1px solid; border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.alert .close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 18px; line-height: 1; color: inherit; opacity: .7; cursor: pointer; }
.alert-info { color: var(--info); background: var(--info-soft); border-color: var(--info); }
.alert-warning { color: var(--warning); background: var(--warning-soft); border-color: var(--warning); }
.alert-danger, .alert-error { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.alert-success { color: var(--success); background: var(--brand-soft); border-color: var(--brand); }

/* ---------- Étapes de la campagne (onglets) ---------- */
.cs-steps { display: flex; gap: var(--space-1); margin: 0; padding: var(--space-1); list-style: none; background: var(--surface-muted); border-radius: var(--radius-pill); }
.cs-steps li { flex: 1; }
.cs-steps a { display: flex; align-items: center; justify-content: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.cs-steps a .num { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); font-size: 12px; }
.cs-steps li.active a { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-card); }
.cs-steps li.active a .num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cs-steps li.done a .num { background: var(--brand-soft-strong); border-color: var(--brand-soft-strong); color: var(--brand); }

/* ---------- Tuiles d'action rapide (accueil) ---------- */
.quick-actions-horizontal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.quick-actions-horizontal li { margin: 0; }
.quick-actions-horizontal a { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); min-height: 120px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.quick-actions-horizontal a:hover { border-color: var(--brand); box-shadow: var(--shadow-pop); }
.quick-actions-horizontal a .step { font-size: 12px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.quick-actions-horizontal a i { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); font-size: 18px; font-style: normal; }

/* ---------- En-tête et menu latéral (gabarit : #header_bo, #user-nav, #sidebar, #content) ---------- */
#header_bo { display: flex; align-items: center; gap: var(--space-4); height: 64px; padding: 0 var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); box-sizing: border-box; }
#header_bo .cs-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
#header_bo .cs-logo svg { width: 28px; height: 28px; color: var(--brand); }
#header_bo .cs-logo span { color: var(--brand); }
#menu-trigger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; }
#user-nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--ink-muted); }
#user-nav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); color: var(--ink-muted); text-decoration: none; }
#user-nav a:hover { background: var(--surface-muted); color: var(--ink); }

#sidebar { width: 248px; box-sizing: border-box; padding: var(--space-4) var(--space-3); background: var(--surface); border-right: 1px solid var(--line); font-size: 14px; }
#sidebar ul { margin: 0; padding: 0; list-style: none; }
#sidebar > ul > li > a { display: flex; align-items: center; gap: var(--space-3); box-sizing: border-box; min-height: 40px; padding: 9px var(--space-3); line-height: 1.3; text-align: left; border-radius: var(--radius-sm); color: var(--ink-muted); font-weight: 500; text-decoration: none; }
#sidebar > ul > li > a:hover { background: var(--surface-muted); color: var(--ink); }
#sidebar > ul > li.active > a, #sidebar > ul > li.open > a { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
#sidebar > ul > li > a .arrow { flex: none; margin-left: auto; padding-left: var(--space-2); font-size: 11px; }
#sidebar a, #sidebar li, #sidebar span { text-align: left !important; }
#sidebar > ul > li > a > i[class^="icon-"]:not(.arrow), #sidebar > ul > li > a > .ico { flex: none; width: 18px; font-size: 16px; text-align: center; color: inherit; }
#sidebar > ul > li { padding: 3px 0; }
#sidebar > ul > li + li { border-top: 1px solid var(--line); }
#sidebar li ul { margin: var(--space-1) 0 var(--space-2); }
#sidebar li ul a { display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 36px; padding: 8px var(--space-3) 8px 22px; line-height: 1.3; text-align: left; text-justify: none; word-spacing: normal; hyphens: manual; border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; }
#sidebar li ul a > i[class^="icon-"], #sidebar li ul a > .ico { flex: none; width: 16px; font-size: 14px; text-align: center; color: inherit; opacity: .85; }
#sidebar li ul a:hover { color: var(--ink); background: var(--surface-muted); }
#sidebar li ul li.active a { color: var(--brand); font-weight: 600; }

.balance_block { margin: 0 0 var(--space-4); padding: var(--space-4); background: var(--brand-soft); border-radius: var(--radius-lg); }
.balance_block label { display: block; margin-bottom: var(--space-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.balance_block table { width: 100%; border-collapse: collapse; font-size: 14px; }
.balance_block td { padding: 2px 0; color: var(--ink); }
.balance_block td.aright { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance_block .btn { width: 100%; margin-top: var(--space-3); }

#content-header h1 { margin: 0 0 var(--space-5); font-size: 26px; line-height: 32px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }


/* Titre de page dans le bandeau blanc (décision de Yoni du 2026-11-28) : dans l'application, #content-header est replacé
   dans l'en-tête par le CSS seul (position absolue), sans déplacer de balisage. */
#header_bo .cs-logo { flex: none; width: 216px; }
#header_bo .cs-page-title, #header_bo h1 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { #header_bo .cs-logo { width: auto; } }
@media (max-width: 767px) { #header_bo .cs-page-title, #header_bo h1 { font-size: 16px; } #header_bo .cs-logo span { display: none; } }


/* ---------- Composants ajoutés le 2026-11-28 (maquettes « Autres écrans » et « Pages profondes ») ---------- */
/* Titre de page dans le bandeau : dans l'application, le <h1> reste dans #content-header (aucun balisage déplacé). */
#content-header h1 { position: absolute; top: 0; left: 264px; right: 360px; z-index: 5; display: flex; align-items: center; height: 64px; margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { #content-header h1 { left: 72px; right: 160px; font-size: 17px; } }
/* État vide */
.cs-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-7) var(--space-5); text-align: center; }
.cs-empty .cs-empty-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--brand-soft); color: var(--brand); margin-bottom: var(--space-2); }
.cs-empty strong { font-size: 17px; line-height: 24px; color: var(--ink); }
.cs-empty p { margin: 0; max-width: 460px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
/* Badge de statut */
.cs-badge { display: inline-block; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; line-height: 22px; background: var(--brand-soft); color: var(--brand); }
.cs-badge-info { background: var(--info-soft); color: var(--info); }
.cs-badge-warn { background: var(--warning-soft); color: var(--warning); }
.cs-badge-danger { background: var(--danger-soft); color: var(--danger); }
/* Tuile de chiffre clé */
.cs-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.cs-kpi { padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.cs-kpi span { display: block; font-size: 13px; color: var(--ink-subtle); }
.cs-kpi strong { display: block; font-size: 26px; line-height: 32px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Raccourcis en icônes dans un tableau, et leur légende */
.cs-shortcuts { display: flex; gap: var(--space-1); }
.cs-shortcut { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--surface); color: var(--ink-muted); border: 1px solid var(--line); cursor: pointer; }
.cs-shortcut:hover, .cs-shortcut:focus-visible, .cs-shortcut.is-hot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); outline: none; }
.cs-shortcut-danger { color: var(--danger); border-color: #fecaca; }
.cs-shortcut-danger:hover, .cs-shortcut-danger:focus-visible, .cs-shortcut-danger.is-hot { background: var(--danger); border-color: var(--danger); color: var(--on-brand); }
.cs-legend-hint { margin: 0 0 var(--space-2); min-height: 40px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.cs-legend-item { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-2); border-radius: var(--radius-md); }
.cs-legend-item.is-hot { background: var(--brand-soft); }
.cs-legend-item.is-hot.cs-legend-danger { background: var(--danger-soft); }
.cs-legend-item strong { display: block; font-size: 14px; line-height: 20px; }
.cs-legend-item small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
/* Récapitulatif en cases (campagne validée) */
.cs-recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.cs-recap > div { padding: var(--space-3) var(--space-4); background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--radius-md); }
.cs-recap span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.cs-recap strong { display: block; margin-top: 2px; font-size: 16px; line-height: 22px; color: var(--ink); overflow-wrap: anywhere; }
/* jqGrid (contenu d'une liste, historiques) : restylage sans remplacer la bibliothèque */
.ui-jqgrid { border: 1px solid var(--line) !important; border-radius: var(--radius-lg); overflow: hidden; font-family: var(--font-sans) !important; }
.ui-jqgrid .ui-jqgrid-titlebar { background: var(--surface) !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; color: var(--ink) !important; font-weight: 600; padding: 12px var(--space-4) !important; }
.ui-jqgrid .ui-jqgrid-htable th { background: var(--surface-muted) !important; color: var(--ink-muted) !important; font-size: 13px; font-weight: 600; border-color: var(--line) !important; height: 40px; }
.ui-jqgrid tr.jqgrow td { font-size: 14px; height: 44px; border-color: var(--line) !important; color: var(--ink); }
.ui-jqgrid tr.jqgrow:nth-child(even) td { background: var(--surface-page); }
.ui-jqgrid tr.jqgrow:hover td { background: var(--brand-soft) !important; }
.ui-jqgrid tr.ui-state-highlight td { background: var(--brand-soft-strong) !important; color: var(--ink) !important; }
.ui-jqgrid .ui-jqgrid-pager { background: var(--surface) !important; border-top: 1px solid var(--line) !important; height: 44px !important; font-size: 13px; color: var(--ink-muted); }


/* Choix à deux options en boutons collés (remplace les boutons radio, décision de Yoni du 2026-11-28).
   Balisage : <div class="cs-segmented" role="radiogroup"><input type="radio" id="x1" name="(inchangé)" value="…"><label for="x1">…</label>…</div>
   Les input restent de vrais boutons radio (même name, même value) : seul leur aspect change. */
.cs-segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-muted); }
.cs-segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cs-segmented label, .cs-segmented .cs-seg { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin: 0; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; font: 600 14px/1.2 var(--font-sans); color: var(--ink-muted); cursor: pointer; transition: background-color .15s, color .15s; }
.cs-segmented label:hover, .cs-segmented .cs-seg:hover { color: var(--ink); background: var(--surface); }
.cs-segmented input:checked + label, .cs-segmented .cs-seg[aria-checked="true"] { background: var(--brand); color: var(--on-brand); }
.cs-segmented input:focus-visible + label, .cs-segmented .cs-seg:focus-visible { outline: none; box-shadow: var(--shadow-focus); }


/* Étapes de démarrage (accueil d'un nouveau compte) : liste ordonnée, traits calculés par le CSS, plus aucune position en pixels.
   Balisage : <ol class="cs-stepper"><li class="is-done"><span class="cs-step-num" aria-hidden="true">✓</span><span class="cs-step-label">…</span></li>
   <li class="is-current" aria-current="step">…</li><li>…</li></ol> */
.cs-stepper { display: flex; margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.cs-stepper li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: 0 var(--space-2); text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cs-stepper li + li::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); }
.cs-stepper li.is-done + li::before { background: var(--brand); }
.cs-step-num { position: relative; z-index: 1; display: inline-flex; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); font-size: 16px; font-weight: 700; color: var(--ink-muted); box-sizing: border-box; }
.cs-stepper li.is-done .cs-step-num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cs-stepper li.is-current { color: var(--ink); font-weight: 600; }
.cs-stepper li.is-current .cs-step-num { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
@media (max-width: 767px) {
  .cs-stepper { flex-direction: column; gap: var(--space-4); }
  .cs-stepper li { flex-direction: row; align-items: center; text-align: left; padding: 0; }
  .cs-stepper li + li::before { top: auto; bottom: 50%; right: auto; left: 19px; width: 3px; height: calc(100% + var(--space-4)); }
}


/* Boutons de titre ($button_panel dans #content-header) : une simple rangée de boutons compacts, alignée à droite,
   SANS le style de tuile de l'accueil (correctif du 2026-11-29 : « Tarifs SMS Monde » en tuile chevauchait l'alerte). */
#content-header { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-2); float: none; min-height: 0; margin: 0 0 var(--space-4); }
#content-header::after { content: none; }
#content-header > *:not(h1) { float: none !important; position: static !important; margin: 0 !important; }
#content-header .quick-actions-horizontal { display: flex; flex-wrap: wrap; gap: var(--space-2); grid-template-columns: none; }
#content-header .quick-actions-horizontal li { width: auto !important; float: none !important; margin: 0 !important; }
#content-header .quick-actions-horizontal a, #content-header .btn { flex-direction: row; align-items: center; gap: var(--space-2); min-height: 0; height: 36px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); box-shadow: none; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
#content-header .quick-actions-horizontal a:hover { border-color: var(--brand); box-shadow: none; color: var(--brand); }
#content-header .quick-actions-horizontal a i, #content-header .quick-actions-horizontal a img { width: auto; height: auto; max-height: 18px; background: none; border: 0; padding: 0; margin: 0; font-size: 15px; }
#content-header .quick-actions-horizontal a .step { display: none; }
#content-header:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  #menu-trigger { display: inline-flex; }
  #sidebar { position: fixed; top: 64px; bottom: 0; left: 0; z-index: 1030; width: min(264px, 85vw); max-width: 100%; padding-right: var(--space-4); transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-pop); overflow-x: hidden; overflow-y: auto; }
  .jPanelMenu-menu { z-index: 1030 !important; box-sizing: border-box; overflow-x: hidden; }
  .jPanelMenu-menu #sidebar { position: static; width: 100%; transform: none; box-shadow: none; }
  #header_bo { position: relative; z-index: 1040; }
  #content { z-index: auto; }
  #sidebar.open, body.sidebar-open #sidebar { transform: none; }
}
@media (max-width: 767px) {
  #header_bo { padding: 0 var(--space-4); }
  #user-nav .text, #user-nav .phone { display: none; }
  .widget-title, .widget-content { padding-left: var(--space-4); padding-right: var(--space-4); }
  .widget-content { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  #content-header h1 { font-size: 22px; line-height: 28px; }
  form .btn-primary, form .btn-octo-green { width: 100%; }
  .cs-steps a .label-text { display: none; }
}

/* ---------- Intégration au gabarit existant (CS, lot 1) ----------
   L'ancienne feuille (logged20200509.css) place l'en-tête, le menu et le contenu avec des marges négatives et des positions
   absolues ; ces règles les neutralisent pour la mise en page de la maquette. #content reste en position relative
   (des blocs internes en dépendent) : le titre de page se place donc par rapport à lui, 64 px plus haut. */
#header_bo { position: relative; z-index: 30; width: auto; margin: 0; }
#header_bo .cs-logo:hover { text-decoration: none; }
#user-nav { position: static; height: auto !important; min-height: 0 !important; margin-left: auto; width: auto; z-index: auto; }
#user-nav .label { margin-left: 2px; font-size: 11px; }
#user-nav .cs-logout { width: 36px; padding: 0; justify-content: center; }
#sidebar { float: left; min-height: calc(100vh - 64px); z-index: 16; }
/* flow-root : les rangées Bootstrap (.row, clear: both) ne passent plus sous le menu flottant. */
#content { display: flow-root; margin: 0 0 0 248px; padding: var(--space-5); background: transparent; border-radius: 0; min-height: 0; }
#content-header { height: auto; min-height: 0; padding: 0; background: transparent; border-radius: 0; }
/* Sans boutons de titre, le titre seul est dans le bandeau : pas d'espace vide au-dessus du contenu. */
#content-header:not(:has(> :not(h1))) { margin-bottom: 0; }
#content-header h1 { top: -64px; left: var(--space-4); right: 380px; z-index: 31; color: var(--ink); }
#content-header > .btn-group { float: none; display: flex; justify-content: flex-end; margin: 0 0 var(--space-4); padding: 0; min-height: 0; line-height: normal; }
/* Boutons de titre : l'ancienne feuille garde le fond dégradé, la bordure et le padding de tuile sur le <li>, l'icône bitmap
   (fond image, que la feuille UX retire) garde 15px 20px de padding. Le bouton devient une simple pilule. */
#content-header .quick-actions-horizontal li { padding: 0; border: 0; background: none; box-shadow: none; filter: none; line-height: normal; }
#content-header .quick-actions-horizontal a { display: inline-flex; min-width: 0; }
#content-header .quick-actions-horizontal a i, #content-header > .btn-group ul.quick-actions-horizontal li a i { padding: 0; width: auto; height: auto; line-height: 1; }
#content-header .quick-actions-horizontal a span, #content-header > .btn-group ul.quick-actions-horizontal li a span { padding: 0; }
/* Titres de cartes (retour de Yoni, 2026-11-29) : marges gauche et droite réduites, icône calée à gauche contre le bord. */
.widget-box .widget-title { padding: 0 var(--space-3); }
.widget-box .widget-title .icon, .widget-box .widget-title span.icon { float: none; width: auto; padding: 0 var(--space-3) 0 0; text-align: left; border-right: 1px solid var(--line); line-height: 48px; }
.widget-box .widget-title h5 { float: none; padding: 12px 0 12px var(--space-1); }
/* Avis « compte vide » des pages d'achat : en tête, avant les boutons de titre, sur toute la largeur. */
#content-header > .alert { flex: 1 0 100%; position: relative !important; margin: 0 0 var(--space-2) !important; }
/* Sélecteur de pays : le drapeau (32 px, à 3 px du bord) touchait le nom du pays. */
.prices-select-style select.country_select, .prices-select-style select.flag { padding-left: 44px; }
/* Bouton « Enregistrer » d'un titre de carte : poussé à droite (il est dans un div.floatright, que le flex ignore). */
.widget-title > .floatright { margin-left: auto; float: none; }
.cs-page-actions { margin: 0 0 var(--space-4); }
/* Menu : l'ancienne feuille met le solde et la liste en position absolue, sur fond gris, avec un fond image sur l'entrée active. */
.balance_block { position: static; display: block; width: auto; text-align: left; }
#sidebar > ul { position: static; top: auto; width: auto !important; margin: 0 !important; box-shadow: none; }
#sidebar > ul > li { border-top: 0; background: transparent; box-shadow: none; padding: 0; }
/* Retour de Yoni (2026-11-29) : la surbrillance d'une entrée principale est un rectangle collé aux traits de séparation. */
#sidebar > ul > li > a { border-radius: 0; }
#sidebar > ul > li:hover, #sidebar > ul > li.active, #sidebar > ul > li.open, #sidebar > ul > li.attention_required { background: transparent; box-shadow: none; }
#sidebar > ul > li:hover > a { background: var(--surface-muted); color: var(--ink); }
#sidebar > ul > li.active > a, #sidebar > ul > li.open > a { background: var(--brand-soft) !important; color: var(--brand); text-shadow: none; }
#sidebar > ul > li.attention_required > a { color: var(--warning); }
#sidebar > ul > li > a > i { margin-right: 0; }
#sidebar > ul > li > a > span { flex: 1; display: inline !important; }
#sidebar > ul > li > a > .label { float: none; margin: 0; box-shadow: none; background: var(--brand); color: var(--on-brand); border-radius: var(--radius-pill); }
#sidebar > ul > li > a .arrow { float: none; margin: 0 0 0 auto; }
#sidebar > ul ul { position: static; background: transparent; box-shadow: none; border-radius: 0; min-width: 0; }
#sidebar > ul ul:before, #sidebar > ul ul:after, #sidebar > ul ul li.active a:before, #sidebar > ul ul li.active a:after { display: none; }
#sidebar > ul ul li a { border-top: 0; white-space: normal; }
#sidebar > ul ul li a:hover { color: var(--ink); background: var(--surface-muted); }
#sidebar > ul ul li.active a { color: var(--brand); background: transparent; }
.balance_block .cs-balance-detail { display: block; margin-top: var(--space-1); font-size: 13px; }
.balance_block .row { margin: 0; }
.balance_block .row > div { padding: 0; }
#footer, .footer { clear: both; }
@media (max-width: 1023px) {
  body { padding: 0 !important; }
  /* Le menu tiroir passe au-dessus des boutons de la page (1030), sous le bandeau (1040). */
  #header_bo { margin-top: 0; z-index: 1040; }
  #sidebar { z-index: 1030; }
  #menu-trigger { position: static; top: auto; left: auto; padding: 0; font-size: 16px; color: var(--ink); text-shadow: none; z-index: auto; box-shadow: none; }
  #sidebar > ul { display: block !important; background: transparent; }
  /* Sous 1 024 px, le bandeau n'a plus la place du titre : il reprend sa place en haut du contenu. */
  #content-header h1 { position: static; display: block; height: auto; margin: 0 0 var(--space-2); flex: 1 0 100%; font-size: 22px; line-height: 28px; white-space: normal; overflow: visible; }
  #content-header:not(:has(> :not(h1))) { margin-bottom: var(--space-4); }
  #content { margin-left: 0; }
  #sidebar { float: none; }
  #sidebar > ul { width: auto !important; float: none; }
  #sidebar > ul > li > a > span { display: inline !important; }
  #sidebar > ul ul { position: static; box-shadow: none; }
  #sidebar .arrow { display: inline-block; }
}
@media (max-width: 767px) {
  #header_bo { margin-top: 0; padding-top: 0; }
  #user-nav { position: static; left: auto; right: auto; width: auto; margin: 0 0 0 auto; text-align: left; }
  #user-nav a { padding: 0 var(--space-2); }
  #content-header h1 { text-align: left; }
  #content { padding: var(--space-4); }
}

/* ---------- Retours de Yoni du 2026-11-29 (troisième série) ---------- */

/* Pictos du menu (sous-menus) et des titres de cartes : couleur des boutons, plus d'opacité. */
#sidebar li ul a > i[class^="icon-"], #sidebar li ul a > i[class*=" icon-"] { color: var(--brand); opacity: 1; }
.widget-box .widget-title .icon, .widget-box .widget-title span.icon, .widget-box .widget-title .icon i { color: var(--brand); opacity: 1; }

/* Boutons-tuiles dans le contenu (blacklist, ouverture de liste, listes massives, modèles) : la même pilule que les boutons
   de titre, une ligne, une icône. Les icônes bitmap de l'ancien gabarit sont remplacées par leur équivalent Font Awesome. */
#content .row ul.quick-actions-horizontal { display: flex; flex-wrap: wrap; gap: var(--space-2); grid-template-columns: none; margin: 0 0 var(--space-4); padding: 0; list-style: none; }
#content .row ul.quick-actions-horizontal li { width: auto !important; min-width: 0; float: none !important; margin: 0 !important; padding: 0; border: 0; background: none; box-shadow: none; filter: none; line-height: normal; }
#content .row ul.quick-actions-horizontal li a { display: inline-flex; flex-direction: row; align-items: center; gap: var(--space-2); box-sizing: border-box; min-width: 0; min-height: 0; height: 40px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); box-shadow: none; font-size: 14px; font-weight: 600; line-height: 1; color: var(--ink); white-space: nowrap; text-decoration: none; }
#content .row ul.quick-actions-horizontal li a:hover { border-color: var(--brand); color: var(--brand); }
#content .row ul.quick-actions-horizontal li a i, #content .row ul.quick-actions-horizontal li a i[class^="icon-"] { display: inline-block; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-family: FontAwesome; font-style: normal; font-size: 15px; line-height: 1; color: var(--brand); }
#content .row ul.quick-actions-horizontal li a span { padding: 0; }
#content .row ul.quick-actions-horizontal li a .step { display: none; }
#content .row ul.quick-actions-horizontal i.icon-new-list:before { content: '\f067'; }
#content .row ul.quick-actions-horizontal i.icon-add-member:before { content: '\f007'; }
#content .row ul.quick-actions-horizontal i.icon-list-export:before { content: '\f019'; }
#content .row ul.quick-actions-horizontal i.icon-list-import:before, #content .row ul.quick-actions-horizontal i.icon-txt-import:before { content: '\f093'; }
#content .row ul.quick-actions-horizontal i.icon-blacklist:before { content: '\f05e'; }
#content .row ul.quick-actions-horizontal i.icon-delete-doublons:before { content: '\f0b0'; }
#content .row ul.quick-actions-horizontal i.icon-delete-failed:before { content: '\f057'; }
#content .row ul.quick-actions-horizontal i.icon-delete-french:before, #content .row ul.quick-actions-horizontal i.icon-delete-non-french:before { content: '\f024'; }
#content .row ul.quick-actions-horizontal i.icon-delete-list:before { content: '\f014'; }
#content .row ul.quick-actions-horizontal i.icon-delete-member:before { content: '\f00d'; }
#content .row ul.quick-actions-horizontal i.icon-list-campaign:before { content: '\f086'; }

/* Légende des raccourcis (modèles de campagne) : à gauche, au-dessus du tableau, comme pour les listes. */
.cs-legend { display: flex; flex-wrap: wrap; gap: var(--space-2); float: none; margin: 0 0 var(--space-4); }
.cs-legend > .btn { margin: 0; }

/* Listes déroulantes à la hauteur des champs texte. */
#content input.app_text, #content select:not([multiple]):not(.flag) { box-sizing: border-box; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background-color: var(--surface); font-size: 15px; color: var(--ink); }
#content select:not([multiple]):not(.flag) { padding-right: 8px; }

/* Création d'une liste (normale ou massive) : champ large, bouton à droite. */
.cs-add-list { max-width: 640px; }
.cs-add-list form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; }
.cs-add-list form label { margin: 0; font-weight: 600; }
.cs-add-list form input[type="text"] { flex: 1 1 240px; width: auto !important; min-width: 0; }
.cs-add-list form button { margin-left: auto; }
#content .alert + .cs-add-list { margin-top: var(--space-4); }

/* Créditer en Euros : l'explication et le montant dans une carte blanche. */
.cs-world-intro { margin-bottom: var(--space-5); }
.cs-world-intro .widget-content { padding: var(--space-5); }
.cs-world-lead { margin: 0 0 var(--space-3); font-size: 16px; font-weight: 600; color: var(--ink); }
.cs-world-intro .world_order_panel_div { margin-top: var(--space-4); }

/* Fenêtres jQuery UI (ex. « Changer mon mot de passe ») : la fenêtre du design system. */
.ui-widget-overlay { background: rgba(15, 23, 42, 0.45); opacity: 1; }
.ui-dialog { box-sizing: border-box; max-width: calc(100vw - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-pop); font-family: var(--font-sans); overflow: hidden; }
.ui-dialog .ui-dialog-titlebar { padding: 16px 56px 16px 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font-size: 17px; font-weight: 700; }
.ui-dialog .ui-dialog-title { float: none; margin: 0; white-space: normal; }
.ui-dialog .ui-dialog-titlebar-close { right: 16px; width: 28px; height: 28px; margin-top: -14px; border: 0; border-radius: 50%; background: var(--surface-muted); }
.ui-dialog .ui-dialog-content { box-sizing: border-box; height: auto !important; max-height: 70vh !important; padding: 20px; color: var(--ink); font-size: 15px; line-height: 22px; text-align: left; overflow: auto; }
.ui-dialog .ui-dialog-content ul { margin: var(--space-2) 0 var(--space-4); padding-left: 20px; }
.ui-dialog .ui-dialog-content input[type="text"], .ui-dialog .ui-dialog-content input[type="password"], .ui-dialog .ui-dialog-content textarea { box-sizing: border-box; max-width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 15px; }
.ui-dialog .ui-dialog-content textarea { height: auto; min-height: 80px; padding: 8px 12px; }
.ui-dialog .ui-dialog-buttonpane { margin: 0; padding: 12px 20px; border: 0; border-top: 1px solid var(--line); background: var(--surface-muted); }
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { display: flex; flex-direction: row-reverse; gap: var(--space-2); float: none; justify-content: flex-start; }
.ui-dialog .ui-dialog-buttonpane button { height: 40px; margin: 0; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font-sans); box-shadow: none; }
.ui-dialog .ui-dialog-buttonpane button .ui-button-text { padding: 0; }
.ui-dialog .ui-dialog-buttonpane button:first-child { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ui-dialog .ui-dialog-buttonpane button:hover { border-color: var(--brand); }

/* Groupe de boutons de titre vide (ex. listes sans liste) : il ne réserve plus 49 px en haut de la page. */
#content-header > .btn-group:not(:has(*)) { display: none; }
#content-header:not(:has(> :not(h1):not(.btn-group:not(:has(*))))) { margin-bottom: 0; }

/* Boutons de titre : les icônes bitmap de l'ancien gabarit sont remplacées par leur équivalent Font Awesome, à la couleur des boutons. */
#content-header .quick-actions-horizontal a i, #content-header > .btn-group ul.quick-actions-horizontal li a i { font-family: FontAwesome; font-style: normal; color: var(--brand); }
#content-header .quick-actions-horizontal i.icon-shopping-bag:before { content: '\f07a'; }
#content-header .quick-actions-horizontal i.icon-piechart:before { content: '\f0ac'; }
#content-header .quick-actions-horizontal i.icon-cal:before { content: '\f073'; }
#content-header .quick-actions-horizontal i.icon-edit-list:before { content: '\f044'; }
#content-header .quick-actions-horizontal i.icon-list-campaign:before { content: '\f086'; }
#content-header .quick-actions-horizontal i.icon-list-export:before { content: '\f019'; }
#content-header .quick-actions-horizontal i.icon-new-list:before { content: '\f067'; }

/* ---------- Retours de Yoni du 2026-11-29 (quatrième série) ---------- */

/* Listes déroulantes : flèche dessinée par la feuille, décollée du bord droit. */
#content select:not([multiple]):not(.flag) { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }

/* Tableaux de données (tarifs France et international, listes, blacklist) : en-tête gris clair, lignes fines, survol vert pâle. */
#content table.data_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 14px; color: var(--ink); overflow: hidden; }
#content table.data_table > thead > tr > th, #content table.data_table > tbody > tr > td, #content table.data_table > tr > td,
#content table.data_table > tbody > tr > th { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); vertical-align: middle; line-height: 20px; }
#content table.data_table > thead > tr > th, #content table.data_table.header > tbody > tr:first-child > td { background: var(--surface-muted); color: var(--ink-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
#content table.data_table > tbody > tr:last-child > td { border-bottom: 0; }
#content table.data_table.table-striped > tbody > tr:nth-child(odd) > td { background: var(--surface); }
#content table.data_table.table-striped > tbody > tr:nth-child(even) > td { background: var(--surface-page); }
#content table.data_table > tbody > tr:hover > td { background: var(--brand-soft); }
#content table.data_table.header > tbody > tr:first-child:hover > td { background: var(--surface-muted); }
.cs-prices { margin: 0; }
.cs-prices > tbody > tr > td:nth-child(2), .cs-prices > tbody > tr > td:nth-child(3) { font-variant-numeric: tabular-nums; }
.cs-prices > tbody > tr > td:last-child, .cs-prices > thead > tr > th:last-child { text-align: right; }
.cs-prices .btn { height: 34px; padding: 0 14px; }
/* Tarifs internationaux : deux lignes d'en-tête (titres, puis paliers), prix alignés à droite, colonnes paires teintées. */
#content table.cs-prices-world { width: auto; max-width: 100%; }
#content table.cs-prices-world > tbody > tr:nth-child(-n+2) > td { background: var(--surface-muted); color: var(--ink-muted); font-size: 13px; font-weight: 600; text-align: center; }
#content table.cs-prices-world > tbody > tr:nth-child(-n+2) > td b { font-weight: 600; }
#content table.cs-prices-world > tbody > tr:nth-child(2) > td.list_size { background: var(--brand-soft-strong); color: var(--ink); }
#content table.cs-prices-world > tbody > tr:nth-child(n+3) > td { padding: 8px 14px; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink); }
#content table.cs-prices-world > tbody > tr:nth-child(n+3) > td:first-child { text-align: left; white-space: nowrap; }
#content table.cs-prices-world > tbody > tr:nth-child(n+3) > td.list_size { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
#content table.cs-prices-world > tbody > tr:nth-child(n+3):hover > td { background: var(--surface-muted); }
#content table.cs-prices-world .flag { vertical-align: middle; margin-right: var(--space-2); }

/* Modèle de campagne : nombre de SMS selon la longueur, en bloc d'aide bleu. */
.cs-sms-costing { margin-top: var(--space-4); font-size: 14px; line-height: 22px; }

/* Historique par pays : choix de la date sur une ligne, bouton Valider à droite. */
.cs-date-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; }
.cs-date-form label { margin: 0; font-weight: 600; }
.cs-date-form select { width: auto; min-width: 0; }
.cs-date-form button[type="submit"] { margin-left: auto; }

/* jqGrid : la gouttière de la barre de défilement (à droite) prend la couleur de l'en-tête ; pager lisible. */
.ui-jqgrid .ui-jqgrid-hdiv, .ui-jqgrid .ui-jqgrid-hbox { background: var(--surface-muted) !important; border-color: var(--line) !important; }
.ui-jqgrid .ui-pg-table td { font-size: 13px; color: var(--ink-muted); vertical-align: middle; }
.ui-jqgrid .ui-pg-input { box-sizing: border-box; width: 44px !important; height: 30px; margin: 0 4px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; text-align: center; color: var(--ink); }
#content .ui-jqgrid select.ui-pg-selbox { height: 30px; min-width: 64px; padding: 0 28px 0 10px; font-size: 13px; background-position: right 10px center; border-radius: var(--radius-sm); }

/* Fenêtre du mot de passe : champs alignés, consigne de format en petit gris clair sous les champs. */
.ui-dialog .ui-dialog-content table.normal { border-collapse: separate; border-spacing: 0 var(--space-2); margin: 0 auto; }
.ui-dialog .ui-dialog-content table.normal td { padding: 0 var(--space-2); }
.cs-field-hint { margin: var(--space-2) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-subtle, #94a3b8); text-align: center; }

/* Marges uniformes : l'ancien gabarit annule la marge négative des .row (margin: 0 0 10px), donc tout le contenu est décalé de
   15 px (padding des colonnes). L'en-tête de contenu (avis, boutons de titre) reprend ce même retrait pour s'aligner. */
#content-header { padding-left: 15px; padding-right: 15px; }
.cs-prices > tbody > tr > td, .cs-prices > thead > tr > th { white-space: nowrap; }
#content table.data_table > thead > tr > th::before, #content table.data_table > thead > tr > th::after { content: none; }
#content table.cs-prices-world > tbody > tr:nth-child(2) > td { white-space: nowrap; padding: 8px 12px; }
#content table.cs-prices-world > tbody > tr:nth-child(n+3) > td.list_size { font-weight: 500; }

/* Pack sur-mesure : de l'air sous « Minimum : 200 SMS ». */
.self_pack_quantity .custom-price.legend { display: inline-block; margin: var(--space-1) 0 var(--space-3); }
/* Tarifs internationaux en carte : le tableau occupe la carte, l'en-tête porte le lien vers les tarifs France. */
.cs-world-prices .widget-content { padding: var(--space-4); overflow-x: auto; }
.cs-world-prices .widget-content > br:first-child { display: none; }
.widget-title > .floatright .btn { height: 32px; padding: 0 14px; font-size: 13px; }
.widget-title > .floatright .btn-default i { color: var(--brand); }
/* Bloc « Pack sur-mesure » : hauteur libre (l'ancien gabarit le fixe à 60 px, la mention minimum débordait), fond gris clair arrondi. */
.self_packl { box-sizing: border-box; display: block; width: 100%; height: auto !important; margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-muted); }
.self_packl form { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.self_packl .self_pack_quantity { display: flex; align-items: flex-start; gap: var(--space-3); height: auto; }
.self_packl .floatleft, .self_packl .floatright { float: none; }
.self_packl .free_pack_label label { margin: 0; line-height: 40px; font-weight: 600; }
.self_packl .free_pack_input br { display: none; }
.self_packl .custom-price.legend { display: block; margin: var(--space-1) 0 0; font-size: 12px; color: var(--ink-subtle); }
#content div.self_packl { background: var(--surface-muted) !important; }
#content .cs-world-prices table.cs-prices-world { width: 100%; }
#content table.cs-prices-world { overflow: visible; }

/* Factures : la colonne Action garde ses quatre boutons sur une ligne ; légende des boutons en bloc d'aide sous le tableau. */
#content table.actions > thead > tr > th:last-child, #content table.actions > tbody > tr > td:last-child { width: 1%; white-space: nowrap; }
.cs-legend-help { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); }
.cs-legend-help .cs-legend-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.cs-legend-help .cs-legend-item i { width: 16px; text-align: center; }

/* csms-302 : thanks page after an order, message in a card, round numbered steps. */
.cs-thanks .widget-content p { margin: 0 0 var(--space-3); font-size: 15px; line-height: 22px; }
.cs-thanks .cs-thanks-lead { font-size: 16px; }
.cs-thanks .cs-thanks-next { margin-top: var(--space-5); font-weight: 600; }
.cs-next-steps { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.cs-next-steps a { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); font-weight: 600; text-decoration: none; }
.cs-next-steps .cs-step-num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 16px; font-weight: 700; box-shadow: 0 0 0 4px var(--brand-soft); }
.cs-next-steps a:hover .cs-step-label, .cs-next-steps a:focus .cs-step-label { color: var(--brand); text-decoration: underline; }

/* csms-302 : prices per country of an order (« prix détaillés » window). */
.ui-dialog .cs-price-detail { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.ui-dialog .cs-price-detail thead th { position: sticky; top: -20px; z-index: 1; }
.ui-dialog .cs-price-detail td { padding: 8px var(--space-3); white-space: nowrap; }
.ui-dialog .cs-price-detail .flag { display: inline-block; vertical-align: middle; margin-right: var(--space-2); }

/* csms-302 : dashboard, « Comment envoyer une campagne de SMS ? » as four numbered cards. */
.cs-howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); max-width: 920px; margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.cs-howto a { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); height: 100%; box-sizing: border-box; padding: var(--space-5) var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-align: center; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cs-howto a:hover, .cs-howto a:focus { border-color: var(--brand); box-shadow: var(--shadow-pop); color: var(--ink); text-decoration: none; transform: translateY(-2px); }
.cs-howto .cs-howto-num { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; }
.cs-howto .cs-howto-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; }
.cs-howto .cs-howto-icon img { width: 32px; height: 32px; transition: transform .15s; }
.cs-howto a:hover .cs-howto-icon img, .cs-howto a:focus .cs-howto-icon img { transform: scale(1.12); }
.cs-howto .cs-howto-label { font-size: 14px; font-weight: 600; line-height: 20px; }
@media (max-width: 767px) { .cs-howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* csms-302 : orders waiting for validation (dashboard, price pages), card with a table (was a green alert). */
.cs-waiting-orders { max-width: 720px; }
.cs-waiting-orders .widget-title .icon i { color: var(--warning, #b45309); }
.cs-waiting-orders .table { margin: 0; }
.cs-waiting-orders .table td { font-variant-numeric: tabular-nums; }
.cs-waiting-orders-note { margin: 0; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--surface-muted); color: var(--ink-muted); font-size: 13px; line-height: 19px; }

/* csms-302 : dashboard blocks in cards (no content directly on the page background). */
.cs-how-to-start .widget-content { padding: var(--space-5) var(--space-4) var(--space-4); }
.cs-how-to-start .cs-stepper { margin-bottom: var(--space-5); }
.cs-how-to-start-action p { margin: 0 0 var(--space-3); font-size: 14px; color: var(--ink-muted); }
.cs-how-to-start-action .alert { margin-bottom: 0; }
.cs-how-to-send .widget-content { padding: var(--space-4); }
.cs-how-to-send .cs-howto { max-width: none; margin: 0; }
#content .cs-how-to-start, #content .cs-how-to-send { margin-top: 0; }
/* account.css capped the block at 700 px and forced box-sizing: content-box on its children. */
#content .account-progress-div { max-width: none; font-size: 14px; }
#content .account-progress-div *, #content .account-progress-div *::before, #content .account-progress-div *::after { box-sizing: border-box; }
/* Same 24 px between the dashboard cards (the old theme added 15 px under each column). */
#content .cs-how-to-start, #content .cs-how-to-send, #content #help_panel { margin-bottom: 0; }
#content .account-progress-div > [class*="col-"], #content #help_panel { margin-top: 0; }

/* csms-302 : international credit page, balance and table in a card. */
.cs-world-credit .table { margin: 0; }
.cs-world-credit .table td { padding: 8px var(--space-3); }
.cs-world-credit .flag { display: inline-block; vertical-align: middle; margin-right: var(--space-2); }

/* csms-302 : two-position switch (campaign history: show the unit sendings or not). */
.cs-segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); }
.cs-segmented label { margin: 0; cursor: pointer; font-weight: 500; }
.cs-segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cs-segmented span { display: inline-block; padding: 7px 16px; border-radius: var(--radius-pill); color: var(--ink-muted); font-size: 14px; line-height: 20px; transition: background .15s, color .15s; }
.cs-segmented label:hover span { color: var(--ink); }
.cs-segmented input:checked + span { background: var(--brand); color: var(--on-brand); }
.cs-segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cs-below-grid { margin-top: var(--space-4); }

/* ========== Typographie de l'application (csms-302, retour de Yoni du 2026-11-29) ==========
   Une seule échelle pour tout l'espace client :
   - titre de page (barre du haut)          : 20 px, 700, --ink            (règle #content-header h1, plus haut)
   - titre de carte (en-tête de widget-box) : 15 px, 600, --ink
   - texte courant dans une carte           : 14 px, 400, --text (gris ardoise, ni noir ni pâle)
   - libellé de formulaire                  : comme le texte courant, en 600
   - en-tête de colonne de tableau          : 13 px, 600, --ink-muted, fond --surface-muted (règle .table th)
   - cellule de tableau                     : 14 px, 400, --ink (les données restent les plus lisibles)
   - note, aide sous un champ               : 13 px, 400, --ink-subtle
   Les alertes, boutons et pastilles gardent leurs propres couleurs. */
:root { --fs-card-title: 15px; --fs-body: 14px; --fs-small: 13px; --text: var(--ink-muted); }
#content .widget-box .widget-title h5 { float: none; padding: 12px 0 12px var(--space-1); color: var(--ink); text-shadow: none; font-size: var(--fs-card-title); font-weight: 600; line-height: 22px; }
#content .widget-box .widget-content { font-size: var(--fs-body); line-height: 21px; color: var(--text); }
#content label { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
#content .table td { font-size: var(--fs-body); color: var(--ink); }
#content .cs-field-hint, #content .help-block { font-size: var(--fs-small); color: var(--ink-subtle); }
.cs-thanks .widget-content p, .cs-thanks .cs-thanks-lead { font-size: var(--fs-body); }
/* jQuery UI dialogs are outside #content: same labels, text and hints there. */
.ui-dialog .ui-dialog-content { font-size: var(--fs-body); line-height: 21px; color: var(--text); }
.ui-dialog .ui-dialog-content label { margin: 0; font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.ui-dialog .cs-field-hint { font-size: var(--fs-small); color: var(--ink-subtle); }
.ui-dialog .cs-dialog-form td { padding: 6px var(--space-3) 6px 0; vertical-align: middle; }
.ui-dialog .ui-dialog-content table.cs-dialog-form { margin: 0; } .ui-dialog .cs-dialog-form + .cs-field-hint { margin: var(--space-2) 0 0; text-align: left; }

/* ========== Retours du déploiement du lot 1 (2026-11-29, F1 à F13) ==========
   Règles d'UX (passation, section « Retours du déploiement du 2026-11-29 »), sélecteurs resserrés par CS sur les vraies vues :
   pas de règle générale sur toutes les cellules ni sur tous les champs des cartes, seulement les classes posées dans les vues. */

/* F1 : pages de connexion et de mot de passe oublié, champs du Design System, plus de jaune ni de carré blanc. Icônes : voir F14 (sur un conteneur). */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 9999s; }
#connection_view div.auto_validator, #forgotten_password_view div.auto_validator { position: relative; float: none; box-sizing: border-box; width: 100%; max-width: 400px; padding: 0; border: 0; background: none; }
#connection_view div.auto_validator .input_tick, #forgotten_password_view div.auto_validator .input_tick { position: absolute; top: 7px; right: 8px; float: none; }
#content #email_input, #content #password_input, #content #password_input_1, #content #password_input_2 { float: none; box-sizing: border-box; width: 100%; max-width: 400px; height: 44px; margin: 0; padding: 0 var(--space-3) 0 40px; font: 400 15px/22px var(--font-sans); color: var(--ink); background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
#connection_view input:focus, #forgotten_password_view input:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }
/* F3 : bouton principal des pages de connexion, vert plein (la vue porte btn btn-primary). */
#button_login, #forgotten_password_button, #button_inscription { height: 44px; padding: 0 24px; border-radius: var(--radius-pill); font: 600 15px/1 var(--font-sans); }

/* F2 : le logo garde sa taille même hors de #header_bo (le SVG porte aussi width et height). */
.cs-logo svg { flex: none; width: 28px; height: 28px; }

/* F4, F11 : grilles jqGrid (espace client, et admin depuis F17). */
.ui-jqgrid .ui-jqgrid-titlebar { position: relative; height: auto !important; padding: 12px 48px 12px 16px !important; line-height: 22px; overflow: visible; }
.ui-jqgrid .ui-jqgrid-titlebar-close { top: 50% !important; right: 20px !important; margin-top: -9px !important; }
.ui-jqgrid .ui-jqgrid-htable th.ui-th-column, .ui-jqgrid tr.jqgrow td { padding-left: 2px; padding-right: 2px; }
.ui-jqgrid td.jqgrid-rownum, .ui-jqgrid tr.jqgrow td.jqgrid-rownum { background: inherit !important; background-image: none !important; border-color: var(--line) !important; color: var(--ink-subtle) !important; text-align: center; }
.ui-jqgrid th[id$="_cb"], .ui-jqgrid td[aria-describedby$="_cb"], .ui-jqgrid th[id$="_rn"] { text-align: center; }
.ui-jqgrid .cbox { margin: 0 !important; vertical-align: middle; }
.ui-jqgrid tr.jqgrow, .ui-jqgrid tr.jqgrow td, .ui-jqgrid .ui-priority-secondary { color: var(--ink) !important; opacity: 1 !important; font-weight: 400; }
.ui-jqgrid tr.jqgrow td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-jqgrid .ui-jqgrid-pager { height: auto !important; padding: 8px 16px !important; }
.ui-jqgrid .ui-pager-control, .ui-jqgrid .ui-pg-table { height: auto !important; }
.ui-jqgrid .ui-pg-table td { vertical-align: middle !important; }
.ui-jqgrid .ui-pg-input, #content .ui-jqgrid select.ui-pg-selbox { box-sizing: border-box; height: 32px !important; margin: 0 4px !important; vertical-align: middle; }
.ui-jqgrid .ui-paging-info { padding-right: 8px; white-space: nowrap; }
.ui-jqgrid .cs-badge { line-height: 20px; }
.cs-badge-muted { background: var(--surface-muted); color: var(--ink-muted); }

/* F4 : boutons d'action de la liste ouverte, tous de la largeur de la colonne, icône puis libellé. */
#content .row .cs-actions-col ul.quick-actions-horizontal { flex-direction: column; flex-wrap: nowrap; }
#content .row .cs-actions-col ul.quick-actions-horizontal li { width: 100% !important; }
#content .row .cs-actions-col ul.quick-actions-horizontal li a { width: 100%; justify-content: flex-start; }

/* F5, F9 : une seule pagination (helper _view_pagination) : pastilles espacées, page courante en vert, masquée sur une page. */
.cs-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: var(--space-4) 0; padding: 0 var(--space-4); }
.cs-pagination a, .cs-pagination strong { display: inline-flex; min-width: 32px; height: 32px; box-sizing: border-box; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.cs-pagination a:hover, .cs-pagination a:focus-visible { border-color: var(--brand); color: var(--brand); text-decoration: none; outline: none; }
.cs-pagination strong { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* F5 : factures, trois dernières années en boutons collés ; tableaux : plus de texte justifié, montants à droite. */
.cs-years { margin-bottom: var(--space-4); }
.cs-segmented a.cs-seg { text-decoration: none; }
.cs-segmented .cs-seg[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
#content .table > thead > tr > th:not(.acenter):not(.aright):not(.num), #content .table > tbody > tr > td:not(.acenter):not(.aright):not(.num) { text-align: left; }
#content .table th.num, #content .table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#content .widget-content p, #content .alert, #content #help_panel .widget-content { text-align: left; }

/* F6 : transfert de crédit, champs du Design System, 8 px entre les lignes, 16 px entre libellé et champ. */
#content .cs-form-table { border-collapse: separate; border-spacing: 0; }
#content .cs-form-table td { height: auto; padding: 4px 0; vertical-align: middle; text-align: left; }
#content .cs-form-table td:first-child { padding-right: 16px; }
#content .cs-form-table div.auto_validator { position: relative; float: none; width: 100%; max-width: 480px; padding: 0; border: 0; background: none; }
#content .cs-form-table div.auto_validator .input_tick { position: absolute; top: 7px; right: 8px; float: none; }
#content .cs-form-table input[type="text"], #content .cs-form-table input[type="email"], #content .cs-form-table input[type="number"], #content .cs-form-table input[type="password"], #content .cs-form-table select { float: none; box-sizing: border-box; width: 100% !important; max-width: 480px; height: 44px; margin: 0; padding: 0 var(--space-3); font: 400 15px/22px var(--font-sans); color: var(--ink); background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
#content .cs-form-table select { padding-right: 36px; }
#content .cs-form-table input:focus, #content .cs-form-table select:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }

/* F7, F8 : raccourcis neutres sur une ligne, colonne à largeur fixe ; légende en bloc bleu sous le tableau (.cs-legend-help). */
.cs-shortcuts { flex-wrap: nowrap; align-items: center; }
.cs-shortcuts > div, .cs-shortcuts form, .cs-shortcuts form > div { display: inline-flex; float: none !important; margin: 0 !important; align-items: center; gap: var(--space-1); }
button.cs-shortcut { padding: 0; font-size: 14px; line-height: 1; }
td.cs-shortcuts-cell, th.cs-shortcuts-cell { width: 200px; min-width: 200px; white-space: nowrap; }
.cs-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; margin-bottom: var(--space-5); }
.cs-split > .widget-box { margin: 0 !important; max-width: none; }
@media (max-width: 1023px) { .cs-split { grid-template-columns: 1fr; } }

/* F9 : blacklist, carte étroite, deux colonnes égales, action principale en vert dans l'en-tête. */
.widget-box.cs-narrow { max-width: 640px; }
#content .cs-blacklist { margin: 0; }
#content .cs-blacklist th, #content .cs-blacklist td { width: 50%; font-variant-numeric: tabular-nums; }
.cs-empty { margin: 0; padding: var(--space-4); color: var(--ink-muted); }

/* F10 : détail d'une campagne (téléphone, chiffres, rapport repliable), d'après la maquette « Historique — détail ». */
.cs-campaign { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cs-phone { flex: none; width: 248px; box-sizing: border-box; padding: 14px 12px 22px; border: 2px solid #cbd5e1; border-radius: 36px; background: var(--surface); box-shadow: var(--shadow-pop); }
.cs-phone-speaker { width: 56px; height: 6px; margin: 4px auto 12px; border-radius: var(--radius-pill); background: #cbd5e1; }
.cs-phone-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cs-phone-avatar { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.cs-phone-sender { font-size: 14px; font-weight: 600; color: var(--ink); }
.cs-phone-screen { min-height: 220px; padding: 14px 4px 0; }
.cs-phone-date { text-align: center; font-size: 11px; color: var(--ink-subtle); margin-bottom: 8px; }
.cs-bubble { max-width: 88%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface-muted); font-size: 14px; line-height: 20px; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
.cs-campaign-side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cs-campaign-side .cs-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.cs-campaign-side .cs-kpi { text-align: center; background: var(--surface-muted); box-shadow: none; }
.cs-campaign-side .cs-kpi a { color: inherit; text-decoration: underline; }
.cs-kpi.ok strong, .cs-kpi.ok span { color: var(--brand); }
.cs-kpi.ko strong, .cs-kpi.ko span { color: var(--danger); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-muted); }
.cs-meta b { color: var(--ink); font-weight: 600; }
.cs-campaign-card .widget-title form { margin: 0; }
details.cs-report { margin-top: 24px; }
details.cs-report > summary { list-style: none; display: inline-flex; align-items: center; cursor: pointer; }
details.cs-report > summary::-webkit-details-marker { display: none; }
details.cs-report[open] .cs-sum-open, details.cs-report:not([open]) .cs-sum-close { display: none; }
.cs-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 20px; }
.cs-report-grid > .widget-box { margin: 0; }
.cs-report-grid #pie_chart, .cs-report-grid #bar_chart { width: 100%; height: 300px; }
@media (max-width: 767px) { .cs-campaign-side .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-phone { margin: 0 auto; } }

/* F10, F11 : barre d'outils unique, filtres Année et Mois en boutons blancs à gauche, actions à droite. */
.cs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.cs-toolbar > .btn-group { float: none; position: relative; z-index: 100; }
.cs-toolbar .cs-toolbar-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--space-2); }
#content .row .cs-toolbar ul.quick-actions-horizontal { margin: 0; }
.cs-toolbar .btn-group > .btn, .cs-toolbar .dropdown-toggle { height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill) !important; background: var(--surface); color: var(--ink); font-weight: 600; }
.cs-toolbar .dropdown-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* F12 : documentation API, sommaire sur le gris habituel, collant, rubrique affichée en vert. */
#content .api-doc-menu { position: sticky; top: 80px; box-sizing: border-box; padding: var(--space-4); background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink-muted); }
#content .api-doc-menu ul { margin: 0 0 var(--space-3); }
#content .api-doc-menu li a { display: block; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; }
#content .api-doc-menu li.header a { padding-left: 8px; color: var(--ink); font-weight: 700; }
#content .api-doc-menu li a:hover { color: var(--ink); background: var(--surface); }
#content .api-doc-menu li a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
#content .api-doc-content h1, #content .api-doc-content h2 { font-size: 26px; line-height: 32px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; }
#content .api-doc-content p { text-align: left; }
#content .api-doc-content table tr td:first-child, #content .api-doc-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); font-weight: 400; }
#content .api-doc-content table thead th { background: var(--surface-muted); color: var(--ink-muted); }

/* F13 : fenêtre d'ajout d'un sous-compte, une colonne, libellé au-dessus, plus de zébrage ni de double bordure. */
.ui-dialog .cs-stack-form, .ui-dialog .cs-stack-form tbody, .ui-dialog .cs-stack-form tr, .ui-dialog .cs-stack-form td { display: block; width: 100%; height: auto !important; border: 0 !important; background: none !important; padding: 0; }
.ui-dialog .cs-stack-form tr { margin-bottom: 16px; }
.ui-dialog .cs-stack-form td:first-child { margin-bottom: 4px; }
.ui-dialog .cs-stack-form div.auto_validator { position: relative; float: none; width: 100%; padding: 0; border: 0; background: none; }
.ui-dialog .cs-stack-form div.auto_validator .input_tick { position: absolute; top: 7px; right: 8px; float: none; }
.ui-dialog .cs-stack-form input[type="text"] { float: none; box-sizing: border-box; width: 100% !important; max-width: none; height: 44px; margin: 0; padding: 0 var(--space-3); font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.ui-dialog .cs-stack-form input:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }
.ui-dialog .cs-stack-form .help-block { margin: 4px 0 0; }
.ui-dialog .cs-required { margin-left: 2px; color: var(--ink-subtle); }
.ui-dialog .cs-required-note { margin: var(--space-2) 0 0; }

/* Bouton principal en lien dans l'en-tête d'une carte (blacklist, modèles) : texte blanc, pas la couleur des liens. */
.widget-title > .floatright a.btn-primary, .widget-title > .floatright a.btn-primary:hover, .widget-title > .floatright a.btn-primary i { color: var(--on-brand); text-decoration: none; }
#content .widget-box .widget-title h5 { text-align: left; }
#content .row ul.quick-actions-horizontal i.icon-cal:before { content: '\f073'; }

/* ========== Deuxième déploiement (2026-11-30, F14, F15 et F17) ==========
   Règles d'UX (passation, section « Deuxième déploiement, retours du 2026-11-30 »), resserrées par CS sur les vraies vues. */

/* F14 : icône à côté du champ, dessinée sur un conteneur (.cs-input-icon.cs-icon-mail | .cs-icon-lock, vues login/connection.php,
   forgotten_password.php, forgotten_password_retrieval.php) : ni l'ombre du remplissage automatique ni l'ancienne feuille ne la recouvrent. */
.cs-input-icon { position: relative; display: block; max-width: 400px; }
.cs-input-icon::before { content: ""; position: absolute; left: 12px; top: 22px; z-index: 1; width: 18px; height: 18px; margin-top: -9px; background-repeat: no-repeat; background-size: 18px 18px; pointer-events: none; }
.cs-icon-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.cs-icon-lock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.cs-input-icon input { padding-left: 40px !important; }

/* F14 : page de connexion alignée sur le Design System : logo vert plein (même SVG que l'en-tête), titre, carte à bordure fine. */
#logo .cs-logo { display: inline-flex; align-items: center; gap: 10px; height: auto; padding: 24px 15px; font: 800 26px/1 var(--font-sans); letter-spacing: -.03em; color: var(--brand); text-decoration: none; }
#logo .cs-logo svg { flex: none; width: 32px; height: 32px; color: var(--brand); }
#logo .cs-logo span { float: none; padding: 0; font: inherit; letter-spacing: inherit; color: inherit; }
#logo a.cs-logo:hover, #logo a.cs-logo:focus { color: var(--brand); text-decoration: none; }
#content.empty_content h1 { margin: 0 0 var(--space-4, 16px); font: 750 26px/32px var(--font-sans); letter-spacing: -.02em; color: var(--ink) !important; }
#connection_form_div.cs-login-card, #forgotten_password_form_div.cs-login-card { display: block; box-sizing: border-box; width: 100%; max-width: 440px; min-height: 0; margin: 0 auto; padding: var(--space-6); text-align: left; background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
#connection_form_div.cs-login-card #connection_form_div_content, #forgotten_password_form_div.cs-login-card #forgotten_password_form_div_content { float: none; width: auto; padding: 0; }
@media (max-width: 480px) { #connection_form_div.cs-login-card, #forgotten_password_form_div.cs-login-card { padding: var(--space-4, 16px); } }

/* F14, F15 : sélecteur de langue (<details class="cs-lang">, helper _view_lang_link) : drapeau et code de la langue ACTIVE,
   un clic ouvre le choix des autres langues ; drapeau 24 x 16 px (3:2), coins de 2 px, liseré pour le blanc du drapeau français. */
.cs-lang { position: relative; display: inline-block; text-align: left; }
.cs-lang > summary { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: 14px; color: var(--ink-muted); cursor: pointer; list-style: none; user-select: none; }
.cs-lang > summary::-webkit-details-marker { display: none; }
.cs-lang > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.cs-lang[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.cs-lang > summary:hover, .cs-lang[open] > summary { background: var(--surface-muted); color: var(--ink); }
.cs-lang > summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.cs-lang-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 1000; display: flex; flex-direction: column; min-width: 100%; box-sizing: border-box; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); }
.cs-lang-menu a, #user-nav .cs-lang-menu a { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.cs-lang-menu a:hover, .cs-lang-menu a:focus { background: var(--surface-muted); color: var(--ink); text-decoration: none; }
.cs-lang .cs-flag { flex: none; display: block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.cs-lang-code { font-weight: 600; letter-spacing: .02em; }
/* Pied des pages de connexion : le choix s'ouvre vers le haut, centré. */
.lang_picker .cs-lang-menu { top: auto; bottom: calc(100% + 4px); right: auto; left: 50%; transform: translateX(-50%); }
#connection_form_div.cs-login-card .buffer_4 { display: none; }

/* ========== F16 (2026-11-30) : nouvelle campagne en une seule page, aperçu téléphone à droite ==========
   Maquette « Nouvelle campagne — une seule page » ; vue logged/sms/sms_form.php (.cs-campaign-form), mêmes champs qu'avant. */
.cs-campaign-form > .widget-title { display: flex; align-items: center; gap: 4px 12px; height: auto !important; min-height: 48px; }
.widget-title .cs-title-note { margin-left: auto; padding-right: 16px; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.cs-campaign-form > .widget-content { padding: var(--space-6, 32px) var(--space-5, 24px); }
.cs-one { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.cs-step-sec { position: relative; padding: 0 0 24px 52px; }
.cs-step-sec + .cs-step-sec { padding-top: 8px; }
.cs-step-sec:not(:last-of-type)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.cs-step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px -52px; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.cs-step-title .cs-step-num { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.cs-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
#content .cs-campaign-form .form-group > label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cs-campaign-form .help-block { text-align: left; margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* L'ancienne feuille sms_form20140112.css fixe 210 px et un fond gris sur les zones de texte. */
#content .cs-campaign-form #sms_textarea, #content .cs-campaign-form #dest_textarea { box-sizing: border-box; width: 100%; height: auto; min-height: 140px; padding: 10px 12px; font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); resize: vertical; }
#content .cs-campaign-form #sms_textarea:focus, #content .cs-campaign-form #dest_textarea:focus, #content .cs-campaign-form .form-control:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }
#content .cs-campaign-form input.form-control, #content .cs-campaign-form select.simple_select { box-sizing: border-box; width: 100% !important; max-width: 360px; }
.cs-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
/* Boutons segmentés sur de vrais boutons radio (même name qu'avant) : <input type="radio" id> + <label for>. */
.cs-segmented-radio { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-muted); }
.cs-segmented-radio input[type=radio] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
#content .cs-campaign-form .cs-segmented-radio label { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin: 0; padding: 0 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
#content .cs-campaign-form .cs-segmented-radio label:hover { color: var(--ink); background: var(--surface); }
#content .cs-campaign-form .cs-segmented-radio input:checked + label { background: var(--brand); color: var(--on-brand); }
#content .cs-campaign-form .cs-segmented-radio input:focus-visible + label { box-shadow: var(--shadow-focus); }
.cs-date-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#content .cs-date-row #date_tr .form-control { width: 220px !important; max-width: 100%; }
/* Aperçu : téléphone de F10 (cs-phone), collant en défilant. */
.cs-preview { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cs-preview-label { font-size: 13px; font-weight: 600; color: var(--ink-subtle); }
.cs-preview .cs-phone { width: 260px; }
.cs-preview .cs-phone-screen { min-height: 252px; }
.cs-preview .cs-bubble { white-space: pre-wrap; }
.cs-preview .cs-bubble:empty { display: none; }
.cs-phone-bottom { display: flex; justify-content: center; margin-top: 12px; padding: 14px 0 2px; border-top: 1px solid var(--line); }
.cs-test-message { width: 100%; font-size: 13px; }
.cs-test-message:empty { display: none; }
/* Aide sous le téléphone, à demi visible ; entière au survol ou au focus clavier. */
.cs-help { width: 100%; opacity: .5; transition: opacity .2s; }
.cs-help:hover, .cs-help:focus, .cs-help:focus-within { opacity: 1; outline: none; }
.cs-help .widget-box { margin: 0; }
.cs-help .widget-content { padding: 16px; text-align: left; }
.cs-help h4 { margin: 0 0 2px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.cs-help p, .cs-help .legend { margin: 0 0 8px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.cs-help br { display: none; }
.cs-help .sms_know_more { display: inline-block; margin-bottom: 12px; font-size: 13px; }
/* Bas de carte : récapitulatif, cases du test (exigées par le formulaire), boutons. */
.cs-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-page); }
.cs-cost { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-muted); }
.cs-footer .cs-test-choice { justify-self: end; }
#content .cs-campaign-form #div_dest_chose_2 > label { font-weight: 400; text-align: left; color: var(--ink-muted); }
.cs-cost b { color: var(--ink); }
.cs-test-choice { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-muted); }
.cs-test-choice .help-block { margin: 0 0 2px; text-align: left; }
#content .cs-test-choice label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.cs-test-choice input { margin: 0; }
.cs-footer-note { grid-column: 1 / -1; text-align: right; font-size: 12px; color: var(--ink-subtle); }
.cs-test-mobile { display: none !important; }
@media (max-width: 1023px) { .cs-one { grid-template-columns: 1fr; } .cs-preview { position: static; } }
@media (max-width: 767px) {
  .cs-preview .cs-phone, .cs-preview-label { display: none; }
  .cs-test-mobile { display: inline-flex !important; }
  .cs-help { opacity: 1; }
  .cs-campaign-form > .widget-content { padding: 16px; }
  .cs-step-sec { padding-left: 0; } .cs-step-title { margin-left: 0; } .cs-step-sec::before { display: none; }
  .cs-segmented-radio { display: flex; width: 100%; box-sizing: border-box; flex-wrap: nowrap; }
  #content .cs-campaign-form .cs-segmented-radio label { flex: 1 1 0; min-width: 0; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
  .cs-date-row { flex-direction: column; align-items: stretch; } #content .cs-date-row #date_tr .form-control { width: 100% !important; }
  .cs-footer { display: flex; flex-direction: column; align-items: stretch; padding: 16px; } .cs-footer .cs-test-choice { justify-self: auto; } .cs-footer .btn { width: 100%; } .cs-footer-note { text-align: center; }
  .cs-campaign-form > .widget-title { flex-wrap: wrap; } .widget-title .cs-title-note { margin-left: 0; width: 100%; padding: 0 16px 12px; text-align: left; } .cs-campaign-form > .widget-title h5 { padding-bottom: 0; }
}

/* ---------- Admin : navigation du haut (F18, validée par Yoni le 2026-11-30) ----------
   À ajouter à la fin de refresh20261130b.css. Balisage : private/private_menu_admin.php et private_menu_light.php.
   <nav class="cs-adminnav"><div class="cs-adminnav-row"><a class="cs-cat-cli [is-active]" href="…">Users <span class="cs-count">3</span></a>…</div>…
   <div class="cs-adminnav-legend"><span><i class="cs-cat-cli"></i>Clients</span>…</div></nav> */
.cs-adminnav { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cs-adminnav-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-adminnav-row a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; box-sizing: border-box; border: 2px solid var(--c); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cs-adminnav-row a:hover { background: color-mix(in srgb, var(--c) 10%, #fff); text-decoration: none; color: var(--ink); }
.cs-adminnav-row a.is-active { background: color-mix(in srgb, var(--c) 16%, #fff); }
.cs-cat-cli { --c: var(--brand); }
.cs-cat-cmd { --c: var(--info); }
.cs-cat-env { --c: var(--warning); }
.cs-cat-sup { --c: #6d28d9; }
.cs-count { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--danger); color: var(--on-brand); font-size: 11px; font-weight: 700; }
.cs-adminnav-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-subtle); }
.cs-adminnav-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cs-adminnav-legend i { width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--c); border-radius: var(--radius-pill); }
/* Sous-navigation (3e rangée : support, SMS, tarifs, analytics) en onglets soulignés */
.cs-subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: -8px 0 20px; border-bottom: 1px solid var(--line); }
.cs-subnav a { margin-bottom: -1px; padding: 8px 12px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.cs-subnav a:hover { color: var(--ink); }
.cs-subnav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
/* Ajouts de CS (2026-11-30) : pastille orange (tickets en attente d'une réponse admin, ancien btn-warning), pastille grise (compteurs
   d'information : réponse client, closed), icônes des onglets, barre de la sous-navigation du support (filtre et recherche à droite). */
.cs-count.is-warning { background: var(--warning); }
.cs-count.is-muted { background: var(--surface-muted); color: var(--ink-muted); }
.cs-subnav a { display: inline-flex; align-items: center; gap: 6px; }
.cs-subnav a i { font-size: 13px; opacity: .8; }
.cs-subnav a.is-active { color: var(--brand); }
.cs-adminnav-row a i { font-size: 13px; }
.cs-subnav-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin: -8px 0 20px; border-bottom: 1px solid var(--line); }
.cs-subnav-bar .cs-subnav { flex: 1 1 auto; margin: 0; border-bottom: 0; }
.cs-subnav-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 6px; }
.cs-subnav-tools form { display: flex; align-items: center; gap: 6px; margin: 0; }
.cs-subnav-tools input.std { box-sizing: border-box; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 14px; }
