/* ============================================================================
   Tik Tak PASS — CSS_32_Telephone_ZoneHD_Common
   DEV 1.2.112

   AUTORITÉ COMMUNE TÉLÉPHONE pour l'équivalent de la zone HD tablette.
   Cette feuille est strictement limitée à body.device-phone : aucune règle
   tablette ne doit être ajoutée ici.

   Référence visuelle validée : CAISSE DEV 1.2.103.
   À partir de DEV 1.2.105, CAISSE reste la référence géométrique : trois
   emplacements égaux. HÔTESSE/GESTION/ADMINISTRATION utilisent les colonnes
   gauche et droite ; STATISTIQUES utilise MODULES à gauche et REFRESH à droite.
   ============================================================================ */

body.device-phone {
  --tt-phone-hd-card-pad:4px;
  --tt-phone-hd-card-gap:5px;
  --tt-phone-hd-button-height:40px;
  --tt-phone-hd-button-radius:11px;
  --tt-phone-hd-button-font:10.5px;
  --tt-phone-hg-sub-gap:4px;
  --tt-phone-hg-module-font:11px;
  --tt-phone-hg-env-height:16px;
  --tt-phone-hg-env-font:7.5px;
}

@media (max-width:700px) {
  /* ------------------------------------------------------------------------
     HG téléphone — même logique d'identité que la tablette :
     Tik Tak PASS sur la première ligne, MODULE + DEV sur la seconde.
     ------------------------------------------------------------------------ */
  body.device-phone #app.ttModuleFrame > .ttZoneHG {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:var(--tt-phone-hg-sub-gap) !important;
    width:100% !important;
    margin:0 0 8px !important;
    padding:0 126px 0 0 !important;
    min-height:46px !important;
    overflow:visible !important;
  }

  body.device-phone #app.ttModuleFrame > .ttZoneHG .ttTitleBrand {
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    font-size:23px !important;
    line-height:1.02 !important;
  }

  body.device-phone #app.ttModuleFrame > .ttZoneHG .moduleHeaderSubRow {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:5px !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    min-height:var(--tt-phone-hg-env-height) !important;
  }

  body.device-phone #app.ttModuleFrame > .ttZoneHG .ttTitleModule {
    margin:0 !important;
    padding:0 !important;
    color:var(--muted) !important;
    font-size:var(--tt-phone-hg-module-font) !important;
    line-height:1 !important;
    letter-spacing:.055em !important;
  }

  body.device-phone #app.ttModuleFrame > .ttZoneHG .ttTitleEnv {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:30px !important;
    height:var(--tt-phone-hg-env-height) !important;
    padding:0 6px !important;
    margin:0 !important;
    border:1px solid #e38d84 !important;
    border-radius:999px !important;
    background:#fff0ee !important;
    color:#a62219 !important;
    font-size:var(--tt-phone-hg-env-font) !important;
    font-weight:1000 !important;
    line-height:1 !important;
  }

  body[data-theme="dark"].device-phone #app.ttModuleFrame > .ttZoneHG .ttTitleEnv {
    background:#3b2020 !important;
    color:#ffaaa3 !important;
    border-color:#7b4141 !important;
  }

  /* ------------------------------------------------------------------------
     HD téléphone — AUTORITÉ COMMUNE AUX 5 MODULES.
     Référence visuelle validée : CAISSE DEV 1.2.103.

     Le cadran de commandes, la hauteur des boutons et le statut flottant
     PRÊT/OCCUPÉ sont désormais communs à CAISSE, HÔTESSE, STATISTIQUES,
     GESTION et ADMINISTRATION. Les commandes propres à chaque module sont
     conservées ; seule leur géométrie téléphone est normalisée ici.
     ------------------------------------------------------------------------ */
  body.device-phone .ttModuleFrame > .ttZoneHD {
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    position:relative !important;
    overflow:visible !important;
  }

  body.device-phone .ttModuleFrame > .ttZoneHD > .ttZone0,
  body.device-phone #app.ttModuleFrame > .ttZoneHD > #controlCard.ttZone0,
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD > .hostessControlCard.ttZone0,
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD > .statisticsCommandRow.ttZone0,
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD > .workspaceControlCard.ttZone0 {
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 0 8px !important;
    padding:var(--tt-phone-hd-card-pad) !important;
    border:1px solid #c7d7dd !important;
    border-radius:16px !important;
    background:#edf4f6 !important;
    background-color:#edf4f6 !important;
    background-image:none !important;
    box-shadow:0 1px 3px rgba(0,0,0,.05) !important;
    overflow:visible !important;
    position:static !important;
    inset:auto !important;
    transform:none !important;
  }

  body[data-theme="dark"].device-phone .ttModuleFrame > .ttZoneHD > .ttZone0,
  body[data-theme="dark"].device-phone #app.ttModuleFrame > .ttZoneHD > #controlCard.ttZone0,
  body[data-theme="dark"].device-phone .hostessFrame.ttModuleFrame > .ttZoneHD > .hostessControlCard.ttZone0,
  body[data-theme="dark"].device-phone .statisticsShell.ttModuleFrame > .ttZoneHD > .statisticsCommandRow.ttZone0,
  body[data-theme="dark"].device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD > .workspaceControlCard.ttZone0 {
    background:#1b232d !important;
    background-color:#1b232d !important;
    border-color:#3a4654 !important;
    color:#edf2f7 !important;
  }

  body.device-phone .ttModuleFrame > .ttZoneHD > .ttZone0 > .ttZone0Actions,
  body.device-phone #app.ttModuleFrame > .ttZoneHD > #controlCard.ttZone0 > .controlGrid.ttZone0Actions,
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD > .hostessControlCard.ttZone0 > .hostessControlGrid.ttZone0Actions,
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD > .statisticsCommandRow.ttZone0 > .statisticsUnifiedActions.ttZone0Actions,
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD > .workspaceControlCard.ttZone0 > .workspaceControlRow.ttZone0Actions {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:0 !important;
    gap:var(--tt-phone-hd-card-gap) !important;
    align-items:stretch !important;
    align-content:stretch !important;
    overflow:visible !important;
  }

  /* Éléments historiques/titres qui ne font pas partie du cadran téléphone. */
  body.device-phone .ttModuleFrame > .ttZoneHD [hidden],
  body.device-phone .ttModuleFrame > .ttZoneHD .ttLegacyZone0User,
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD .statisticsTitleWrap,
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsLogoutBtn {
    display:none !important;
  }

  /* Tous les boutons visibles du HD reprennent exactement la géométrie CAISSE. */
  body.device-phone .ttModuleFrame > .ttZoneHD .ttTopMenuBtn {
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    min-width:0 !important;
    max-width:none !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px 5px !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:var(--tt-phone-hd-button-font) !important;
    font-weight:900 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-align:center !important;
    position:static !important;
    inset:auto !important;
    transform:none !important;
    flex:none !important;
    align-self:stretch !important;
    justify-self:stretch !important;
  }

  /* ------------------------------------------------------------------------
     CAISSE — 3 colonnes égales : MODULES / SIMULATION / SYNCHRO.
     ------------------------------------------------------------------------ */
  body.device-phone #app.ttModuleFrame > .ttZoneHD > #controlCard.ttZone0 > .controlGrid.ttZone0Actions {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:var(--tt-phone-hd-button-height) !important;
    grid-auto-flow:row !important;
    column-gap:var(--tt-phone-hd-card-gap) !important;
    row-gap:0 !important;
  }

  body.device-phone #app.ttModuleFrame > .ttZoneHD #moduleBtn,
  body.device-phone #app.ttModuleFrame > .ttZoneHD #simulationControl,
  body.device-phone #app.ttModuleFrame > .ttZoneHD #syncBadge {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    padding:4px 5px !important;
    white-space:nowrap !important;
    line-height:1 !important;
    grid-row:1 !important;
  }
  body.device-phone #app.ttModuleFrame > .ttZoneHD #moduleBtn { grid-column:1 !important; }
  body.device-phone #app.ttModuleFrame > .ttZoneHD #simulationControl { grid-column:2 !important; }
  body.device-phone #app.ttModuleFrame > .ttZoneHD #syncBadge { grid-column:3 !important; }

  /* HÔTESSE — même grille de 3 emplacements que CAISSE : gauche / vide / droite. */
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD .hostessControlGrid.ttZone0Actions {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:var(--tt-phone-hd-button-height) !important;
    column-gap:var(--tt-phone-hd-card-gap) !important;
    row-gap:0 !important;
  }
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD #hostessModuleBtn {
    grid-column:1 !important; grid-row:1 !important;
    width:100% !important; min-width:0 !important; max-width:none !important; flex:none !important;
  }
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD #hostessSyncBadge {
    grid-column:3 !important; grid-row:1 !important;
    width:100% !important; min-width:0 !important; max-width:none !important; flex:none !important;
  }

  /* GESTION / ADMINISTRATION — remettre l'identité HG avant le HD sur téléphone.
     L'ancien .workspaceFrame mobile est en flex et la zone HD sans order passait avant HG. */
  body.device-phone .workspaceFrame.ttModuleFrame > .workspaceBrandBlock.ttZoneHG {
    order:1 !important;
    box-sizing:border-box !important;
    align-self:stretch !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:var(--tt-phone-hg-sub-gap) !important;
    width:100% !important;
    margin:0 0 8px !important;
    padding:0 126px 0 2px !important;
    min-height:46px !important;
    text-align:left !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .workspaceBrandBlock.ttZoneHG .brand.ttTitleBrand {
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    font-size:23px !important;
    line-height:1.02 !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .workspaceBrandBlock.ttZoneHG .workspaceBrandSubRow {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:5px !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    min-height:var(--tt-phone-hg-env-height) !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .workspaceBrandBlock.ttZoneHG .workspaceBrandSub.ttTitleModule {
    margin:0 !important;
    padding:0 !important;
    color:var(--muted) !important;
    font-size:var(--tt-phone-hg-module-font) !important;
    line-height:1 !important;
    letter-spacing:.055em !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .workspaceBrandBlock.ttZoneHG .workspaceBrandDev.ttTitleEnv {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:30px !important;
    height:var(--tt-phone-hg-env-height) !important;
    padding:0 6px !important;
    margin:0 !important;
    border:1px solid #e38d84 !important;
    border-radius:999px !important;
    background:#fff0ee !important;
    color:#a62219 !important;
    font-size:var(--tt-phone-hg-env-font) !important;
    font-weight:1000 !important;
    line-height:1 !important;
  }
  body[data-theme="dark"].device-phone .workspaceFrame.ttModuleFrame > .workspaceBrandBlock.ttZoneHG .workspaceBrandDev.ttTitleEnv {
    background:#3b2020 !important;
    color:#ffaaa3 !important;
    border-color:#7b4141 !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD { order:2 !important; }
  body.device-phone .workspaceFrame.ttModuleFrame > .workspaceSidebarCard.ttZoneBG { order:3 !important; }
  body.device-phone .workspaceFrame.ttModuleFrame > .workspaceMainCard.ttZoneBD { order:4 !important; }

  /* GESTION / ADMINISTRATION — même grille CAISSE : MODULES à gauche, SYNCHRO à droite. */
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD .workspaceControlRow.ttZone0Actions {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:var(--tt-phone-hd-button-height) !important;
    column-gap:var(--tt-phone-hd-card-gap) !important;
    row-gap:0 !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD .workspaceControlBtn.ttZone0AnchorLeft {
    grid-column:1 !important; grid-row:1 !important;
    width:100% !important; min-width:0 !important; max-width:none !important; flex:none !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD .workspaceSyncBadge {
    grid-column:3 !important; grid-row:1 !important;
    width:100% !important; min-width:0 !important; max-width:none !important; flex:none !important;
  }

  /* STATISTIQUES — corrige l'ancien shell téléphone : HG/HD pleine largeur,
     puis conserve la navigation latérale et le contenu dans les deux colonnes basses. */
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame {
    box-sizing:border-box !important;
    display:grid !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    grid-template-columns:clamp(104px,30vw,116px) minmax(0,1fr) !important;
    grid-template-rows:auto auto auto !important;
    column-gap:7px !important;
    row-gap:8px !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .ttZoneHG {
    grid-column:1 / -1 !important; grid-row:1 !important; width:100% !important; min-width:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .ttZoneHD {
    grid-column:1 / -1 !important; grid-row:2 !important; width:100% !important; min-width:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .statisticsSidebarCard.ttZoneBG {
    grid-column:1 !important; grid-row:3 !important; min-width:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .ttZoneBD {
    grid-column:2 !important; grid-row:3 !important; width:100% !important; min-width:0 !important;
  }

  /* STATISTIQUES — 3 emplacements exactement comme CAISSE :
     MODULES / REFRESH / menu déroulant GÉNÉRAL-DÉTAIL. */
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD .statisticsUnifiedActions.ttZone0Actions {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:var(--tt-phone-hd-button-height) !important;
    column-gap:var(--tt-phone-hd-card-gap) !important;
    row-gap:0 !important;
  }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD .statisticsBackRow,
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD .statisticsUtilityRow {
    display:contents !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsBackBtn {
    grid-column:1 !important; grid-row:1 !important; width:100% !important; min-width:0 !important; max-width:none !important;
  }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsRefreshBtn {
    grid-column:2 !important; grid-row:1 !important; width:100% !important; min-width:0 !important; max-width:none !important;
  }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsGeneralBtn,
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsDetailBtn {
    display:none !important;
  }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsViewSelect {
    box-sizing:border-box !important;
    display:block !important;
    grid-column:3 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:0 22px 0 7px !important;
    border:1px solid #2d6f9f !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    background:#2d6f9f !important;
    color:#fff !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:var(--tt-phone-hd-button-font) !important;
    font-weight:900 !important;
    line-height:38px !important;
    vertical-align:middle !important;
    text-align:center !important;
    text-align-last:center !important;
    white-space:nowrap !important;
    appearance:auto !important;
  }

  /* Statut opérationnel téléphone : même pastille flottante que CAISSE 1.2.103. */
  body.device-phone .ttModuleFrame > .ttZoneHD > .ttOperationalStatus {
    position:fixed !important;
    top:max(8px, env(safe-area-inset-top)) !important;
    right:8px !important;
    left:auto !important;
    bottom:auto !important;
    z-index:2147483000 !important;
    width:auto !important;
    min-width:88px !important;
    max-width:118px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    margin:0 !important;
    padding:5px 10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    border-radius:999px !important;
    box-shadow:0 3px 12px rgba(0,0,0,.22) !important;
    font-size:12px !important;
    font-weight:1000 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-align:center !important;
    pointer-events:none !important;
    transform:none !important;
  }

  body.device-phone .ttModuleFrame > .ttZoneHD > .ttOperationalStatus .cashierStatusDot,
  body.device-phone .ttModuleFrame > .ttZoneHD > .ttOperationalStatus .hostessOperationalDot,
  body.device-phone .ttModuleFrame > .ttZoneHD > .ttOperationalStatus .workspaceStatusDot {
    width:9px !important;
    height:9px !important;
    min-width:9px !important;
    flex:0 0 9px !important;
  }

  body.device-phone #app.ttModuleFrame > .ttZoneHD #simulationControl input {
    width:14px !important;
    height:14px !important;
    min-width:14px !important;
    flex:0 0 14px !important;
    margin:0 !important;
  }

  body.device-phone .ttModuleFrame > .ttZoneHD .ttTopMenuArrow {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 2px 0 0 !important;
    font-size:1.18em !important;
    line-height:1 !important;
  }

  body.device-phone .ttModuleFrame > .ttZoneHD .ttTopMenuLabel {
    line-height:1 !important;
  }
}

/* ============================================================================
   DEV 1.2.108 — STATISTIQUES TÉLÉPHONE / BG DÉROULANT PLEINE LARGEUR
   Correction chirurgicale de la seule section non validée en 1.2.107.
   - Le BG n'occupe plus une colonne latérale dédiée sur téléphone.
   - Il devient une ligne pleine largeur entre HD et BD ; le select commun
     ttPhoneBgSelect de CSS_26 récupère ainsi toute la largeur disponible.
   - BD repasse pleine largeur sous le BG.
   - En PAR SHOW, la légende de périmètre duplique le spectacle déjà sélectionné :
     elle est masquée uniquement sur téléphone et uniquement pour ce scope.
   Aucun changement CAISSE / HÔTESSE / GESTION / ADMINISTRATION / tablette.
   ============================================================================ */
@media (max-width:700px) {
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame {
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto auto auto !important;
    column-gap:0 !important;
    row-gap:8px !important;
  }

  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .ttZoneHG {
    grid-column:1 !important;
    grid-row:1 !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .ttZoneHD {
    grid-column:1 !important;
    grid-row:2 !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .statisticsSidebarCard.ttZoneBG {
    grid-column:1 !important;
    grid-row:3 !important;
    position:static !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame > .ttZoneBD {
    grid-column:1 !important;
    grid-row:4 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow .statisticsScopeCaption {
    display:none !important;
    min-height:0 !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
}



/* ============================================================================
   DEV 1.2.109 — TÉLÉPHONE / HG COMMUN + CADRAN 2 COMMUN
   Référence visuelle : CAISSE DEV 1.2.108.
   - HÔTESSE et STATISTIQUES reprennent exactement la logique HG validée CAISSE :
     ligne 1 Tik Tak PASS ; ligne 2 NOM DU MODULE + DEV côte à côte.
   - Le cadran 2 HÔTESSE est compacté sur la géométrie du cadran 2 CAISSE.
   - En STATISTIQUES/PAR SHOW, « 2. SÉLECTION » + « Spectacle » deviennent une
     seule ligne visuelle « 2. SÉLECTION SPECTACLE », puis le sélecteur adopte
     la même densité/typographie que CAISSE.
   Strictement téléphone ; CAISSE, GESTION, ADMINISTRATION et tablette inchangés.
   ============================================================================ */
@media (max-width:700px) {
  /* ---- HG HÔTESSE : copie géométrique du HG CAISSE ---- */
  body.device-phone.module-hostess #hostessScreen .hostessFrame.ttModuleFrame > .hostessTop.ttZoneHG {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:var(--tt-phone-hg-sub-gap) !important;
    width:100% !important;
    margin:0 0 8px !important;
    padding:0 126px 0 0 !important;
    min-height:46px !important;
    overflow:visible !important;
    text-align:left !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessFrame.ttModuleFrame > .hostessTop.ttZoneHG .hostessBrandBlock {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:var(--tt-phone-hg-sub-gap) !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessTop.ttZoneHG .brand.ttTitleBrand {
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    font-size:23px !important;
    line-height:1.02 !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessTop.ttZoneHG .hostessBrandSubRow {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:5px !important;
    width:auto !important;
    min-height:var(--tt-phone-hg-env-height) !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessTop.ttZoneHG .hostessBrandSub.ttTitleModule {
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    color:var(--muted) !important;
    font-size:var(--tt-phone-hg-module-font) !important;
    font-weight:1000 !important;
    line-height:1 !important;
    letter-spacing:.055em !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessTop.ttZoneHG .hostessBrandDev.ttTitleEnv {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:30px !important;
    height:var(--tt-phone-hg-env-height) !important;
    padding:0 6px !important;
    margin:0 !important;
    border:1px solid #e38d84 !important;
    border-radius:999px !important;
    background:#3b2020 !important;
    color:#ffaaa3 !important;
    border-color:#7b4141 !important;
    font-size:var(--tt-phone-hg-env-font) !important;
    font-weight:1000 !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  /* ---- HG STATISTIQUES : nom du module rétabli + DEV sur la même ligne ---- */
  body.device-phone.module-statistics #statisticsScreen .statisticsShell.ttModuleFrame > .statisticsBrandGroup.ttZoneHG {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:var(--tt-phone-hg-sub-gap) !important;
    width:100% !important;
    margin:0 0 8px !important;
    padding:0 126px 0 0 !important;
    min-height:46px !important;
    overflow:visible !important;
    text-align:left !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsBrandGroup.ttZoneHG .statisticsBrandStack {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:var(--tt-phone-hg-sub-gap) !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsBrandGroup.ttZoneHG .statisticsBrand.ttTitleBrand {
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    font-size:23px !important;
    line-height:1.02 !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsBrandGroup.ttZoneHG .statisticsBrandSubRow {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:5px !important;
    width:auto !important;
    min-height:var(--tt-phone-hg-env-height) !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsBrandGroup.ttZoneHG .statisticsBrandSub.ttTitleModule {
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    color:var(--muted) !important;
    font-size:var(--tt-phone-hg-module-font) !important;
    font-weight:1000 !important;
    line-height:1 !important;
    letter-spacing:.055em !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsBrandGroup.ttZoneHG .statisticsDev.ttTitleEnv {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:static !important;
    min-width:30px !important;
    height:var(--tt-phone-hg-env-height) !important;
    padding:0 6px !important;
    margin:0 !important;
    border:1px solid #7b4141 !important;
    border-radius:999px !important;
    background:#3b2020 !important;
    color:#ffaaa3 !important;
    font-size:var(--tt-phone-hg-env-font) !important;
    font-weight:1000 !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  /* ---- CADRAN 2 HÔTESSE = densité CAISSE ---- */
  body.device-phone.module-hostess #hostessScreen .ttHostessContent > #hostessShowCard {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 8px !important;
    padding:var(--tt-phone-compact-card-pad,6px) !important;
    border-radius:18px !important;
    overflow:visible !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessShowCard > .sectionTitle {
    margin:0 0 5px !important;
    padding:0 !important;
    font-size:11px !important;
    font-weight:1000 !important;
    line-height:1.1 !important;
    letter-spacing:.55px !important;
    text-transform:uppercase !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessPhoneShowProxy {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 22px !important;
    align-items:center !important;
    gap:6px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:40px !important;
    margin:0 !important;
    padding:5px 9px !important;
    border:1px solid #3a4655 !important;
    border-radius:10px !important;
    background:#0f141b !important;
    color:#fff !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:10px !important;
    font-weight:650 !important;
    line-height:1.12 !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessPhoneSelectedShow {
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    gap:1px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessPhoneSelectedShow > span {
    display:block !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  /* ---- CADRAN 2 STATISTIQUES = même densité CAISSE en PAR SHOW ---- */
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow .statisticsShowCard.statisticsFilterCard {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:auto auto minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    column-gap:4px !important;
    row-gap:5px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 8px !important;
    padding:var(--tt-phone-compact-card-pad,6px) !important;
    border-radius:18px !important;
    overflow:visible !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow #statisticsFilterHeading {
    grid-column:1 !important;
    grid-row:1 !important;
    display:block !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    color:var(--muted) !important;
    font-size:11px !important;
    font-weight:1000 !important;
    line-height:1.1 !important;
    letter-spacing:.55px !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow #statisticsShowFilter {
    display:contents !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow #statisticsShowLabel {
    grid-column:2 !important;
    grid-row:1 !important;
    display:block !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    color:var(--muted) !important;
    font-size:11px !important;
    font-weight:1000 !important;
    line-height:1.1 !important;
    letter-spacing:.55px !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow .statisticsPhoneSelectProxy {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    position:relative !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow .statisticsPhoneSelectedShow {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:1px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:40px !important;
    margin:0 !important;
    padding:5px 32px 5px 9px !important;
    border:1px solid #3a4655 !important;
    border-radius:10px !important;
    background:#0f141b !important;
    color:#fff !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:10px !important;
    font-weight:650 !important;
    line-height:1.12 !important;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow .statisticsPhoneSelectedShow > span {
    display:block !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeShow .statisticsPhoneSelectProxy::after {
    right:13px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    font-size:15px !important;
    line-height:1 !important;
    color:#aeb8c4 !important;
  }
}


/* ============================================================================
   DEV 1.2.110 — TÉLÉPHONE / COMPACTAGE VERTICAL + HÔTESSE AUTO-HAUTEUR
   Référence de rythme vertical : CAISSE DEV 1.2.109.
   - HÔTESSE : le spectacle sélectionné est réellement forcé sur 2 lignes via
     l'ID DOM correct ; le cadran PLACES GRATUITES devient auto-hauteur et ses
     compteurs sont plus compacts afin d'éviter tout vide inutile.
   - STATISTIQUES : suppression téléphone du contrôle GÉNÉRAL/DÉTAIL ; MODULES
     reste à gauche et REFRESH passe à droite. Le row-gap historique est retiré
     afin de ne conserver qu'un seul espacement de 8 px, comme CAISSE.
   - GESTION / ADMINISTRATION : suppression du gap flex hérité afin que les
     espacements entre HG, HD, BG et BD soient identiques au rythme CAISSE.
   Strictement téléphone ; CAISSE et tablette inchangées.
   ============================================================================ */
@media (max-width:700px) {
  /* HÔTESSE — le DOM utilise un ID, pas la classe historique. */
  body.device-phone.module-hostess #hostessScreen #hostessPhoneSelectedShow {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:1px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessPhoneSelectedShow > span {
    display:block !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    line-height:1.12 !important;
  }

  /* HÔTESSE — aucun cadran vide : hauteur dictée par le contenu visible. */
  body.device-phone.module-hostess #hostessScreen .hostessMain {
    box-sizing:border-box !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 0 8px !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessMain > #hostessFreePanel:not([hidden]) {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-rows:auto auto auto !important;
    row-gap:4px !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:6px !important;
    overflow:visible !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessFreePanel .sectionTitle {
    margin:0 0 2px !important;
    padding:0 !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessFreePanel .hostessPanelNote {
    margin:0 0 4px !important;
    padding:0 !important;
    line-height:1.12 !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessFreePanel .hostessCounterList {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-rows:none !important;
    grid-auto-rows:auto !important;
    gap:5px !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessFreePanel .hostessCounterRow {
    box-sizing:border-box !important;
    grid-template-columns:minmax(0,1fr) 42px 46px 42px !important;
    gap:5px !important;
    align-items:center !important;
    width:100% !important;
    height:auto !important;
    min-height:48px !important;
    max-height:none !important;
    margin:0 !important;
    padding:4px 7px !important;
    border-radius:11px !important;
    overflow:hidden !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessFreePanel .hostessCounterLabel {
    min-width:0 !important;
    font-size:14px !important;
    line-height:1.05 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessFreePanel .hostessCount {
    min-width:0 !important;
    font-size:25px !important;
    line-height:1 !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessFreePanel .hostessStepBtn {
    box-sizing:border-box !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:9px !important;
    font-size:22px !important;
    line-height:1 !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessRightBottom {
    box-sizing:border-box !important;
    width:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 4px 2px !important;
  }
  body.device-phone.module-hostess #hostessScreen .hostessActions:not([hidden]) {
    box-sizing:border-box !important;
    width:100% !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    margin:0 !important;
    padding:0 !important;
    gap:5px !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessValidateBtn,
  body.device-phone.module-hostess #hostessScreen #hostessCancelBtn {
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    margin:0 !important;
  }

  /* STATISTIQUES — même rythme vertical que CAISSE, sans double gap. */
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame {
    row-gap:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsBackBtn {
    grid-column:1 !important;
    grid-row:1 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsRefreshBtn {
    grid-column:3 !important;
    grid-row:1 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsViewSelect,
  body.device-phone.module-statistics #statisticsScreen .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsGeneralBtn,
  body.device-phone.module-statistics #statisticsScreen .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsDetailBtn {
    display:none !important;
  }

  /* GESTION / ADMINISTRATION — le flex conservait encore son gap historique. */
  body.device-phone.module-gestion .workspaceFrame.ttModuleFrame,
  body.device-phone.module-administration .workspaceFrame.ttModuleFrame {
    gap:0 !important;
    row-gap:0 !important;
    column-gap:0 !important;
  }
}

/* ============================================================================
   DEV 1.2.111 — TÉLÉPHONE / ACTIONS + STATISTIQUES RESPONSIVE + ADMIN TOOLBAR
   - CAISSE : actions finales sur le gabarit HD 40 px, ENREGISTRER 2/3 vert à
     gauche et ANNULER 1/3 rouge à droite.
   - HÔTESSE : VALIDER à gauche, ANNULER à droite, mêmes dimensions que le HD.
   - STATISTIQUES : cadran 2 strictement auto-hauteur selon son contenu et
     marge basse CAISSE conservée dans tous les scopes.
   - ADMINISTRATION : barre des actions cadran 2 contrainte à 100 % sans débord.
   Strictement téléphone ; aucune règle tablette ci-dessous.
   ============================================================================ */
@media (max-width:700px) {
  /* ---- CAISSE / actions finales ---- */
  body.device-phone.module-cashier #paymentCard > .ttPaymentBottom,
  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-rows:auto !important;
    column-gap:var(--tt-phone-hd-card-gap) !important;
    row-gap:var(--tt-phone-hd-card-gap) !important;
    align-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    margin:8px 0 0 !important;
    padding:0 !important;
    overflow:visible !important;
  }

  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom > #commitBtn {
    grid-column:1 / span 2 !important;
    grid-row:1 !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px 5px !important;
    border:1px solid #2f8a55 !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    background:#176534 !important;
    color:#fff !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:var(--tt-phone-hd-button-font) !important;
    font-weight:900 !important;
    line-height:1 !important;
    text-align:center !important;
  }

  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom > #cancelSaleBtn.cancelSaleBtn {
    grid-column:3 !important;
    grid-row:1 !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px 5px !important;
    border:1px solid #a33b3b !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    background:#8d2018 !important;
    color:#fff !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:var(--tt-phone-hd-button-font) !important;
    font-weight:900 !important;
    line-height:1 !important;
    text-align:center !important;
  }

  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom > #partialActions {
    grid-column:1 / span 2 !important;
    grid-row:1 !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:0 !important;
    gap:var(--tt-phone-hd-card-gap) !important;
    align-items:stretch !important;
  }

  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom > #partialActions .commit,
  body.device-phone #app.ttModuleFrame #paymentCard .waiveConfirmButtons > button {
    box-sizing:border-box !important;
    min-width:0 !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px 5px !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:9px !important;
    font-weight:900 !important;
    line-height:1.05 !important;
  }

  body.device-phone #app.ttModuleFrame #paymentCard .waiveConfirmButtons > .waiveConfirmBtn {
    background:#176534 !important;
    color:#fff !important;
  }
  body.device-phone #app.ttModuleFrame #paymentCard .waiveConfirmButtons > .waiveCancelBtn {
    background:#8d2018 !important;
    color:#fff !important;
  }

  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom > #commitBtn:disabled,
  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom > #partialActions .commit:disabled,
  body.device-phone #app.ttModuleFrame #paymentCard > .ttPaymentBottom > #cancelSaleBtn:disabled {
    opacity:.42 !important;
  }

  /* ---- HÔTESSE / actions finales : même grille 3 emplacements que HD ---- */
  body.device-phone.module-hostess #hostessScreen .hostessActions:not([hidden]) {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:var(--tt-phone-hd-button-height) !important;
    width:100% !important;
    min-width:0 !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:0 !important;
    gap:var(--tt-phone-hd-card-gap) !important;
  }

  body.device-phone.module-hostess #hostessScreen #hostessValidateBtn,
  body.device-phone.module-hostess #hostessScreen #hostessCancelBtn {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px 5px !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:var(--tt-phone-hd-button-font) !important;
    font-weight:900 !important;
    line-height:1 !important;
    text-align:center !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessValidateBtn {
    grid-column:1 !important;
    grid-row:1 !important;
    border:1px solid #2f8a55 !important;
    background:#176534 !important;
    color:#fff !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessCancelBtn {
    grid-column:3 !important;
    grid-row:1 !important;
    border:1px solid #a33b3b !important;
    background:#8d2018 !important;
    color:#fff !important;
  }

  /* ---- STATISTIQUES / cadran 2 verticalement responsive ---- */
  body.device-phone.module-statistics #statisticsScreen .ttStatisticsContent > .statisticsShowCard.statisticsFilterCard {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 0 8px !important;
    padding:var(--tt-phone-compact-card-pad,6px) !important;
    overflow:visible !important;
  }

  body.device-phone.module-statistics #statisticsScreen .statisticsFilterCard > .statisticsFilterSection[hidden] {
    display:none !important;
  }

  body.device-phone.module-statistics #statisticsScreen.statisticsScopeMulti .statisticsShowCard.statisticsFilterCard {
    display:block !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeMulti #statisticsFilterHeading {
    display:block !important;
    width:100% !important;
    margin:0 0 5px !important;
    padding:0 !important;
    font-size:11px !important;
    line-height:1.1 !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeMulti .statisticsFilterSection:not([hidden]) {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen.statisticsScopeMulti .statisticsScopeCaption {
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:5px 0 0 !important;
    padding:0 !important;
    font-size:9px !important;
    font-weight:800 !important;
    line-height:1.18 !important;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }

  /* ---- ADMINISTRATION / actions du cadran 2 sans débord horizontal ---- */
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(12,minmax(0,1fr)) !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    gap:5px !important;
    margin:0 0 8px !important;
    padding:0 !important;
    overflow:hidden !important;
  }
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar > select {
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar > .recordActionBtn {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:40px !important;
    min-height:40px !important;
    margin:0 !important;
    padding:4px 4px !important;
    border-radius:10px !important;
    font-size:9px !important;
    line-height:1.05 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar > .recordActionBtn:nth-of-type(1) {
    grid-column:1 / span 5 !important;
  }
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar > .recordActionBtn:nth-of-type(2) {
    grid-column:6 / span 4 !important;
  }
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar > .recordActionBtn:nth-of-type(3) {
    grid-column:10 / span 3 !important;
  }
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar > .recordActionBtn:nth-of-type(4) {
    grid-column:1 / span 6 !important;
  }
  body.device-phone.module-administration #administrationScreen .workspaceMainContent > .adminUsersToolbar > .recordActionBtn:nth-of-type(5) {
    grid-column:7 / span 6 !important;
  }
}


/* ============================================================================
   DEV 1.2.112 — TÉLÉPHONE / DENSITÉ CAISSE + STATISTIQUES + GESTION
   - CAISSE cadran 3 : composition plus proche tablette, 2 colonnes quantité/prix,
     prix forcé sombre/rouge discret et mention PRIX FORCÉ masquée comme tablette.
   - CAISSE cadran 4 : le positif « Tarifs à jour » est masqué ; une erreur reste visible.
   - CAISSE paiement : CASH / BANCONTACT / MIXTE = 3 tiers, gabarit HD 40 px ;
     opérateur/poste masqués sur téléphone.
   - HÔTESSE : VALIDER 2/3 gauche, ANNULER 1/3 droite.
   - STATISTIQUES : phrases du résumé = unités insécables, KPI plus compacts,
     mention « stats officiel » masquée et réserve basse ramenée près du footer.
   - GESTION : toolbars génériques bornées à 100 %, ENREGISTRER 2/3 gauche vert,
     ANNULER 1/3 droite rouge et réserve basse de 8 px au-dessus du footer.
   ============================================================================ */
@media (max-width:700px) {
  /* ---- CAISSE / 3. PLACES : lecture compacte inspirée de la tablette ---- */
  body.device-phone.module-cashier #placesCard .qtyRow,
  body.device-phone #app.ttModuleFrame #placesCard .qtyRow {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "name name"
      "countLabel priceLabel"
      "countControl priceControl" !important;
    column-gap:8px !important;
    row-gap:3px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:8px 0 10px !important;
  }
  body.device-phone #placesCard .qtyName {
    grid-area:name !important;
    min-width:0 !important;
    margin:0 0 2px !important;
  }
  body.device-phone #placesCard .qtyName > span:first-child {
    font-size:16px !important;
    line-height:1.05 !important;
    font-weight:900 !important;
  }
  body.device-phone #placesCard .qtySub {
    margin:3px 0 0 !important;
    font-size:10px !important;
    line-height:1.15 !important;
  }
  body.device-phone #placesCard .forcedTag,
  body.device-phone #placesCard .forcedTag.show {
    display:none !important;
  }
  body.device-phone #placesCard .mobileCountLabel {
    grid-area:countLabel !important;
  }
  body.device-phone #placesCard .mobilePriceLabel {
    grid-area:priceLabel !important;
  }
  body.device-phone #placesCard .mobileFieldLabel {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    margin:4px 0 1px !important;
    font-size:9px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  body.device-phone #placesCard .qtyStepper {
    grid-area:countControl !important;
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) 38px !important;
    gap:3px !important;
    width:100% !important;
    min-width:0 !important;
    height:40px !important;
    margin:0 !important;
  }
  body.device-phone #placesCard .qtyStepper button,
  body.device-phone #placesCard .priceCell.manual .priceStepper button {
    box-sizing:border-box !important;
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
    padding:0 !important;
    border-radius:10px !important;
    font-size:23px !important;
    line-height:1 !important;
  }
  body.device-phone #placesCard .qtyStepper .count {
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
    font-size:22px !important;
  }
  body.device-phone #placesCard .priceCell {
    grid-area:priceControl !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    height:40px !important;
    margin:0 !important;
  }
  body.device-phone #placesCard .pricePill {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
    margin:0 !important;
    padding:4px 6px !important;
    border-radius:10px !important;
    font-size:16px !important;
  }
  body.device-phone #placesCard .priceCell.manual .priceStepper {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) 38px !important;
    gap:3px !important;
    width:100% !important;
    min-width:0 !important;
    height:40px !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:10px !important;
  }
  body.device-phone #placesCard .priceCell.manual .priceValue {
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    font-size:16px !important;
    font-weight:900 !important;
  }
  body.device-phone #placesCard .priceCell.forced .priceStepper {
    background:rgba(142,72,72,.30) !important;
    border:1px solid rgba(220,132,132,.58) !important;
    border-radius:10px !important;
  }
  body.device-phone #placesCard .priceCell.forced .priceValue {
    color:#fff !important;
    text-shadow:none !important;
  }

  /* ---- CAISSE / 4. TOTAL : ne montrer le statut tarifaire que s'il y a problème ---- */
  body.device-phone #app.ttModuleFrame #resultCard #status.ok {
    display:none !important;
    margin:0 !important;
    min-height:0 !important;
  }

  /* ---- CAISSE / 5. PAIEMENT : 3 tiers, même densité que le HD ---- */
  body.device-phone #app.ttModuleFrame #paymentCard .payGrid {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:var(--tt-phone-hd-card-gap) !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }
  body.device-phone #app.ttModuleFrame #paymentCard .pay {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px 4px !important;
    border:1px solid #c7d0d5 !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    background:#eef1f3 !important;
    color:var(--ink) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:var(--tt-phone-hd-button-font) !important;
    font-weight:900 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
  }
  body[data-theme="dark"].device-phone #app.ttModuleFrame #paymentCard .pay {
    background:#202833 !important;
    color:#edf2f7 !important;
    border-color:#46515d !important;
  }
  body.device-phone #app.ttModuleFrame #paymentCard .pay.active,
  body[data-theme="dark"].device-phone #app.ttModuleFrame #paymentCard .pay.active {
    background:#123f3d !important;
    color:#dffffb !important;
    border-color:#46d7cc !important;
    box-shadow:none !important;
  }
  body.device-phone #app.ttModuleFrame #paymentCard .mini {
    display:none !important;
  }

  /* ---- HÔTESSE / action primaire 2/3 ---- */
  body.device-phone.module-hostess #hostessScreen #hostessValidateBtn {
    grid-column:1 / span 2 !important;
  }
  body.device-phone.module-hostess #hostessScreen #hostessCancelBtn {
    grid-column:3 !important;
  }

  /* ---- STATISTIQUES / résumé sémantique + KPI plus fins ---- */
  body.device-phone.module-statistics #statisticsScreen .statisticsScopeCaption {
    box-sizing:border-box !important;
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:2px 6px !important;
    width:100% !important;
    min-width:0 !important;
    line-height:1.15 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsScopePhrase {
    display:inline-block !important;
    max-width:100% !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsGeneralCard {
    padding:10px !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsGeneralCard .statisticsTiles {
    gap:6px !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsGeneralCard .statisticsTile {
    box-sizing:border-box !important;
    min-height:70px !important;
    height:auto !important;
    padding:5px !important;
    border-radius:12px !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsGeneralCard .statisticsTileLabel {
    margin-bottom:3px !important;
    font-size:10px !important;
    line-height:1.08 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsGeneralCard .statisticsTileValue {
    font-size:22px !important;
    line-height:1 !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsGeneralCard .statisticsMoneyValue {
    font-size:19px !important;
  }
  body.device-phone.module-statistics #statisticsScreen .statisticsGeneralCard:nth-child(2) > .statisticsCardNote {
    display:none !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen #statisticsOfficial,
  body.device-phone.module-statistics #statisticsScreen #statisticsDetailOfficialInline {
    display:none !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
  body.device-phone.module-statistics #statisticsScreen {
    padding-bottom:calc(var(--tt-phone-footer-height) + 4px) !important;
  }
  body.device-phone.module-statistics #statisticsScreen > .statisticsShell.ttModuleFrame {
    padding-bottom:0 !important;
  }

  /* ---- GESTION / téléphone : aucun débordement horizontal ---- */
  body.device-phone.module-gestion .gestionScreen.workspaceScreen {
    box-sizing:border-box !important;
    padding-bottom:calc(var(--tt-phone-footer-height) + 8px) !important;
    overflow-x:hidden !important;
  }
  body.device-phone.module-gestion .workspaceMainCard,
  body.device-phone.module-gestion .workspaceMainContent,
  body.device-phone.module-gestion .editorGrid,
  body.device-phone.module-gestion .editorField {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body.device-phone.module-gestion .recordToolbar {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-rows:auto !important;
    gap:5px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 0 9px !important;
    overflow:hidden !important;
  }
  body.device-phone.module-gestion .recordToolbar > select {
    grid-column:1 / -1 !important;
    grid-row:1 !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:8.5px !important;
    font-weight:900 !important;
    line-height:1.05 !important;
    white-space:normal !important;
    overflow:hidden !important;
  }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn:nth-of-type(1) { grid-column:1 !important; grid-row:2 !important; }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn:nth-of-type(2) { grid-column:2 !important; grid-row:2 !important; }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn:nth-of-type(3) { grid-column:3 !important; grid-row:2 !important; }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn:nth-of-type(4) {
    grid-column:3 !important; grid-row:3 !important;
    background:#8d2018 !important; border-color:#a33b3b !important; color:#fff !important;
  }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn:nth-of-type(5) {
    grid-column:1 / span 2 !important; grid-row:3 !important;
    background:#176534 !important; border-color:#2f8a55 !important; color:#fff !important;
  }

  /* LIEUX / SHOWS utilisent des footers spécifiques : même règle 2/3–1/3. */
  body.device-phone.module-gestion .gestionLieuxFooterActions,
  body.device-phone.module-gestion .gestionShowsFooterActions {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:5px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body.device-phone.module-gestion .gestionLieuxFooterActions .recordActionBtn,
  body.device-phone.module-gestion .gestionShowsFooterActions .recordActionBtn {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    margin:0 !important;
    padding:4px !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:8.5px !important;
    font-weight:900 !important;
    line-height:1.05 !important;
    white-space:normal !important;
  }
  body.device-phone.module-gestion .gestionLieuSaveBtn,
  body.device-phone.module-gestion .gestionShowSaveBtn {
    grid-column:1 / span 2 !important;
    grid-row:1 !important;
    background:#176534 !important;
    border-color:#2f8a55 !important;
    color:#fff !important;
  }
  body.device-phone.module-gestion .gestionLieuCancelBtn,
  body.device-phone.module-gestion .gestionShowCancelBtn {
    grid-column:3 !important;
    grid-row:1 !important;
    background:#8d2018 !important;
    border-color:#a33b3b !important;
    color:#fff !important;
  }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn:nth-of-type(4):disabled,
  body.device-phone.module-gestion .gestionLieuCancelBtn:disabled,
  body.device-phone.module-gestion .gestionShowCancelBtn:disabled {
    background:#8d2018 !important;
    border-color:#a33b3b !important;
    color:#fff !important;
    opacity:.45 !important;
    filter:none !important;
  }
  body.device-phone.module-gestion .recordToolbar > .recordActionBtn:nth-of-type(5):disabled,
  body.device-phone.module-gestion .gestionLieuSaveBtn:disabled,
  body.device-phone.module-gestion .gestionShowSaveBtn:disabled {
    background:#176534 !important;
    border-color:#2f8a55 !important;
    color:#fff !important;
    opacity:.45 !important;
    filter:none !important;
  }
}

/* ============================================================================
   DEV 1.2.113 — DEUX FINITIONS AVANT GEL PROD
   - CAISSE prix forcé : le stepper contient réellement ses boutons dans sa bordure.
   - GESTION > SHOWS téléphone : sélection courante sur deux lignes sans réduire la typo.
   ============================================================================ */
@media (max-width:700px) {
  body.device-phone #placesCard .priceCell.forced .priceStepper {
    box-sizing:border-box !important;
    overflow:hidden !important;
    align-items:center !important;
  }
  body.device-phone #placesCard .priceCell.forced .priceStepper button {
    box-sizing:border-box !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    border-radius:9px !important;
  }

  body.device-phone.module-gestion .gestionShowsSearch {
    position:relative !important;
    min-width:0 !important;
  }
  body.device-phone.module-gestion .gestionShowsPhoneProxy {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    gap:1px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:44px !important;
    padding:5px 10px !important;
    border:1px solid var(--line) !important;
    border-radius:10px !important;
    background:var(--card) !important;
    color:var(--ink) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:10px !important;
    font-weight:800 !important;
    line-height:1.12 !important;
    cursor:pointer !important;
    overflow:hidden !important;
  }
  body.device-phone.module-gestion .gestionShowsPhoneProxy > span {
    display:block !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body.device-phone.module-gestion .gestionShowsSearch:not(.ttSearchEditing) > .gestionShowsSearchInput {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    min-height:1px !important;
    padding:0 !important;
    border:0 !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
  body.device-phone.module-gestion .gestionShowsSearch.ttSearchEditing > .gestionShowsPhoneProxy {
    display:none !important;
  }
  body.device-phone.module-gestion .gestionShowsSearch.ttSearchEditing > .gestionShowsSearchInput {
    position:relative !important;
    width:100% !important;
    height:44px !important;
    min-height:44px !important;
    padding:5px 10px !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }
}

/* ============================================================================
   DEV 1.2.114 — CAISSE TÉLÉPHONE / CRAZY DAY / ZONE LIBRE
   - Régression 1.2.112/1.2.113 : le display:grid !important des qtyRow téléphone
     réaffichait les lignes LOGE pourtant masquées par la logique ZONE_LIBRE.
   - Correctif ciblé : zoneLibreHidden reprend la priorité sur téléphone CAISSE.
   - Aucun impact sur STANDARD/FAMILY : leurs lignes LOGE restent disponibles.
   ============================================================================ */
@media (max-width:700px) {
  body.device-phone.module-cashier #placesCard .qtyRow.zoneLibreHidden,
  body.device-phone #app.ttModuleFrame #placesCard .qtyRow.zoneLibreHidden {
    display:none !important;
  }
}


/* ============================================================================
   DEV 1.2.151D — téléphone : MODULES + petite icône plein écran.
   La largeur de l'icône est fixe et plus petite que les boutons métier.
   ============================================================================ */
@media (max-width:899px) {
  body.device-phone .ttModuleFrame > .ttZoneHD .ttQuickFullscreenBtn {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    min-width:32px !important;
    max-width:32px !important;
    height:var(--tt-phone-hd-button-height) !important;
    min-height:var(--tt-phone-hd-button-height) !important;
    max-height:var(--tt-phone-hd-button-height) !important;
    padding:0 !important;
    border-radius:var(--tt-phone-hd-button-radius) !important;
    font-size:17px !important;
    grid-row:1 !important;
    align-self:stretch !important;
    justify-self:center !important;
  }

  body.device-phone #app.ttModuleFrame > .ttZoneHD > #controlCard.ttZone0 > .controlGrid.ttZone0Actions {
    grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) minmax(0,1fr) !important;
  }
  body.device-phone #app.ttModuleFrame > .ttZoneHD #moduleBtn { grid-column:1 !important; }
  body.device-phone #app.ttModuleFrame > .ttZoneHD #caisseQuickFullscreenBtn { grid-column:2 !important; }
  body.device-phone #app.ttModuleFrame > .ttZoneHD #simulationControl { grid-column:3 !important; }
  body.device-phone #app.ttModuleFrame > .ttZoneHD #syncBadge { grid-column:4 !important; }

  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD .hostessControlGrid.ttZone0Actions {
    grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) !important;
  }
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD #hostessModuleBtn { grid-column:1 !important; }
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD #hostessQuickFullscreenBtn { grid-column:2 !important; }
  body.device-phone .hostessFrame.ttModuleFrame > .ttZoneHD #hostessSyncBadge { grid-column:3 !important; }

  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD .workspaceControlRow.ttZone0Actions {
    grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) !important;
  }
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD .workspaceControlBtn.ttZone0AnchorLeft { grid-column:1 !important; }
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD .ttQuickFullscreenBtn { grid-column:2 !important; }
  body.device-phone .workspaceFrame.ttModuleFrame > .ttZoneHD .workspaceSyncBadge { grid-column:3 !important; }

  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD .statisticsUnifiedActions.ttZone0Actions {
    grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) minmax(0,1fr) !important;
  }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsBackBtn { grid-column:1 !important; }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsQuickFullscreenBtn { grid-column:2 !important; }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsRefreshBtn { grid-column:3 !important; }
  body.device-phone .statisticsShell.ttModuleFrame > .ttZoneHD #statisticsViewSelect { grid-column:4 !important; }
}
