.rg-shell{display:grid;gap:18px;max-width:1340px;margin:auto;color:#26291f}
.rg-loyalty{margin:18px 0 6px;padding:16px;background:#f2f4ed;border:1px solid #dce2d2;border-radius:13px}.rg-loyalty h4{font-size:.95rem;margin:0 0 6px}.rg-loyalty p{font-size:.75rem;line-height:1.6}.rg-member-form{display:flex;gap:10px;align-items:end;margin-top:12px}.rg-member-form label{margin:0;min-width:0;font-size:.75rem}.rg-member-form input{display:block;margin-top:6px;min-height:48px;text-transform:uppercase}.rg-member-form button{min-height:48px;white-space:normal;font-size:.78rem}.rg-member-result{display:flex;flex-direction:column;gap:5px;margin-top:12px;font-size:.85rem}.rg-member-result span{font-size:.75rem;color:#4e6545}.rg-member-remove{display:block;padding:9px 0;min-height:40px;font-size:.75rem}.rg-reward-toggle{display:flex;align-items:center;gap:8px;text-align:left;background:none;border:0;color:#35472e;font:inherit;font-size:.8rem;cursor:pointer;min-height:44px;padding:6px 0;line-height:1.5}.rg-reward-toggle span{font-size:1.3rem}.rg-reserved{margin-top:10px}.rg-discount{display:grid;grid-template-columns:1fr auto;gap:9px 15px;font-size:.8rem;margin-top:20px}.rg-discount b{text-align:right;white-space:nowrap}.rg-discount span:nth-last-child(2),.rg-discount b:last-child{color:#4a6b3c}.rg-member-form .btn:focus-visible{outline:3px solid #a78a43}@media(max-width:480px){.rg-member-form{flex-wrap:wrap}.rg-member-form label{flex-basis:100%}.rg-member-form button{width:100%}.rg-loyalty{padding:13px}}
.rg-head{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap}
.rg-head h2{font-size:2rem;margin:2px 0 5px}.rg-eyebrow{font-size:.7rem;letter-spacing:.14em;font-weight:600;color:#6e735f;text-transform:uppercase}
.rg-connection{display:inline-flex;gap:7px;align-items:center;font-size:.78rem;padding:10px 14px;border-radius:30px;background:#eae5da;color:#6f5d3d;white-space:nowrap}
.rg-connection.rg-connected{color:#315e44;background:#e8f0e8}.rg-draft{border:1px solid #d8c69c;background:#fbf4df;padding:12px 16px;border-radius:12px;font-size:.8rem}
.rg-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(380px,1fr);gap:20px;align-items:start}
.rg-catalog,.rg-cart{padding:22px;min-width:0}.rg-catalog h3,.rg-cart h3{font-size:1.1rem;margin:0 0 14px}.rg-cart>.row h3{margin-bottom:0}
.rg-search{margin:16px 0}.rg-search input{min-height:48px}.rg-categories{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:17px}
.rg-chip{min-height:42px;border-radius:24px;border:1px solid #e2dccf;background:#fff;padding:9px 14px;font:inherit;font-size:.8rem;cursor:pointer}.rg-chip.on{background:#30392a;border-color:#30392a;color:#fff}
.rg-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:580px;overflow:auto;padding:2px}
.rg-product{display:flex;flex-direction:column;gap:18px;justify-content:space-between;align-items:stretch;min-height:120px;border:1px solid #e4ddcf;background:#fcfaf6;color:#2c3026;border-radius:14px;padding:16px;cursor:pointer;font:inherit;text-align:left}
.rg-product:hover:not(:disabled){border-color:#a58c59;background:#f4eddf}.rg-product:active:not(:disabled){transform:scale(.98)}.rg-product-name{font-weight:600;line-height:1.35;overflow-wrap:anywhere}.rg-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.rg-plus{background:#ede7d9;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}
.rg-shell button:disabled{opacity:.46;cursor:not-allowed}.rg-clear{min-height:44px;padding:6px}.rg-lines{max-height:390px;overflow:auto;margin-top:14px}
.rg-line{display:flex;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid #eee8de}.rg-line>.grow{min-width:0;overflow-wrap:anywhere}.rg-line>.grow b{display:block;font-size:.9rem}.rg-line>.grow span{display:block;margin-top:4px;font-size:.75rem}.rg-quantity{display:flex;align-items:center;gap:9px}.rg-qty-btn{width:44px;min-width:44px;height:44px;border-radius:10px;border:1px solid #e3dccf;background:#f8f4ec;font:inherit;font-size:1.15rem;cursor:pointer}.rg-quantity>b{min-width:18px;text-align:center}.rg-line-total{font-size:.85rem;min-width:54px;text-align:right;white-space:nowrap}
.rg-empty{min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:14px;color:#818673}.rg-empty>span{font-size:2.5rem;font-weight:300}.rg-empty p{font-size:.9rem;line-height:1.6}
.rg-total{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:24px 0 20px}.rg-total span{font-size:.95rem;font-weight:600}.rg-total small{display:block;color:#7f8374;font-size:.75rem;margin-top:4px}.rg-total strong{font-size:2.3rem;letter-spacing:-.04em;white-space:nowrap}
.rg-pay{min-height:58px;font-size:.95rem;white-space:normal;line-height:1.4}.rg-explainer{font-size:.75rem;text-align:center;line-height:1.6;margin:12px 0 20px}
.rg-payment{display:flex;align-items:flex-start;gap:13px;padding:17px;background:#f1f2ed;border:1px solid #e1e4d9;border-radius:13px}.rg-payment .grow{min-width:0}.rg-payment h3{font-size:.92rem;margin:0 0 7px}.rg-payment p{font-size:.78rem;line-height:1.6}.rg-terminal-icon{color:#677459;flex-shrink:0}.rg-reference{font-family:monospace;font-size:.65rem!important;overflow-wrap:anywhere;margin-top:10px;color:#6f7468}
.rg-payment-awaiting,.rg-payment-sending,.rg-payment-cancelling{background:#f9f1dc;border-color:#e4d2a3}.rg-payment-paid,.rg-payment-completed{background:#edf5eb;border-color:#b6ceb0}.rg-payment-declined,.rg-payment-uncertain{background:#fbf0e8;border-color:#dfc2a7}.rg-payment-cancelled{background:#f2f1ee}
.rg-alert{padding:12px 15px;border-radius:11px;background:#fcf0e9;border:1px solid #dfbda5;font-size:.85rem;line-height:1.6;color:#75452e}.rg-recovery{display:grid;gap:8px;margin-top:12px}.rg-recovery .btn{white-space:normal;min-height:46px;line-height:1.4}.rg-next{margin-top:14px;min-height:50px}.rg-cart>.btn:last-child{margin-top:10px}
.rg-history{padding:20px}.rg-history h3{font-size:1rem;margin-bottom:12px}.rg-history-line{display:grid;grid-template-columns:1fr auto;gap:6px 15px;padding:12px 0;border-bottom:1px solid #eae5dc;font-size:.85rem}.rg-history-line small{grid-column:1/-1;color:#777e69;overflow-wrap:anywhere}.rg-history>p{margin-top:14px}
.rg-shell button:focus-visible,.rg-shell input:focus-visible{outline:3px solid #a78a43;outline-offset:3px}
@media(max-width:1000px){.rg-layout{grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:14px}.rg-catalog,.rg-cart{padding:17px}.rg-line{gap:7px}.rg-qty-btn{width:42px;min-width:42px}.rg-quantity{gap:5px}.rg-line-total{min-width:48px}}
@media(max-width:780px){.rg-layout{grid-template-columns:1fr}.rg-products{max-height:310px;grid-template-columns:repeat(3,minmax(0,1fr))}.rg-product{min-height:105px;padding:12px}.rg-head h2{font-size:1.7rem}.rg-lines{max-height:none}}
@media(max-width:480px){.rg-products{grid-template-columns:repeat(2,minmax(0,1fr))}.rg-shell{gap:12px}.rg-catalog,.rg-cart{padding:15px}.rg-head{gap:10px}.rg-connection{font-size:.72rem}.rg-product{font-size:.83rem}.rg-line{flex-wrap:wrap}.rg-line>.grow{flex-basis:calc(100% - 120px)}.rg-line-total{margin-left:auto}.rg-total strong{font-size:2rem}.rg-cart .rg-payment{padding:12px}}
.rg-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rg-methods button{min-height:62px;font-size:1rem}.rg-report{padding:24px;min-width:0}.rg-report h3{font-size:1.3rem;margin:4px 0 10px}.rg-report-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.rg-report-actions label{font-size:.8rem;margin:0}.rg-report-actions input{display:block;margin-top:7px;min-height:46px}.rg-report-actions button{min-height:46px}.rg-scope{line-height:1.7;margin:16px 0 22px;max-width:960px}.rg-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.rg-kpis>div{background:#f6f3eb;border:1px solid #e8dfcf;border-radius:12px;padding:18px 15px}.rg-kpis small{display:block;color:#707562;font-size:.75rem;margin-bottom:9px}.rg-kpis strong{font-size:1.5rem;white-space:nowrap;letter-spacing:-.03em}.rg-table-wrap{overflow-x:auto;margin:24px 0 8px}.rg-table{border-collapse:collapse;width:100%;font-size:.85rem}.rg-table caption{text-align:left;font-weight:600;font-size:1rem;padding:0 0 14px}.rg-table th,.rg-table td{text-align:right;white-space:nowrap;padding:13px 12px;border-bottom:1px solid #e7e1d6;font-variant-numeric:tabular-nums}.rg-table th:first-child,.rg-table td:first-child{text-align:left;white-space:normal;min-width:100px}.rg-table thead th{background:#f4f1e9;color:#5b634f;font-size:.75rem}.rg-table tbody th{font-weight:500}@media(max-width:780px){.rg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.rg-report{padding:17px}.rg-report-actions{width:100%}.rg-kpis strong{font-size:1.3rem}.rg-table th,.rg-table td{padding:11px 8px;font-size:.8rem}}@media print{.rg-catalog,.rg-cart,.rg-draft,.demo-top button,.rg-report-actions,.demo-intro{display:none}.rg-report{border:0;padding:0}.rg-shell{display:block}.rg-report .rg-head{display:block}.rg-kpis{grid-template-columns:repeat(4,1fr)}}


/* ================================================================
   TAMASINI GOLD v32 — Caisse tactile plein écran (uniquement vue caisse)
   Les menus vendeuse sont absents de cette vue, sans modification de
   l’enregistrement des ventes ou de la fidélité. Sortie toujours visible.
   ================================================================ */
.app.wide.register-fullscreen {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: max(6px, env(safe-area-inset-top, 0px)) 10px max(8px, env(safe-area-inset-bottom, 0px));
  margin: 0;
}
.app.register-fullscreen .vd-caisse-plein-ecran { width: 100%; max-width: none; margin: 0; }
.app.register-fullscreen .vd-caisse-plein-ecran .vd-body { min-height: 0; padding: 0; }
.app.register-fullscreen .rg-shell { width: 100%; max-width: none; gap: 8px; }
.app.register-fullscreen .rg-head { gap: 10px; padding: 3px 2px; }
.app.register-fullscreen .rg-head h2 { font-size: 1.55rem; margin: 1px 0 0; }
.app.register-fullscreen .rg-head .muted { display: none; }
.app.register-fullscreen .rg-kiosk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.app.register-fullscreen .rg-kiosk-actions .btn {
  min-height: 46px;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: .82rem;
  line-height: 1.25;
  touch-action: manipulation;
}
.app.register-fullscreen .rg-kiosk-exit { border-color: #b1a48b; background: #fff; }
.vd-cashier-pickup-scrim { z-index: 62; }
.vd-cashier-pickup { z-index: 63; }
.vd-return-cashier { margin-top: 14px; min-height: 48px; }
.rg-orders-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
}
.rg-orders-count[hidden] { display: none; }
.vd-cashier-order-alert { background: var(--or-clair); color: var(--noir); border: 1px solid var(--or); }
.vd-cashier-order-alert .vd-btn { min-height: 44px; }
.vd-cashier-orders { width: min(100%, 1180px); z-index: 63; padding-top: 0; }
.vd-cashier-orders-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-block: 12px;
  background: var(--bg);
}
.vd-cashier-orders-head h2 { margin: 0; }
.scrim.vd-orders-give { z-index: 64; }
.sheet.vd-orders-give { z-index: 65; }
/* Bouton de secours visible uniquement si le navigateur n'a pas autorisé l'API Fullscreen. */
html:fullscreen .rg-kiosk-expand { display: none; }
.app.register-fullscreen .rg-connection { padding: 8px 10px; }
.app.register-fullscreen .rg-layout { gap: 10px; }
.app.register-fullscreen .rg-layout .rg-products {
  max-height: min(73dvh, 950px);
}
.app.register-fullscreen .rg-layout .rg-cart {
  position: sticky;
  top: max(6px, env(safe-area-inset-top, 0px));
  max-height: calc(100dvh - 75px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.app.register-fullscreen .rg-layout .rg-product { min-height: 94px; }
.app.register-fullscreen .vd-banners { margin: 0 0 6px; }
.app.register-fullscreen .vd-banner { padding: 8px 12px; }
.app.register-fullscreen .vd-flash { max-height: 28dvh; overflow-y: auto; }
@media (min-width: 700px) and (max-width: 820px) {
  .app.register-fullscreen .rg-layout { grid-template-columns: minmax(0,1fr) minmax(305px,.75fr); }
  .app.register-fullscreen .rg-layout .rg-products { grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); }
}
@media (max-width: 699px) {
  .app.register-fullscreen .rg-layout { grid-template-columns: 1fr; }
  .app.register-fullscreen .rg-layout .rg-products { max-height: 43dvh; }
  .app.register-fullscreen .rg-layout .rg-cart { position: static; max-height: none; overflow: visible; }
  .app.register-fullscreen .rg-kiosk-actions .rg-connection { display: none; }
}
@media (max-width: 520px) {
  .app.wide.register-fullscreen { padding-inline: 6px; }
  .app.register-fullscreen .rg-head h2 { font-size: 1.3rem; }
  .app.register-fullscreen .rg-head .rg-eyebrow { font-size: .6rem; }
  .app.register-fullscreen .rg-kiosk-actions .btn { min-height: 44px; padding: 5px 10px; }
}

/* Caisse boutique tactile */
.rg-sale {
  --rg-paper: #f7f4ed;
  --rg-stroke: #e1d8c6;
  --rg-dark: #26241e;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
  color: var(--rg-dark);
}
.rg-sale [data-family] {
  --rg-tab: #ece7db;
  --rg-tile: #f6f2e9;
  --rg-edge: #a28a57;
  --rg-ink: #493d25;
  --rg-badge: #e9dfc9;
}
.rg-sale [data-family="boulangerie"] {
  --rg-tab: #f4d48d;
  --rg-tile: #fff1d3;
  --rg-edge: #bd851f;
  --rg-ink: #5a3c08;
  --rg-badge: #f6d995;
}
.rg-sale [data-family="viennoiseries"] {
  --rg-tab: #f5bda2;
  --rg-tile: #fce5d9;
  --rg-edge: #c56642;
  --rg-ink: #74381f;
  --rg-badge: #f4c9b3;
}
.rg-sale [data-family="patisseries"] {
  --rg-tab: #eab6d1;
  --rg-tile: #f8e5f0;
  --rg-edge: #a95783;
  --rg-ink: #653550;
  --rg-badge: #eec3db;
}
.rg-sale [data-family="snacking"] {
  --rg-tab: #b5dcb6;
  --rg-tile: #e4f1e3;
  --rg-edge: #528c57;
  --rg-ink: #294d2c;
  --rg-badge: #c3dfc1;
}
.rg-sale [data-family="boissons"] {
  --rg-tab: #b0d7f2;
  --rg-tile: #e4f1fb;
  --rg-edge: #4b8dbb;
  --rg-ink: #254e6f;
  --rg-badge: #c4e0f4;
}

.rg-sale .rg-head {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--rg-stroke);
  border-radius: 12px;
}
.rg-sale .rg-brand,
.rg-sale .rg-kiosk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg-sale .rg-brand img {
  display: block;
  width: clamp(100px, 11vw, 180px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}
.rg-sale .rg-brand div {
  padding-left: 12px;
  border-left: 1px solid var(--rg-stroke);
}
.rg-sale .rg-head h2 {
  font-family: inherit;
  font-size: clamp(1.4rem, 2.1vw, 2.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 2px 0;
}
.rg-sale .rg-eyebrow { color: #6b6251; letter-spacing: .05em; }
.rg-sale .rg-kiosk-actions { flex-wrap: wrap; gap: 8px; }
.rg-sale .rg-kiosk-actions .btn { min-height: 44px; }
.rg-sale .rg-draft { padding: 7px 12px; }

.rg-sale .rg-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 8px;
  background: var(--rg-dark);
  border-radius: 12px;
}
.rg-sale .rg-chip {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 7px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--rg-tab);
  color: var(--rg-ink);
  font-size: clamp(.84rem, 1.2vw, 1.22rem);
  font-weight: 700;
  touch-action: manipulation;
}
.rg-sale .rg-chip[data-family=""],
.rg-sale .rg-chip[data-family="top"] {
  background: #36342d;
  color: #fff9ed;
  border-color: #585043;
}
.rg-sale .rg-chip.on {
  border-color: currentColor;
  box-shadow: inset 0 -3px currentColor;
}
.rg-sale .rg-chip[data-family="top"].on {
  background: #49391f;
  color: #ffdb88;
  border-color: #efc776;
  box-shadow: none;
}

.rg-sale .rg-layout {
  grid-template-areas: "ticket catalog";
  grid-template-columns: minmax(342px, .4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
}
.rg-sale .rg-cart,
.rg-sale .rg-catalog {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--rg-stroke);
  border-radius: 12px;
  background: #fff;
}
.rg-sale .rg-cart { grid-area: ticket; }
.rg-sale .rg-catalog { grid-area: catalog; }
.rg-sale .rg-ticket-head,
.rg-sale .rg-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.rg-sale .rg-ticket-head h3,
.rg-sale .rg-catalog-head h3 {
  line-height: 1.1;
  font-family: inherit;
  font-size: clamp(1.12rem, 1.65vw, 1.7rem);
  font-weight: 700;
  margin: 0;
}
.rg-sale .rg-ticket-head h3 { margin-right: auto; }
.rg-sale .rg-item-count {
  padding: 4px 8px;
  border-radius: 20px;
  background: #f3ede0;
  color: #554c3d;
  font-size: .76rem;
  font-weight: 650;
  white-space: nowrap;
}
.rg-sale .rg-clear { color: #775626; }
.rg-sale .rg-search { margin: 0; width: min(100%, 18rem); flex: 0 1 18rem; }
.rg-sale .rg-search input { min-height: 44px; background: #f9f7f2; }
.rg-sale .rg-divers-button { min-height: 44px; border-color: #caae70; }
.rg-sale .rg-products {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(108px, 1fr);
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(70vh, 700px);
  padding: 4px;
  overscroll-behavior: contain;
}
.rg-sale .rg-product {
  gap: 6px;
  min-height: 0;
  padding: 9px;
  border: 1px solid var(--rg-edge);
  border-left-width: 4px;
  border-radius: 9px;
  background: var(--rg-tile);
  color: var(--rg-dark);
  font-size: clamp(.85rem, 1.13vw, 1.25rem);
  touch-action: manipulation;
}
.rg-sale .rg-product:hover:not(:disabled) { background: var(--rg-tile); border-color: var(--rg-ink); }
.rg-sale .rg-product.rg-last-product { box-shadow: inset 0 0 0 2px var(--rg-ink); }
.rg-sale .rg-product-top,
.rg-sale .rg-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.rg-sale .rg-product-top span {
  color: var(--rg-ink);
  font-size: .61em;
  font-weight: 750;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.rg-sale .rg-product-top b { font-weight: 750; white-space: nowrap; }
.rg-sale .rg-product-name { text-align: center; font-weight: 700; line-height: 1.17; }
.rg-sale .rg-product-count,
.rg-sale .rg-plus { background: var(--rg-badge); color: var(--rg-ink); }
.rg-sale .rg-plus { width: 24px; height: 24px; flex: 0 0 24px; font-size: .92rem; }
.rg-sale .rg-product-count {
  display: inline-block;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: .65em;
}

.rg-sale .rg-ticket-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 52vh;
  overflow: auto;
  overscroll-behavior: contain;
}
.rg-sale .rg-loyalty {
  margin: 0;
  padding: 0;
  background: #f8f1df;
  border-color: #e4d3a9;
  border-radius: 8px;
}
.rg-sale .rg-loyalty-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #493b22;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.rg-sale .rg-loyalty-toggle:focus-visible { outline-offset: -4px; }
.rg-sale .rg-loyalty .rg-scan-hint { margin:0; padding:0 10px 10px; color:#665123; font-size:14px; line-height:1.4; }
.rg-sale .rg-card-loading { padding-top:8px; font-size:14px; }
.rg-sale .rg-member-result { margin:0 10px 8px; padding:10px; border:1px solid #c9d9c0; border-radius:8px; background:#edf5e7; font-size:16px; }
.rg-sale .rg-member-result span { font-size:14px; }
.rg-sale .rg-loyalty>.rg-reward-toggle { padding:4px 10px 10px; }
.rg-sale #register-loyalty-body { padding: 0 10px 10px; }
.rg-sale .rg-member-form { flex-wrap: wrap; gap: 8px; }
.rg-sale .rg-member-form label { flex: 1 1 130px; }
.rg-sale .rg-lines { margin: 5px 0 0; max-height: none; overflow: visible; }
.rg-sale .rg-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(53px, auto);
  gap: 6px;
  padding: 5px 4px;
  border-left: 3px solid transparent;
}
.rg-sale .rg-line.rg-recent {
  background: var(--rg-tile);
  border-left-color: var(--rg-edge);
  border-radius: 5px;
}
.rg-sale .rg-recent .grow span { color: var(--rg-ink); font-weight: 700; }
.rg-sale .rg-line .rg-item-offered { color: #315e44; font-weight: 700; }
.rg-sale .rg-quantity { gap: 3px; }
.rg-sale .rg-qty-btn,
.rg-sale .rg-qty-value {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--rg-stroke);
  border-radius: 7px;
  font-family: inherit;
  color: var(--rg-dark);
  cursor: pointer;
  touch-action: manipulation;
}
.rg-sale .rg-qty-btn[data-d="1"] { background: #f8edcf; border-color: #e3c982; }
.rg-sale .rg-qty-value { background: #fff; font-size: .94rem; font-weight: 750; }
.rg-sale .rg-empty { min-height: 76px; padding: 8px; }
.rg-sale .rg-quick-actions,
.rg-sale .rg-methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.rg-sale .rg-quick-actions { margin: 8px 0; }
.rg-sale .rg-quick-actions .btn,
.rg-sale .rg-methods .btn {
  min-height: 46px;
  padding: 6px 8px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}
.rg-sale .rg-checkout { flex-shrink: 0; }
.rg-sale .rg-checkout > * + * { margin-top: 8px; }
.rg-sale .rg-discount { margin: 5px 0; }
.rg-sale .rg-total {
  min-height: 57px;
  padding: 8px 11px;
  background: #e8bf69;
  border: 1px solid #cfa14c;
  border-radius: 8px;
}
.rg-sale .rg-total span { font-weight: 750; }
.rg-sale .rg-total small { margin-top: 2px; color: #513e1e; }
.rg-sale .rg-total strong { font-size: clamp(1.65rem, 2.35vw, 2.6rem); }
.rg-sale .rg-checkout .rg-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-sale .rg-methods [data-method="cash"] { background: #f7edce; border-color: #d9b96d; color: var(--rg-dark); }
.rg-sale .rg-methods [data-method="cb"] { background: var(--rg-dark); color: #fff; }
.rg-sale .rg-payment { padding: 9px; }
.rg-sale .rg-payment h3 { margin: 0 0 3px; }
.rg-sale .rg-pay,
.rg-sale .rg-next,
.rg-sale .rg-checkout [data-a="rgBack"],
.rg-sale .rg-print-ticket {
  min-height: 46px;
  padding: 7px 9px;
  white-space: normal;
}
.rg-sale .rg-terminal-amount { display: block; margin-top: 3px; font-size: 1.6rem; }
.rg-sale .rg-print-wait {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 8px;
  background: #f5f2ec;
  border: 1px solid var(--rg-stroke);
  border-radius: 8px;
  color: #5e5648;
}
.rg-sale .rg-print-wait button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  padding: 0;
  text-align: left;
}
.rg-sale .rg-print-wait small { text-align: right; }

.rg-sale .rg-quantity-dialog {
  position: fixed;
  inset: 0;
  width: min(340px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 18px;
  border: 1px solid var(--rg-stroke);
  border-radius: 12px;
  background: #fff;
  color: var(--rg-dark);
  overflow-y: auto;
}
.rg-sale .rg-quantity-dialog::backdrop { background: rgb(38 36 30 / 58%); }
.rg-sale .rg-quantity-dialog h3 { margin: 0; font-family: inherit; }
.rg-sale .rg-quantity-dialog .f { margin: 10px 0 3px; }
.rg-sale .rg-quantity-dialog input { min-height: 44px; font-size: 1.25rem; }
.rg-sale .rg-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 10px 0;
}
.rg-sale .rg-numpad button {
  min-height: 44px;
  border: 1px solid var(--rg-stroke);
  border-radius: 7px;
  background: var(--rg-paper);
  color: var(--rg-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.rg-sale .rg-quantity-dialog .rg-methods { grid-template-columns: repeat(2, 1fr); }
.rg-sale #register-divers-form .inp { width: 100%; min-height: 44px; }
.rg-sale #register-divers-form .rg-methods { margin-top: 14px; }

.app.register-fullscreen .rg-sale .rg-head { padding: 6px 12px; }
.app.register-fullscreen .rg-sale .rg-head h2 { font-size: clamp(1.35rem, 2.05vw, 2.2rem); }
.app.register-fullscreen .rg-sale .rg-head .rg-connection { padding: 7px 10px; }
.app.register-fullscreen .rg-sale .rg-layout .rg-cart {
  position: static;
  max-height: none;
  overflow: visible;
}
.app.register-fullscreen .rg-sale .rg-layout .rg-product { min-height: 0; }
.app.register-fullscreen .rg-sale .rg-layout .rg-products { max-height: min(65vh, 700px); }
@media (min-width: 821px) and (min-height: 600px) {
  .app.register-fullscreen .rg-sale {
    height: calc(100vh - 18px);
    height: calc(100dvh - 18px);
  }
  .app.register-fullscreen .rg-sale .rg-layout { flex: 1 1 auto; }
  .app.register-fullscreen .rg-sale .rg-layout .rg-products,
  .app.register-fullscreen .rg-sale .rg-ticket-body { max-height: none; }
  .app.register-fullscreen .rg-sale .rg-checkout {
    max-height: 56vh;
    overflow: auto;
    padding: 3px;
    margin: -3px;
  }
}
@media (min-width: 821px) and (max-width: 1190px) {
  .rg-sale .rg-layout { grid-template-columns: minmax(317px, .54fr) minmax(0, 1fr); }
  .rg-sale .rg-layout .rg-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 821px) and (max-width: 980px) {
  .rg-sale .rg-layout .rg-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .rg-sale .rg-layout,
  .app.register-fullscreen .rg-sale .rg-layout {
    grid-template-areas: "catalog" "ticket";
    grid-template-columns: minmax(0, 1fr);
  }
  .rg-sale .rg-layout .rg-products,
  .app.register-fullscreen .rg-sale .rg-layout .rg-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 340px;
  }
  .rg-sale .rg-ticket-body { max-height: 330px; }
}
@media (max-width: 520px) {
  .rg-sale .rg-head { padding: 6px; }
  .rg-sale .rg-brand { gap: 7px; }
  .rg-sale .rg-brand div { padding-left: 7px; }
  .rg-sale .rg-kiosk-actions .rg-connection { display: none; }
  .rg-sale .rg-layout .rg-products,
  .app.register-fullscreen .rg-sale .rg-layout .rg-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rg-sale .rg-cart,
  .rg-sale .rg-catalog { padding: 8px; }
  .rg-sale .rg-line { gap: 4px; }
  .rg-sale .rg-line > .grow { grid-column: auto; }
  .rg-sale .rg-line-total { margin-left: 0; }
}
@media (max-width: 350px) {
  .rg-sale .rg-line { grid-template-columns: 1fr auto; }
  .rg-sale .rg-line > .grow { grid-column: 1 / -1; }
}

/* Encaissement direct, puis panier suivant ; le dernier ticket reste accessible. */
.rg-one-click-help {margin:6px 0 8px;color:#626262;font-size:14px;line-height:1.4}
.rg-last-sale {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:10px;padding:10px 12px;background:#edf5e7;border:1px solid #c9d9c0;border-radius:10px;font-size:14px;line-height:1.4}
.rg-last-sale b {white-space:nowrap;color:#31502a}
.rg-last-ticket {margin-top:8px;min-height:44px;font-size:14px}

.rg-sale .rg-product-photo{width:100%;height:64px;object-fit:cover;border-radius:7px;pointer-events:none;background:#fff9ef}
