/* Official Design System for Doro Industrie (Marque WIF) - v15.0 Mobile-First */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --wif-red-primary: #DC2626;
  --wif-red-dark: #991B1B;
  --wif-red-bright: #EF4444;
  --wif-blue-primary: #1D4ED8;
  --wif-blue-dark: #0F4C81;
  --wif-blue-navy: #0A2540;
  --wif-blue-light: #3B82F6;
  --wif-bg-light: #F8FAFC;
  --wif-card-bg: #FFFFFF;
  --wif-border: #E2E8F0;
  --wif-text-main: #0F172A;
  --wif-text-muted: #64748B;
  /* Safe area for iOS home indicator */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F1F5F9;
  color: var(--wif-text-main);
  -webkit-tap-highlight-color: transparent;
}

/* =========================================
   HEADER GRADIENT
   ========================================= */
.wif-header-gradient {
  background: linear-gradient(135deg, #0A2540 0%, #1D4ED8 60%, #DC2626 100%);
}

/* =========================================
   HEADER — Toujours compact sur mobile
   ========================================= */
.wif-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}

@media (min-width: 640px) {
  .wif-header-inner {
    padding: 10px 24px;
  }
}

/* Logo & brand — compact sur mobile */
.wif-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 1;
  min-width: 0;
}
.wif-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actions zone à droite */
.wif-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Bouton déconnexion — TOUJOURS visible, même sur xs */
.wif-logout-btn {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.wif-logout-btn:hover, .wif-logout-btn:active {
  background: #DC2626;
  color: white;
  border-color: #DC2626;
}

/* User info — cache le texte sur très petits écrans */
.wif-user-name {
  display: none;
}

@media (min-width: 400px) {
  .wif-user-name {
    display: block;
  }
}

/* =========================================
   MOBILE NAVIGATION — Fixed bottom on mobile
   ========================================= */
.wif-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding-bottom: calc(6px + var(--safe-bottom));
  padding-top: 6px;
}

/* On large screens, nav goes to top (after header) and is not fixed */
@media (min-width: 1024px) {
  .wif-mobile-nav {
    position: sticky;
    top: 56px;
    bottom: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

/* =========================================
   MAIN CONTENT — Padding for mobile nav bar
   ========================================= */
.wif-main-content {
  /* On mobile: leave room for fixed bottom nav */
  padding-bottom: calc(var(--nav-height) + 20px + var(--safe-bottom));
}

@media (min-width: 1024px) {
  .wif-main-content {
    padding-bottom: 32px;
  }
}

/* =========================================
   CARD HOVER EFFECT
   ========================================= */
.wif-card-hover {
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.wif-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(29, 78, 216, 0.15);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wifLoadingBar {
  0%   { width: 0%; }
  30%  { width: 40%; }
  70%  { width: 70%; }
  90%  { width: 88%; }
  100% { width: 100%; }
}

.wif-loading-bar {
  animation: wifLoadingBar 2.5s ease-in-out forwards;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 2s linear infinite;
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================
   MOBILE-FIRST RESPONSIVE TABLES
   ========================================= */
@media (max-width: 640px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================
   MOBILE INPUT SIZING — Empêche auto-zoom iOS
   ========================================= */
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
}

/* =========================================
   MOBILE NAV BUTTON SIZES
   ========================================= */
@media (max-width: 640px) {
  .wif-nav-btn {
    min-height: 56px;
    min-width: 52px;
  }
}

/* =========================================
   TOUCH FEEDBACK
   ========================================= */
button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active {
  opacity: 0.82;
  transform: scale(0.98);
  transition: transform 0.08s ease, opacity 0.08s ease;
}

/* =========================================
   BARCODE SCANNER
   ========================================= */
#qr-reader video {
  border-radius: 12px;
  object-fit: cover;
}

/* =========================================
   PRINT STYLING
   ========================================= */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-receipt,
  #printable-receipt * {
    visibility: visible;
  }
  #printable-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 8px;
    background: white;
    font-size: 11px;
    font-family: 'Courier New', monospace;
  }
}

/* =========================================
   MODAL SCROLLING ON MOBILE
   ========================================= */
.modal-body {
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================
   SPLASH HIDE
   ========================================= */
#loading-splash.hidden {
  display: none !important;
}

/* =========================================
   POS PAGE WRAPPER — Scroll complet mobile
   ========================================= */
.pos-page-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 40px 0;
  /* Pas de overflow: hidden → scroll vertical libre */
}

.pos-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.pos-page-title {
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.pos-page-subtitle {
  font-size: 12px;
  color: #64748B;
  margin: 3px 0 0;
}

.pos-scan-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #DC2626;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(220,38,38,0.35);
  white-space: nowrap;
}

/* =========================================
   POS CARDS — Remplacement pos-section-card
   ========================================= */
.pos-card {
  background: white;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 14px;
  overflow: hidden;
  /* PAS de max-height ni overflow: hidden qui bloquerait le scroll */
}

.pos-card-dark {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: none;
}

.pos-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-weight: 800;
  font-size: 14px;
  color: #0F172A;
}

.pos-card-header-dark {
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pos-card-body {
  padding: 14px 16px;
}

/* =========================================
   INPUTS COMMUNS (client / recherche)
   ========================================= */
.pos-full-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 16px !important; /* Empêche auto-zoom iOS */
  margin-bottom: 10px;
  background: #F8FAFC;
  color: #0F172A;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.pos-full-input:focus {
  border-color: #1D4ED8;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}

.pos-full-select {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-size: 16px !important;
  font-weight: 700;
  background: #F8FAFC;
  color: #0F172A;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.pos-full-select:focus {
  border-color: #1D4ED8;
}

.pos-alert-warning {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  font-size: 13px;
  color: #92400E;
  font-weight: 700;
}

/* =========================================
   BADGE / LIEN
   ========================================= */
.pos-badge-blue {
  background: #1D4ED8;
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.pos-link-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================
   PRODUIT ROW — UNE CASE QTÉ, PAS DE BOUTONS
   ========================================= */
.pos-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 14px;
  margin-bottom: 10px;
  transition: all 0.15s ease;
}

.pos-product-row.has-qty {
  background: #F0FDF4;
  border-color: #6EE7B7;
  box-shadow: 0 2px 8px rgba(5,150,105,0.12);
}

.pos-product-info {
  flex: 1;
  min-width: 0; /* Empêche overflow */
}

.pos-product-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-product-meta {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}

.pos-product-price {
  color: #1D4ED8;
}

.pos-product-subtotal {
  font-size: 15px;
  font-weight: 900;
  color: #059669;
  margin-top: 4px;
}

/* Colonne droite : stock + input */
.pos-product-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Badge stock */
.pos-stock-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 4px 10px;
  min-width: 56px;
}

.pos-stock-badge.low {
  background: #FEF2F2;
  border-color: #FECACA;
}

.pos-stock-label {
  font-size: 9px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pos-stock-value {
  font-size: 20px;
  font-weight: 900;
  color: #059669;
  line-height: 1.1;
}

.pos-stock-badge.low .pos-stock-value {
  color: #DC2626;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INPUT QUANTITÉ PRINCIPAL — TRÈS GRAND
   Saisie libre 1 à 9999, focus conservé
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pos-qty-main-input {
  width: 76px;
  min-height: 56px;
  padding: 10px 6px;
  text-align: center;
  border: 2.5px solid #CBD5E1;
  border-radius: 14px;
  font-size: 22px !important; /* Grand et lisible */
  font-weight: 900;
  color: #1D4ED8;
  background: white;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  /* Cursor dans la case, clavier numérique reste ouvert */
  caret-color: #DC2626;
}

.pos-qty-main-input:focus {
  border-color: #1D4ED8;
  box-shadow: 0 0 0 4px rgba(29,78,216,0.15);
  background: #EFF6FF;
}

.pos-qty-main-input.active {
  border-color: #059669;
  background: #F0FDF4;
  color: #059669;
}

.pos-qty-main-input.active:focus {
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5,150,105,0.15);
}

.pos-qty-main-input::placeholder {
  color: #CBD5E1;
  font-size: 14px !important;
  font-weight: 500;
}

/* Masquer les flèches du input number */
.pos-qty-main-input::-webkit-outer-spin-button,
.pos-qty-main-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pos-qty-main-input[type=number] { -moz-appearance: textfield; }

/* =========================================
   RETOUR / ÉCHANGE
   ========================================= */
.pos-header-yellow { color: #FCD34D; font-weight: 800; font-size: 14px; }
.pos-optional { font-size: 11px; font-weight: 400; color: #94A3B8; }

.pos-return-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.pos-return-type-btn {
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #94A3B8;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.pos-return-type-btn.active-amber {
  border-color: #F59E0B;
  background: #F59E0B;
  color: #0F172A;
}

.pos-return-type-btn.active-blue {
  border-color: #3B82F6;
  background: #3B82F6;
  color: white;
}

.pos-return-label {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 10px;
}

.pos-return-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.pos-exchange-row {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
}

.pos-return-info { flex: 1; }
.pos-return-name { font-size: 14px; font-weight: 700; color: #E2E8F0; }
.pos-exchange-name { font-size: 14px; font-weight: 700; color: #BFDBFE; }
.pos-return-price { font-size: 11px; color: #64748B; margin-top: 1px; }

.pos-exchange-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.pos-exchange-label {
  font-size: 12px;
  font-weight: 700;
  color: #93C5FD;
  margin-bottom: 10px;
}

/* Input retour (fond sombre) */
.pos-qty-return-input,
.pos-qty-exchange-input {
  width: 68px;
  min-height: 48px;
  padding: 8px 4px;
  text-align: center;
  font-size: 18px !important;
  font-weight: 900;
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  caret-color: white;
}

.pos-qty-return-input {
  border: 2px solid #F59E0B;
  background: #1e293b;
  color: #FCD34D;
}

.pos-qty-exchange-input {
  border: 2px solid #3B82F6;
  background: #1e293b;
  color: #93C5FD;
}

.pos-qty-return-input:focus,
.pos-qty-exchange-input:focus {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}

.pos-qty-return-input::-webkit-outer-spin-button,
.pos-qty-return-input::-webkit-inner-spin-button,
.pos-qty-exchange-input::-webkit-outer-spin-button,
.pos-qty-exchange-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pos-qty-return-input[type=number],
.pos-qty-exchange-input[type=number] { -moz-appearance: textfield; }

/* =========================================
   PANIER
   ========================================= */
.pos-cart-total { font-size: 16px; font-weight: 900; color: #1D4ED8; }

.pos-cart-empty {
  text-align: center;
  padding: 20px;
  color: #94A3B8;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

.pos-cart-list { display: flex; flex-direction: column; gap: 8px; }

.pos-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.pos-cart-item-name { font-size: 14px; font-weight: 700; color: #0F172A; }
.pos-cart-item-detail { font-size: 12px; color: #64748B; margin-top: 2px; }
.pos-cart-item-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pos-cart-item-total { font-size: 17px; font-weight: 900; color: #1D4ED8; }

.pos-remove-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #FEF2F2;
  border-radius: 8px;
  color: #DC2626;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.pos-returns-summary {
  margin-top: 12px;
  padding: 10px 14px;
  background: #FFFBEB;
  border-radius: 10px;
  border: 1px solid #FCD34D;
}

.pos-returns-title { font-size: 12px; font-weight: 700; color: #92400E; margin-bottom: 6px; }
.pos-returns-row { display: flex; justify-content: space-between; font-size: 12px; color: #78350F; padding: 2px 0; font-weight: 600; }

/* =========================================
   TOTAL + PAIEMENT
   ========================================= */
.pos-total-amount { font-size: 18px; font-weight: 900; color: #1D4ED8; }

.pos-total-body { display: flex; flex-direction: column; gap: 14px; }

.pos-total-breakdown {
  background: #F8FAFC;
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
}

.pos-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #64748B;
}

.pos-total-row.amber { color: #F59E0B; font-weight: 700; }
.pos-total-row.blue { color: #3B82F6; font-weight: 700; }

.pos-net-row {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #E2E8F0;
  margin-top: 10px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 900;
  color: #1D4ED8;
}

.pos-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pos-payment-btn {
  padding: 16px;
  border-radius: 14px;
  border: 2px solid #E2E8F0;
  background: white;
  color: #64748B;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.pos-payment-btn.active-green {
  border-color: #059669;
  background: #DCFCE7;
  color: #059669;
}

.pos-payment-btn.active-red {
  border-color: #DC2626;
  background: #FEF2F2;
  color: #DC2626;
}

.pos-credit-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 14px;
  padding: 16px;
}

.pos-credit-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #991B1B;
  margin-bottom: 10px;
}

.pos-avance-input {
  width: 100%;
  padding: 16px;
  border: 2.5px solid #FCA5A5;
  border-radius: 12px;
  font-size: 22px !important;
  font-weight: 900;
  color: #059669;
  text-align: center;
  background: white;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  caret-color: #059669;
}

.pos-avance-input:focus { border-color: #DC2626; }

.pos-avance-input::-webkit-outer-spin-button,
.pos-avance-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pos-avance-input[type=number] { -moz-appearance: textfield; }

.pos-reste-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #FECACA;
  font-size: 15px;
  font-weight: 700;
  color: #991B1B;
}

.pos-reste-value { font-size: 22px; font-weight: 900; color: #DC2626; }

.pos-credit-cumul {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #78350F;
  font-weight: 700;
}

/* =========================================
   BOUTON VALIDER — Grand, accessible
   ========================================= */
.pos-validate-btn {
  width: 100%;
  min-height: 60px;
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  border: none;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(5,150,105,0.4);
  transition: all 0.15s ease;
  letter-spacing: 0.03em;
}

.pos-validate-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(5,150,105,0.25);
}

.pos-add-client-btn {
  width: 100%;
  padding: 14px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =========================================
   COMPATIBILITÉ — Garder les anciennes classes
   pour le reste de l'app (non-POS)
   ========================================= */
.pos-section-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 12px;
  overflow: hidden;
}

.pos-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-weight: 800;
  font-size: 13px;
  color: #0F172A;
}

.pos-section-body { padding: 12px 16px; }

/* =========================================
   RESPONSIVE — Optimisation iPhone/Android
   ========================================= */
@media (max-width: 390px) {
  /* iPhone SE / petits Android */
  .pos-page-wrapper { padding: 0 0 32px 0; }
  .pos-product-name { font-size: 14px; }
  .pos-qty-main-input { width: 68px; min-height: 52px; font-size: 20px !important; }
  .pos-validate-btn { font-size: 16px; min-height: 56px; }
  .pos-payment-btn { font-size: 14px; padding: 14px; }
}

@media (min-width: 640px) {
  /* Tablette / Desktop — layout plus large */
  .pos-page-wrapper { padding: 0 0 60px 0; }
  .pos-product-row { padding: 16px 18px; }
  .pos-qty-main-input { width: 86px; min-height: 62px; font-size: 24px !important; }
}

