/* Atelia · console sur téléphone (10/11/2026, demande de Saleh) : page « Clients » (cartes des restaurants), en-tête et onglets de la
   page d'un restaurant, fenêtres « Paramètres du restaurant » et « Comptes », fenêtre « Aperçu mobile / Aperçu réseau ».
   Règles limitées à html[data-espace="console"] et à @media (max-width: 760px) : l'ordinateur reste tel quel.
   Noms (français = anglais) : barre de filtres = Filter bar, recherche = Search bar, liste déroulante = Dropdown, choix segmenté =
   Segmented control, carte = Card, puce = Chip, pastille = Badge, barre d'onglets qui défile = Scrollable tabs, fenêtre plein écran =
   Full-screen sheet, interrupteur = Switch, bouton radio = Radio button, case à cocher = Checkbox, menu « … » = Overflow menu,
   bande = Banner. La coque (css/mobile-coque.css) met toutes les fenêtres en feuille plein écran (titre en haut, « Enregistrer » en
   bas) ; cette feuille en reprend les mêmes valeurs pour les fenêtres d'un restaurant (le lot tient seul) et règle ce qu'il y a
   dedans. */

@media (max-width: 760px) {

  /* ================================================================ page « Clients »
     En tête : « Nouveau client », la collecte « Manuel | Automatique », puis les puces des navigateurs (Scrollable chips) : UNE
     rangée qui défile de côté dans son cadre, puces de 40 px de haut sur une ligne ; une ombre au bord dit qu'il en reste à voir
     (elle suit le défilement et s'efface au bout là où le navigateur sait le faire ; sinon, seule l'ombre de droite reste). */
  html[data-espace="console"] .nc-clients .nc-clients-haut { gap: 8px; }
  html[data-espace="console"] .nc-clients .nc-clients-haut > .nc-sp { display: none; }
  html[data-espace="console"] .nc-clients .nc-navs {
    flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-padding: 0 24px;
  }
  html[data-espace="console"] .nc-clients .nc-navs::-webkit-scrollbar { display: none; }
  html[data-espace="console"] .nc-clients .nc-navs > .nc-navchip { flex: none; max-width: none; white-space: nowrap; }
  html[data-espace="console"] .nc-clients .nc-navs::before,
  html[data-espace="console"] .nc-clients .nc-navs::after {
    content: ""; position: sticky; z-index: 1; flex: none; align-self: stretch; width: 16px; pointer-events: none;
  }
  html[data-espace="console"] .nc-clients .nc-navs::before { left: 0; margin: 0 -24px 0 0; opacity: 0; background: radial-gradient(farthest-side at 0 50%, rgba(22, 36, 63, .3), rgba(22, 36, 63, 0)); }
  html[data-espace="console"] .nc-clients .nc-navs::after { right: 0; margin: 0 0 0 -24px; background: radial-gradient(farthest-side at 100% 50%, rgba(22, 36, 63, .3), rgba(22, 36, 63, 0)); }
  @supports (animation-timeline: scroll()) {
    html[data-espace="console"] .nc-clients .nc-navs { scroll-timeline: --nc-navs inline; }
    html[data-espace="console"] .nc-clients .nc-navs::before { animation: nc-navs-ombre-g linear both; animation-timeline: --nc-navs; }
    html[data-espace="console"] .nc-clients .nc-navs::after { opacity: 0; animation: nc-navs-ombre-d linear both; animation-timeline: --nc-navs; }
  }
  @keyframes nc-navs-ombre-g { from { opacity: 0; } 6%, to { opacity: 1; } }
  @keyframes nc-navs-ombre-d { from, 94% { opacity: 1; } to { opacity: 0; } }
  html[data-espace="console"] .nc-clients .nc-navchip { font-size: 13px; }
  html[data-espace="console"] .nc-clients .nc-lab { font-size: 12px; }
  /* Barre de filtres (Filter bar) : la recherche (entre 601 et 760 px ; plus bas, c'est celle de la barre du haut, règle n° 38),
     le réseau et la plateforme sur toute la largeur, en 44 px ; puis le nombre de restaurants et « retirés ». */
  html[data-espace="console"] .nc-clients-outils { gap: 10px; }
  html[data-espace="console"] .nc-clients-outils > #rc-q,
  html[data-espace="console"] .nc-clients-outils > #rc-reseau { flex: 1 1 100%; width: 100%; min-width: 0; max-width: none; min-height: 44px; box-sizing: border-box; }
  html[data-espace="console"] .nc-clients-outils > .nc-seg { display: flex; flex: 1 1 100%; flex-wrap: nowrap; padding: 3px; box-sizing: border-box; }
  html[data-espace="console"] .nc-clients-outils > .nc-seg > button { flex: 1 1 0; min-width: 0; min-height: 44px; justify-content: center; text-align: center; padding: 6px 6px; font-size: 13px; }
  html[data-espace="console"] .nc-clients-outils > .nc-sp { display: none; }
  html[data-espace="console"] .nc-clients-outils .rc-compte { font-size: 13px; }
  html[data-espace="console"] .nc-clients .rc-lien-retires { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; }
  /* Cartes des restaurants (Card) en vignettes (11/11, carte dcf654e5 : « au moins 2 colonnes pour les petits téléphones, au maximum
     3 pour les plus grands ») : une grille de 3 colonnes de 390 à 760 px, de 2 colonnes sous 390 px (règle plus bas). Vignette
     réduite : photo plus basse, logo plus petit, nom sur trois lignes au plus (la fin d'un nom long, le numéro du magasin, reste lisible), réseau
     en petit, puis une ligne compacte par plateforme : le logo seul (son nom reste lu par les lecteurs d'écran) et la valeur ;
     une puce d'état passe à la ligne dans la vignette, jamais dehors. « À créer » (Ghost cards) garde une colonne. */
  html[data-espace="console"] .nc-clients .nc-cgrille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  html[data-espace="console"] .nc-clients .nc-acreer { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html[data-espace="console"] .nc-clients .nc-ccarte { padding: 0 8px 6px; gap: 1px; border-radius: 12px; min-width: 0; }
  html[data-espace="console"] .nc-clients .nc-ccover { height: 48px; margin: 0 -8px; border-radius: 11px 11px 0 0; }
  html[data-espace="console"] .nc-clients .nc-ctete { margin-top: -15px; min-height: 0; gap: 4px; flex-wrap: wrap; align-items: flex-end; }
  html[data-espace="console"] .nc-clients .nc-clogo { width: 30px; height: 30px; border-width: 2px; font-size: 11px; }
  html[data-espace="console"] .nc-clients .nc-ctete > :not(.nc-clogo):not(.nc-sp) { min-width: 0; max-width: 100%; white-space: normal; }
  /* 14/11 (carte dcf654e5, 2e tentative) : nom sur deux lignes au plus, la suite en points de suspension (le nom entier reste dans
     le nom du bouton de la vignette, lu par les lecteurs d'écran, et dans l'en-tête de la page du restaurant). */
  html[data-espace="console"] .nc-clients .nc-cnom {
    margin-top: 2px; font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis;
  }
  html[data-espace="console"] .nc-clients .nc-creseau { margin-bottom: 3px; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
  html[data-espace="console"] .nc-clients .nc-cpf { min-height: 0; padding: 4px 0; gap: 2px 5px; font-size: 12px; line-height: 1.3; flex-wrap: wrap; box-sizing: border-box; }
  html[data-espace="console"] .nc-clients .nc-cpf > .nc-pf {
    flex: none; width: 16px; height: 16px; padding: 0; gap: 12px; border: 0; border-radius: 0; background: none; overflow: hidden;
  }
  html[data-espace="console"] .nc-clients .nc-cpf > .nc-pf .nc-logo { width: 16px; height: 16px; flex: none; }
  html[data-espace="console"] .nc-clients .nc-cpf > :not(.nc-pf):not(.nc-sp):not(.nc-led):not(.nc-tip) { min-width: 0; max-width: 100%; }
  /* Le voyant (Status dot) reste au bout de la première ligne, après la valeur ; la puce d'état vient ensuite, à la ligne s'il le faut. */
  html[data-espace="console"] .nc-clients .nc-cpf > .nc-sp { order: 1; }
  html[data-espace="console"] .nc-clients .nc-cpf > .nc-led { order: 2; }
  html[data-espace="console"] .nc-clients .nc-cpf > .nc-st { order: 3; }
  /* Cloche rouge d'une vignette (13/11, carte 6f5eedc6), en haut à droite de la photo : son dessin ne change pas, sa zone de toucher
     va à 44 × 44 px (bord invisible de 6 px autour du bouton, dans la vignette ; 14/11, carte dcf654e5). */
  html[data-espace="console"] .nc-clients .rc-cloche::after { content: ""; position: absolute; inset: -6px; }
  /* Indicateurs d'une ligne de plateforme (13/11, CA hors offres compris) : libellé et jours en 11 px au moins, à la ligne dans la
     vignette plutôt que dehors ; la liste « Comptes de collecte » se touche sur 44 px (14/11, carte dcf654e5). */
  html[data-espace="console"] .nc-clients .nc-ccarte :is(.rc-cind-l, .rc-cind-p) { font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
  html[data-espace="console"] .nc-clients .rc-comptes-btn { min-height: 44px; box-sizing: border-box; }
  html[data-espace="console"] .nc-clients .nc-cnote { font-size: 13px; }
  html[data-espace="console"] .nc-clients .nc-cpf .nc-st { font-size: 12px; padding: 1px 6px; line-height: 1.25; white-space: normal; border-radius: 8px; }
  html[data-espace="console"] .nc-clients .nc-cpf.nc-cpf-non > span:last-child { font-size: 11px; overflow-wrap: anywhere; }
  html[data-espace="console"] .nc-clients .nc-csession { font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; padding-bottom: 2px; }
  html[data-espace="console"] .nc-clients .nc-ccarte .nc-st,
  html[data-espace="console"] .nc-clients .nc-ccarte [data-essai-marque] { font-size: 12px; }
  html[data-espace="console"] .nc-clients .nc-ccarte .nc-st { white-space: normal; max-width: 100%; }
  /* L'info-bulle d'une ligne (Tooltip) reste dans l'écran. */
  html[data-espace="console"] .nc-clients .nc-cpf.nc-bulle > .nc-tip { left: 0; right: 0; min-width: 0; max-width: none; }
  /* « À créer » (Ghost cards) : boutons sur toute la largeur. */
  html[data-espace="console"] .nc-clients .nc-ghost .nc-row { width: 100%; }
  html[data-espace="console"] .nc-clients .nc-ghost .nc-btn { flex: 1 1 auto; min-height: 44px; justify-content: center; text-align: center; }
  html[data-espace="console"] .nc-clients .nc-ghost .nc-t12 { font-size: 12.5px; }
  /* Total d'un réseau : une valeur par ligne. */
  html[data-espace="console"] .nc-clients .rc-total-l { flex-direction: column; gap: 4px; font-size: 14px; }
  html[data-espace="console"] .nc-clients .rc-total-tete { font-size: 13px; }

  /* ================================================================ page d'un restaurant : en-tête (App bar + Back button)
     11/11 (carte 687a0b91, « tout réduit de 40 % ») : en-tête serré, cibles de 32 px au moins (décision D8, au lieu de 44), textes de
     11 px au moins. Rangée 1 : « ← Retour aux clients » (40 px de haut : c'est le bouton Retour de la page) ; rangée 2 : le logo et le
     nom ; puis les puces (début, réseau, essai) et les actions (« Manual fetch », « Actions en cours », « Actions ratées »), à la
     ligne si la place manque. */
  html[data-espace="console"] .content:has(.nc-page-resto) { padding-top: 8px; padding-left: 6px; padding-right: 6px; }
  html[data-espace="console"] .nc-page-resto .nc-barre-resto { padding: 4px 10px 0; }
  html[data-espace="console"] .nc-page-resto .nc-barre-l1 { gap: 8px; }
  html[data-espace="console"] .nc-page-resto .nc-barre-l1::before { content: ""; order: 1; flex: 0 0 100%; height: 0; }
  html[data-espace="console"] .nc-page-resto .nc-barre-l1 > * { order: 2; }
  html[data-espace="console"] .nc-page-resto .nc-barre-l1 > .nc-retour {
    order: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; margin-left: -4px; font-size: 13px; font-weight: 600;
  }
  html[data-espace="console"] .nc-page-resto .nc-barre-l1 > .nc-sp { display: none; }
  html[data-espace="console"] .nc-page-resto .nc-barre-logo { width: 28px; height: 28px; font-size: 11px; }
  html[data-espace="console"] .nc-page-resto .nc-barre-nom { flex: 1 1 calc(100% - 40px); min-width: 0; font-size: 16px; line-height: 1.2; }
  html[data-espace="console"] .nc-page-resto .nc-barre-reseau { font-size: 12px; }
  html[data-espace="console"] .nc-page-resto button.nc-debut-puce { min-height: 32px; padding-top: 3px; padding-bottom: 3px; font-size: 12px; }
  html[data-espace="console"] .nc-page-resto .nc-debut-champ { min-height: 34px; }
  html[data-espace="console"] .nc-page-resto .nc-debut-edit > .nc-btn { min-height: 32px; }
  html[data-espace="console"] .nc-page-resto .nc-debut-err { font-size: 12px; }
  html[data-espace="console"] .nc-page-resto .nc-barre-fetch { min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
  html[data-espace="console"] .nc-page-resto .nc-suivi-hote { max-width: 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; } /* verdict n°35 : « Actions en cours » et « Actions ratées » à 8 px l'une de l'autre */
  html[data-espace="console"] .nc-page-resto :is(.nc-suivi-puce, .nc-suivi-rate) { min-height: 32px; padding-top: 3px; padding-bottom: 3px; font-size: 12px; }
  html[data-espace="console"] .nc-page-resto .nc-nb { min-width: 18px; height: 18px; padding: 0 5px; font-size: 12px; border-radius: 9px; }

  /* 14/11 (carte 687a0b91, 2e tentative : « plein de boutons partout et très peu de donnée lisible ») : les données d'abord. Les
     actions secondaires (« Manual fetch », « Aperçu réseau » et « Aperçu mobile » du Résumé, « Comptes », « Paramètres du
     restaurant ») passent derrière un seul bouton « ⋯ » (Overflow menu, posé au téléphone seulement par screens/restaurants-cartes.js),
     en haut à droite, sur la rangée de « ← Retour aux clients » ; il ouvre une feuille en bas de l'écran (Bottom sheet) avec la même
     liste d'actions. Les boutons de la page ne sont cachés que si « ⋯ » est là : rien ne disparaît. */
  html[data-espace="console"] .nc-page-resto .nc-barre-l1 > .nc-barre-plus {
    order: 0; flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 22px; font-weight: 700; line-height: 1; border-radius: 12px;
  }
  html[data-espace="console"] .nc-page-resto:has(.nc-barre-plus) :is(.nc-barre-l1 > .nc-barre-fetch, .nc-apcl-btns, .nc-donnees [data-rc-fen-ouvrir]) { display: none; }
  html[data-espace="console"] .nc-plus-fond {
    position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(22, 36, 63, .45);
  }
  html[data-espace="console"] .nc-plus-feuille {
    max-height: 85vh; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; border-radius: 16px 16px 0 0;
    padding: 4px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); background: var(--surface, #fff); box-shadow: 0 -10px 30px rgba(22, 36, 63, .25);
  }
  html[data-espace="console"] .nc-plus-tete { display: flex; align-items: center; gap: 8px; min-height: 56px; }
  html[data-espace="console"] .nc-plus-tete h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 17px; line-height: 1.3; }
  html[data-espace="console"] .nc-plus-tete > .nc-btn { min-width: 44px; min-height: 44px; justify-content: center; font-size: 14px; }
  html[data-espace="console"] .nc-plus-liste { display: flex; flex-direction: column; gap: 6px; }
  html[data-espace="console"] .nc-plus-item {
    display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--line, #e3e8f0);
    border-radius: 12px; background: var(--surface, #fff); color: inherit; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
  }
  html[data-espace="console"] .nc-plus-item:disabled { opacity: .55; cursor: default; }

  /* Barre d'onglets (Scrollable tabs) : une seule rangée qui défile de côté dans son cadre, du bord gauche au bord droit de l'écran ;
     une ombre au bord dit qu'il reste des onglets à voir (elle disparaît au bout) ; l'onglet actif est ramené dans la vue à chaque
     changement (screens/restaurants-cartes.js, F.afficher). Onglets de 32 px de haut, en 13 px. */
  html[data-espace="console"] .nc-page-resto .nc-barre-resto .rc-onglets {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin: 8px -10px 0; padding: 0 10px; gap: 2px; scroll-padding: 0 24px;
    background:
      linear-gradient(to right, var(--surface, #fff) 40%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
      linear-gradient(to left, var(--surface, #fff) 40%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(22, 36, 63, .24), rgba(22, 36, 63, 0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(22, 36, 63, .24), rgba(22, 36, 63, 0)) right center / 12px 100% no-repeat scroll;
    background-color: var(--surface, #fff);
  }
  html[data-espace="console"] .nc-page-resto .nc-barre-resto .rc-onglets::-webkit-scrollbar { display: none; }
  html[data-espace="console"] .nc-page-resto .nc-barre-resto .rc-onglet {
    flex: none; min-height: 32px; padding: 4px 10px; font-size: 13px; white-space: nowrap; border-radius: 8px 8px 0 0;
  }

  /* Choix « Toutes | Uber Eats | Deliveroo » de la page (Segmented control) sur toute la largeur, en 32 px, puis les puces des
     plateformes (Chip), une par ligne, le texte à la ligne. */
  html[data-espace="console"] .nc-page-resto .nc-donnees.rc-donnees { margin: 8px 10px 0; gap: 6px; }
  /* 14/11 (carte 687a0b91, 2e tentative) : le choix à la largeur de ses trois boutons, et les puces des plateformes réduites à UNE
     rangée qui défile de côté dans son cadre (Scrollable chips, ombre au bord comme la barre d'onglets) ; l'info-bulle d'une puce,
     ouverte au toucher, se pose en bas de l'écran (le cadre qui défile la couperait). */
  html[data-espace="console"] .nc-page-resto .nc-donnees > .nc-seg { display: flex; flex: 0 1 auto; max-width: 100%; flex-wrap: nowrap; padding: 2px; box-sizing: border-box; }
  html[data-espace="console"] .nc-page-resto .nc-donnees > .nc-seg > button { flex: 0 1 auto; min-width: 0; min-height: 32px; justify-content: center; text-align: center; padding: 3px 10px; font-size: 12.5px; }
  html[data-espace="console"] .nc-page-resto .nc-donnees > .nc-sp { display: none; }
  html[data-espace="console"] .nc-page-resto .nc-pfchips { flex: 1 1 100%; min-width: 0; justify-content: flex-start; gap: 4px; }
  html[data-espace="console"] .nc-page-resto .nc-pfchips-l {
    flex: 1 1 100%; min-width: 0; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 6px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    background:
      linear-gradient(to right, var(--surface, #fff) 40%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
      linear-gradient(to left, var(--surface, #fff) 40%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(22, 36, 63, .24), rgba(22, 36, 63, 0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(22, 36, 63, .24), rgba(22, 36, 63, 0)) right center / 12px 100% no-repeat scroll;
  }
  html[data-espace="console"] .nc-page-resto .nc-pfchips-l::-webkit-scrollbar { display: none; }
  html[data-espace="console"] .nc-page-resto .nc-pfchips-l > * { flex: none; max-width: none; }
  html[data-espace="console"] .nc-page-resto .nc-pfchip { width: auto; box-sizing: border-box; min-height: 32px; padding-top: 3px; padding-bottom: 3px; font-size: 11.5px; line-height: 1.25; white-space: nowrap; }
  html[data-espace="console"] .nc-page-resto .nc-pfchips .nc-bulle > .nc-tip {
    position: fixed; top: auto; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 60; min-width: 0; max-width: none; white-space: normal;
  }
  html[data-espace="console"] .nc-page-resto .nc-pfchips > :is(.btn, button) { flex: 1 1 auto; min-height: 32px; justify-content: center; }
  html[data-espace="console"] .nc-page-resto .nc-led-b { min-width: 32px; min-height: 32px; background-clip: content-box; padding: 9px; box-sizing: border-box; }
  html[data-espace="console"] .nc-page-resto .nc-bandeaux { margin: 6px 10px 0; }
  /* Bandeau d'alerte (Alert banner, « Boutique en pause… ») serré : marges de 6 px, son bouton à 32 px (D8). */
  html[data-espace="console"] .nc-page-resto .nc-bandeaux .nc-al { gap: 6px 8px; padding: 6px 10px; font-size: 13px; line-height: 1.3; }
  html[data-espace="console"] .nc-page-resto .nc-bandeaux .nc-al .nc-btn { min-height: 32px; padding-top: 4px; padding-bottom: 4px; }

  /* ================================================================ contenu des onglets (les neuf) : marges, cartes, titres, lignes et
     tableaux serrés (carte 687a0b91) ; le détail de chaque onglet est dans css/mobile-onglets-a.css et css/mobile-onglets-b.css.
     Le cadre est dans :where() : ces valeurs de fond passent avant celles de la nouvelle console, jamais avant la règle propre à un
     onglet (tableau de la semaine, listes empilées, cartes des remboursements…). */
  html[data-espace="console"] .nc-page-resto .nc-onglet { margin: 6px 6px 4px; gap: 6px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) .nc-card { padding: 8px 10px; border-radius: 12px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) .nc-titre { gap: 6px; font-size: 13.5px; line-height: 1.3; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) .nc-ct { font-size: 13px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) :is(.nc-g2, .nc-g3, .nc-g4, .nc-g5) { gap: 6px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) .nc-row { gap: 6px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) .nc-kv { gap: 6px; padding: 4px 0; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) .nc-ligne { gap: 8px; padding: 6px 0; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet .nc-tb) :is(td, th) { padding: 5px 6px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) :is(.nc-vide, .nc-attente, .nc-erreur) { font-size: 12.5px; }
  /* Briques d'avant posées dans un onglet (boutons, choix, liens) : 32 px de haut au moins (au lieu des 40 px de la coque). */
  html[data-espace="console"] :where(.nc-page-resto .nc-onglet) :is(.btn, .rc-segment, .chip, .segment button, .nc-tabs > button, .nc-lien) { min-height: 32px; }

  /* ================================================================ briques de ces pages et fenêtres (mêmes valeurs que la coque,
     pour que ce lot tienne seul) : champs en 16 px (le téléphone ne zoome pas la page au toucher) et de 40 px de haut, boutons,
     puces et choix de 40 px de haut au moins ; dans l'en-tête de la page d'un restaurant, 34 et 32 px. */
  html[data-espace="console"] :is(.nc-clients, .nc-page-resto .nc-barre-resto, .nc-page-resto .nc-donnees, .rc-fen-box, .nc-apcl) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) { font-size: 16px; }
  html[data-espace="console"] :is(.nc-clients, .rc-fen-box, .nc-apcl) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select) { min-height: 40px; }
  html[data-espace="console"] :where(.nc-clients, .rc-fen-box, .nc-apcl) :is(.btn, .nc-btn, button.nc-chip, .nc-seg > button, .rc-segment) { min-height: 40px; }
  html[data-espace="console"] :where(.nc-clients, .rc-fen-box, .nc-apcl) .nc-btn { font-size: 13px; }
  /* En-tête de la page d'un restaurant (carte 687a0b91) : champs de 34 px, boutons, puces et choix de 32 px au moins (D8). */
  html[data-espace="console"] :is(.nc-page-resto .nc-barre-resto, .nc-page-resto .nc-donnees) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select) { min-height: 34px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-barre-resto, .nc-page-resto .nc-donnees) :is(.btn, .nc-btn, button.nc-chip, .nc-seg > button, .rc-segment) { min-height: 32px; }
  html[data-espace="console"] :where(.nc-page-resto .nc-barre-resto, .nc-page-resto .nc-donnees) .nc-btn { font-size: 12px; }

  /* ================================================================ fenêtres d'un restaurant (« Paramètres du restaurant »,
     « Comptes », une commande) : une feuille plein écran (Full-screen sheet), le titre et « Fermer » collés en haut, « Enregistrer »
     collé en bas ; seul le milieu défile. Mêmes valeurs que la coque. */
  html[data-espace="console"] .modal:has(> .mbox.rc-fen-box) { padding: 0; align-items: stretch; justify-items: stretch; place-items: stretch; }
  html[data-espace="console"] .modal > .mbox.rc-fen-box {
    display: flex; flex-direction: column; width: 100%; max-width: 100%; height: 100svh; max-height: 100svh; margin: 0; border-radius: 0;
    padding: 0 16px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; box-sizing: border-box;
  }
  @supports (height: 100dvh) {
    html[data-espace="console"] .modal > .mbox.rc-fen-box { height: 100dvh; max-height: 100dvh; }
  }
  html[data-espace="console"] .modal > .mbox.rc-fen-box > * { flex: 0 0 auto; min-width: 0; }
  html[data-espace="console"] .modal > .mbox.rc-fen-box::after { content: ""; flex: 0 0 16px; }
  html[data-espace="console"] .modal > .mbox.rc-fen-box .rc-fen-tete {
    position: sticky; top: 0; z-index: 3; margin: 0 -16px 10px; padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 12px;
    background: var(--surface); border-bottom: 1px solid var(--line-2, var(--line)); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere;
  }
  html[data-espace="console"] .modal > .mbox.rc-fen-box .rc-fen-tete h3 { font-size: 18px; overflow-wrap: anywhere; min-width: 0; }
  html[data-espace="console"] .modal > .mbox.rc-fen-box .rc-fen-tete :is(button, .btn) { min-width: 44px; min-height: 44px; flex: none; }
  html[data-espace="console"] .modal :is(.rp-pied, .rcc-pied) {
    position: sticky; bottom: 0; z-index: 3; margin-top: 12px; padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 10px);
    background: var(--surface); border-top: 1px solid var(--line-2, var(--line)); box-shadow: 0 -8px 16px -12px rgba(22, 36, 63, .25);
  }
  html[data-espace="console"] .modal :is(.rp-pied, .rcc-pied) > :is(button, .btn) { flex: 1 1 auto; min-height: 44px; justify-content: center; }
  html[data-espace="console"] .modal .rp-pied > .rp-compte { flex: 1 1 100%; font-size: 13px; }

  /* ================================================================ fenêtre « Paramètres du restaurant » (feuille plein écran)
     Une rubrique par ligne, champs sur toute la largeur (16 px, posé par la coque), interrupteurs et choix de 44 px, aides en
     12,5 px ; les tableaux défilent dans leur cadre. */
  html[data-espace="console"] .rp { gap: 12px; }
  html[data-espace="console"] .rp-grille,
  html[data-espace="console"] .rp-trio { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html[data-espace="console"] .rp-duo > * { flex: 1 1 100%; }
  html[data-espace="console"] .rp-rub { padding: 12px; gap: 10px; }
  html[data-espace="console"] .rp-rub h5 { font-size: 15px; line-height: 1.3; }
  html[data-espace="console"] .rp-tete { font-size: 14px; }
  html[data-espace="console"] .rp :is(.rp-intro, .hint, .rp-err, .rp-vide, .rp-garde, .rp-absente, .rp-import-cols, .rp-dehors, .rp-ecartees, .rp-plus, .rp-facture-etat, .rp-note-qui, .rp-note-compte) { font-size: 12.5px; }
  html[data-espace="console"] .rp .field select,
  html[data-espace="console"] .rp .field textarea,
  html[data-espace="console"] .rp .field > input:not([type="checkbox"]):not([type="radio"]) { width: 100%; max-width: none; box-sizing: border-box; }
  html[data-espace="console"] .rp-saisie { display: flex; width: 100%; }
  html[data-espace="console"] .rp-saisie input,
  html[data-espace="console"] .rp-saisie.rp-jour input { flex: 1 1 auto; width: auto; min-width: 0; }
  html[data-espace="console"] .rp-saisie > :not(input) { flex: none; }
  html[data-espace="console"] .rp-unite { font-size: 14px; }
  /* Prestations : un interrupteur (Switch) par ligne de 44 px. */
  html[data-espace="console"] .rp-prestas { flex-direction: column; gap: 0; }
  html[data-espace="console"] .rp-switch { min-height: 44px; width: 100%; font-size: 14px; }
  /* Food cost : « Un taux global » / « Un tableau par produit » (Radio button) sur toute la largeur. */
  html[data-espace="console"] .rp-mode { flex: 1 1 100%; min-height: 44px; font-size: 14px; box-sizing: border-box; }
  html[data-espace="console"] .rp-tab-actions > :is(.btn, button, label) { flex: 1 1 auto; min-height: 40px; justify-content: center; }
  html[data-espace="console"] .rp-tab-actions .rp-nb { flex: 1 1 100%; margin-left: 0; font-size: 12.5px; }
  /* Tableau par produit : 360 px au plus, comme sur ordinateur (45 % de l'écran sur un petit téléphone) ; arrivé au bout, le doigt
     ou la molette font défiler la fenêtre (pas d'overscroll-behavior: contain ici). */
  html[data-espace="console"] .rp-tableau { max-height: min(360px, 45vh); }
  html[data-espace="console"] .rp-tbl { font-size: 13px; }
  html[data-espace="console"] .rp-tbl th { font-size: 12px; }
  html[data-espace="console"] .rp-tbl td .rp-unite,
  html[data-espace="console"] .rp-tbl td input::placeholder { font-size: 12px; }
  html[data-espace="console"] .rp-tbl td input { min-height: 40px; }
  html[data-espace="console"] .rp-suppr { min-width: 40px; min-height: 40px; }
  /* Collage et import d'un tableau, import d'une facture : zone, aperçu et boutons sur toute la largeur. */
  html[data-espace="console"] .rp-collage { padding: 10px; }
  html[data-espace="console"] .rp-collage label,
  html[data-espace="console"] .rp-apercu-collage,
  html[data-espace="console"] .rp :is(.rp-apercu, .rp-applique) { font-size: 13px; }
  /* Aperçu d'un collage ou d'un fichier importé (Scrollable table) : il défile de côté dans son cadre, des colonnes lisibles. */
  html[data-espace="console"] .rp .rp-tbl-apercu {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    background:
      linear-gradient(to right, var(--surface, #fff) 40%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
      linear-gradient(to left, var(--surface, #fff) 40%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(22, 36, 63, .24), rgba(22, 36, 63, 0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(22, 36, 63, .24), rgba(22, 36, 63, 0)) right center / 12px 100% no-repeat scroll;
    background-color: var(--surface, #fff);
  }
  html[data-espace="console"] .rp .rp-tbl-apercu :is(th, td) { min-width: 84px; }
  html[data-espace="console"] .rp .rp-tbl-apercu :is(th, td):first-child { min-width: 128px; }
  html[data-espace="console"] .rp-sens { width: 100%; font-size: 13px; }
  html[data-espace="console"] .rp-sens select { flex: 1 1 auto; min-width: 0; }
  html[data-espace="console"] :is(.rp-pied-collage, .rp-facture-actions, .rp-note-actions) > :is(.btn, button) { flex: 1 1 auto; min-height: 44px; justify-content: center; }
  html[data-espace="console"] .rp-facture .note,
  html[data-espace="console"] .rp-note-etat,
  html[data-espace="console"] .rp-cl-etat { font-size: 13px; }
  /* Commissions mesurées : la plateforme au-dessus de sa mesure (le texte a toute la largeur). */
  html[data-espace="console"] .rp-cl { flex-direction: column; gap: 2px; font-size: 13px; }
  html[data-espace="console"] .rp-cl-pf { width: auto; }
  html[data-espace="console"] .rp-cl-pf small { display: inline; margin-left: 6px; font-size: 12px; }
  html[data-espace="console"] .rp-cl-puce { font-size: 12px; padding: 2px 9px; }
  /* Note de l'équipe : le champ sur toute la largeur. */
  html[data-espace="console"] .rp-note .rp-note-texte { min-height: 120px; }
  /* Pied : le lien vers les paramètres d'onboarding, touchable. */
  html[data-espace="console"] .rp-bas .rc-lien { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; }

  /* ================================================================ fenêtre « Comptes » (feuille plein écran) */
  html[data-espace="console"] .rcc { gap: 12px; }
  html[data-espace="console"] .rcc-barre > .btn { flex: 1 1 auto; min-height: 44px; justify-content: center; }
  html[data-espace="console"] .rcc :is(.rcc-type-resto, .rcc-sous, .rcc-groupe, .rcc-mdp-lib, .rcc-mdp-date, .rcc-dates, .rcc-mode-lib, .rcc-mode-etat, .hint) { font-size: 12.5px; }
  html[data-espace="console"] .rcc-compte { padding: 12px; gap: 6px; }
  html[data-espace="console"] .rcc-compte-tete { flex-wrap: wrap; }
  html[data-espace="console"] .rcc-qui { flex: 1 1 180px; }
  html[data-espace="console"] .rcc-droite { margin-left: auto; }
  html[data-espace="console"] .rcc-droite .st { font-size: 12px; }
  html[data-espace="console"] .rcc-plus { min-width: 44px; height: 44px; padding: 0 8px 6px; }
  html[data-espace="console"] .rcc-menu { min-width: 0; width: max-content; max-width: calc(100vw - 32px); }
  html[data-espace="console"] .rcc-menu-item { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
  html[data-espace="console"] .rcc-gestes { display: flex; width: 100%; }
  html[data-espace="console"] .rcc-gestes > :is(.btn, button) { flex: 1 1 auto; min-height: 40px; justify-content: center; }
  html[data-espace="console"] .rcc-mdp-val > :is(.btn, button) { min-height: 40px; }
  html[data-espace="console"] .rcc-confirmer .btn { min-height: 44px; }
  html[data-espace="console"] .rcc-form { padding: 12px; }
  html[data-espace="console"] .rcc-form .field input,
  html[data-espace="console"] .rcc-form .field select,
  html[data-espace="console"] .rcc-form .field input[type="email"] { width: 100%; max-width: none; }
  html[data-espace="console"] .rcc-form fieldset.rcc-choix legend { font-size: 13px; }
  html[data-espace="console"] .rcc-coche { min-height: 44px; align-items: center; font-size: 14px; box-sizing: border-box; }
  html[data-espace="console"] .rcc-coche input { margin-top: 0; width: 20px; height: 20px; }
  html[data-espace="console"] .rcc-coches { max-height: none; overflow: visible; }
  html[data-espace="console"] .rcc-bas { gap: 10px; }
  html[data-espace="console"] .rcc-mode { width: 100%; }
  html[data-espace="console"] :is(.rcc-mode-choix, .rcc-mode select) { flex: 1 1 100%; min-height: 44px; }
  html[data-espace="console"] .rcc :is(.rcc-lien, .rcc-tous, .rc-lien) { display: inline-flex; align-items: center; min-height: 40px; margin-left: 0; font-size: 13px; text-align: left; }
  html[data-espace="console"] .rcc-apercu > :is(.btn, button),
  html[data-espace="console"] .rcc-apercu:is(.btn, button) { min-height: 40px; }

  /* ================================================================ fenêtres « Aperçu mobile » et « Aperçu réseau » : tout l'écran
     Bande du haut (Banner) : qui l'on voit à gauche, « Retour » et « Fermer » à droite, toujours en vue ; « Vu comme » dessous, sur
     toute la largeur. Le cadre de l'app prend toute la largeur et le reste de la hauteur (pas de bord de téléphone). */
  html[data-espace="console"] .nc-apcl-f,
  html[data-espace="console"] .nc-apcl-f.nc-apcl-mobile { inset: 0; left: 0; right: 0; width: auto; transform: none; border-radius: 0; }
  html[data-espace="console"] .nc-apcl-bande {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "qui retour fermer" "choix choix choix";
    align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 10px; font-size: 14px;
  }
  html[data-espace="console"] .nc-apcl-bande > .nc-apcl-txt { grid-area: qui; }
  html[data-espace="console"] .nc-apcl-bande > .nc-sp { display: none; }
  html[data-espace="console"] .nc-apcl-bande > [data-nc-apcl-choix] { grid-area: choix; min-width: 0; }
  html[data-espace="console"] .nc-apcl-bande > [data-nc-apcl-choix]:empty { display: none; }
  html[data-espace="console"] .nc-apcl-bande > [data-nc-apcl-retour] { grid-area: retour; }
  html[data-espace="console"] .nc-apcl-bande > [data-nc-apcl-fermer] { grid-area: fermer; }
  html[data-espace="console"] .nc-apcl-bande > .nc-btn { min-height: 44px; min-width: 44px; padding: 0 12px; justify-content: center; text-align: center; font-size: 14px; }
  html[data-espace="console"] .nc-apcl-choix { display: flex; width: 100%; gap: 8px; font-size: 13px; white-space: nowrap; }
  html[data-espace="console"] .nc-apcl-choix select { flex: 1 1 auto; min-width: 0; max-width: none; min-height: 44px; padding: 4px 8px; }
  html[data-espace="console"] .nc-apcl-tel { width: 100%; height: 100%; border: 0; border-radius: 0; }
  html[data-espace="console"] .nc-apcl-tel .nc-apcl-cadre { border-radius: 0; }
  html[data-espace="console"] :is(.nc-apcl-note, .nc-apcl-refus) { padding: 8px 12px; }
}

/* Info-bulle d'une puce de plateforme de la page d'un restaurant (Tooltip), sur un écran tactile : elle ne s'ouvre qu'au toucher
   de sa puce et se ferme au toucher suivant, sur la puce ou ailleurs (screens/restaurants-cartes.js pose data-nc-bulle-ouverte) ;
   le survol et le focus qu'un toucher laisse derrière lui ne l'ouvrent plus. À la souris, rien ne change. */
@media (max-width: 760px) and (hover: none) {
  html[data-espace="console"] .nc-page-resto .nc-pfchips .nc-bulle { cursor: pointer; }
  html[data-espace="console"] .nc-page-resto .nc-pfchips .nc-bulle:not([data-nc-bulle-ouverte]) > .nc-tip { display: none; }
  html[data-espace="console"] .nc-page-resto .nc-pfchips .nc-bulle[data-nc-bulle-ouverte] > .nc-tip { display: block; }
}

/* Petits téléphones (moins de 390 px) : « Retour » et « Fermer » de l'aperçu un peu plus serrés ; les puces des cartes à la ligne ;
   les vignettes des restaurants sur 2 colonnes (carte dcf654e5). */
@media (max-width: 389px) {
  html[data-espace="console"] .nc-clients .nc-cgrille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-espace="console"] .nc-apcl-bande { font-size: 13px; gap: 6px; padding-left: 10px; padding-right: 10px; }
  html[data-espace="console"] .nc-apcl-bande > .nc-btn { padding: 0 10px; }
  html[data-espace="console"] .nc-clients-outils > .nc-seg > button { font-size: 12.5px; padding: 6px 4px; gap: 4px; }
  html[data-espace="console"] .nc-page-resto .nc-donnees > .nc-seg > button { font-size: 12.5px; padding: 6px 4px; gap: 4px; }
}
