/* ==========================================================================
   DEV 1.2.77 — CADRAN MODULE / CAISSE / BAS DROITE
   Autorité spécifique à la mise en page fonctionnelle du cadran module CAISSE.

   Structure validée à tester :
   - 2 colonnes ;
   - colonne gauche : 2. Spectacle / 3. Places / 4. Total ;
   - colonne droite : 5. Paiement sur toute la hauteur ;
   - séparateurs cyan/bleus visibles pendant cette phase de construction.
   ========================================================================== */

@media (orientation:landscape) and (min-width:900px) {

  /* DEV 1.2.77 — ajustement fin des limites du cadran module CAISSE.
     Depuis 1.2.69 :
     - séparation verticale encore +5 px vers la droite ;
     - séparation horizontale haute encore -5 px vers le haut ;
     - séparation horizontale basse encore +5 px vers le bas
       (hauteur de la rangée basse réduite de 5 px).
     Les repères bleus suivent les limites réelles de la grille. */
  body.device-tablet .ttCaisseContent {
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,calc(58.139535% + 42.1px)) minmax(0,1fr) !important;
    grid-template-rows:39px minmax(0,1fr) 85px !important;
    gap:5px !important;
    min-width:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  /* Colonne gauche : 2 / 3 / 4. */
  body.device-tablet .ttCaisseContent > #showCard {
    grid-column:1 !important;
    grid-row:1 !important;
    min-width:0 !important;
  }
  body.device-tablet .ttCaisseContent > #placesCard {
    grid-column:1 !important;
    grid-row:2 !important;
    min-width:0 !important;
    min-height:0 !important;
  }
  body.device-tablet .ttCaisseContent > #resultCard {
    grid-column:1 !important;
    grid-row:3 !important;
    min-width:0 !important;
  }

  /* Colonne droite : 5. Paiement sur toute la hauteur du cadran module. */
  body.device-tablet .ttCaisseContent > #paymentCard {
    grid-column:2 !important;
    grid-row:1 / 4 !important;
    min-width:0 !important;
    min-height:0 !important;
  }

  /* Message flottant : inchangé fonctionnellement, au-dessus des deux colonnes. */
  body.device-tablet .ttCaisseContent > #message {
    position:absolute !important;
    top:2px !important;
    left:2px !important;
    right:2px !important;
    z-index:40 !important;
    margin:0 !important;
  }

  /* DEV 1.2.77 — visibilité des repères bleus :
     STRICTEMENT pilotée par le master global DEV_GUIDES_VISIBLE.
     DEV + 1 => visible ; DEV + 0 => masqué ; PROD => masqué. */
  body.device-tablet .ttCaisseContent > .ttCaisseDebugLine {
    opacity:var(--tt-caisse-debug-opacity, var(--tt-dev-guides-opacity,0)) !important;
  }

  /* Ligne horizontale 2 / 3 : uniquement colonne gauche. */
  body.device-tablet .ttCaisseContent > .ttCaisseDebugLine--h23 {
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:end !important;
  }

  /* Ligne verticale : séparation des deux colonnes, pleine hauteur. */
  body.device-tablet .ttCaisseContent > .ttCaisseDebugLine--v35 {
    grid-column:2 !important;
    grid-row:1 / 4 !important;
    justify-self:start !important;
  }

  /* Ligne horizontale 3 / 4 : uniquement colonne gauche. */
  body.device-tablet .ttCaisseContent > .ttCaisseDebugLine--h34 {
    grid-column:1 !important;
    grid-row:2 !important;
    align-self:end !important;
  }
}


/* ==========================================================================
   DEV 1.2.77 — CADRAN MODULE CAISSE / DIVISIONS INTERNES
   RÈGLE PERMANENTE : toute ligne de construction/séparation bleue ou rouge
   ajoutée pendant le DEV doit suivre --tt-dev-guides-opacity et donc
   Administration > VARIABLES > DEV_GUIDES_VISIBLE.
   Toutes les règles ci-dessous sont STRICTEMENT spécifiques au cadran module CAISSE.
   ========================================================================== */

@media (orientation:landscape) and (min-width:900px) {

  /* 2. SPECTACLE
     - titre calé en haut à gauche ;
     - sélection du show centrée verticalement dans sa zone. */
  body.device-tablet .ttCaisseContent > #showCard {
    display:grid !important;
    grid-template-columns:112px minmax(0,1fr) !important;
    align-items:stretch !important;
    position:relative !important;
  }

  body.device-tablet .ttCaisseContent > #showCard > #sectionShowTitle {
    align-self:start !important;
    justify-self:start !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
  }

  body.device-tablet .ttCaisseContent > #showCard > #showSelect,
  body.device-tablet .ttCaisseContent > #showCard > #showStatic {
    grid-column:2 !important;
    align-self:center !important;
    justify-self:stretch !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    transform:translateY(-6px) !important;
  }

  /* 4. TOTAL : trois tiers réels.
     - gauche : total / synthèse ;
     - centre : justification du prix manuel ;
     - droite : bouton PRIX MANUEL / ACCORD SPÉCIAL.
     Les deux séparateurs rouges restent des DEV GUIDES. */
  body.device-tablet .ttCaisseContent > #resultCard {
    --tt-caisse-internal-red:rgba(255,59,48,var(--tt-dev-guides-opacity,0));
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:0 !important;
    position:relative !important;
    overflow:hidden !important;
  }

  body.device-tablet .ttCaisseContent > #resultCard > .ttResultMain,
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultCenter,
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultSide {
    min-width:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  body.device-tablet .ttCaisseContent > #resultCard > .ttResultMain {
    grid-column:1 !important;
    grid-row:1 !important;
    padding-right:5px !important;
  }

  body.device-tablet .ttCaisseContent > #resultCard > .ttResultCenter {
    grid-column:2 !important;
    grid-row:1 !important;
    border-left:2px solid var(--tt-caisse-internal-red) !important;
    padding:4px 5px !important;
    display:flex !important;
    align-items:stretch !important;
  }

  body.device-tablet .ttCaisseContent > #resultCard > .ttResultSide {
    grid-column:3 !important;
    grid-row:1 !important;
    border-left:2px solid var(--tt-caisse-internal-red) !important;
    padding:5px !important;
    display:flex !important;
    align-items:stretch !important;
    justify-content:stretch !important;
  }

  /* Zone centrale = motif qui justifie le prix spécial. */
  body.device-tablet #resultCard .ttResultCenter #manualBox {
    width:100% !important;
    min-width:0 !important;
    height:100% !important;
    max-height:none !important;
    margin:0 !important;
    padding:3px 4px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualBox.show {
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualReasonLabel {
    margin:0 0 3px 0 !important;
    font-size:9.5px !important;
    line-height:1 !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualReason {
    width:100% !important;
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    padding:4px 5px !important;
    box-sizing:border-box !important;
    resize:none !important;
    overflow:hidden !important;
    font-size:9.5px !important;
    line-height:1.1 !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualSummary {
    display:none !important;
  }

  /* Zone droite = bouton manuel, obligatoirement sur deux lignes. */
  body.device-tablet #resultCard .ttResultSide #manualBtn {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:5px !important;
    box-sizing:border-box !important;
    border-radius:calc(var(--tt-tablet-radius) - 5px) !important;
    white-space:pre-line !important;
    text-align:center !important;
    line-height:1.05 !important;
    font-size:10px !important;
    font-weight:900 !important;
  }

  /* 5. PAIEMENT : zone haute fonctionnelle + zone basse finalisation (100 px).
     Le séparateur rouge horizontal reste un DEV GUIDE. */
  body.device-tablet .ttCaisseContent > #paymentCard {
    --tt-caisse-internal-red:rgba(255,59,48,var(--tt-dev-guides-opacity,0));
    --tt-caisse-payment-bottom-height:100px;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:minmax(0,1fr) var(--tt-caisse-payment-bottom-height) !important;
    gap:0 !important;
    position:relative !important;
    overflow:hidden !important;
  }

  body.device-tablet .ttCaisseContent > #paymentCard > .ttPaymentMain {
    grid-column:1 !important;
    grid-row:1 !important;
    min-width:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  /* Même espace titre -> premiers boutons que TYPE DE VENTE. */
  body.device-tablet #paymentCard #sectionPaymentTitle {
    margin:0 0 clamp(10px,.9vw,13px) 0 !important;
  }

  /* CASH / BANCONTACT / MIXTE = 1/3 + 1/3 + 1/3, légèrement rapprochés des bords. */
  body.device-tablet #paymentCard .payGrid {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:5px !important;
    width:calc(100% + 8px) !important;
    margin-left:-4px !important;
    margin-right:-4px !important;
    box-sizing:border-box !important;
  }

  /* Habillage basé sur MODULES, sans toucher au CSS commun verrouillé. */
  body.device-tablet #paymentCard .pay {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    min-height:38px !important;
    padding:5px 4px !important;
    border:1px solid #9ab6c3 !important;
    border-radius:calc(var(--tt-tablet-radius) - 5px) !important;
    background:#eaf4f8 !important;
    color:#17445c !important;
    box-shadow:none !important;
    outline:none !important;
    transform:none !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:clamp(10px,.82vw,13px) !important;
    font-weight:900 !important;
    line-height:1.05 !important;
    text-align:center !important;
  }
  body.device-tablet #paymentCard .pay.active {
    background:#0f6f69 !important;
    color:#fff !important;
    border-color:#d8fffb !important;
    box-shadow:none !important;
    transform:none !important;
  }
  body[data-theme="dark"].device-tablet #paymentCard .pay {
    background:#29313a !important;
    color:#e8eef4 !important;
    border-color:#46515d !important;
  }
  body[data-theme="dark"].device-tablet #paymentCard .pay.active {
    background:#124d4a !important;
    color:#ecfffd !important;
    border-color:#aafff6 !important;
  }

  /* Zone basse = uniquement finalisation de la vente. */
  body.device-tablet .ttCaisseContent > #paymentCard > .ttPaymentBottom {
    grid-column:1 !important;
    grid-row:2 !important;
    min-width:0 !important;
    min-height:0 !important;
    border-top:2px solid var(--tt-caisse-internal-red) !important;
    box-sizing:border-box !important;
    padding:8px 5px !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:5px !important;
    align-items:center !important;
    overflow:hidden !important;
  }

  body.device-tablet #paymentCard .ttPaymentBottom > #commitBtn,
  body.device-tablet #paymentCard .ttPaymentBottom > #cancelSaleBtn,
  body.device-tablet #paymentCard .ttPaymentBottom > #partialActions .commit {
    box-sizing:border-box !important;
    width:100% !important;
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    margin:0 !important;
    padding:6px 7px !important;
    border-style:solid !important;
    border-width:1px !important;
    border-color:currentColor !important;
    border-radius:calc(var(--tt-tablet-radius) - 5px) !important;
    box-shadow:none !important;
    transform:none !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:clamp(9px,.78vw,12px) !important;
    font-weight:900 !important;
    line-height:1.08 !important;
    white-space:normal !important;
    text-align:center !important;
  }

  body.device-tablet #paymentCard .ttPaymentBottom > #commitBtn {
    grid-column:1 / 3 !important;
    grid-row:1 !important;
    align-self:center !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #partialActions {
    grid-column:1 / 3 !important;
    grid-row:1 !important;
    align-self:center !important;
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    margin:0 !important;
    gap:5px !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #partialActions .commit {
    align-self:stretch !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #cancelSaleBtn {
    grid-column:3 !important;
    grid-row:1 !important;
    align-self:center !important;
  }

  /* Opérateur et poste déjà couverts ailleurs : invisibles dans le cadran Paiement. */
  body.device-tablet #paymentCard .mini {
    display:none !important;
  }

  /* Les ancres DOM n'ont aucune présence visuelle. */
  body.device-tablet .ttCaissePortalAnchor {
    display:none !important;
  }

}


/* ========================================================================== 
   DEV 1.2.77 — LOT D'AJUSTEMENTS VISUELS CAISSE VALIDÉ PAR GO
   Autorité : cadran module CAISSE / tablette uniquement.
   HG / HD / BG et leurs CSS communs restent intacts.
   ========================================================================== */
@media (orientation:landscape) and (min-width:900px) {

  /* ------------------------------------------------------------------------
     2. SPECTACLE — centrage vertical réel du champ de sélection.
     Le -6 px de 1.2.73 le plaçait trop haut : aucun décalage forcé ici.
     ------------------------------------------------------------------------ */
  body.device-tablet .ttCaisseContent > #showCard > #showSelect,
  body.device-tablet .ttCaisseContent > #showCard > #showStatic {
    align-self:center !important;
    transform:none !important;
  }

  /* ------------------------------------------------------------------------
     3. PLACES — séparateurs plus discrets.
     Les 2 mini-traits de l'entête sont supprimés.
     Ceux des lignes restent, plus fins visuellement et fondus aux extrémités.
     ------------------------------------------------------------------------ */
  body.device-tablet #placesCard .placesHeader .columnSep {
    display:none !important;
  }
  body.device-tablet #placesCard .qtyRow .columnSep {
    width:1px !important;
    height:68% !important;
    min-height:0 !important;
    max-height:68% !important;
    align-self:center !important;
    background:linear-gradient(
      to bottom,
      rgba(154,182,195,0) 0%,
      rgba(154,182,195,.42) 22%,
      rgba(154,182,195,.42) 78%,
      rgba(154,182,195,0) 100%
    ) !important;
    opacity:.85 !important;
  }
  body[data-theme="dark"].device-tablet #placesCard .qtyRow .columnSep {
    background:linear-gradient(
      to bottom,
      rgba(116,136,153,0) 0%,
      rgba(116,136,153,.46) 22%,
      rgba(116,136,153,.46) 78%,
      rgba(116,136,153,0) 100%
    ) !important;
  }

  /* ------------------------------------------------------------------------
     4. TOTAL — gauche -20 px / centre +40 px / droite -20 px.
     Les séparateurs rouges restent pilotés par DEV_GUIDES_VISIBLE.
     ------------------------------------------------------------------------ */
  body.device-tablet .ttCaisseContent > #resultCard {
    grid-template-columns:
      minmax(0,calc(33.333333% - 20px))
      minmax(0,calc(33.333333% + 40px))
      minmax(0,calc(33.333334% - 20px)) !important;
  }

  /* Tarif théorique barré sous "Tarif spectacle : ..." pour libérer la droite. */
  body.device-tablet #resultCard > .ttResultMain {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    padding-right:4px !important;
  }
  body.device-tablet #resultCard > .ttResultMain > #sectionTotalTitle { order:1 !important; }
  body.device-tablet #resultCard > .ttResultMain > .totalLine { display:contents !important; }
  body.device-tablet #resultCard > .ttResultMain #total { order:2 !important; }
  body.device-tablet #resultCard > .ttResultMain > #detail { order:3 !important; }
  body.device-tablet #resultCard > .ttResultMain #oldTotal {
    order:4 !important;
    width:100% !important;
    margin:1px 0 0 0 !important;
    padding:0 !important;
    font-size:clamp(8px,.68vw,10px) !important;
    line-height:1.05 !important;
    white-space:normal !important;
    overflow:hidden !important;
  }
  body.device-tablet #resultCard > .ttResultMain #oldTotal.show {
    display:block !important;
  }
  body.device-tablet #resultCard > .ttResultMain > #status { order:5 !important; }

  /* Centre et droite presque bord à bord verticalement, petite marge esthétique. */
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultCenter,
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultSide {
    padding:3px 4px !important;
    align-items:stretch !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualBox {
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:2px 3px !important;
    box-sizing:border-box !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualBox.show {
    display:flex !important;
    flex-direction:column !important;
    justify-content:stretch !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualBox .manualGrid,
  body.device-tablet #resultCard .ttResultCenter #manualBox .manualGrid > div {
    flex:1 1 auto !important;
    min-height:0 !important;
    height:100% !important;
    display:flex !important;
    flex-direction:column !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualReasonLabel {
    flex:0 0 auto !important;
    margin:0 0 2px 0 !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualReason {
    flex:1 1 auto !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:3px 5px !important;
    box-sizing:border-box !important;
  }
  body.device-tablet #resultCard .ttResultSide #manualBtn {
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:4px 5px !important;
    align-self:stretch !important;
  }

  /* ------------------------------------------------------------------------
     5. PAIEMENT — corrige la troncature des 3 moyens de paiement.
     ------------------------------------------------------------------------ */
  body.device-tablet .ttCaisseContent > #paymentCard {
    padding:6px !important;
  }
  body.device-tablet #paymentCard .payGrid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:5px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }
  body.device-tablet #paymentCard .pay {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  /* Finalisation : utilise presque toute la largeur et se cale en bas. */
  body.device-tablet .ttCaisseContent > #paymentCard > .ttPaymentBottom {
    padding:5px 1px 3px 1px !important;
    grid-template-columns:minmax(0,2fr) minmax(0,1fr) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:5px !important;
    align-items:end !important;
    justify-items:stretch !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #commitBtn {
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:end !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #partialActions {
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:end !important;
    width:100% !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #cancelSaleBtn {
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:end !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #commitBtn,
  body.device-tablet #paymentCard .ttPaymentBottom > #cancelSaleBtn,
  body.device-tablet #paymentCard .ttPaymentBottom > #partialActions,
  body.device-tablet #paymentCard .ttPaymentBottom > #partialActions .commit {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:clamp(62px,8.5vh,76px) !important;
    min-height:clamp(62px,8.5vh,76px) !important;
    max-height:clamp(62px,8.5vh,76px) !important;
    margin:0 !important;
  }

  /* Annuler = même dessin plein que Enregistrer ; couleur pourra être revue plus tard. */
  body.device-tablet #paymentCard .ttPaymentBottom > #cancelSaleBtn {
    background:var(--red) !important;
    color:#fff !important;
    border-color:var(--red) !important;
    border-style:solid !important;
    border-width:1px !important;
    border-radius:calc(var(--tt-tablet-radius) - 5px) !important;
    box-shadow:none !important;
  }

  /* ------------------------------------------------------------------------
     POP-UP MESSAGE / ERREUR — vrai pop-up central élégant.
     showMessage() conserve l'auto-masquage à 5 secondes ; X = clearMessage().
     ------------------------------------------------------------------------ */
  body.device-tablet .ttCaisseContent > #message,
  body.device-tablet #message {
    position:fixed !important;
    inset:0 !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100vw !important;
    height:100dvh !important;
    margin:0 !important;
    padding:24px !important;
    box-sizing:border-box !important;
    z-index:2147483200 !important;
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    transform:none !important;
    background:rgba(6,12,18,.42) !important;
    backdrop-filter:blur(2px) !important;
    overflow:hidden !important;
  }
  body.device-tablet #message.show {
    display:flex !important;
  }
  body.device-tablet #message .messagePopupCard {
    position:relative !important;
    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) !important;
    align-items:center !important;
    gap:12px !important;
    width:min(560px,calc(100vw - 48px)) !important;
    min-height:104px !important;
    max-height:min(300px,calc(100dvh - 48px)) !important;
    margin:0 !important;
    padding:18px 54px 18px 18px !important;
    box-sizing:border-box !important;
    border:1px solid rgba(255,255,255,.48) !important;
    border-radius:18px !important;
    background:#f7fafb !important;
    color:#17232d !important;
    box-shadow:0 20px 70px rgba(0,0,0,.34) !important;
    overflow:auto !important;
  }
  body.device-tablet #message.bad .messagePopupCard {
    border-color:#e49a95 !important;
    box-shadow:0 20px 70px rgba(0,0,0,.34), inset 4px 0 0 #c63d34 !important;
  }
  body.device-tablet #message.ok .messagePopupCard {
    border-color:#91c7ae !important;
    box-shadow:0 20px 70px rgba(0,0,0,.34), inset 4px 0 0 #238453 !important;
  }
  body.device-tablet #message .messagePopupIcon {
    width:44px !important;
    height:44px !important;
    border-radius:50% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:27px !important;
    font-weight:1000 !important;
    line-height:1 !important;
  }
  body.device-tablet #message.bad .messagePopupIcon {
    background:#fde8e6 !important;
    color:#b92f27 !important;
  }
  body.device-tablet #message.bad .messagePopupIcon::before { content:"!"; }
  body.device-tablet #message.ok .messagePopupIcon {
    background:#e3f4ea !important;
    color:#1d7b4b !important;
  }
  body.device-tablet #message.ok .messagePopupIcon::before { content:"✓"; }
  body.device-tablet #message .messagePopupText {
    min-width:0 !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:clamp(14px,1.22vw,18px) !important;
    font-weight:800 !important;
    line-height:1.35 !important;
    text-align:left !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  body.device-tablet #message .messageCloseBtn {
    position:absolute !important;
    top:12px !important;
    right:12px !important;
    transform:none !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    padding:0 !important;
    border:1px solid rgba(85,105,118,.24) !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.86) !important;
    color:#253643 !important;
    font-size:22px !important;
    font-weight:900 !important;
    line-height:28px !important;
    box-shadow:none !important;
  }
  body[data-theme="dark"].device-tablet #message .messagePopupCard {
    background:#202a35 !important;
    color:#eef4f7 !important;
    border-color:#526171 !important;
  }
  body[data-theme="dark"].device-tablet #message .messageCloseBtn {
    background:#2d3945 !important;
    color:#f0f5f8 !important;
    border-color:#526171 !important;
  }
}


/* ========================================================================== 
   DEV 1.2.77 — AJUSTEMENTS FINS APRÈS VALIDATION PHOTO TABLETTE
   Autorité : cadran module CAISSE / tablette uniquement.
   Aucun changement HG / HD / BG.
   ========================================================================== */
@media (orientation:landscape) and (min-width:900px) {

  /* 2. SPECTACLE — compromis exact entre le -6 px (trop haut) et 0 (trop bas). */
  body.device-tablet .ttCaisseContent > #showCard > #showSelect,
  body.device-tablet .ttCaisseContent > #showCard > #showStatic {
    align-self:center !important;
    transform:translateY(-3px) !important;
  }

  /* 3. PLACES — entêtes explicitement alignés sur leurs vraies colonnes.
     Les séparateurs d'entête restent masqués ; les titres tiennent sur une ligne. */
  body.device-tablet #placesCard .placesHeader {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 1px 150px 1px 174px !important;
    column-gap:8px !important;
    align-items:end !important;
    min-width:0 !important;
  }
  body.device-tablet #placesCard .placesHeader > :first-child {
    grid-column:1 !important;
    grid-row:1 !important;
  }
  body.device-tablet #placesCard #placesCountHeader {
    grid-column:3 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    white-space:nowrap !important;
    text-align:center !important;
    font-size:clamp(8.5px,.72vw,10.5px) !important;
    line-height:1 !important;
  }
  body.device-tablet #placesCard #placesPriceHeader {
    grid-column:5 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    white-space:nowrap !important;
    text-align:center !important;
    font-size:clamp(8.5px,.72vw,10.5px) !important;
    line-height:1 !important;
  }

  /* Prix forcé — toujours visible, mais beaucoup moins flash et sans cadre tronqué. */
  body.device-tablet #placesCard .priceCell.manual .priceStepper {
    width:calc(100% - 4px) !important;
    min-width:0 !important;
    max-width:calc(100% - 4px) !important;
    margin:0 2px !important;
    padding:2px !important;
    box-sizing:border-box !important;
    grid-template-columns:36px minmax(0,1fr) 36px !important;
    gap:5px !important;
  }
  body.device-tablet #placesCard .priceCell.manual .priceStepper button {
    width:36px !important;
    min-width:36px !important;
    max-width:36px !important;
  }
  body.device-tablet #placesCard .priceCell.forced .priceStepper {
    background:rgba(224,176,176,.36) !important;
    border:1px solid rgba(190,109,109,.62) !important;
    border-radius:10px !important;
    box-sizing:border-box !important;
  }
  body[data-theme="dark"].device-tablet #placesCard .priceCell.forced .priceStepper {
    background:rgba(142,72,72,.30) !important;
    border-color:rgba(220,132,132,.58) !important;
  }

  /* 4. TOTAL — encore 5 px à gauche pour le 1er séparateur,
     encore 15 px à droite pour le 2e séparateur.
     Somme conservée à 100 % : gauche -25 / centre +60 / droite -35. */
  body.device-tablet .ttCaisseContent > #resultCard {
    grid-template-columns:
      minmax(0,calc(33.333333% - 25px))
      minmax(0,calc(33.333333% + 60px))
      minmax(0,calc(33.333334% - 35px)) !important;
  }

  /* Ligne bleue 3/4 descendue de 5 px : rangée TOTAL réduite de 85 à 80 px. */
  body.device-tablet .ttCaisseContent {
    grid-template-rows:39px minmax(0,1fr) 80px !important;
  }

  /* Motif/Société + Prix manuel plus bas ; marges basse et droite réduites. */
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultCenter {
    padding:5px 3px 1px 3px !important;
  }
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultSide {
    padding:5px 1px 1px 3px !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualBox,
  body.device-tablet #resultCard .ttResultSide #manualBtn {
    margin:0 !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    box-sizing:border-box !important;
  }

  /* 5. PAIEMENT — plus de place pour le clavier : séparateur rouge abaissé de 20 px. */
  body.device-tablet .ttCaisseContent > #paymentCard {
    --tt-caisse-payment-bottom-height:80px !important;
  }

  /* Le texte d'aide sous le clavier est retiré sur tablette. */
  body.device-tablet #paymentCard #keypadHint {
    display:none !important;
  }

  /* Les trois boutons de finalisation descendent encore de 2 px. */
  body.device-tablet .ttCaisseContent > #paymentCard > .ttPaymentBottom {
    padding:5px 1px 1px 1px !important;
    align-items:end !important;
  }
}


/* ==========================================================================
   DEV 1.2.77 — LOT VALIDÉ APRÈS PHOTO TABLETTE
   2.SPECTACLE verrouillé et inchangé.
   Cibles : PLACES / TOTAL / PAIEMENT + responsive vertical MIXTE.
   ========================================================================== */
@media (orientation:landscape) and (min-width:900px) {

  /* 3. PLACES — prix forcé lisible : valeur toujours blanche. */
  body.device-tablet #placesCard .priceCell.forced .priceValue {
    color:#ffffff !important;
    text-shadow:none !important;
  }

  /* 4. TOTAL — second séparateur rouge encore 5 px à droite.
     Gauche inchangée ; centre +5 ; droite -5. */
  body.device-tablet .ttCaisseContent > #resultCard {
    grid-template-columns:
      minmax(0,calc(33.333333% - 25px))
      minmax(0,calc(33.333333% + 65px))
      minmax(0,calc(33.333334% - 40px)) !important;
  }

  /* Motif/Société et bouton Prix manuel utilisent presque toute la hauteur. */
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultCenter {
    padding:1px 2px 1px 2px !important;
  }
  body.device-tablet .ttCaisseContent > #resultCard > .ttResultSide {
    padding:1px 1px 1px 2px !important;
  }
  body.device-tablet #resultCard .ttResultCenter #manualBox,
  body.device-tablet #resultCard .ttResultSide #manualBtn {
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  /* 5. PAIEMENT — les deux demandes successives de -5 px sur la zone basse
     déplacent le séparateur rouge 10 px plus bas : 80 -> 70 px. */
  body.device-tablet .ttCaisseContent > #paymentCard {
    --tt-caisse-payment-bottom-height:70px !important;
  }

  /* Bloc fonctionnel : 10 px plus bas, mais désormais réellement responsive
     en hauteur. Le contenu se contracte avant de pouvoir être tronqué. */
  body.device-tablet .ttCaisseContent > #paymentCard > .ttPaymentMain {
    display:flex !important;
    flex-direction:column !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  body.device-tablet #paymentCard #sectionPaymentTitle,
  body.device-tablet #paymentCard .payGrid {
    flex:0 0 auto !important;
  }
  body.device-tablet #paymentCard .paymentEntryBox.show {
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin-top:15px !important;
    padding:clamp(3px,.65dvh,6px) !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  /* Champs CASH / BANCONTACT / MIXTE : hauteurs adaptatives. */
  body.device-tablet #paymentCard #cashModeFields .keypadDisplay,
  body.device-tablet #paymentCard #cashModeFields .moneyDisplay,
  body.device-tablet #paymentCard #bancontactModeFields .keypadDisplay,
  body.device-tablet #paymentCard #bancontactModeFields .moneyDisplay,
  body.device-tablet #paymentCard .mixedModeFields .keypadDisplay,
  body.device-tablet #paymentCard .mixedModeFields .moneyDisplay {
    height:clamp(28px,5.4dvh,42px) !important;
    min-height:clamp(28px,5.4dvh,42px) !important;
    max-height:42px !important;
    font-size:clamp(12px,2.05dvh,15px) !important;
  }

  body.device-tablet #paymentCard .mixedModeFields .splitGrid > div {
    grid-template-rows:
      clamp(14px,2.4dvh,18px)
      clamp(28px,5.4dvh,42px) !important;
    min-height:0 !important;
  }
  body.device-tablet #paymentCard .mixedModeFields .splitLabel {
    height:clamp(14px,2.4dvh,18px) !important;
    min-height:clamp(14px,2.4dvh,18px) !important;
    font-size:clamp(7.8px,1.45dvh,9.2px) !important;
  }
  body.device-tablet #paymentCard .mixedSecondRow {
    margin-top:clamp(2px,.65dvh,7px) !important;
  }
  body.device-tablet #paymentCard .splitInfo {
    flex:0 0 auto !important;
    margin-top:clamp(1px,.4dvh,4px) !important;
    margin-bottom:0 !important;
    line-height:1 !important;
    font-size:clamp(8px,1.5dvh,10.5px) !important;
  }

  /* Clavier : cinq rangées toujours contenues dans l'espace restant.
     Les touches réduisent automatiquement leur épaisseur si le navigateur
     manque de hauteur ; aucune rangée ne doit sortir du cadran. */
  body.device-tablet #paymentCard #keypadBox.show {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:repeat(5,minmax(0,1fr)) !important;
    flex:1 1 auto !important;
    min-height:0 !important;
    max-height:none !important;
    gap:clamp(2px,.55dvh,5px) !important;
    margin-top:clamp(2px,.6dvh,6px) !important;
    overflow:hidden !important;
  }
  body.device-tablet #paymentCard #keypadBox button {
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding:0 4px !important;
    font-size:clamp(11px,2.15dvh,16px) !important;
    line-height:1 !important;
    box-sizing:border-box !important;
  }

  /* Finalisation : couleurs exactement calées sur les états opérationnels. */
  body.device-tablet #paymentCard .ttPaymentBottom > #commitBtn {
    background:var(--tt-status-ready-bg) !important;
    border-color:var(--tt-status-ready-border) !important;
    color:var(--tt-status-fg) !important;
    box-shadow:none !important;
  }
  body.device-tablet #paymentCard .ttPaymentBottom > #cancelSaleBtn {
    background:var(--tt-status-busy-bg) !important;
    border-color:var(--tt-status-busy-border) !important;
    color:var(--tt-status-fg) !important;
    box-shadow:none !important;
  }
}

/* Hauteur courte : contraction renforcée, toujours sans troncature. */
@media (orientation:landscape) and (min-width:900px) and (max-height:680px) {
  body.device-tablet #paymentCard .paymentEntryBox.show {
    padding:3px !important;
  }
  body.device-tablet #paymentCard #keypadBox.show {
    gap:2px !important;
    margin-top:2px !important;
  }
  body.device-tablet #paymentCard #keypadBox button {
    font-size:clamp(10px,2dvh,14px) !important;
  }
  body.device-tablet #paymentCard .mixedSecondRow {
    margin-top:2px !important;
  }
}


/* ========================================================================== 
   DEV 1.2.77 — CAISSE / 2. SPECTACLE
   Lecture seule = même rendu visuel que le sélecteur autorisé.
   La seule différence reste fonctionnelle : #showStatic n'est pas interactif.
   Position verticale validée en 1.2.75/1.2.76 strictement conservée.
   ========================================================================== */
@media (orientation:landscape) and (min-width:900px) {
  body.device-tablet .ttCaisseContent > #showCard > #showStatic:not([hidden]) {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    padding:8px 34px 8px 10px !important;
    border:1px solid var(--line) !important;
    border-radius:9px !important;
    background:#fff !important;
    color:var(--ink) !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:clamp(10px,.95vw,14px) !important;
    font-weight:400 !important;
    font-style:normal !important;
    line-height:normal !important;
    letter-spacing:normal !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    text-overflow:ellipsis !important;
  }

  body[data-theme="dark"].device-tablet .ttCaisseContent > #showCard > #showStatic:not([hidden]) {
    background:#0f141b !important;
    color:#edf2f7 !important;
    border-color:#3a4655 !important;
  }
}

@media (orientation:landscape) and (min-width:900px) and (max-height:650px) {
  body.device-tablet .ttCaisseContent > #showCard > #showStatic:not([hidden]) {
    font-size:12px !important;
    padding-top:7px !important;
    padding-bottom:7px !important;
  }
}


/* ==========================================================================
   DEV 1.2.79 — CADRAN 3 PLACES / ERGONOMIE TACTILE
   Autorité : cadran module CAISSE / tablette uniquement.
   ========================================================================== */
@media (orientation:landscape) and (min-width:900px) {

  /* Les colonnes de l'entête et des lignes partagent exactement la même géométrie.
     Réduction des espaces inutiles autour de la colonne NOMBRE DE PLACES. */
  body.device-tablet #placesCard .placesHeader,
  body.device-tablet #placesCard .qtyRow {
    grid-template-columns:minmax(0,1fr) 1px 150px 1px 174px !important;
    column-gap:3px !important;
  }

  /* Le stepper quantité remplit réellement sa colonne au lieu de laisser
     des marges latérales inutiles entre − / + et les séparateurs. */
  body.device-tablet #placesCard .qtyStepper {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    justify-self:stretch !important;
    grid-template-columns:40px minmax(0,1fr) 40px !important;
    gap:4px !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
  }

  /* Catégorie plus lisible : Adulte / Enfant, Tribune / Loge. */
  body.device-tablet #placesCard .qtyName > span:first-child {
    font-size:clamp(17px,1.5vw,21px) !important;
    line-height:1.02 !important;
    font-weight:900 !important;
  }

  /* Phrase tarifaire légèrement agrandie, tout en restant secondaire. */
  body.device-tablet #placesCard .qtySub {
    font-size:clamp(9px,.82vw,11px) !important;
    line-height:1.12 !important;
  }

  /* Le visuel du prix forcé suffit : suppression de la mention PRIX FORCÉ. */
  body.device-tablet #placesCard .forcedTag,
  body.device-tablet #placesCard .forcedTag.show {
    display:none !important;
  }

  /* Symboles − / + légèrement plus grands, sans grossir les boutons eux-mêmes.
     Protection tactile : aucun menu long-press, aucune sélection de texte,
     aucune gestuelle navigateur ne doit prendre la main sur ces boutons. */
  body.device-tablet #placesCard .qtyStepper button,
  body.device-tablet #placesCard .priceStepper button {
    font-size:clamp(22px,1.8vw,26px) !important;
    line-height:1 !important;
    touch-action:none !important;
    user-select:none !important;
    -webkit-user-select:none !important;
    -webkit-touch-callout:none !important;
  }
}


/* ==========================================================================
   DEV 1.2.107 — CADRANS CAISSE TÉLÉPHONE
   HG/HD 1.2.106 sont figés : aucune règle ci-dessous ne les cible.
   ========================================================================== */
.caissePhoneShowProxy,
.caissePhoneShowMenu {
  display:none;
}

@media (max-width:700px) {
  /* Titres 1→5 légèrement plus petits, sans modifier graisse/couleur. */
  body.device-phone #app.ttModuleFrame #sectionTypeTitle,
  body.device-phone #app.ttModuleFrame #sectionShowTitle,
  body.device-phone #app.ttModuleFrame #sectionPlacesTitle,
  body.device-phone #app.ttModuleFrame #sectionTotalTitle,
  body.device-phone #app.ttModuleFrame #sectionPaymentTitle {
    font-size:11px !important;
    line-height:1.1 !important;
    margin-bottom:5px !important;
    letter-spacing:.55px !important;
  }

  /* Zone 2 SPECTACLE : même densité de marge que le nouveau BG compact. */
  body.device-phone #app.ttModuleFrame .ttCaisseContent > #showCard {
    box-sizing:border-box !important;
    padding:var(--tt-phone-compact-card-pad,6px) !important;
    margin:0 0 8px !important;
    overflow:visible !important;
  }

  /* Le select natif reste la source de vérité mais est remplacé visuellement
     par le proxy téléphone afin de garantir exactement deux lignes fermées. */
  body.device-phone #app.ttModuleFrame .ttCaisseContent > #showCard > #showSelect {
    display:none !important;
  }

  body.device-phone #app.ttModuleFrame .caissePhoneShowProxy {
    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:#ffffff !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:10px !important;
    font-weight:650 !important;
    line-height:1.12 !important;
    cursor:pointer !important;
  }

  body.device-phone #app.ttModuleFrame .caissePhoneShowProxy.ttReadOnly {
    cursor:default !important;
  }

  body.device-phone #app.ttModuleFrame .caissePhoneSelectedShow {
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    gap:1px !important;
    overflow:visible !important;
  }

  body.device-phone #app.ttModuleFrame .caissePhoneSelectedShow > span {
    display:block !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  body.device-phone #app.ttModuleFrame .caissePhoneShowChevron {
    justify-self:end !important;
    align-self:center !important;
    font-size:15px !important;
    line-height:1 !important;
    color:#aeb8c4 !important;
  }

  body.device-phone .caissePhoneShowMenu:not([hidden]) {
    position:fixed !important;
    inset:0 !important;
    z-index:2147483640 !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    padding:18px 10px max(18px, env(safe-area-inset-bottom)) !important;
    box-sizing:border-box !important;
    background:rgba(0,0,0,.64) !important;
  }

  body.device-phone .caissePhoneShowMenuPanel {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:520px !important;
    max-height:calc(100dvh - 36px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
    border:1px solid #3a4655 !important;
    border-radius:18px !important;
    background:#0f141b !important;
    box-shadow:0 14px 42px rgba(0,0,0,.46) !important;
  }

  body.device-phone .caissePhoneShowMenuRows {
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
  }

  body.device-phone .caissePhoneShowOption {
    box-sizing:border-box !important;
    width:100% !important;
    min-height:44px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 24px !important;
    align-items:center !important;
    gap:7px !important;
    margin:0 !important;
    padding:8px 11px !important;
    border:0 !important;
    border-bottom:1px solid rgba(255,255,255,.13) !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#ffffff !important;
    text-align:left !important;
    font-family:Arial,Helvetica,sans-serif !important;
    cursor:pointer !important;
  }

  body.device-phone .caissePhoneShowOption.ttShowPeriod-past {
    background:rgba(220,38,38,.30) !important;
  }

  body.device-phone .caissePhoneShowOption.ttShowPeriod-current {
    background:rgba(34,197,94,.30) !important;
  }

  body.device-phone .caissePhoneShowOption.ttShowPeriod-future {
    background:rgba(59,130,246,.27) !important;
  }

  /* 1.2.154E — repères temporels dans la liste native tablette/PC.
     Une seule ligne "current" = le show courant ou le prochain show. */
  #showSelect option.ttShowPeriod-past {
    background:#ffd4d8 !important;
    color:#7f1d1d !important;
  }
  #showSelect option.ttShowPeriod-current {
    background:#d5f7df !important;
    color:#14532d !important;
  }
  #showSelect option.ttShowPeriod-future {
    background:#d9e8ff !important;
    color:#1e3a8a !important;
  }
  body[data-theme="dark"] #showSelect option.ttShowPeriod-past {
    background:#5b1f24 !important;
    color:#ffe9ea !important;
  }
  body[data-theme="dark"] #showSelect option.ttShowPeriod-current {
    background:#17492a !important;
    color:#eaffef !important;
  }
  body[data-theme="dark"] #showSelect option.ttShowPeriod-future {
    background:#173d70 !important;
    color:#eef6ff !important;
  }

  body.device-phone .caissePhoneShowOption:last-child {
    border-bottom:0 !important;
  }

  body.device-phone .caissePhoneShowOptionText {
    min-width:0 !important;
    font-size:10px !important;
    line-height:1.12 !important;
    font-weight:650 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    letter-spacing:-.08px !important;
  }

  body.device-phone .caissePhoneShowOptionDot {
    width:17px !important;
    height:17px !important;
    border:2px solid rgba(255,255,255,.95) !important;
    border-radius:50% !important;
    box-sizing:border-box !important;
    justify-self:end !important;
    position:relative !important;
  }

  body.device-phone .caissePhoneShowOption.selected .caissePhoneShowOptionDot {
    border-color:#3a83ff !important;
  }

  body.device-phone .caissePhoneShowOption.selected .caissePhoneShowOptionDot::after {
    content:"" !important;
    position:absolute !important;
    inset:3px !important;
    border-radius:50% !important;
    background:#3a83ff !important;
  }
}

@media (min-width:701px) {
  .caissePhoneShowProxy,
  .caissePhoneShowMenu {
    display:none !important;
  }
}


/* ==========================================================================
   DEV 1.2.154K — TABLETTE PANORAMIQUE / HAUTEUR COURTE
   Sur une fenêtre très large mais basse, le cadran 4 TOTAL ne doit jamais
   tronquer la ligne située sous le montant (ex. "Tarif spectacle : PLEIN TARIF").
   Téléphone non ciblé. La géométrie MEP MOD 01 reste inchangée : seule la
   hauteur interne de la rangée TOTAL de CAISSE augmente, la rangée PLACES
   absorbe la différence.
   ========================================================================== */
@media (orientation:landscape) and (min-width:900px) and (max-height:780px) {
  body.device-tablet .ttCaisseContent {
    grid-template-rows:39px minmax(0,1fr) 102px !important;
  }
  body.device-tablet .ttCaisseContent > #resultCard {
    min-height:102px !important;
  }
  body.device-tablet #resultCard > .ttResultMain {
    overflow:visible !important;
  }
}

/* DEV 1.2.155G — 6 étapes en mode COMMERÇANT :
   2 Spectacle / 3 Commerçant / 4 Places / 5 Total à gauche ; 6 Paiement à droite. */
@media (orientation:landscape) and (min-width:900px) {
  body.device-tablet .ttCaisseContent.merchantCaisseMode {
    grid-template-rows:39px 66px minmax(0,1fr) 85px !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #showCard {
    grid-column:1 !important;
    grid-row:1 !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #merchantSearchCard {
    grid-column:1 !important;
    grid-row:2 !important;
    display:block !important;
    min-width:0 !important;
    overflow:visible !important;
    z-index:80 !important;
  }
  /* DEV 1.2.155Q — après choix d'un PASS, le bandeau "1 entrée gratuite incluse"
     doit rester entièrement DANS le cadran 3 et ne jamais chevaucher le cadran 4. */
  body.device-tablet .ttCaisseContent.merchantCaisseMode.merchantPassSelected {
    grid-template-rows:39px 88px minmax(0,1fr) 85px !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #placesCard {
    z-index:1 !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #placesCard {
    grid-column:1 !important;
    grid-row:3 !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #resultCard {
    grid-column:1 !important;
    grid-row:4 !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #paymentCard {
    grid-column:2 !important;
    grid-row:1 / 5 !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #merchantSearchCard.merchantUnavailable {
    grid-column:1 !important;
    grid-row:2 / 4 !important;
    min-height:0 !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #merchantSearchCard.merchantUnavailable > #merchantRestrictionNotice {
    flex:1 1 auto !important;
    min-height:0 !important;
  }
  body.device-tablet #merchantSearchCard .merchantSearchBody {
    grid-template-columns:98px minmax(0,1fr);
    gap:3px 8px;
  }
  body.device-tablet #merchantSearchInput { min-height:31px; padding:5px 8px; font-size:11px; }
  body.device-tablet #merchantSearchCard .merchantSearchLabel { font-size:9.5px; }
  body.device-tablet #merchantSearchCard .merchantSearchStatus { font-size:8.5px; }
  body.device-tablet #merchantSearchResults { left:106px; top:55px; max-height:210px; }
}


/* DEV 1.2.155H — COMMERÇANT tablette : TOTAL toujours entièrement visible. */
@media (orientation:landscape) and (min-width:900px) and (max-height:780px) {
  body.device-tablet .ttCaisseContent.merchantCaisseMode {
    grid-template-rows:39px 66px minmax(0,1fr) 102px !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode.merchantPassSelected {
    grid-template-rows:39px 88px minmax(0,1fr) 102px !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #resultCard {
    min-height:102px !important;
    overflow:visible !important;
  }
  body.device-tablet .ttCaisseContent.merchantCaisseMode > #resultCard > .ttResultMain {
    overflow:visible !important;
  }
}
