:root{--vert: #0E7C66;--vert-fonce: #0E4F44;--encre: #12232B;--fond: #F3F6F7;--carte: #FFFFFF;--trait: #DCE4E6;--gris: #5B6B72;--orange: #B86A00;--rouge: #B3261E;--haut-bas: 64px}*{box-sizing:border-box}html,body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--fond);color:var(--encre);line-height:1.45;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:3px solid var(--vert);outline-offset:2px}.app{min-height:100vh}.lateral{display:none}.contenu{padding-bottom:calc(var(--haut-bas) + 16px + env(safe-area-inset-bottom))}.entete{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));background:var(--vert-fonce);color:#fff}.entete h1{font-size:1.15rem;margin:0;font-weight:650}main{padding:16px;max-width:760px}.pastille{font-size:.82rem;font-weight:600;padding:6px 12px;border-radius:999px;background:#fff;color:var(--encre);white-space:nowrap}.pastille.syncing{color:var(--orange)}.pastille.offline{color:var(--rouge)}.carte{background:var(--carte);border:1px solid var(--trait);border-radius:12px;padding:16px;margin-bottom:14px}.carte h2{font-size:1.05rem;margin:0 0 8px}.carte p{margin:0 0 10px}.carte.vide{border-style:dashed;color:var(--gris)}.carte.etat{border-left:6px solid var(--vert)}.carte.etat.syncing{border-left-color:var(--orange)}.carte.etat.offline{border-left-color:var(--rouge)}dl{margin:0}dl div{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--trait)}dt{color:var(--gris)}dd{margin:0;font-weight:650}.petit{font-size:.85rem;color:var(--gris);word-break:break-all}.ok{color:var(--vert);font-weight:600}.erreur{color:var(--rouge);font-weight:600}.choix{display:flex;gap:8px}.choix button,button.principal{min-height:44px;padding:0 20px;border-radius:10px;border:1px solid var(--trait);background:#fff;font-weight:600}.choix button.actif,button.principal{background:var(--vert);border-color:var(--vert);color:#fff}button.principal:disabled{opacity:.6}.bas{position:fixed;left:0;right:0;bottom:0;z-index:10;display:flex;background:#fff;border-top:1px solid var(--trait);padding-bottom:env(safe-area-inset-bottom)}.bas button{flex:1;min-height:var(--haut-bas);border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.72rem;color:var(--gris)}.bas button.actif{color:var(--vert);font-weight:700}.voile{position:fixed;top:0;right:0;bottom:0;left:0;z-index:15;background:#12232b73}.feuille{position:absolute;left:0;right:0;bottom:calc(var(--haut-bas) + env(safe-area-inset-bottom));background:#fff;border-radius:16px 16px 0 0;padding:8px 8px 12px}.feuille button{width:100%;min-height:52px;display:flex;align-items:center;gap:14px;padding:0 14px;border:0;background:none;text-align:left;font-size:1rem}@media (min-width: 900px){.app{display:grid;grid-template-columns:250px 1fr}.lateral{display:flex;flex-direction:column;gap:18px;padding:20px 12px;background:var(--vert-fonce);color:#fff;min-height:100vh;position:sticky;top:0;align-self:start}.marque{padding:0 8px;display:flex;flex-direction:column}.marque span{font-size:.85rem;opacity:.8}.lateral nav{display:flex;flex-direction:column;gap:2px}.lateral nav button{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:#fff;text-align:left}.lateral nav button.actif{background:#ffffff29;font-weight:650}.bas{display:none}.voile:not(.voile-modal){display:none}.contenu{padding-bottom:24px}.entete{background:var(--fond);color:var(--encre);border-bottom:1px solid var(--trait)}main{padding:24px}}@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}.chargement-initial{min-height:100vh;display:flex;align-items:center;justify-content:center;color:var(--gris)}.ecran-connexion{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:var(--vert-fonce)}.carte-connexion{width:100%;max-width:380px;background:#fff;border-radius:16px;padding:24px}.marque-connexion{text-align:center;margin-bottom:20px}.marque-connexion h1{font-size:1.3rem;margin:0 0 4px;color:var(--vert-fonce)}.marque-connexion p{margin:0;color:var(--gris)}.onglets{display:flex;border:1px solid var(--trait);border-radius:10px;overflow:hidden;margin-bottom:16px}.onglets button{flex:1;min-height:44px;border:0;background:#fff;font-weight:600;color:var(--gris)}.onglets button.actif{background:var(--vert);color:#fff}.formulaire{display:flex;flex-direction:column;gap:14px}.formulaire label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.9rem}.formulaire input,.formulaire select{width:100%;box-sizing:border-box;min-width:0;min-height:46px;border:1px solid var(--trait);border-radius:10px;padding:0 12px;font-size:1rem;background:#fff;color:var(--encre)}.formulaire input:focus-visible,.formulaire select:focus-visible{outline:2px solid var(--vert)}.formulaire button.principal{min-height:48px;margin-top:4px}.avis{border-radius:10px;padding:10px 12px;font-size:.88rem;margin:0 0 4px}.avis-erreur{background:#fbeae9;color:var(--rouge)}.avis-info{background:#eff3f4;color:var(--gris)}.note{font-size:.82rem;color:var(--gris);margin-top:14px}.bienvenue{margin:0}.badge-role{display:inline-block;margin-left:8px;padding:2px 10px;border-radius:999px;background:var(--fond);border:1px solid var(--trait);font-size:.78rem;font-weight:600;color:var(--vert-fonce)}button.secondaire{min-height:44px;padding:0 18px;border-radius:10px;border:1px solid var(--trait);background:#fff;font-weight:600}.liste-utilisateurs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.ligne-utilisateur{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;border:1px solid var(--trait);border-radius:10px}.nom-utilisateur{flex:1 1 140px;font-weight:600}.nom-utilisateur em{font-style:normal;color:var(--gris);font-weight:400}.etiquette-desactive{margin-left:8px;padding:2px 8px;border-radius:999px;background:#fbeae9;color:var(--rouge);font-size:.75rem;font-weight:600}.ligne-utilisateur select{min-height:40px;border-radius:8px;border:1px solid var(--trait);padding:0 8px}.barre-recherche{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.barre-recherche input[type=search]{flex:1;min-width:180px;min-height:44px;border:1px solid var(--trait);border-radius:10px;padding:0 12px;font-size:1rem}.liste-produits{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:8px}.liste-produits li.inactif{opacity:.55}.ligne-produit{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--carte);border:1px solid var(--trait);border-radius:12px;padding:12px 14px;text-align:left}.ligne-stock{cursor:default}.info-produit{display:flex;flex-direction:column;gap:2px;min-width:0}.nom-produit{font-weight:650}.details-produit{font-size:.82rem;color:var(--gris);display:flex;align-items:center;gap:6px}.chiffres-produit{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap}.prix{font-weight:650}.quantite{font-size:.82rem;color:var(--gris)}.quantite-basse{color:var(--orange);font-weight:600}.quantite-rupture{color:var(--rouge);font-weight:700}.carte-formulaire{border:2px solid var(--vert)}.carte-formulaire h2{margin:0 0 16px}.grille-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.grille-2>label{min-width:0}.case-active{flex-direction:row!important;align-items:center;gap:8px!important}.case-active input{width:18px;height:18px}.actions-formulaire{display:flex;flex-direction:column;gap:10px;margin-top:10px;padding-top:14px;border-top:1px solid var(--trait)}.actions-formulaire button{width:100%;min-height:48px}.resume-stock{display:flex;justify-content:space-between;gap:10px;text-align:center}.resume-stock dt{font-size:.78rem;color:var(--gris)}.resume-stock dd{margin:4px 0 0;font-size:1.15rem;font-weight:700}.resume-stock dd.alerte{color:var(--rouge)}.resume-stock dd.attention{color:var(--orange)}dd.alerte{color:var(--rouge)}dd.attention{color:var(--orange)}.filtres-puces{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.filtres-puces button{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--trait);background:#fff;font-size:.85rem;font-weight:600}.filtres-puces button.actif{background:var(--vert);border-color:var(--vert);color:#fff}.entete-lots{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}.entete-lots h2{margin:0}.liste-lots{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.ligne-lot{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--trait);border-radius:10px;padding:10px 12px}.info-lot{display:flex;flex-direction:column;gap:2px}.numero-lot{font-weight:650}.chiffres-lot{display:flex;align-items:center;gap:10px}.quantite-lot{font-weight:650}.lien-retirer{background:none;border:0;color:var(--rouge);font-weight:600;font-size:.85rem;padding:4px}.etiquette-urgence{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.75rem;font-weight:700;align-self:flex-start}.etiquette-urgence.urgence-perime{background:#fbeae9;color:var(--rouge)}.etiquette-urgence.urgence-moins30{background:#fbf0de;color:var(--orange)}.etiquette-urgence.urgence-moins60,.etiquette-urgence.urgence-moins90{background:#eff3f4;color:var(--gris)}.ligne-lot.urgence-perime{border-color:var(--rouge)}.ligne-lot.urgence-moins30{border-color:var(--orange)}.ligne-produit.urgence-perime{border-left:4px solid var(--rouge)}.ligne-produit.urgence-moins30{border-left:4px solid var(--orange)}.ligne-produit.urgence-moins60,.ligne-produit.urgence-moins90{border-left:4px solid var(--trait)}.formulaire-lot{margin-top:10px;padding-top:14px;border-top:1px dashed var(--trait)}.actions-lot{border-top:none;padding-top:0;margin-top:0}.liste-panier{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:8px}.ligne-panier{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--trait);border-radius:10px}.ligne-panier .nom-produit{flex:1 1 100px;min-width:0}.controle-quantite{display:flex;align-items:center;gap:8px}.controle-quantite button{width:32px;height:32px;border-radius:8px;border:1px solid var(--trait);background:#fff;font-size:1.1rem;font-weight:700;line-height:1}.controle-quantite span{min-width:20px;text-align:center;font-weight:650}.total-panier{display:flex;justify-content:space-between;align-items:baseline;font-size:1.1rem;padding:10px 0;border-top:1px solid var(--trait);margin:6px 0 10px}.liste-mouvements{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.ligne-mouvement{display:flex;justify-content:space-between;padding:8px 10px;border:1px solid var(--trait);border-radius:8px;font-size:.9rem}.sous-titre{font-size:.95rem;margin:18px 0 10px;color:var(--encre)}.liste-lignes-achat{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:14px}.ligne-achat{border:1px solid var(--trait);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}.resume-achat{display:flex;justify-content:space-between;align-items:center;padding:12px 0;margin:14px 0;border-top:1px solid var(--trait);border-bottom:1px solid var(--trait);font-size:1.05rem}.bouton-pleine-largeur{width:100%}.detail-achat{margin:-4px 0 8px;padding:10px 14px;border:1px solid var(--trait);border-top:none;border-radius:0 0 12px 12px;background:var(--fond)}.liste-detail-achat{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.liste-detail-achat li{display:flex;justify-content:space-between;font-size:.88rem;gap:10px}.selecteur-rapport{width:100%;min-height:46px;border:1px solid var(--trait);border-radius:10px;padding:0 12px;font-size:1rem;margin-bottom:16px}.titre-periode{margin-top:6px}.tableau-scroll{overflow-x:auto;margin:10px 0}.tableau-rapport{width:100%;border-collapse:collapse;font-size:.85rem;white-space:nowrap}.tableau-rapport th,.tableau-rapport td{padding:8px 10px;border-bottom:1px solid var(--trait);text-align:left}.tableau-rapport th{color:var(--gris);font-weight:650;background:var(--fond)}.totaux-rapport{margin:12px 0;border-top:1px solid var(--trait);padding-top:10px}.totaux-rapport div{display:flex;justify-content:space-between;padding:4px 0}.totaux-rapport dt{color:var(--gris)}.totaux-rapport dd{margin:0;font-weight:700}.boutons-export{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.boutons-export button{flex:1 1 140px}.champ-fichier{width:100%;padding:10px;border:1px dashed var(--trait);border-radius:10px;background:var(--fond);font-size:.9rem}.liste-lignes-import{list-style:none;margin:10px 0;padding:0;display:flex;flex-direction:column;gap:12px}.ligne-import{border:1px solid var(--trait);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}.ligne-import-statut{display:flex;align-items:center;justify-content:space-between;gap:10px}
