/* =========================================================================
   SuperMarché — thème "bleu professionnel" + layout sidebar (style admin)
   ========================================================================= */
:root {
    --sm-primary: #2563eb;        /* bleu principal */
    --sm-primary-dark: #1d4ed8;
    --sm-sidebar-bg: #0f2742;     /* navy sombre pour la sidebar */
    --sm-sidebar-bg2: #0b1d33;
    --sm-sidebar-link: #c7d6ea;
    --sm-sidebar-active: #2563eb;
    --sm-content-bg: #eef2f7;
    --sm-border: #d7e0ec;
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
}

body { background: var(--sm-content-bg); }

/* --- Accents bleus (remplacent le bleu Bootstrap par défaut) --- */
.btn-primary {
    --bs-btn-bg: var(--sm-primary); --bs-btn-border-color: var(--sm-primary);
    --bs-btn-hover-bg: var(--sm-primary-dark); --bs-btn-hover-border-color: var(--sm-primary-dark);
    --bs-btn-active-bg: var(--sm-primary-dark); --bs-btn-active-border-color: var(--sm-primary-dark);
}
.btn-outline-primary { --bs-btn-color: var(--sm-primary); --bs-btn-border-color: var(--sm-primary);
    --bs-btn-hover-bg: var(--sm-primary); --bs-btn-hover-border-color: var(--sm-primary); }
.text-primary { color: var(--sm-primary) !important; }
.bg-primary, .text-bg-primary { background-color: var(--sm-primary) !important; }
a { color: var(--sm-primary); }

/* =========================== Layout sidebar =============================== */
.sm-layout { display: flex; min-height: 100vh; }

.sm-sidebar {
    width: 250px; flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid var(--sm-border);
    color: #334155; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.sm-sidebar .sm-brand {
    font-weight: 700; font-size: 1.2rem; color: var(--sm-primary); text-decoration: none;
    padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: .5rem;
    border-bottom: 1px solid var(--sm-border);
}
.sm-nav { flex: 1; overflow-y: auto; padding: .5rem .5rem; }
.sm-nav .sm-section { color: #94a3b8; font-size: .7rem; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 600; padding: 1rem .75rem .35rem; }
.sm-nav a {
    display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; margin-bottom: 2px;
    color: #475569; text-decoration: none; font-size: .92rem; font-weight: 500;
    border-radius: .5rem;
}
.sm-nav a:hover { background: #f1f5f9; color: #1e293b; }
.sm-nav a.active { background: #e8f0fe; color: var(--sm-primary); }
.sm-nav a.active i { color: var(--sm-primary); }
.sm-nav a i { width: 18px; text-align: center; color: #94a3b8; }

.sm-sidebar .sm-user {
    border-top: 1px solid var(--sm-border); padding: .85rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.sm-sidebar .sm-user .nom { color: #334155; font-size: .9rem; font-weight: 500; }
.sm-sidebar .sm-user a { color: #94a3b8; }
.sm-sidebar .sm-user a:hover { color: var(--sm-primary); }

.sm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-topbar {
    background: #fff; border-bottom: 1px solid var(--sm-border);
    padding: .75rem 1.5rem; display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 10;
}
.sm-topbar h1 { font-size: 1.15rem; margin: 0; font-weight: 600; color: #1e293b; }
.sm-content { padding: 1.5rem; flex: 1; }

.sm-toggle { display: none; }

/* Cartes plus douces */
.card { border: 1px solid var(--sm-border); border-radius: .7rem; box-shadow: 0 1px 3px rgba(15,39,66,.04); }
.card .card-body { padding: 1.25rem; }
.stat-card { border: 0; border-radius: .8rem; }
h1, h2, h3, h4 { color: #1e293b; }

/* Toasts (messages flash) — pro, auto-disparition */
.sm-toasts { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .6rem; width: 360px; max-width: calc(100vw - 2rem); }
.sm-toast {
    display: flex; align-items: flex-start; gap: .65rem;
    background: #fff; border: 1px solid var(--sm-border); border-left: 4px solid var(--sm-primary);
    border-radius: .6rem; box-shadow: 0 10px 28px rgba(15,39,66,.16);
    padding: .8rem .9rem; animation: smToastIn .25s ease;
}
.sm-toast .ic { font-size: 1.2rem; line-height: 1.2; }
.sm-toast .msg { font-size: .9rem; color: #1e293b; flex: 1; line-height: 1.35; }
.sm-toast .x { cursor: pointer; color: #94a3b8; background: none; border: 0; font-size: 1.2rem; line-height: 1; padding: 0; }
.sm-toast .x:hover { color: #475569; }
.sm-toast.t-success { border-left-color: #16a34a; } .sm-toast.t-success .ic { color: #16a34a; }
.sm-toast.t-danger  { border-left-color: #dc2626; } .sm-toast.t-danger .ic  { color: #dc2626; }
.sm-toast.t-warning { border-left-color: #d97706; } .sm-toast.t-warning .ic { color: #d97706; }
.sm-toast.t-info    { border-left-color: #2563eb; } .sm-toast.t-info .ic    { color: #2563eb; }
.sm-toast.out { animation: smToastOut .3s ease forwards; }
@keyframes smToastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes smToastOut { to { opacity: 0; transform: translateX(24px); } }
@media print { .sm-toasts { display: none !important; } }

/* Rappel : journée non clôturée — SANS fond, seul le texte clignote */
.rappel-cloture { display: flex; justify-content: center; align-items: center; gap: .5rem; color: #b45309; font-size: .95rem; font-weight: 600; margin-bottom: 1rem; text-align: center; }
.rappel-cloture .rc-ic { color: #d97706; font-size: 1.1rem; display: inline-flex; }
.rappel-cloture .rc-txt { line-height: 1.2; }
.rappel-cloture .rc-txt strong { color: #b45309; font-weight: 700; }
.rappel-cloture .rc-sub { font-size: .78rem; opacity: .85; font-weight: 500; }
/* Le clignotement ne touche que le texte + l'icône (pas le bouton) */
.rappel-cloture .rc-ic, .rappel-cloture .rc-txt { animation: rappelBlink 1s steps(1, end) infinite; }
.pos-body .rappel-cloture { margin: .5rem 1rem 0; }

@keyframes rappelBlink {
    0%, 55%   { opacity: 1; }
    56%, 100% { opacity: .15; }
}
@media (prefers-reduced-motion: reduce) {
    .rappel-cloture .rc-ic, .rappel-cloture .rc-txt { animation: none; }
}

/* ===================== Fenêtre de confirmation (moderne) ===================== */
#smConfirmModal .modal-content { border: 0; border-radius: 1.1rem; box-shadow: 0 24px 60px rgba(15,23,42,.30); overflow: hidden; }
#smConfirmModal .modal-body { padding: 1.9rem 1.7rem 1.5rem; text-align: center; }
.sm-confirm-icon {
    width: 66px; height: 66px; margin: 0 auto 1.1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    background: #eff6ff; color: #2563eb; box-shadow: 0 0 0 8px rgba(37,99,235,.08);
}
.sm-confirm-icon.danger { background: #fef2f2; color: #dc2626; box-shadow: 0 0 0 8px rgba(220,38,38,.08); }
.sm-confirm-title { font-weight: 700; font-size: 1.2rem; color: #1e293b; margin: 0 0 .35rem; }
.sm-confirm-msg { color: #64748b; font-size: 1rem; line-height: 1.5; margin: 0 0 1.5rem; }
.sm-confirm-actions { display: flex; gap: .7rem; }
.sm-confirm-actions .btn { flex: 1; padding: .65rem; font-weight: 600; border-radius: .65rem; }
.sm-confirm-actions .btn-annuler { background: #f1f5f9; color: #475569; border: 0; }
.sm-confirm-actions .btn-annuler:hover { background: #e2e8f0; color: #334155; }
.sm-confirm-actions .btn:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 1px; }

/* Titres de section discrets */
.section-title { font-size: 1rem; font-weight: 600; color: #334155; margin: 0 0 1rem; }

/* Tables épurées */
.table { --bs-table-border-color: #eef2f7; }
.table > thead th { background: #f8fafc; color: #64748b; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; border-bottom: 1px solid var(--sm-border); }
.table > tbody td { border-bottom-color: #f1f5f9; }

/* KPI — cartes sobres : surface blanche + petite pastille d'icône colorée */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi-card { background: #fff; border: 1px solid var(--sm-border); border-radius: .8rem; padding: 1.15rem 1.25rem; display: flex; align-items: flex-start; gap: 1rem; box-shadow: 0 1px 3px rgba(15,39,66,.05); }
.kpi-icon { width: 46px; height: 46px; border-radius: .7rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 600; }
.kpi-value { font-size: 1.55rem; font-weight: 700; color: #1e293b; line-height: 1.15; }
.kpi-value small { font-size: .78rem; font-weight: 500; color: #94a3b8; }
.kpi-sub { font-size: .78rem; color: #94a3b8; margin-top: .1rem; }
.kpi-icon.t-bleu { background: #e8f0fe; color: #2563eb; }
.kpi-icon.t-vert { background: #e7f6ee; color: #16a34a; }
.kpi-icon.t-ambre { background: #fdf3e4; color: #d97706; }
.kpi-icon.t-ardoise { background: #eef2f7; color: #475569; }
@media (max-width: 991.98px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .kpi-grid { grid-template-columns: 1fr; } }

/* Responsive : sidebar masquable */
@media (max-width: 991.98px) {
    .sm-sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .25s; }
    .sm-sidebar.open { left: 0; }
    .sm-toggle { display: inline-flex; }
    .sm-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1040; display: none; }
    .sm-backdrop.show { display: block; }
}

/* =========================== Caisse (POS) dense ========================== */
/* Barre supérieure unique : champ produit + boutons d'action (plus de bandeau bleu) */
.pos-topbar {
    background: #fff; border-bottom: 1px solid var(--sm-border);
    padding: .7rem 1.25rem; display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(15,39,66,.07);
}
.pos-topbar label { font-size: .68rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; display: block; font-weight: 600; }
.pos-topbar .champ-produit { flex: 1 1 300px; min-width: 220px; }
.pos-topbar #recherche { font-size: 1.35rem; font-weight: 600; padding: .6rem .95rem; height: auto; border: 1.5px solid var(--sm-border); border-radius: .6rem; }
.pos-topbar #recherche:focus { border-color: #93c5fd; box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }
.pos-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pos-actions .btn { white-space: nowrap; font-weight: 600; padding: .6rem 1rem; border-radius: .55rem; display: inline-flex; align-items: center; gap: .4rem; transition: transform .06s ease, box-shadow .15s ease, filter .15s ease; }
.pos-actions .btn:active { transform: translateY(1px); }
.pos-actions .btn small { font-weight: 500; opacity: .75; }
.pos-actions .pos-nav { display: inline-flex; align-items: center; gap: .35rem; margin-left: .35rem; padding-left: .7rem; border-left: 1px solid var(--sm-border); }
.pos-user { font-size: .82rem; font-weight: 600; color: #475569; display: inline-flex; align-items: center; gap: .3rem; margin-right: .2rem; }

/* Hauteur figée à l'écran : seule la grille d'articles défile, le bas (Net à payer,
   Encaissement) reste toujours visible sans scroller. */
.pos-body { background: #e9eef5; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

/* Zone principale : panier (gauche) + colonne d'encaissement (droite) */
.pos-main { flex: 1 1 auto; min-height: 0; display: flex; gap: 1rem; padding: 1rem 1.25rem 1.25rem; overflow: hidden; }
.pos-left { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: .6rem; }
.pos-grid-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; margin: 0; border: 1px solid var(--sm-border); border-radius: .7rem; box-shadow: 0 1px 4px rgba(15,39,66,.06); }
/* Récap en ligne sous le panier */
.pos-cart-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--sm-border); border-radius: .7rem; padding: .5rem .95rem; box-shadow: 0 1px 4px rgba(15,39,66,.06); font-size: .84rem; color: #64748b; }
.pos-cart-foot .stats strong { color: #1e293b; font-size: 1rem; }
.pos-cart-foot .derniere strong { color: #1e293b; }
.pos-grid { width: 100%; margin: 0; }
.pos-grid thead th { position: sticky; top: 0; z-index: 1; background: linear-gradient(180deg, #2b3a52, #1e293b); color: #e2e8f0; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .75rem .85rem; }
.pos-grid tbody td { padding: .65rem .8rem; vertical-align: middle; border-bottom: 1px solid #eef2f7; }
.pos-grid tbody tr:nth-child(even) { background: #f8fafc; }
.pos-grid tbody tr:hover { background: #eff6ff; }
.pos-grid tbody tr { transition: background .12s ease; }
.pos-grid .ligne-ajoutee { animation: posFlash 1.1s ease-out; }
@keyframes posFlash { 0% { background: #dbeafe; } 60% { background: #eff6ff; } 100% { background: transparent; } }

/* --- Lignes du panier : présentation moderne --- */
.pos-idx { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #eef2f7; color: #64748b; font-size: .8rem; font-weight: 700; }
.pos-grid .pos-nom { font-weight: 600; color: #1e293b; }
.pos-cb { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: .4rem; padding: .1rem .45rem; white-space: nowrap; }
.pos-prix { color: #475569; font-variant-numeric: tabular-nums; }
.pos-total { font-weight: 800; color: #1e293b; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* Stepper de quantité (− valeur +) */
.pos-stepper { display: inline-flex; align-items: center; border: 1px solid #cbd5e1; border-radius: .55rem; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15,39,66,.06); }
.pos-stepper .pas { border: 0; background: #f8fafc; width: 30px; height: 32px; font-size: 1.15rem; font-weight: 700; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .12s ease; }
.pos-stepper .pas:hover { background: #e2e8f0; }
.pos-stepper .pas.plus { color: #16a34a; }
.pos-stepper .pas.moins { color: #dc2626; }
.pos-stepper input { width: 46px; border: 0; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; text-align: center; font-weight: 700; font-size: .95rem; height: 32px; -moz-appearance: textfield; appearance: textfield; }
.pos-stepper input:focus { outline: 0; background: #eff6ff; }
.pos-stepper input::-webkit-outer-spin-button, .pos-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Champ de remise — composant "remise-box" (accent rose = réduction) */
.remise-box { display: inline-flex; align-items: center; background: #fff; border: 1px solid #fecdd3; border-radius: .5rem; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.remise-box:focus-within { border-color: #fb7185; box-shadow: 0 0 0 .18rem rgba(244,63,94,.16); }
.remise-box .ic { color: #e11d48; font-size: .82rem; padding-left: .5rem; display: flex; }
.remise-box input { border: 0; outline: 0; background: transparent; width: 60px; text-align: right; font-weight: 700; color: #be123c; padding: .32rem .35rem; -moz-appearance: textfield; appearance: textfield; }
.remise-box input::placeholder { color: #fda4af; font-weight: 500; }
.remise-box input::-webkit-outer-spin-button, .remise-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.remise-box .cur { font-size: .72rem; color: #9f1239; font-weight: 700; padding-right: .55rem; }
.remise-box .unite { border: 0; background: #ffe4e6; color: #9f1239; cursor: pointer; padding: .32rem .5rem; align-self: stretch; border-left: 1px solid #fecdd3; transition: background .12s ease; }
.remise-box .unite:hover { background: #fecdd3; }
.remise-box--lg input { width: 52px; font-size: .9rem; padding: .28rem .35rem; }
.remise-box--lg .ic { font-size: .75rem; padding-left: .4rem; }
.remise-box--lg .unite { padding: .28rem .45rem; }
/* Retirer l'article */
.pos-suppr { border: 0; background: transparent; color: #cbd5e1; width: 32px; height: 32px; border-radius: .5rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; }
.pos-suppr:hover { background: #fef2f2; color: #dc2626; }
.pos-surstock { font-size: .72rem; color: #dc2626; font-weight: 600; margin-top: .2rem; }
.pos-ligne--surstock td { box-shadow: inset 3px 0 0 #f59e0b; }

/* Colonne d'encaissement : 3 cartes compactes, toutes visibles sans défilement */
.pos-bottom { flex: 0 0 clamp(340px, 31%, 400px); display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; }
.pos-bottom > .pos-panel { flex: 0 0 auto; }
/* L'Encaissement grandit pour occuper l'espace ; le bouton Valider garde une taille fixe élégante. */
.pos-bottom > .pos-panel--flex { flex: 1 1 auto; min-height: 0; }
.pos-panel--flex .corps { display: flex; flex-direction: column; }
/* Raccourcis clavier — discrets, calés en bas de la carte pour occuper le vide */
.pos-raccourcis { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem .9rem; border-top: 1px dashed var(--sm-border); font-size: .72rem; color: #94a3b8; }
.pos-raccourcis span { display: inline-flex; align-items: center; gap: .3rem; }
.pos-raccourcis kbd { background: #eef2f7; color: #475569; border: 1px solid #e2e8f0; border-radius: .3rem; padding: .02rem .38rem; font-size: .68rem; font-weight: 600; box-shadow: none; }
.pos-panel { background: #fff; border: 1px solid var(--sm-border); border-radius: .7rem; overflow: hidden; box-shadow: 0 2px 8px rgba(15,39,66,.06); display: flex; flex-direction: column; }
.pos-panel .titre { background: linear-gradient(180deg, #2b3a52, #1e293b); color: #fff; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .3rem .85rem; text-align: center; }
.pos-panel .corps { padding: .5rem .8rem; flex: 1; }
/* Totaux — lignes resserrées + Net à payer compact */
.pos-panel--top .corps > .d-flex { margin-bottom: .15rem !important; font-size: .9rem; }
.pos-net {
    background: linear-gradient(160deg, #fff5f5, #fee2e2); border: 1.5px solid #fca5a5; border-radius: .6rem;
    text-align: center; padding: .3rem .5rem; margin-top: .4rem;
}
.pos-net .small { font-size: .64rem !important; margin-bottom: 0 !important; }
.pos-net .montant { font-size: 1.55rem; font-weight: 800; color: #b91c1c; line-height: 1.1; letter-spacing: -.02em; }
/* Boutons cash + monnaie à rendre */
.cash-btn { font-size: .92rem; font-weight: 600; border-radius: .5rem; }
.pos-monnaie { background: linear-gradient(160deg, #ecfdf5, #d1fae5) !important; border: 1px solid #a7f3d0; }
/* Récapitulatif compact */
.pos-recap-stats { display: flex; justify-content: space-around; font-size: .85rem; color: #64748b; margin-bottom: .5rem; }
.pos-recap-stats strong { color: #1e293b; font-size: 1.05rem; }
#btnValider2 { flex: 0 0 auto; height: 3.1rem; display: flex; align-items: center; justify-content: center; gap: .5rem; background: linear-gradient(180deg, #22c55e, #16a34a); border: 0; color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; border-radius: .7rem; box-shadow: 0 6px 16px rgba(22,163,74,.30); transition: filter .15s ease, transform .06s ease, box-shadow .15s ease; }
#btnValider2:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(22,163,74,.40); }
#btnValider2:active { transform: translateY(1px); }
#btnValider2 kbd { background: rgba(255,255,255,.22); color: #fff; border-radius: .35rem; padding: .05rem .4rem; font-size: .72rem; font-weight: 600; }
.pos-derniere { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .74rem; color: #64748b; margin-top: .5rem; padding-top: .45rem; border-top: 1px solid #eef2f7; }
.pos-derniere .lbl { text-transform: uppercase; font-size: .64rem; letter-spacing: .04em; color: #94a3b8; }

/* Modale produits — présentation pro */
.pos-modal { border: 0; border-radius: .9rem; overflow: hidden; box-shadow: 0 12px 40px rgba(15,39,66,.25); }
.pos-modal-header { background: linear-gradient(180deg, var(--sm-primary), var(--sm-primary-dark)); border: 0; padding: 1rem 1.25rem; }
.pos-modal-header .modal-title { font-weight: 600; }
.pos-modal-search .input-group-text { border-right: 0; }
.pos-modal-search .form-control { font-size: 1.1rem; box-shadow: none; }
.pos-modal-table thead th { background: #1e293b; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.pos-modal-table thead th:first-child { border-top-left-radius: .4rem; }
.pos-modal-table thead th:last-child { border-top-right-radius: .4rem; }
.pos-modal-table tbody tr:hover { background: #eff6ff; }
.pos-modal-table .badge { font-size: .8rem; padding: .4em .7em; }

@media (max-width: 991.98px) {
    /* Sur petit écran on laisse la page défiler : grille plafonnée, bas empilé. */
    .pos-body { height: auto; overflow: visible; }
    .pos-main { flex-direction: column; overflow: visible; padding: 1rem; }
    .pos-grid-wrap { flex: none; max-height: 45vh; }
    .pos-bottom { flex: none; overflow: visible; }
    .pos-bottom > .pos-panel--flex { flex: 0 0 auto; min-height: 0; }
    .pos-panel--flex .corps { overflow: visible; }
    #btnValider2 { flex: 0 0 auto; }
    .pos-topbar .champ-produit { flex-basis: 100%; }
    .pos-actions { width: 100%; }
    .pos-actions .btn { flex: 1 1 auto; }
}
